Methods, apparatus, equipment, storage media, and program products for generating resource identifiers
By filling in ownership and identity information in the resource identifier, the problem that the resource identifier in the prior art cannot clearly indicate the ownership of permissions and geographical area is solved, and the accuracy of resource identifier generation and the convenience of management are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN NEOWAY TECH
- Filing Date
- 2022-11-22
- Publication Date
- 2026-07-17
Smart Images

Figure CN115809380B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device, storage medium, and program product for generating resource identifiers. Background Technology
[0002] Cities are the main carriers and core engines of national economic development. In recent years, with the rapid development of Internet of Things (IoT) technology, various types and functions of smart devices have been widely used in all aspects of life. Smart cities are the advanced form of future urban development. The "13th Five-Year Plan for National Informatization" released in 2016 requires "the construction of 100 new exemplary smart cities in different levels and categories." Promoting the construction of new smart cities has become an important measure for various regions to seize the commanding heights of digital economic development.
[0003] Currently, various departments typically have their own set of standards for identifying different resources. These differences in resource identification generation standards among different departments increase the complexity of mutual identification and communication between resources. Although the industry has successively released various standards and specifications in recent years, the existing resource identification generation standards can only reflect the original attributes of the resource and cannot clearly define the resource's ownership permissions or geographical region, thus failing to better meet users' resource management needs. Summary of the Invention
[0004] This application provides a method, apparatus, device, storage medium, and program product for generating resource identifiers. It fills the resource ownership information and identity information into the configuration information of the resource identifier, thereby improving the accuracy of resource identifier generation and providing convenience for users to uniformly schedule and manage resources.
[0005] In a first aspect, this application provides a method for generating a resource identifier, characterized by comprising:
[0006] Obtain resource identifier configuration information, which includes a first field and a second field. The first field is used to indicate the ownership information of the resource, and the second field is used to indicate the identity information of the resource.
[0007] Obtain ownership and identity information of the target resource;
[0008] The ownership information of the target resource is filled into the first field, and the identity information of the target resource is filled into the second field to obtain the resource identifier of the target resource.
[0009] Secondly, embodiments of this application provide a resource identifier generation apparatus, characterized in that the apparatus includes:
[0010] The acquisition unit is used to acquire resource identifier configuration information, which includes a first field and a second field. The first field is used to indicate the ownership information of the resource, and the second field is used to indicate the identity information of the resource.
[0011] The acquisition unit is also used to acquire the ownership information and identity information of the target resource;
[0012] A filling unit is used to fill the ownership information of the target resource into the first field and the identity information of the target resource into the second field to obtain the resource identifier of the target resource.
[0013] Thirdly, embodiments of this application provide an electronic device, characterized in that it includes a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor, the programs including instructions for performing some or all of the steps described in the method described in the first aspect of embodiments of this application.
[0014] Fourthly, embodiments of this application provide a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, which is executed by a processor to implement instructions for some or all of the steps described in the method described in the first aspect of embodiments of this application.
[0015] Fifthly, this application provides a computer program product, characterized in that the computer program product includes a computer program adapted to be loaded by a processor and to execute instructions of some or all of the steps described in the method described in the first aspect of the embodiments of this application.
[0016] As can be seen, in this embodiment, resource identifier configuration information is obtained, which includes a first field and a second field. The first field indicates the resource's ownership information, and the second field indicates the resource's identity information. The ownership information and identity information of the target resource are obtained. The ownership information of the target resource is filled into the first field, and the identity information of the target resource is filled into the second field to obtain the resource identifier of the target resource. Therefore, in the technical solution provided by this embodiment, filling the resource's ownership information and identity information into its resource identifier configuration information improves the accuracy of resource identifier generation and provides convenience for users to uniformly schedule and manage resources.
[0017] These or other aspects of this application will become more apparent in the following description of the embodiments. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating a method for generating a resource identifier provided in an embodiment of this application.
[0020] Figure 2 This is a schematic diagram of a target resource identifier provided in an embodiment of this application.
[0021] Figure 3 This is a flowchart illustrating another method for generating resource identifiers provided in an embodiment of this application.
[0022] Figure 4 This is a schematic diagram of the structure of an electronic device provided in this application.
[0023] Figure 5 This is a schematic diagram of the structure of a resource identifier generation device provided in an embodiment of this application. Detailed Implementation
[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0025] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0026] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0027] The electronic devices involved in the embodiments of this application can be electronic devices with communication capabilities. These electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of user equipment (UE), mobile station (MS), terminal device, etc.
[0028] The embodiments of this application will be described in detail below.
[0029] Please see Figure 1 , Figure 1 This is a flowchart illustrating a method for generating a resource identifier provided in an embodiment of this application.
[0030] like Figure 1 As shown, the resource identifier generation method is applied to electronic devices, and the method includes the following steps.
[0031] S101. Obtain resource identifier configuration information, wherein the resource identifier configuration information includes a first field and a second field, the first field being used to indicate the ownership information of the resource, and the second field being used to indicate the identity information of the resource;
[0032] S102. Obtain the ownership and identity information of the target resource;
[0033] The target resources may include electronic devices, virtual resources (virtual live streaming rooms, virtual props, virtual currency, teaching videos, etc.), and commodities (daily necessities, office supplies, etc.), without specific limitations.
[0034] The ownership information may include the owner's identifier of the target resource and / or the regional identifier of the geographical area where the target resource is located.
[0035] For example, if the target resource is an electronic device or a commodity, the attribution information may include one or more of the following: the administrative region identifier of the electronic device or commodity, the enterprise identifier, the specific department identifier within the enterprise, etc.; if the target resource is a virtual resource, taking a virtual live streaming room as an example, the attribution information may include one or more of the following: the personal identifier of the live streaming account, the enterprise identifier of the live streaming account, the administrative region identifier of the enterprise to which the live streaming account belongs, the IP address of the live streaming account, etc.
[0036] Administrative region codes can follow the national standard "Administrative Division Code of the People's Republic of China" (GB / T2260-2007). They are a set of numbers used to represent provinces, cities and districts of the country, which is convenient for data processing and communication. For example, Changsha City, Hunan Province: 430100.
[0037] The identity information includes the native attributes of the target resource.
[0038] For example, if the target resource is an electronic device or a commodity, the identity information may include the model identification code, serial number, and check code of the electronic device or commodity. The model identification code identifies the manufacturer and model information of the electronic device or commodity; the serial number is used by the manufacturer to distinguish different products of the same model; and the check code verifies the correctness of the model identification code and the serial number encoding. If the target resource is a virtual resource, the identity information may include the resource type code, resource parameter code, and check code of the virtual resource. The resource type code identifies the type of the virtual resource (e.g., a sales-type live stream or an entertainment-type live stream); the resource parameter code identifies the resource parameters of the virtual resource (e.g., environmental parameters of the virtual live stream, resolution of the live stream, frame rate, bitrate, etc.); and the check code verifies the correctness of the resource type code and the resource parameter code encoding.
[0039] S103. Fill the first field with the ownership information of the target resource and fill the second field with the identity information of the target resource to obtain the resource identifier of the target resource.
[0040] For example, please refer to the following: Figure 2 , Figure 2 This is a schematic diagram of a target resource identifier provided in an embodiment of this application. For example... Figure 2 As shown, assuming the ownership information of the target resource includes the enterprise identifier, department identifier, and administrative division identifier, the enterprise identifier, department identifier, and administrative division identifier are filled into the first field, and the identity information of the target resource is filled into the second field to obtain the complete resource identifier of the target resource.
[0041] As can be seen, the resource identifier generation method provided in this application embodiment obtains resource identifier configuration information, which includes a first field and a second field. The first field indicates the resource's ownership information, and the second field indicates the resource's identity information. The method then obtains the ownership information and identity information of a target resource; fills the target resource's ownership information into the first field and the target resource's identity information into the second field to obtain the target resource's resource identifier. Therefore, the technical solution provided in this application embodiment, by filling the resource's ownership information and identity information into its resource identifier configuration information, improves the accuracy of resource identifier generation and provides convenience for users' unified resource scheduling and management.
[0042] In one possible embodiment, obtaining the ownership information of the target resource includes: obtaining the application scenario of the target resource; determining the ownership information corresponding to the application scenario of the target resource based on the correspondence between the application scenario and the ownership information; and using the determined ownership information as the ownership information of the target resource.
[0043] Electronic devices have pre-defined correspondences between different application scenarios and ownership information. After obtaining the application scenario of the target resource, for example, by having the user select each application scenario displayed on the screen of the electronic device, the ownership information corresponding to the application scenario can be determined and used as the ownership information of the target resource.
[0044] Wherein, when the application scenario refers to the owner of the target resource, determining the ownership information corresponding to the application scenario of the target resource based on the correspondence between the application scenario and the ownership information includes: determining the ownership information corresponding to the owner of the target resource based on the correspondence between the owner and the ownership information, wherein the ownership information includes the owner identifier of the owner of the target resource.
[0045] For example, an electronic device pre-assigns a specific identifier to the owner of each target resource. For instance, the identifier for company A is a, the identifier for company B is b, the identifier for company C is c, the identifier for the president's office is 01, the identifier for the R&D department is 02, the identifier for the planning department is 03, and the identifier for the administration department is 04. When the owner of the target resource is the planning department of company B, the ownership information includes the owner identifier B03.
[0046] When the ownership of a target resource changes, the current ownership of the target resource is obtained. Based on the correspondence between the ownership and ownership information, the ownership information corresponding to the current ownership of the target resource is determined. Based on the ownership information corresponding to the current ownership of the target resource, the resource identifier of the target resource is updated.
[0047] Wherein, when the application scenario can also refer to the geographical region to which the target resource belongs, determining the attribution information corresponding to the application scenario of the target resource based on the correspondence between the application scenario and the attribution information includes: determining the attribution information corresponding to the geographical region where the target resource is located based on the correspondence between the geographical region and the attribution information, wherein the attribution information includes the regional identifier of the geographical region where the target resource is located.
[0048] For example, electronic devices can pre-assign different regional identifiers to different geographical areas, such as administrative region identifiers, park identifiers, building identifiers, floor identifiers, etc. The regional identifier of the geographical area where the target resource is located can be determined based on the geographical area where the target resource is located.
[0049] When the geographical region to which the target resource belongs changes, the current geographical region of the target resource is obtained. Based on the correspondence between the geographical region and the attribution information, the attribution information corresponding to the current geographical region of the target resource is determined. Based on the attribution information corresponding to the current geographical region of the target resource, the resource identifier of the target resource is updated.
[0050] As can be seen, in this embodiment, the corresponding ownership information is determined according to the application scenario of the target resource, and the ownership identifier of the owner of the target resource and the geographical area identifier are introduced when determining the ownership information. This can meet the user's needs for resource identification in different scenarios and further facilitate the user's unified resource scheduling and management.
[0051] In one possible embodiment, the method further includes: if a change in the application scenario of the target resource is detected, obtaining the current application scenario of the target resource; determining the attribution information corresponding to the current application scenario of the target resource based on the correspondence between the application scenario and the attribution information; updating the resource identifier of the target resource based on the attribution information corresponding to the current application scenario of the target resource, wherein the first field in the updated resource identifier of the target resource includes the attribution information corresponding to the current application scenario of the target resource.
[0052] The change in the application scenario includes switching from the current application scenario to another application scenario, or adding another application scenario based on the current application scenario.
[0053] For example, if the identity information of resource A is 000258, and resource A has already generated an ownership identifier B03 containing the ownership of the owner in the application scenario, and thus generated its current resource identifier B03000258, when it is detected that the application scenario has been switched to the geographical area to which resource A belongs, the ownership information corresponding to the geographical area to which resource A belongs is determined according to the correspondence between the geographical area to which resource A belongs and the ownership information. The ownership information includes the area identifier 430100 of the geographical area to which resource A belongs, and its resource identifier is updated to 430100000258.
[0054] For example, if the identity information of resource B is 000333, and resource A has already generated an ownership information containing the ownership identifier A15 of resource A as the owner in the application scenario, and thus generated its current resource identifier A15000333, when it is detected that the application scenario has been changed to include the application scenario of the geographical region to which resource B belongs, then according to the correspondence between the geographical region to which resource B belongs and the ownership information, the ownership information corresponding to the geographical region where resource B is located is determined. The ownership information includes the regional identifier 548623 of the geographical region where resource B is located, and its resource identifier is updated to A15548623000333.
[0055] As can be seen, in this embodiment, updating the resource identifier of the target resource when the application scenario changes helps to meet the user's needs for resource identifiers in different application scenarios and improves the flexibility of resource identifier generation.
[0056] In one possible embodiment, before determining the attribution information corresponding to the application scenario of the target resource based on the correspondence between the application scenario and the attribution information, it is necessary to verify the legality of the application scenario of the target resource.
[0057] When the application scenario refers to the owner of the target resource, the ownership of the target resource is verified based on the name of the owner of the target resource. If the owner exists, the verification is valid, and the process of determining the ownership information corresponding to the application scenario of the target resource is triggered based on the correspondence between the application scenario and the ownership information.
[0058] When the scenario refers to the geographical region to which the target resource belongs, the system verifies whether the geographical region to which the target resource belongs exists or whether the distance between the target resource and the existing geographical region is within a preset tolerance range, based on the obtained name of the geographical region to which the target resource belongs. If it exists or the distance is within the preset tolerance range, the verification is valid, and the system triggers the execution of determining the attribution information corresponding to the application scenario of the target resource based on the correspondence between the application scenario and the attribution information.
[0059] As can be seen, in this embodiment, before determining the attribution information corresponding to the application scenario of the target resource based on the correspondence between the application scenario and the attribution information, the legality of the application scenario of the target resource is verified. This effectively avoids the waste of equipment resources caused by not being able to obtain attribution information or obtaining incorrect attribution information based on application scenarios that do not meet the requirements, and improves the generation efficiency and accuracy of target resource identifiers.
[0060] Please see Figure 3 , Figure 3 This is a flowchart illustrating another method for generating resource identifiers provided in this application embodiment, which can be applied to electronic devices.
[0061] like Figure 3 As shown, the entity executing the resource identifier generation method is an electronic device, and the resource identifier generation method includes the following steps.
[0062] S301. Obtain resource identifier configuration information, wherein the resource identifier configuration information includes a first field and a second field, the first field being used to indicate the ownership information of the resource, and the second field being used to indicate the identity information of the resource.
[0063] S302. Obtain the application scenario of the target resource.
[0064] S303. Verify the legality of the application scenario of the target resource.
[0065] S303. If the application scenario of the target resource is determined to be legal, the attribution information corresponding to the application scenario of the target resource is determined according to the correspondence between the application scenario and the attribution information, and the determined attribution information is used as the attribution information of the target resource.
[0066] S305. Obtain the identity information of the target resource.
[0067] S306. Fill the first field with the ownership information of the target resource and fill the second field with the identity information of the target resource to obtain the resource identifier of the target resource.
[0068] S307. If a change in the application scenario of the target resource is detected, the current application scenario of the target resource is obtained.
[0069] S308. Based on the correspondence between application scenarios and attribution information, determine the attribution information corresponding to the current application scenario of the target resource.
[0070] S309. Based on the attribution information corresponding to the current application scenario of the target resource, update the resource identifier of the target resource. The first field in the updated resource identifier of the target resource includes the attribution information corresponding to the current application scenario of the target resource.
[0071] As can be seen, the resource identifier generation method provided in this application embodiment obtains resource identifier configuration information, which includes a first field and a second field. The first field is used to indicate the ownership information of the resource, and the second field is used to indicate the identity information of the resource. By obtaining the application scenario of the target resource and verifying the legality of the application scenario, and when the verification is legal, the ownership information of the target resource is determined according to the correspondence between the application scenario and the ownership information. The ownership information of the target resource is filled into the first field, and the identity information of the target resource is filled into the second field to obtain the resource identifier of the target resource. When the application scenario changes, the resource identifier of the target resource is updated accordingly. This can meet the user's needs for resource identifiers in different scenarios, improve the flexibility of resource identifier generation, and further provide convenience for users to uniformly schedule and manage resources.
[0072] With the above Figure 1 , Figure 3 The embodiments shown are consistent; please refer to [link / reference]. Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device 400 provided in an embodiment of this application. For example... Figure 4 As shown, the electronic device 400 includes an application processor 410, a memory 420, a communication interface 430, and one or more programs 421, wherein the one or more programs 421 are stored in the memory 420 and configured to be executed by the application processor 410, and the one or more programs 421 include instructions for performing any step in the above method embodiments.
[0073] In one possible embodiment, the program 421 includes instructions for performing the following steps: obtaining resource identifier configuration information, the resource identifier configuration information including a first field and a second field, the first field being used to indicate the ownership information of the resource, and the second field being used to indicate the identity information of the resource; obtaining the ownership information and identity information of a target resource; filling the ownership information of the target resource into the first field, and filling the identity information of the target resource into the second field, to obtain the resource identifier of the target resource.
[0074] As can be seen, the resource identifier generation method provided in this application embodiment obtains resource identifier configuration information, which includes a first field and a second field. The first field indicates the resource's ownership information, and the second field indicates the resource's identity information. The method then obtains the ownership information and identity information of a target resource; fills the target resource's ownership information into the first field and the target resource's identity information into the second field to obtain the target resource's resource identifier. Therefore, the technical solution provided in this application embodiment, by filling the resource's ownership information and identity information into its resource identifier configuration information, improves the accuracy of resource identifier generation and provides convenience for users' unified resource scheduling and management.
[0075] In one possible embodiment, in obtaining the ownership information of the target resource, the instructions in program 421 are specifically used to perform the following operations: obtain the application scenario of the target resource; determine the ownership information corresponding to the application scenario of the target resource according to the correspondence between the application scenario and the ownership information; and use the determined ownership information as the ownership information of the target resource.
[0076] In one possible embodiment, the instructions in program 421 are specifically used to perform the following operations: if a change in the application scenario of the target resource is detected, the current application scenario of the target resource is obtained; based on the correspondence between the application scenario and the attribution information, the attribution information corresponding to the current application scenario of the target resource is determined; based on the attribution information corresponding to the current application scenario of the target resource, the resource identifier of the target resource is updated, wherein the first field in the updated resource identifier of the target resource includes the attribution information corresponding to the current application scenario of the target resource.
[0077] In one possible embodiment, before determining the attribution information corresponding to the application scenario of the target resource based on the correspondence between application scenario and attribution information, the instructions in program 421 are specifically used to perform the following operations: verify the legality of the application scenario of the target resource; if the application scenario of the target resource is determined to be legal, then trigger the execution of determining the attribution information corresponding to the application scenario of the target resource based on the correspondence between application scenario and attribution information.
[0078] The above primarily describes the solutions of the embodiments of this application from the perspective of the method execution process. It is understood that, in order to achieve the above functions, the electronic device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments provided herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0079] This application embodiment can divide the electronic device into functional units according to the above method examples. For example, each function can be divided into its own functional unit, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0080] Please see Figure 5 , Figure 5 This is a schematic diagram of a resource identifier generation device provided in an embodiment of this application. The resource identifier generation device 500 is applied to an electronic device, and includes an acquisition unit 501, a filling unit 502, an update unit 503, and a verification unit 504. A detailed description follows.
[0081] In one embodiment, the acquisition unit 501 is used to acquire resource identifier configuration information, which includes a first field and a second field. The first field is used to indicate the ownership information of the resource, and the second field is used to indicate the identity information of the resource. The acquisition unit 502 is used to fill the ownership information of the target resource into the first field and fill the identity information of the target resource into the second field to obtain the resource identifier of the target resource.
[0082] As can be seen, the resource identifier generation method provided in this application embodiment obtains resource identifier configuration information, which includes a first field and a second field. The first field indicates the resource's ownership information, and the second field indicates the resource's identity information. The method then obtains the ownership information and identity information of a target resource; fills the target resource's ownership information into the first field and the target resource's identity information into the second field to obtain the target resource's resource identifier. Therefore, the technical solution provided in this application embodiment, by filling the resource's ownership information and identity information into its resource identifier configuration information, improves the accuracy of resource identifier generation and provides convenience for users' unified resource scheduling and management.
[0083] In one possible embodiment, in obtaining the ownership information of the target resource, the acquisition unit 501 is specifically used to: acquire the application scenario of the target resource; determine the ownership information corresponding to the application scenario of the target resource according to the correspondence between the application scenario and the ownership information; and use the determined ownership information as the ownership information of the target resource.
[0084] In one possible embodiment, the acquisition unit 501 is specifically used to acquire the current application scenario of the target resource if a change in the application scenario of the target resource is detected; and to determine the attribution information corresponding to the current application scenario of the target resource based on the correspondence between the application scenario and the attribution information; the update unit 503 is used to update the resource identifier of the target resource based on the attribution information corresponding to the current application scenario of the target resource, wherein the first field in the updated resource identifier of the target resource includes the attribution information corresponding to the current application scenario of the target resource.
[0085] In one possible embodiment, before determining the attribution information corresponding to the application scenario of the target resource based on the correspondence between application scenario and attribution information, the verification unit 504 is used to: perform a legality verification on the application scenario of the target resource; if the application scenario of the target resource is determined to be legal, then trigger the execution of determining the attribution information corresponding to the application scenario of the target resource based on the correspondence between application scenario and attribution information.
[0086] It is understood that since the method embodiments and the device embodiments are different presentations of the same technical concept, the content of the method embodiment section in this application should be adapted to the device embodiment section in a synchronous manner, and will not be repeated here.
[0087] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes an electronic device.
[0088] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may include an electronic device.
[0089] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0090] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0091] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0092] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0093] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0094] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0095] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0096] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for generating resource identifiers, characterized in that, include: Obtain resource identifier configuration information, which includes a first field and a second field. The first field is used to indicate the ownership information of the resource, and the second field is used to indicate the identity information of the resource. Obtain ownership and identity information of the target resources, wherein the target resources include at least electronic devices, virtual resources, and goods; The acquisition of the ownership information of the target resource includes: Obtain the application scenarios of the target resource; The application scenario refers to the ownership of the target resource; based on the correspondence between the ownership owner and ownership information, the ownership information corresponding to the ownership owner of the target resource is determined, and the ownership information includes the ownership owner identifier of the ownership owner of the target resource; and / or The application scenario refers to the geographical region to which the target resource belongs; based on the correspondence between geographical regions and attribution information, the attribution information corresponding to the geographical region where the target resource is located is determined, and the attribution information includes the regional identifier of the geographical region where the target resource is located; The ownership information of the target resource is filled into the first field, and the identity information of the target resource is filled into the second field to obtain the resource identifier of the target resource; The method further includes: If a change in the application scenario of the target resource is detected, the current application scenario of the target resource is obtained; Based on the correspondence between application scenarios and attribution information, the attribution information corresponding to the current application scenario of the target resource is determined; Based on the attribution information corresponding to the current application scenario of the target resource, the resource identifier of the target resource is updated, and the first field in the updated resource identifier of the target resource includes the attribution information corresponding to the current application scenario of the target resource.
2. The method according to claim 1, characterized in that, The method further includes: The legality of the application scenarios of the target resources is verified; If the application scenario of the target resource is determined to be legitimate, then the process of determining the attribution information corresponding to the application scenario of the target resource based on the correspondence between the application scenario and the attribution information is triggered.
3. A resource identifier generation device, characterized in that, The device includes: The acquisition unit is used to acquire resource identifier configuration information, which includes a first field and a second field. The first field is used to indicate the ownership information of the resource, and the second field is used to indicate the identity information of the resource. The acquisition unit is also used to acquire the ownership information and identity information of the target resource; The acquisition unit is also configured to acquire the application scenario of the target resource; when the application scenario refers to the owner of the target resource, the unit determines the ownership information corresponding to the owner of the target resource based on the correspondence between the owner and ownership information, wherein the ownership information includes the owner identifier of the owner of the target resource; and / or when the application scenario refers to the geographical region to which the target resource belongs, the unit determines the ownership information corresponding to the geographical region where the target resource is located based on the correspondence between the geographical region and ownership information, wherein the ownership information includes the region identifier of the geographical region where the target resource is located. The acquisition unit is further configured to acquire the current application scenario of the target resource when a change in the application scenario of the target resource is detected; determine the attribution information corresponding to the current application scenario of the target resource according to the correspondence between the application scenario and the attribution information; and update the resource identifier of the target resource based on the attribution information corresponding to the current application scenario of the target resource, wherein the first field in the updated resource identifier of the target resource includes the attribution information corresponding to the current application scenario of the target resource. A filling unit is used to fill the ownership information of the target resource into the first field and the identity information of the target resource into the second field to obtain the resource identifier of the target resource.
4. An electronic device, characterized in that, The method includes a processor, a memory, a communication interface, and one or more programs, said one or more programs being stored in the memory and configured to be executed by the processor, said programs including instructions for performing the steps of the method according to any one of claims 1-2.
5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the method of any one of claims 1-2.
6. A computer program product, characterized in that, The computer program product includes a computer program adapted to be loaded by a processor and to execute the method as described in any one of claims 1-2.