Application ID code generation method and device, equipment and storage medium
By receiving the encoding instructions from the client, determining the encoding category and generating application encoding, the problems of excessively long ID encoding length and low performance in the prior art are solved, and efficient and flexible ID encoding generation are achieved.
Patent Information
- Application Number
- CN202510057101.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-05-16
AI Technical Summary
When generating unique ID codes, the prior art faces low performance problems caused by excessive encoding length, large storage space occupies or dependence on indexes.
By receiving the client's encoding instructions, the encoding category is determined, and the corresponding encoding identification information is obtained according to the encoding category, and the application encoding is generated. The encoded identification information includes timestamps, server IP information, machine codes, application process numbers and random numbers, or timestamps, server IP information and self-incremental serial number.
It realizes matching the corresponding encoding generation method according to business needs, improves the productivity and flexibility of ID encoding, and is suitable for multiple application scenarios.
Smart Images

Figure CN120012717A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for generating an application ID code. Background Art
[0002] ID codes often correspond to recorded messages of business needs. In order to meet the needs of classification management, it is very necessary to generate a globally unique ID, especially in terms of ensuring the uniqueness of data, simplifying system integration and improving performance. In the prior art, methods such as UUID (Universal Identification Code) or Snowflake algorithm are usually used to achieve unique code generation. However, in the face of complex and important transaction information, the above generation methods have their own defects, such as the code length is too long, the storage space is large, or the low performance caused by reliance on indexes, which needs to be used in conjunction with corresponding application scenarios. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a method, device, equipment and storage medium for generating an application ID code, which can solve the above-mentioned problem.
[0004] In a first aspect, the present application provides a method for generating an application ID code, the method comprising:
[0005] Receive an encoding instruction from a client; determine a corresponding encoding category according to the encoding instruction; the encoding category includes one type of encoding and two types of encoding; obtain corresponding encoding identification information according to the encoding category; the encoding identification information includes one type of information and two types of information; the one type of information corresponds to the one type of encoding, including the timestamp of the current system time, server IP information, machine code, current application process number and random number; the two types of information corresponds to the two types of encoding, including the timestamp, the server IP information and an auto-incrementing serial number; generate a corresponding application code according to the encoding identification information, and return the application code to the client.
[0006] In one embodiment, the encoding instruction includes a custom prefix character; the step of determining the corresponding encoding category based on the encoding instruction includes: judging whether the custom prefix character in the encoding instruction conforms to a preset encoding; if so, determining the corresponding encoding category based on the custom prefix character; if not, determining that the encoding instruction is a return invalid instruction and notifying the client.
[0007] In one of the embodiments, the auto-increment sequence number is generated by a auto-increment counter that monotonically increases with a preset step size.
[0008] In one of the embodiments, each information in the coding identification information is configured with a corresponding interval and the number of character bits in the interval; the step of generating the corresponding application code according to the coding identification information includes: obtaining the interval and the number of character bits in the interval corresponding to each information in the coding identification information; configuring each information in the coding identification information according to the interval and the number of character bits in the interval corresponding to each information, so as to generate the corresponding application code.
[0009] In one of the embodiments, the step of configuring the server IP information according to the interval corresponding to the server IP information and the number of bits of the interval characters includes: taking the last separator of the server IP information as the starting point to obtain the number of bits of the corresponding last character; if the number of bits of the last character is less than the number of bits of the interval characters, right-shifting the last character and filling it with zeros so that the number of bits of the last character after filling is equal to the number of bits of the interval characters.
[0010] In one of the embodiments, when the application code corresponds to the type of code, the number of character bits of the timestamp is set to 12 bits; the number of character bits of the machine code is set to 2 bits; the number of character bits of the current application process number is set to 2 bits; the number of character bits of the server IP information is set to 3 bits; and the number of character bits of the random number is set to 5 bits.
[0011] In one of the embodiments, when the application code corresponds to the second type of code, the number of character bits of the timestamp is set to 7 bits; the number of character bits of the server IP information is set to 4 bits; and the number of character bits of the self-incrementing sequence number is set to 4 bits.
[0012] On the other hand, the present invention provides an application ID code generation device, which includes: an instruction processing module, used to determine the corresponding coding category according to the coding instruction; the coding category includes one type of coding and two types of coding; an identification acquisition module, used to obtain corresponding coding identification information according to the coding category; the coding identification information includes one type of information and two types of information; the one type of information corresponds to the one type of coding, including the timestamp of the current system time, server IP information, machine code, current application process number and random number; the two types of information corresponds to the two types of coding, including the timestamp, the server IP information and the self-incrementing serial number; the coding generation module is used to generate the corresponding application code according to the coding identification information, and return the application code to the client.
[0013] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of an application ID code generation method when executing the computer program.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of a method for generating an application ID code are implemented.
[0015] One of the above technical solutions has the following advantages or beneficial effects: by proposing an application ID code generation method, the coding category is determined according to the coding instruction transmitted by the client, and the coding identification information corresponding to different coding categories is further obtained, wherein the identification information corresponding to different coding identification information has different number of character bits, thereby achieving matching of corresponding coding generation methods according to business needs, improving the production efficiency and flexibility of ID coding, and can be applicable to multiple application scenarios.
[0016] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0018] Figure 1 is an application environment diagram of an application ID code generation method in an embodiment;
[0019] Figure 2 is a flow chart of a method for generating an ID code in an embodiment;
[0020] Figure 3 is a structural block diagram of an application ID code generating device in an embodiment;
[0021] Figure 4 The figure is a diagram of the internal structure of a computer device in an embodiment. DETAILED DESCRIPTION
[0022] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0023] In such Figure 1In the application environment shown, the client can run in the first device 101, the second device 102, and the third device 103. The first device 101, the second device 102, and the third device 103 can be, but are not limited to, various personal computers, laptops, smart phones, vehicle terminals, tablet computers, and portable wearable devices; the server 104 can be implemented as an independent server or a server cluster composed of multiple servers. The client and the server 104 can be connected to the network communication through a wired or wireless network, specifically through the Internet, a local area network, Bluetooth, or ZigBee protocol and other communication methods.
[0024] In one embodiment, Figure 2 As shown, a method for generating an application ID code is provided, which is applied to Figure 1 The application environment in the example is used to illustrate the following steps:
[0025] S202, receiving an encoding instruction from the client.
[0026] The encoding instruction can be a string, order number or fixed code, which is used to identify, represent and distinguish information of different businesses, and can provide information about properties, characteristics or other important information. Before receiving the encoding instruction from the client, it is necessary to pre-configure the component dependencies and other configuration file resources. For example, the corresponding component can be configured through Maven or Gradle.
[0027] S204, determining a corresponding coding category according to the coding instruction; the coding category includes first-category coding and second-category coding.
[0028] Among them, the encoding instruction includes the prefix character carried by the client, and the corresponding encoding category is determined according to the prefix character. It should be noted that in this embodiment, the application ID code is a unique identifier in a distributed system. In order to improve uniqueness and traceability, it is usually composed of multiple parts. The encoding category refers to the application ID code classified according to its composition, purpose and characteristics in different application scenarios. For example, Class I codes and Class II codes represent different components. Accordingly, different components can be applied to scenarios such as version updates, log records, and business processing. It should be understood that the Class I and Class II codes here can also be generated in combination with other algorithms or specific application scenarios, such as user ID, geographic location and other information, which are not limited here.
[0029] S206, obtain corresponding coding identification information according to the coding category; the coding identification information includes first-class information and second-class information; the first-class information corresponds to the first-class coding, including the timestamp of the current system time, server IP information, machine code, current application process number and random number; the second-class information corresponds to the second-class coding, including the timestamp, server IP information and self-incrementing serial number.
[0030] Among them, the coding identification information refers to the standard used to uniquely identify information to ensure that the application code has a unique identity in the system. Accordingly, the coding identification information corresponds to the coding identification category, and the determination standard of the coding identification information is set according to the coding representation category. It should be understood that the first and second category information here can also be set in combination with algorithms or special identifiers, such as hash algorithms or database records, etc., which are not listed here one by one.
[0031] The timestamp of the current system time is a value indicating the current system time, in seconds or milliseconds, indicating the time of the current device since a fixed time point. To a certain extent, the timestamp can ensure the order and uniqueness of the ID. In this embodiment, the timestamp format is yyyyMMddHHmmss, which can be pre-set in the configuration file.
[0032] The server IP address is a network identifier assigned to the server, which is an IPv4 or IPv6 address. Taking IPv4 as an example, when the address is 192.168.1.1, the last character of the corresponding number of characters is intercepted starting from the last separator as the server IP information in the application ID code of this embodiment.
[0033] The machine code is a hardware identifier. In this embodiment, the machine code can be a 6-byte MAC address, which is used to uniquely identify a device in the network. The MAC address is a unique identifier at the hardware level, and the MAC addresses of different devices are unique. Therefore, including the machine code can improve the uniqueness of the ID, and at the same time, it can be tracked on which machine the ID was generated, which is convenient for system management and troubleshooting.
[0034] The process ID is a unique identifier assigned by the operating system to each running application or process. Each process has a unique PID during its life cycle. Therefore, by including the process ID on the same machine, it can ensure that the IDs generated by different processes will not conflict. Therefore, using the current application process ID can facilitate subsequent logging and troubleshooting.
[0035] In addition, in this embodiment, a type of code needs to ensure security and unpredictability, so a random number is set to avoid ID duplication in extreme cases. Furthermore, the use of random numbers can also prevent the application ID code from being guessed regularly, preventing others from tracing the information corresponding to the code based on the application ID code, such as order number, document code, and business transaction volume.
[0036] An auto-incremental sequence number is a number that starts from a certain initial value and increases each time a new ID is generated. It can be globally unique or set independently on each server. Using an auto-incremental sequence number can help with subsequent sorting and query operations.
[0037] S208: Generate a corresponding application code according to the coding identification information, and return the application code to the client.
[0038] Among them, the application code is used to uniquely identify the client's coding instructions. The first type of identification information corresponds to the generated first type of application code. The first type of application code is more secure without rules. The second type of identification information corresponds to the generated second type of application code. The second type of application code increments to ensure business needs that have certain requirements for the increment of the code. The application code generated according to the requirements of the coding instruction can be shorter in length for easy storage, or increase in trend for easy query. The application code is returned to the client in the form of a string, and is stored in the database table of the corresponding business according to the coding instruction; when an error occurs in the generation, a unified exception is thrown for processing.
[0039] In one embodiment, the encoding instruction includes a custom prefix character; the step of determining the corresponding encoding category according to the encoding instruction includes: judging whether the custom prefix character in the encoding instruction conforms to the preset encoding; if so, determining the corresponding encoding category according to the custom prefix character; if not, determining that the encoding instruction is to return an invalid instruction and notifying the client.
[0040] Among them, the client's coding instruction is passed in by the business system. In this embodiment, the preset code is the first letter of the default identification of the incoming coding instruction. For example, the coding category is determined according to the document code starting with G or O. G can represent a general document, which is suitable for most business scenarios; O represents an order document, which is suitable for order-related businesses. Accordingly, other prefix characters or suffix characters can also be customized as preset codes according to business needs, which are not listed here one by one.
[0041] In one embodiment, the auto-increment sequence number is generated by a auto-increment counter that monotonically increases with a preset step size.
[0042] Among them, the initial value of the self-incrementing sequence number can be set to a random number, and the preset step size in each server can be set independently. By using the self-incrementing sequence number, services with special requirements for ID sequence can be implemented.
[0043] In one embodiment, each information in the coding identification information is configured with a corresponding interval and the number of character bits in the interval; the step of generating the corresponding application code according to the coding identification information includes: obtaining the interval and the number of character bits corresponding to each information in the coding identification information; configuring each information in the coding identification information according to the interval and the number of character bits corresponding to each information to generate the corresponding application code.
[0044] In one embodiment, the step of configuring the server IP information according to the interval and the number of interval character bits corresponding to the server IP information includes: taking the last separator of the server IP information as the starting point to obtain the number of corresponding last character bits; when the number of last character bits is less than the number of interval character bits, the last character is right-shifted and padded with zeros so that the number of last character bits after the padding is equal to the number of interval character bits.
[0045] In this embodiment, only a certain number of characters of the server IP information need to be intercepted in the application code, and the corresponding number of last character digits can be obtained from the last separator as the starting point. The last separator can be a dot or a slash, etc. The last character is right-shifted and filled with zeros through the right shift operation to obtain the corresponding number of character digits. For example, the interval character number of the server IP information is set to 3 digits, the server IP information is 192.168.60.20, and the last character obtained is 020.
[0046] In one embodiment, when the application code corresponds to a type of code, the character number of the timestamp is set to 12 bits; the character number of the machine code is set to 2 bits; the character number of the current application process number is set to 2 bits; the character number of the server IP information is set to 3 bits; and the character number of the random number is set to 5 bits.
[0047] In this embodiment, the identification information of each interval is spliced into an application code with 24 characters. The 12 bits of the timestamp are the last 12 bits of the current system time, accurate to seconds. The timestamp format is yyyyMMddHHmmss. The machine code takes the last two digits of the local machine code, and the current application process number takes the last two digits of the local application process number. Combined with random numbers, a highly unique and traceable application ID code can be generated, which can achieve 9999 codes generated concurrently on a single machine in seconds.
[0048] In one embodiment, when the application code corresponds to the second type of code, the character digits of the timestamp are set to 7 digits; the character digits of the server IP information are set to 4 digits; and the character digits of the auto-increment sequence number are set to 4 digits.
[0049] In this embodiment, the identification information of each interval is spliced into a 15-character application code, and the specific limitations of obtaining the timestamp and server IP information can be found above. Among them, the timestamp provides sequentiality and uniqueness in time, and the self-incrementing sequence number ensures that multiple IDs generated at the same timestamp and on the same server will not conflict, which can be applied to high-performance and high-sequential scenarios.
[0050] Based on the same inventive concept, the embodiment of the present application also provides an application ID code generation device for implementing the above-mentioned application ID code generation method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more application ID code generation device embodiments provided below can refer to the above-mentioned limitations on the application ID code generation method, and will not be repeated here.
[0051] In one embodiment, Figure 3 As shown, an application ID code generation device 300 is provided, comprising: an instruction receiving module 301, an instruction processing module 302, an identification acquisition module 303 and a code generation module 304, wherein:
[0052] The instruction receiving module 301 is used to receive encoding instructions from the client.
[0053] The instruction processing module 302 is used to determine the corresponding coding category according to the coding instruction; the coding category includes first-class coding and second-class coding.
[0054] The identification acquisition module 303 is used to obtain the corresponding coding identification information according to the coding category; the coding identification information includes one type of information and two types of information; the one type of information corresponds to the one type of coding, including the timestamp of the current system time, server IP information, machine code, current application process number and random number; the two types of information correspond to the two types of coding, including the timestamp, server IP information and self-incrementing serial number.
[0055] The code generation module 304 is used to generate a corresponding application code according to the code identification information and return the application code to the client.
[0056] In one embodiment, the encoding instruction includes a custom prefix character; the instruction processing module 302 can be specifically used to determine whether the custom prefix character in the encoding instruction conforms to the preset encoding; if it conforms, the corresponding encoding category is determined according to the custom prefix character; if it does not conform, the encoding instruction is determined to return an invalid instruction and notify the client.
[0057] In one embodiment, the auto-increment sequence number is generated by a auto-increment counter that monotonically increases with a preset step size.
[0058] In one embodiment, each information in the coding identification information is configured with a corresponding interval and the number of character bits in the interval; the identification acquisition module 303 also includes an identification partition module, which is used to obtain the interval and the number of character bits corresponding to each information in the coding identification information; each information in the coding identification information is configured according to the interval and the number of character bits corresponding to each information to generate the corresponding application code.
[0059] In one embodiment, the identification module 303 also includes a separation module, which is used to obtain the number of bits of the corresponding last character starting from the last separator of the server IP information; when the number of bits of the last character is less than the number of bits of the interval character, the last character is right-shifted and padded with zeros so that the number of bits of the padded last character is equal to the number of bits of the interval character.
[0060] In one embodiment, the identification acquisition module 303 also includes a type of partitioning module. When the application code corresponds to a type of code, the number of character bits of the timestamp is set to 12 bits; the number of character bits of the machine code is set to 2 bits; the number of character bits of the current application process number is set to 2 bits; the number of character bits of the server IP information is set to 3 bits; and the number of character bits of the random number is set to 5 bits.
[0061] In one embodiment, the identification acquisition module 303 also includes a second-class partitioning module. When the application code corresponds to the second-class code, the character number of the timestamp is set to 7 bits; the character number of the server IP information is set to 4 bits; and the character number of the auto-increment sequence number is set to 4 bits.
[0062] The ID code generating device includes a processor and a memory. The above modules are stored in the memory as program units, and the processor executes the above program units stored in the memory to realize corresponding functions.
[0063] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the ID code generation is achieved by adjusting the kernel parameters.
[0064] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0065] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, a method for generating an ID code is implemented.
[0066] An embodiment of the present invention provides a processor, which is used to run a program, wherein the ID code generation method is executed when the program is running.
[0067] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor.
[0068] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0069] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0070] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0071] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0072] In a typical configuration, such as Figure 4 As shown, the computer device includes one or more processors (CPU), input / output interfaces, network interfaces and memory.
[0073] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0074] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0075] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0076] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for generating an application ID code, characterized in that: The method comprises: Receive encoding instructions from the client; Determine the corresponding coding category according to the coding instruction; the coding category includes first-class coding and second-class coding; Obtain corresponding coding identification information according to the coding category; the coding identification information includes first-category information and second-category information; the first-category information corresponds to the first-category coding, including the timestamp of the current system time, the server IP information, the machine code, the current application process number and the random number; the second-category information corresponds to the second-category coding, including the timestamp, the server IP information and the self-incrementing sequence number; Generate a corresponding application code according to the coding identification information, and return the application code to the client.
2. The method according to claim 1, characterized in that: The encoding instruction includes a custom prefix character; The step of determining the corresponding encoding category according to the encoding instruction comprises: Determine whether the custom prefix character in the encoding instruction conforms to a preset encoding; If it matches, the corresponding encoding category is determined according to the custom prefix character; If not, the encoded instruction is determined to be an invalid instruction and the client is notified.
3. The method according to claim 1, characterized in that The self-incrementing sequence number is generated by a self-incrementing counter with a preset step size.
4. The method according to any one of claims 1 to 3, characterized in that Each piece of information in the coding identification information is configured with a corresponding interval and the number of character bits in the interval; The step of generating a corresponding application code according to the coding identification information comprises: Obtain the interval and the number of character bits in the interval corresponding to each information in the coding identification information; Each information in the coding identification information is configured according to the interval corresponding to each information and the number of character bits in the interval to generate a corresponding application code.
5. The method according to claim 4, characterized in that The step of configuring the server IP information according to the interval corresponding to the server IP information and the number of character digits in the interval comprises: Taking the last separator of the server IP information as the starting point, obtain the corresponding number of digits of the last character; When the number of digits of the last character is less than the number of digits of the interval characters, the last character is right-shifted and padded with zeros so that the number of digits of the last character after padded is equal to the number of digits of the interval characters.
6. The method according to claim 5, characterized in that Also includes: When the application code corresponds to the first type of code, the number of character bits of the timestamp is set to 12 bits; Set the number of characters in the machine code to 2; Set the number of characters in the current application process number to 2; Set the number of characters in the server IP information to 3; The number of characters in the random number is set to 5.
7. The method according to claim 5, characterized in that Also includes: When the application code corresponds to the second type of code, the number of character bits of the timestamp is set to 7 bits; Set the number of characters in the server IP information to 4; The number of characters in the self-incrementing sequence number is set to 4.
8. An application ID code generating device, characterized in that: The device comprises: A command receiving module, used for receiving encoding commands from the client; An instruction processing module, used to determine a corresponding coding category according to the coding instruction; the coding category includes a first-class coding and a second-class coding; An identification acquisition module is used to acquire corresponding coding identification information according to the coding category; the coding identification information includes first-class information and second-class information; the first-class information corresponds to the first-class coding, including the timestamp of the current system time, the server IP information, the machine code, the current application process number and the random number; the second-class information corresponds to the second-class coding, including the timestamp, the server IP information and the self-incrementing sequence number; The coding generation module is used to generate a corresponding application code according to the coding identification information and return the application code to the client.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.