Preamble generation method, preamble purchase method and related device

By encrypting the element identifiers of the pre-made code order information, a pre-made code is generated, which solves the problem of low data security of pre-made codes and achieves the effects of improved data security and flexible expansion.

CN115456123BActive Publication Date: 2026-01-20BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211077627.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-05
Publication Date
2026-01-20
Estimated Expiration
2042-09-05

AI Technical Summary

Technical Problem

In existing pre-made code ordering scenarios, the pre-made ordering information in the pre-made code is transmitted in plaintext, resulting in low data security.

Method used

By encrypting the element identifiers of the pre-made order element information, ciphertext element identifiers are generated, and a pre-made code is generated by combining the access party identifier, thus avoiding the direct implantation of plaintext information.

Benefits of technology

It improves the data security of pre-made codes and eliminates the need to change the element identifier when the pre-made order element information changes, thus enabling flexible expansion of the pre-made element information on the order page.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115456123B_ABST
    Figure CN115456123B_ABST
Patent Text Reader

Abstract

The application provides a precode generation method, a precode ordering method and related equipment. In response to a precode generation instruction of an access party, an element identifier of pre-generated pre-ordering element information corresponding to the access party to be written on an ordering page is obtained, the element identifier is encrypted to obtain element identifier ciphertext, and a precode corresponding to the access party is generated according to the element identifier ciphertext and an access party identifier corresponding to the access party stored in advance. In the precode, the element identifier of the pre-ordering element information after encryption is implanted, and the pre-ordering element information is not directly implanted, thereby improving the security of the data in the precode. Moreover, the element identifier of the pre-ordering element information is pre-generated, so that when the pre-ordering element information is changed, the element identifier does not need to be changed, thereby the generated precode does not need to be changed, and the pre-element information written on the ordering page is flexibly expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of logistics technology, and in particular to a method for generating pre-printed codes, a method for placing orders using pre-printed codes, and related equipment. Background Technology

[0002] Currently, in pre-printed code ordering scenarios, the pre-printed code contains pre-printed order information, which is then imported into the order page. Users only need to fill in the remaining order information on the order page to complete the order. However, because the pre-printed order information is transmitted in plaintext, its security is relatively low. Summary of the Invention

[0003] This application provides a method for generating pre-made codes, a method for placing orders for pre-made codes, and related equipment, with the aim of solving the problem of low data security in existing pre-made codes.

[0004] To achieve the above objectives, this application provides the following technical solution:

[0005] A method for generating pre-made codes, comprising:

[0006] In response to the pre-generated code generation instruction from the access party, the element identifier of the pre-generated order element information to be written to the order page corresponding to the access party is obtained; the element identifier of the pre-generated code order element information is a part of the element information in the pre-generated order element information.

[0007] The element identifier is encrypted to obtain the element identifier ciphertext;

[0008] Based on the encrypted element identifier and the pre-stored access party identifier corresponding to the access party, a pre-coded code corresponding to the access party is generated.

[0009] Optionally, in the above method, generating a pre-coded code corresponding to the access party based on the element identifier ciphertext and the pre-stored access party identifier corresponding to the access party includes:

[0010] Based on the encrypted element identifier and the pre-stored access party identifier corresponding to the access party, a Uniform Resource Locator (URL) is generated.

[0011] Based on the Uniform Resource Locator (URL), a prefab code generator is used to generate the prefab code corresponding to the access party.

[0012] Optionally, in the above method, the stored procedure for the access party identifier includes:

[0013] After the access party completes registration, an access party identifier corresponding to the access party is generated;

[0014] Store the access party identifier.

[0015] Optionally, the pre-generation process of the element identifier for the pre-prepared order element information to be written to the order page corresponding to the access party in the above method includes:

[0016] Based on the pre-made order element information to be written to the order page corresponding to the access party, the element identifier of the pre-made order element information is generated according to the generation rules corresponding to the access party.

[0017] A pre-made code generation device, comprising:

[0018] The first acquisition unit is used to respond to the pre-code generation instruction of the access party and acquire the element identifier of the pre-generated pre-order element information to be written to the order page corresponding to the access party.

[0019] An encryption unit is used to encrypt the element identifier to obtain the element identifier ciphertext;

[0020] The first generation unit is used to generate a pre-coded code corresponding to the access party based on the encrypted element identifier and the access party identifier corresponding to the access party that is stored in advance.

[0021] A pre-printed code ordering method includes:

[0022] In response to a scanning command for a pre-generated pre-coded code, the pre-coded code is scanned to obtain the access party identifier and element identifier ciphertext included in the pre-coded code; the pre-coded code generation process adopts the pre-coded code generation method as described in any of the above.

[0023] The encrypted element identifier is decrypted to obtain the element identifier corresponding to the encrypted element identifier.

[0024] Obtain the pre-made order element information corresponding to the access party identifier and the element identifier;

[0025] Generate an order page that includes the pre-made order element information;

[0026] An order is generated based on other order information filled in by the user on the order page.

[0027] Optionally, in the above method, scanning the pre-made code to obtain the ciphertext of the access party identifier and element identifier included in the pre-made code includes:

[0028] Scan the pre-built code to obtain the Uniform Resource Locator (URL) corresponding to the pre-built code;

[0029] The Uniform Resource Locator (URL) is parsed to obtain the encrypted access party identifier and element identifier included in the URL.

[0030] Optionally, in the above method, the step of decrypting the ciphertext of the element identifier to obtain the element identifier corresponding to the ciphertext includes:

[0031] The validity of the access party identifier is verified;

[0032] If the access party identifier passes the validity verification, the encrypted element identifier is decrypted to obtain the element identifier corresponding to the encrypted element identifier.

[0033] A pre-printed code ordering device, comprising:

[0034] A scanning unit is configured to scan the pre-generated pre-coded code in response to a scanning command, and obtain the access party identifier and element identifier ciphertext included in the pre-coded code; the pre-coded code generation process adopts the pre-coded code generation method as described in any of the above.

[0035] The decryption unit is used to decrypt the ciphertext of the element identifier to obtain the element identifier corresponding to the ciphertext of the element identifier.

[0036] The second acquisition unit is used to acquire pre-made order element information corresponding to the access party identifier and the element identifier;

[0037] The second generation unit is used to generate an order page that includes the pre-made order element information;

[0038] The third generation unit is used to generate an order based on other order elements filled in by the user on the order page.

[0039] A storage medium storing an instruction set, wherein the instruction set, when executed by a processor, implements the pre-code generation method and the pre-code ordering method as described above.

[0040] An electronic device, comprising:

[0041] Memory, used to store at least one set of instructions;

[0042] The processor is used to execute the instruction set stored in the memory, and to implement the pre-code generation method and the pre-code ordering method as described above by executing the instruction set.

[0043] Compared with the prior art, this application has the following advantages:

[0044] This application provides a pre-made code generation method, a pre-made code ordering method, and related equipment, including: responding to a pre-made code generation instruction from an access party, obtaining a pre-generated element identifier of pre-made order element information to be written to the order page corresponding to the access party; encrypting the element identifier to obtain ciphertext of the element identifier; the element identifier of the pre-made code order element information is a partial element information in the pre-made order element information; and generating a pre-made code corresponding to the access party based on the ciphertext of the element identifier and the access party identifier corresponding to the access party that is pre-stored. It can be seen that, in this application's solution, because the pre-made code embeds the encrypted element identifier of the pre-made order element information, rather than directly embedding the pre-made order element information, the security of the data in the pre-made code is improved. Furthermore, since the element identifier of the pre-made order element information is pre-generated, when the pre-made order element information changes, there is no need to change the element identifier, thus eliminating the need to change the already generated pre-made code, and enabling flexible expansion of the pre-made element information written to the order page. Attached Figure Description

[0045] 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 embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0046] Figure 1 Example diagram of a pre-coded code generation method provided in this application;

[0047] Figure 2 Another example diagram of a prefabricated code generation method provided in this application;

[0048] Figure 3 Another flowchart of a pre-printed code ordering method provided in this application;

[0049] Figure 4 Another flowchart of a pre-printed code ordering method provided in this application;

[0050] Figure 5 Another flowchart of a pre-printed code ordering method provided in this application;

[0051] Figure 6 A schematic diagram of a pre-coded code generation device provided in this application;

[0052] Figure 7 A schematic diagram of a pre-printed code ordering device provided in this application;

[0053] Figure 8This is a schematic diagram of the structure of an electronic device provided in this application. Detailed Implementation

[0054] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0055] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0056] It should be noted that the concepts of "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0057] It should be noted that the terms "a" and "a plurality of" used in this application disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0058] This application can be used in a wide variety of general-purpose or special-purpose computing environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor devices, distributed computing environments including any of the above devices, etc.

[0059] This application provides a pre-printed code generation method, which can be applied to an order management system. The flowchart of the method is shown below. Figure 1 As shown, it specifically includes:

[0060] S101. In response to the pre-code generation instruction from the access party, obtain the element identifier of the pre-generated pre-order element information to be written to the order page corresponding to the access party.

[0061] In this embodiment, the pre-configured order element information of the access party to be written to the order page is pre-configured. It should be noted that the pre-configured order element information of the access party can be configured according to the needs of the access party. The pre-configured order element information of the order page to be written to different access parties can be the same or different.

[0062] It should be noted that the format of the pre-made order element information for different access parties is the same.

[0063] In this embodiment, element identifiers for pre-generated order element information are generated in advance. These element identifiers are partial element information from the pre-generated order element information to be written to the order page. For example, the pre-generated order element information to be written to the order page may include the sender's address, sender's name, sender's phone number, and waybill number; the element identifier for the pre-generated order element information is the waybill number.

[0064] The pre-generation process of element identifiers for the pre-formed order element information to be written to the order page corresponding to the access party includes: generating element identifiers for the pre-formed order element information according to the generation rules corresponding to the access party, based on the pre-formed order element information to be written to the order page corresponding to the access party.

[0065] It should be noted that the generation rules corresponding to the access party are set based on the access party's needs. In other words, even if different access parties have the same pre-made order element information, the element identifiers corresponding to the pre-made order element information can be different.

[0066] It should be noted that once the element identifier is generated, there is no need to change the element identifier even if there is a subsequent need to add pre-made order element information.

[0067] In this embodiment, the system receives a pre-code generation instruction from the access party, responds to the pre-code generation instruction, and obtains the element identifier of the pre-generated order element information to be written to the order page corresponding to the access party.

[0068] The pre-built code generation instruction from the access party refers to the request instruction sent by the access party to the order management system through the terminal device when it needs to generate a pre-built code. The pre-built code generation instruction can be generated by triggering relevant function keys on the terminal device or by voice. It should be noted that there are many ways to generate the pre-built code generation instruction, including but not limited to those proposed in the embodiments of this application. Different methods of generating the pre-built code generation instruction do not affect the implementation of the embodiments of this application.

[0069] S102. Encrypt the element identifier to obtain the encrypted element identifier.

[0070] In this embodiment, a key pair, including an encryption key and a decryption key, is generated in advance based on a key generation algorithm and stored. After any access party completes registration, the encryption key is assigned to that access party. For example, the key generation algorithm can be an asymmetric key generation algorithm, the encryption key can be an asymmetric encryption key, and the decryption key can be an asymmetric decryption key.

[0071] In this embodiment, the element identifier is encrypted to obtain the element identifier ciphertext. Specifically, the element identifier ciphertext is encrypted based on a pre-stored encryption key to obtain the element identifier ciphertext.

[0072] S103. Generate a pre-coded code corresponding to the access party based on the encrypted element identifier and the pre-stored access party identifier.

[0073] In this embodiment, the access party identifier corresponding to the access party is pre-stored. The access party identifier is used to uniquely identify the access party. The storage process of the access party identifier specifically includes the following steps:

[0074] After the access party completes registration, an access party identifier corresponding to the access party is generated;

[0075] Storage access party identifier.

[0076] In this embodiment, when a user accesses the order management system, they need to register in the system. After registration, the system generates and stores a user identifier. It should be noted that after configuring the pre-defined order element information for the user and generating the element identifier for that information, the user identifier, the pre-defined order element information, and the element identifier are stored together.

[0077] In this embodiment, the access party identifier corresponding to the pre-stored access party is obtained, and a pre-made code corresponding to the access party is generated based on the element identifier ciphertext and the pre-stored access party identifier. That is, the generated pre-made code carries the element identifier ciphertext and the access party identifier.

[0078] See Figure 2 The process of generating a pre-defined code corresponding to the access party based on the element identifier ciphertext and the pre-stored access party identifier specifically includes the following steps:

[0079] S201. Generate a Uniform Resource Locator (URL) based on the encrypted element identifier and the pre-stored access party identifier corresponding to the access party.

[0080] In this embodiment, a Uniform Resource Locator (URL) is generated based on the encrypted element identifier and the pre-stored access party identifier corresponding to the access party. Specifically, the encrypted element identifier, the pre-stored access party identifier corresponding to the access party, and preset fixed fields are concatenated to form the URL.

[0081] For example,

[0082] The Uniform Resource Locator is: http: / / mrd.jd.com / code / index?type=xx¶ms=xxxxx .

[0083] The fixed fields are: http: / / mrd.jd.com / code / index?type =¶ms=, the parameter type represents the access party identifier, and the parameter params represents the encrypted element identifier.

[0084] S202. Based on the Uniform Resource Locator, use the prefab generator to generate the prefab code corresponding to the access party.

[0085] In this embodiment, based on the unified resource positioning, a pre-code generator is used to generate a pre-code corresponding to the access party, so that users can place orders by scanning the pre-code with their user terminals.

[0086] For example, the pre-printed code can be a QR code, and the pre-printed code generator can be a material QR code generator.

[0087] In the pre-made code generation method provided in this application embodiment, in response to the pre-made code generation instruction from the access party, the element identifier of the pre-generated pre-made order element information to be written to the order page corresponding to the access party is obtained. The element identifier is encrypted to obtain the element identifier ciphertext. Then, based on the element identifier ciphertext and the access party identifier corresponding to the access party that is pre-stored, the pre-made code corresponding to the access party is generated. It can be seen that in the solution of this application, since the pre-made code is embedded with the encrypted element identifier of the pre-made order element information, instead of directly embedding the pre-made order element information, the security of the data in the pre-made code is improved. Furthermore, since the element identifier of the pre-made order element information is pre-generated, if the pre-made order element information changes, there is no need to change the element identifier, thus eliminating the need to change the generated pre-made code, and realizing flexible expansion of the pre-made element information written to the order page.

[0088] See Figure 3 Based on the pre-printed code generation method proposed in the above embodiments of this application, this application also discloses a pre-printed code ordering method, which specifically includes the following steps:

[0089] S301. In response to the scanning command of the pre-generated pre-coded code, scan the pre-coded code to obtain the access party identifier and element identifier ciphertext included in the pre-coded code.

[0090] In this embodiment, the system receives a user's scanning command for a pre-generated pre-coded code, responds to the scanning command, scans the pre-coded code, and obtains the access party identifier and element identifier ciphertext included in the pre-coded code.

[0091] The scan command can be generated by triggering the scan function key on the terminal device. The pre-coded code generation process is as follows: Figure 1 The steps are shown.

[0092] See Figure 4The process of scanning the pre-made code to obtain the access party identifier and element identifier ciphertext contained in the pre-made code specifically includes the following steps:

[0093] S401. Scan the pre-built code to obtain the Uniform Resource Locator (URL) corresponding to the pre-built code.

[0094] In this embodiment, the pre-defined code is scanned and identified to obtain the Uniform Resource Locator (URL) corresponding to the pre-defined code.

[0095] S402. Parse the Uniform Resource Locator (URL) to obtain the encrypted access party identifier and element identifier included in the URL.

[0096] In this embodiment, the Uniform Resource Locator (URL) is parsed to identify the fields corresponding to the access party identifier and the ciphertext of the feature identifier included in the URL, thereby obtaining the access party identifier and the ciphertext of the feature identifier.

[0097] S302. Decrypt the ciphertext of the element identifier to obtain the element identifier corresponding to the ciphertext of the element identifier.

[0098] In this embodiment, the ciphertext of the element identifier is decrypted. Specifically, a decryption key is used to decrypt the ciphertext of the element identifier, thereby obtaining the element identifier corresponding to the ciphertext. For example, the decryption key can be an asymmetric decryption key.

[0099] S303. Obtain the pre-made order element information corresponding to the access party identifier and element identifier.

[0100] In this embodiment, pre-configured pre-order element information corresponding to both the access party identifier and the element identifier is obtained. Specifically, the access party corresponding to the access party identifier is determined, the interface corresponding to the access party is called, and the element identifier is sent to the access party. The access party performs validity verification on the element identifier, and if the element identifier passes the validity verification, it feeds back the pre-order element information corresponding to the element identifier to the order management system.

[0101] S304. Generate an order page that includes pre-made order element information.

[0102] In this embodiment, an order page including pre-made order element information is generated, that is, an order page is generated, and the pre-made order element information is automatically written into the order page.

[0103] It should be noted that the generated order page, which includes pre-set order information, may still have other order information that users need to fill in, such as time-sensitive product selection and coupon selection.

[0104] S305. Generate an order based on other order information filled in by the user on the order page.

[0105] In this embodiment, the user completes the remaining order information on the order page, that is, fills in other order information on the order page.

[0106] In this embodiment, other order element information filled in by the user on the order page is obtained, and an order is generated based on the other order element information filled in by the user, thereby completing the order placement operation.

[0107] In the pre-generated code ordering method provided in this application embodiment, in response to a scanning command for a pre-generated code, the code is scanned to obtain the encrypted access party identifier and element identifier included in the code. The encrypted element identifier is decrypted to obtain the element identifier corresponding to the encrypted element identifier. Pre-generated ordering element information corresponding to the access party identifier and element identifier is obtained, and an order page including the pre-generated ordering element information is generated. An order is generated based on other ordering element information filled in by the user on the order page. Since the pre-generated code embeds the encrypted element identifier of the pre-generated ordering element information, rather than directly embedding the pre-generated ordering element information, the security of the data in the pre-generated code is improved. Furthermore, since the element identifier of the pre-generated ordering element information is pre-generated, if the pre-generated ordering element information changes, there is no need to change the element identifier, thus eliminating the need to change the generated pre-generated code, and enabling flexible expansion of the pre-generated element information written to the order page.

[0108] See Figure 5 The implementation process of step S302 mentioned in the above embodiments of this application specifically includes the following steps:

[0109] S501. Verify the validity of the access party identifier.

[0110] In this embodiment, the access party identifier is validated. Specifically, the validity of the access party identifier is validated based on the generation rules for generating the access party identifier.

[0111] S502. Determine whether the receiver identifier has passed the validity verification. If yes, proceed to S503; otherwise, proceed to S504.

[0112] S503. Decrypt the ciphertext of the element identifier to obtain the element identifier corresponding to the ciphertext of the element identifier.

[0113] In this embodiment, if the access party identifier passes the validity verification, the element identifier ciphertext is decrypted to obtain the element identifier corresponding to the element identifier ciphertext.

[0114] S504. Generate a message to indicate that the order failed.

[0115] In this embodiment, if the access party's identifier fails the validity verification, a prompt message for order identification is generated to inform the user that the current order placement operation has not been successful.

[0116] The pre-made code ordering method provided in this application improves the security of obtaining pre-made ordering element information by verifying the validity of the access party identifier. Only when the access party identifier passes the validity verification is the element identifier encrypted text decrypted to obtain the element identifier corresponding to the element identifier encrypted text.

[0117] It should be noted that although the operations are described in a specific order, this should not be interpreted as requiring these operations to be executed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous.

[0118] It should be understood that the various steps described in the method embodiments disclosed in this application may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this application is not limited in this respect.

[0119] and Figure 1 Corresponding to the method described above, this application also provides a pre-made code generation apparatus for... Figure 1 The specific implementation of the method is shown in the following structural diagram. Figure 6 As shown, it specifically includes:

[0120] The first acquisition unit 601 is used to respond to the pre-code generation instruction of the access party and acquire the element identifier of the pre-generated pre-order element information to be written to the order page corresponding to the access party; the element identifier of the pre-code order element information is a part of the element information in the pre-order element information.

[0121] The encryption unit 602 is used to encrypt the element identifier to obtain the element identifier ciphertext;

[0122] The first generation unit 603 is used to generate a pre-coded code corresponding to the access party based on the element identifier ciphertext and the access party identifier corresponding to the access party that is stored in advance.

[0123] The pre-made code generation device provided in this application improves the security of the data in the pre-made code by embedding encrypted element identifiers of pre-made order element information into the pre-made code, rather than directly embedding the pre-made order element information. Furthermore, since the element identifiers of the pre-made order element information are pre-generated, there is no need to change the element identifiers when the pre-made order element information changes, thus eliminating the need to change the generated pre-made code and enabling flexible expansion of the pre-made element information written to the order page.

[0124] In one embodiment of this application, based on the foregoing scheme, the first generation unit 603 is specifically used for:

[0125] Based on the encrypted element identifier and the pre-stored access party identifier corresponding to the access party, a Uniform Resource Locator (URL) is generated.

[0126] Based on the Uniform Resource Locator (URL), a prefab code generator is used to generate the prefab code corresponding to the access party.

[0127] In one embodiment of this application, based on the foregoing scheme, the first generation unit 603, during the storage process of the access party identifier, is specifically used for:

[0128] After the access party completes registration, an access party identifier corresponding to the access party is generated;

[0129] Store the access party identifier.

[0130] In one embodiment of this application, based on the aforementioned scheme, the first acquisition unit 601, during the pre-generation process of the element identifier of the pre-prepared order element information to be written to the order page corresponding to the access party, is specifically used for:

[0131] Based on the pre-made order element information to be written to the order page corresponding to the access party, the element identifier of the pre-made order element information is generated according to the generation rules corresponding to the access party.

[0132] and Figure 3 Corresponding to the method described above, this application also provides a pre-printed code ordering device for... Figure 3 The specific implementation of the method is shown in the following structural diagram. Figure 7 As shown, it specifically includes:

[0133] The scanning unit 701 is configured to scan the pre-generated pre-coded code in response to a scanning command to obtain the access party identifier and element identifier ciphertext included in the pre-coded code; the pre-coded code generation process adopts the pre-coded code generation method as described in any of the above.

[0134] The decryption unit 702 is used to decrypt the ciphertext of the element identifier to obtain the element identifier corresponding to the ciphertext of the element identifier.

[0135] The second acquisition unit 703 is used to acquire pre-ordered element information corresponding to the access party identifier and the element identifier;

[0136] The second generation unit 704 is used to generate an order page that includes the pre-made order element information;

[0137] The third generation unit 705 is used to generate an order based on other order element information filled in by the user on the order page.

[0138] The pre-printed code ordering device provided in this application improves the security of the data in the pre-printed code by embedding encrypted element identifiers of pre-printed ordering element information into the pre-printed code, rather than directly embedding the pre-printed ordering element information. Furthermore, since the element identifiers of the pre-printed ordering element information are pre-generated, there is no need to change the element identifiers when the pre-printed ordering element information changes, thus eliminating the need to change the generated pre-printed code and enabling flexible expansion of the pre-printed element information written to the ordering page.

[0139] In one embodiment of this application, based on the foregoing scheme, the scanning unit 701 is specifically used for:

[0140] Scan the pre-built code to obtain the Uniform Resource Locator (URL) corresponding to the pre-built code;

[0141] The Uniform Resource Locator (URL) is parsed to obtain the encrypted access party identifier and element identifier included in the URL.

[0142] In one embodiment of this application, based on the foregoing scheme, the decryption unit 702 is specifically used for:

[0143] The validity of the access party identifier is verified;

[0144] If the access party identifier passes the validity verification, the encrypted element identifier is decrypted to obtain the element identifier corresponding to the encrypted element identifier.

[0145] This application also provides a storage medium storing an instruction set, wherein the instruction set executes the pre-code generation method and pre-code ordering method disclosed in any of the above embodiments when it is run.

[0146] This application also provides an electronic device, the structural schematic diagram of which is shown below. Figure 8 As shown, it specifically includes a memory 801 for storing at least one set of instructions; and a processor 802 for executing the set of instructions stored in the memory, thereby implementing the pre-code generation method and the pre-code ordering method disclosed in any of the embodiments above by executing the set of instructions.

[0147] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

[0148] While several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of the disclosure herein. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0149] The above description is merely a preferred embodiment disclosed in this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.

Claims

1. A method for generating pre-made codes, characterized in that, include: In response to the pre-code generation instruction from the access party, obtain the element identifier of the pre-generated pre-order element information to be written to the order page corresponding to the access party; The element identifier of the pre-made order element information is a partial element information in the pre-made order element information, which is used by the scanning end to obtain the remaining element information in the corresponding pre-made order element information; wherein, the access party identifier, the pre-made order element information and the element identifier are information that has been pre-associated and stored. The element identifier is encrypted to obtain the element identifier ciphertext; Based on the encrypted element identifier and the pre-stored access party identifier corresponding to the access party, a pre-coded code corresponding to the access party is generated.

2. The method according to claim 1, characterized in that, The step of generating a pre-coded code corresponding to the access party based on the encrypted element identifier and the pre-stored access party identifier corresponding to the access party includes: Based on the encrypted element identifier and the pre-stored access party identifier corresponding to the access party, a Uniform Resource Locator (URL) is generated. Based on the Uniform Resource Locator (URL), a prefab code generator is used to generate the prefab code corresponding to the access party.

3. The method according to claim 1, characterized in that, The stored procedure for the access party identifier includes: After the access party completes registration, an access party identifier corresponding to the access party is generated; Store the access party identifier.

4. The method according to claim 1, characterized in that, The pre-generation process of the element identifier of the pre-made order element information to be written to the order page corresponding to the access party includes: Based on the pre-made order element information to be written to the order page corresponding to the access party, the element identifier of the pre-made order element information is generated according to the generation rules corresponding to the access party.

5. A pre-made code generation device, characterized in that, include: The first acquisition unit is used to respond to the pre-code generation instruction from the access party and acquire the element identifier of the pre-generated order element information to be written to the order page corresponding to the access party; the element identifier of the pre-generated order element information is a part of the element information in the pre-generated order element information, which is used by the scanning end to acquire the remaining part of the element information in the corresponding pre-generated order element information; wherein, the access party identifier, the pre-generated order element information and the element identifier are information that has been pre-associated and stored. An encryption unit is used to encrypt the element identifier to obtain the element identifier ciphertext; The first generation unit is used to generate a pre-coded code corresponding to the access party based on the encrypted element identifier and the access party identifier corresponding to the access party that is stored in advance.

6. A method for placing orders using pre-made codes, characterized in that, include: In response to a scanning command for a pre-generated pre-coded code, the pre-coded code is scanned to obtain the access party identifier and element identifier ciphertext included in the pre-coded code; the pre-coded code generation process adopts the pre-coded code generation method as described in any one of claims 1-4; The encrypted element identifier is decrypted to obtain the element identifier corresponding to the encrypted element identifier. Obtain the pre-made order element information corresponding to the access party identifier and the element identifier; Generate an order page that includes the pre-made order element information; An order is generated based on other order information filled in by the user on the order page.

7. The method according to claim 6, characterized in that, The scanning of the pre-coded code yields the ciphertext of the access party identifier and element identifier included in the pre-coded code, including: Scan the pre-built code to obtain the Uniform Resource Locator (URL) corresponding to the pre-built code; The Uniform Resource Locator (URL) is parsed to obtain the encrypted access party identifier and element identifier included in the URL.

8. The method according to claim 6, characterized in that, The process of decrypting the ciphertext of the element identifier to obtain the element identifier corresponding to the ciphertext includes: The validity of the access party identifier is verified; If the access party identifier passes the validity verification, the encrypted element identifier is decrypted to obtain the element identifier corresponding to the encrypted element identifier.

9. A pre-printed code ordering device, characterized in that, include: A scanning unit is configured to scan the pre-generated pre-coded code in response to a scanning command to obtain the access party identifier and element identifier ciphertext included in the pre-coded code; the pre-coded code generation process adopts the pre-coded code generation method as described in any one of claims 1-4; The decryption unit is used to decrypt the ciphertext of the element identifier to obtain the element identifier corresponding to the ciphertext of the element identifier. The second acquisition unit is used to acquire pre-made order element information corresponding to the access party identifier and the element identifier; The second generation unit is used to generate an order page that includes the pre-made order element information; The third generation unit is used to generate an order based on other order elements filled in by the user on the order page.

10. A storage medium, characterized in that, The storage medium stores an instruction set, wherein when the instruction set is executed by the processor, it implements the pre-code generation method as described in any one of claims 1-4, and the pre-code ordering method as described in any one of claims 6-8.

11. An electronic device, characterized in that, include: Memory, used to store at least one set of instructions; A processor is configured to execute a set of instructions stored in the memory, and to implement the pre-code generation method as described in any one of claims 1-4 and the pre-code ordering method as described in any one of claims 6-8 by executing the set of instructions.

Citation Information

Patent Citations

  • Method and system for invoice generation and invoice verification

    CN105809494A

  • Information generation method and device

    CN113762908A