Two-dimensional code generation method, commodity verification method and related device

By generating a single order QR code, and dividing the products into multiple subsets to be redeemed based on different product types, and generating QR code parameters, the problem of users having to present multiple QR codes is solved, improving user experience and redemption efficiency.

CN116151908BActive Publication Date: 2026-03-27PATEO CONNECT (NANJING) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing QR code technology requires users to present multiple QR codes to complete the verification of various products, resulting in a poor user experience and low efficiency.

Method used

Generate an order QR code, divide the products into multiple subsets to be verified based on different product types, and generate corresponding QR code parameters for verification on multiple vending machines.

Benefits of technology

Users no longer need to show multiple QR codes, improving user experience and product verification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116151908B_ABST
    Figure CN116151908B_ABST
Patent Text Reader

Abstract

The application provides a two-dimensional code generation method, a commodity verification method and related devices. First, order data from a user device is obtained, the order data including a set of commodities to be verified and N types of commodities, the N types of commodities corresponding to N types of vending device identifiers, N being a positive integer. Then, the set of commodities to be verified is divided into N subsets of commodities to be verified according to the N types of commodities to generate N two-dimensional code parameters, the N two-dimensional code parameters corresponding to the N types of commodities. Finally, an order two-dimensional code is generated according to the N two-dimensional code parameters. One order two-dimensional code can be generated according to commodities of multiple types of commodities, without the user presenting multiple two-dimensional codes, greatly improving user experience and commodity verification efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of two-dimensional codes, in particular to a two-dimensional code generation method, a commodity verification method and related devices. BACKGROUND

[0002] With the development of society, two-dimensional codes have become an integral part of people's lives. Two-dimensional codes are now widely used in identity recognition, online payment and other fields, but different types of businesses require different two-dimensional codes to be generated for identification.

[0003] For example, when a user purchases a movie ticket, a two-dimensional code for picking up the ticket can be generated, and when purchasing popcorn, a two-dimensional code for picking up the popcorn can be generated. When verification is performed, multiple two-dimensional codes need to be presented to complete the verification of multiple commodities, which is very inconvenient and the user experience is poor. SUMMARY

[0004] Therefore, the present application provides a two-dimensional code generation method, a commodity verification method and related devices, which can generate an order two-dimensional code based on a commodity order that needs to be verified on multiple vending equipment, and perform verification separately, without the need for the user to present multiple two-dimensional codes, greatly improving the user experience and commodity verification efficiency.

[0005] In a first aspect, the embodiments of the present application provide a two-dimensional code generation method, which comprises:

[0006] Obtaining order data from a user device, the order data comprising a set of commodities to be verified and N types of commodities, the N types of commodities corresponding to N vending equipment identifiers, N being a positive integer;

[0007] Dividing the set of commodities to be verified into N groups of subsets of commodities to be verified according to the N types of commodities to generate N two-dimensional code parameters, the N two-dimensional code parameters corresponding to the N types of commodities;

[0008] Generating an order two-dimensional code according to the N two-dimensional code parameters.

[0009] In a second aspect, the embodiments of the present application provide a commodity verification method using an order two-dimensional code generated by the two-dimensional code generation method of any of the first aspect of the embodiments of the present application, which comprises:

[0010] Receiving a first equipment identifier and the order two-dimensional code from a first equipment, the first equipment identifier being any one of the N vending equipment identifiers, N being a positive integer;

[0011] Determining a first two-dimensional code parameter according to a first commodity type corresponding to the first equipment identifier, the first commodity type being any one of the N types of commodities, and the first two-dimensional code parameter being any one of the N two-dimensional code parameters.

[0012] performing first processing on the first two-dimensional code parameter to verify the first set of goods, the first set of goods belonging to any one of the N groups of subsets of goods to be verified.

[0013] In a third aspect, an embodiment of the present application provides a cloud server, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs comprise instructions for performing the steps in the first aspect and the second aspect of the embodiments of the present application.

[0014] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to perform some or all of the steps described in the first aspect and the second aspect of the embodiments of the present application.

[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in the first aspect and the second aspect of the embodiments of the present application. The computer program product can be a software installation package.

[0016] It can be seen that the above two-dimensional code generation method, the goods verification method and the related device, first, order data from a user device is acquired, the order data comprising a set of goods to be verified and N types of goods, the N types of goods corresponding to N types of vending device identifiers, N being a positive integer; then, the set of goods to be verified is divided into N groups of subsets of goods to be verified according to the N types of goods to generate N two-dimensional code parameters, the N two-dimensional code parameters corresponding to the N types of goods; finally, an order two-dimensional code is generated according to the N two-dimensional code parameters. One order two-dimensional code can be generated according to goods of multiple types of goods, without the user presenting multiple two-dimensional codes, greatly improving user experience and goods verification efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0018] Figure 1 A system architecture diagram of a two-dimensional code generation method provided by an embodiment of the present application;

[0019] Figure 2 A system architecture diagram of a commodity verification method provided by an embodiment of the present application;

[0020] Figure 3 A flowchart of a two-dimensional code generation method provided by an embodiment of the present application;

[0021] Figure 4 A flowchart of a commodity verification method provided by an embodiment of the present application;

[0022] Figure 5 A structural diagram of a cloud server provided by an embodiment of the present application;

[0023] Figure 6 A functional unit component block diagram of a two-dimensional code generation device provided by an embodiment of the present application;

[0024] Figure 7 A functional unit component block diagram of a commodity verification device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to enable persons skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative labor fall within the scope of protection of the present application.

[0026] The terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, and are not used to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device.

[0027] It should be understood that the term "and / or" herein is only used to describe the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. In addition, the character " / " in this paper represents that the front and rear associated objects are a "or" relationship. The "multiple" appearing in the embodiments of the present application means two or more than two.

[0028] The "connection" appearing in the embodiments of the present application refers to direct connection or indirect connection and various connection manners to realize communication between devices, and the embodiments of the present application do not make any limitation on this.

[0029] Reference to "embodiments" herein means that the specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the present application. The phrase appearing at various places in the specification does not necessarily mean the same embodiment, nor is it an independent or alternative embodiment to other embodiments. The skilled person in the art explicitly and implicitly understands that the embodiments described herein can be combined with other embodiments.

[0030] First, the background art and related terms in the embodiments of the present application are explained and described.

[0031] A two-dimensional code, also referred to as a two-dimensional bar code in the embodiments of the present application, is a black-and-white pattern recorded data symbol information in a certain regularity on a plane (two-dimensional direction); in code programming, the concept of "0" and "1" bit stream, which is the basis of computer internal logic, is ingeniously used, and a number of binary corresponding geometric shapes are used to represent text value information, which is automatically recognized through image input devices or photoelectric scanning devices to realize automatic information processing; the two-dimensional bar code / two-dimensional code can express information in both horizontal and vertical directions, so it can express a large amount of information in a small area. It has some commonalities with bar code technology: each code set has its own character set; each character occupies a certain width; it has a certain checking function, etc. At the same time, it also has the functions of automatically identifying different rows of information and processing graphical rotation changes. The stacked / rowed two-dimensional bar code is stacked by a plurality of short one-dimensional bar codes; the matrix two-dimensional bar code is composed of a matrix, and "point" is used to represent binary "1" and "empty" is used to represent binary "0" in the corresponding element position of the matrix, and the arrangement of "point" and "empty" forms the code. Among the dozens of two-dimensional bar codes at present, the commonly used code sets are: Data Matrix, Maxi Code, Aztec, QR Code, Vericode, PDF417, Ultracode, Code 49, Code 16K, etc., which are not specifically limited here.

[0032] Since the existing two-dimensional codes are one product type corresponding to one two-dimensional code, i.e., the two-dimensional code for taking coffee is applied to a coffee machine, and the two-dimensional code for buying a movie ticket is applied to an automatic ticket taking machine, the user needs to keep multiple two-dimensional codes in order to perform product verification, which is very inconvenient.

[0033] To solve the above problems, the embodiment of the application provides a two-dimensional code generation method, a commodity verification method and related devices, which can generate an order two-dimensional code based on a commodity order that needs to be verified on multiple vending equipment, and the order two-dimensional code is verified respectively, without the user presenting multiple two-dimensional codes, thereby greatly improving user experience and commodity verification efficiency.

[0034] The following will be described in combination with Figure 1 The system architecture of the two-dimensional code generation method in the embodiment of the application is described, Figure 1 The system architecture diagram of the two-dimensional code generation method provided in the embodiment of the application comprises a cloud server 110 and a user device 120.

[0035] The cloud server 110 can be loaded with an online shopping platform 111, and the user device 120 can interact with the cloud server 110 through the online shopping platform 111.

[0036] The online shopping platform 111 can be a front-end page, such as a mini-program, a webpage, a software APP, etc., which is not specifically limited herein. The online shopping platform 111 can sell commodities of multiple preset commodity types, and different preset commodity types correspond to different preset vending equipment. For example, the preset commodity types can include coffee, ice cream, movie tickets, etc., and the preset vending equipment can include an automatic coffee machine, an automatic ice cream machine, an automatic ticket dispenser, etc., which are not described herein again.

[0037] The user device 120 can include a smart phone (such as an Android phone, an iOS phone, a Windows Phone phone, etc.), a tablet computer, a palm computer, a notebook computer, a video matrix, a monitoring platform, a mobile Internet device (MID, Mobile Internet Device) or a wearable device, etc. The above are only examples and are not exhaustive, and include but are not limited to the above devices, which are not specifically limited herein.

[0038] Specifically, the user can log in to the online shopping platform 111 through the user device 120 and select commodities for purchase. After purchase, order data is generated and reported to the cloud server 110. The cloud server 110 can generate different two-dimensional code parameters according to different commodity types in the order data, and generate an order two-dimensional code based on the different two-dimensional code parameters.

[0039] It can be seen that, through the system architecture, the same order two-dimensional code can be generated according to different commodity types in the same order, without generating a two-dimensional code for each commodity type, and without the user presenting multiple two-dimensional codes for verification, thereby improving user experience.

[0040] The following will be described in combination with Figure 2The system architecture of a commodity verification method in an embodiment of the present application is described, Figure 2 The system architecture of a commodity verification method provided in an embodiment of the present application is shown in the figure, and specifically includes a cloud server 210, a set of vending devices 220, and a user device 230.

[0041] The set of vending devices 220 can include N vending devices, i.e., vending device 221 to vending device 22N in the figure. Each of the vending devices 221 to 22N has a unique device identifier, and the set of vending devices 220 is Figure 1 The subset of the preset vending devices in the system architecture, i.e., if there are M preset vending devices, M is a positive integer, and N is a positive integer less than or equal to N. It can be understood that the vending devices 221 to 22N are used to sell different types of commodities. For example, the vending device 221 can be a coffee machine, the vending device 222 can be a beverage vending machine, the vending device 22N can be a movie ticket issuing machine, and so on. The above-mentioned vending devices 221 to 22N can include a code reading module for scanning and reading an order QR code.

[0042] When the vending device 221 scans the order QR code, it can report the order QR code and its own device identifier to the cloud server 210, so that the cloud server 210 verifies the commodity of the type corresponding to the device identifier. The cloud server 210 can inform the user device 230 of the verification status, and the user device 230 can check the verification status of the purchased commodity on the online shopping platform 111. It should be noted that the order QR code can still be used until the vending devices 222 to 22N are all scanned, and the order QR code is completely invalid. It can be understood that repeatedly scanning the order QR code on the vending device 221 can display a verification completion prompt to the vending device 221.

[0043] It can be understood that the cloud server 210 in the system architecture and Figure 1 The cloud server 110 in the system architecture can be the same cloud server or different cloud servers, which is not specifically limited here.

[0044] Through the system architecture, an order QR code can be generated based on the need to verify the commodity order on multiple vending devices, and verification can be performed respectively, without the need for the user to present multiple QR codes, greatly improving the user experience and commodity verification efficiency.

[0045] The following describes an embodiment of the present application, Figure 3 A QR code generation method in an embodiment of the present application is described, Figure 3 The flowchart of a QR code generation method provided in an embodiment of the present application is shown in the figure, and the method specifically includes the following steps:

[0046] Step 301, obtaining order data from a user device.

[0047] The order data includes a set of to-be-verified goods and N types of goods, the N types of goods correspond to N types of vending device identifiers, N is a positive integer, and a user can log in to an online shopping platform through a user device.

[0048] Specifically, the set of to-be-verified goods from the user device can be obtained through the online shopping platform; the product type identifier of each to-be-verified good in the set of to-be-verified goods is identified to determine the N types of goods.

[0049] The set of to-be-verified goods can include a plurality of to-be-verified goods, and the product types of all to-be-verified goods are N types, and different vending devices can sell goods of different product types.

[0050] As can be seen, by obtaining order data from a user device, the product type can be determined, which lays the foundation for subsequent generation of order two-dimensional code.

[0051] Step 302, dividing the set of to-be-verified goods into N groups of to-be-verified goods subsets according to the N types of goods to generate N two-dimensional code parameters.

[0052] The N two-dimensional code parameters correspond to the N types of goods.

[0053] First, the set of to-be-verified goods can be divided into N groups of to-be-verified goods subsets according to the N types of goods, and the to-be-verified goods in each group of to-be-verified goods subsets carry the same product type identifier, and then the N groups of to-be-verified goods subsets are encrypted to generate the N two-dimensional code parameters, the N two-dimensional code parameters include one-to-one N data flag information, and the N data flag information is used to distinguish the N two-dimensional code parameters.

[0054] Specifically, the N types of goods belong to a subset of preset product types, that is, if there are M preset product types, M is greater than or equal to N. Each to-be-verified good in the set of to-be-verified goods can be divided according to the product type, and since each to-be-verified good carries a corresponding product type identifier, to-be-verified goods with the same product type identifier can be divided into a group, and N groups of to-be-verified goods subsets are divided in the same way. The encryption processing is used for data encoding of the related information of the N groups of to-be-verified goods subsets to obtain binary two-dimensional code parameters, and the data encoding can include digital encoding, character encoding, byte encoding, etc., which will not be described here.

[0055] In a possible embodiment, when the N groups of to-be-verified commodity subsets are encrypted to generate N two-dimensional code parameters, the user identity ID, the order number, the commodity type, the payment state, and the verification state in the order data can be encrypted. For example, if there are two groups of to-be-verified commodity subsets, one group is a first to-be-verified commodity subset, corresponding to a first commodity type and first data flag information, and the other group is a second to-be-verified commodity subset, corresponding to a second commodity type and second data flag information, the user identity ID, the order number, the first commodity type, the first data flag information, and the first payment state can be encrypted to obtain a first two-dimensional code parameter, and the user identity ID, the order number, the second commodity type, the second data flag information, and the second payment state can be encrypted to obtain a second two-dimensional code parameter. Details are not repeated here.

[0056] It can be seen that the set of to-be-verified commodities is divided into N groups of to-be-verified commodity subsets according to the N commodity types to generate N two-dimensional code parameters, which can encrypt the to-be-verified commodities of different commodity types respectively, and improve the accuracy of the generated order two-dimensional code.

[0057] Step 303, generating an order two-dimensional code according to the N two-dimensional code parameters.

[0058] Among them, the N groups of flag bits of the N two-dimensional code parameters in the order two-dimensional code can be set according to the N data flag information, and the order two-dimensional code can be generated according to the N two-dimensional code parameters and the N groups of flag bits.

[0059] It can be seen that through the above two-dimensional code generation method, one order two-dimensional code can be generated according to commodities of multiple commodity types, without the need for the user to present multiple two-dimensional codes, greatly improving the user experience and commodity verification efficiency.

[0060] The following will be described in combination with Figure 4 The embodiment of the application is described, Figure 4 A flowchart of a commodity verification method provided by the embodiment of the application is shown in FIG. 2, which uses the order two-dimensional code generated by the two-dimensional code generation method as shown in Figure 3 The order two-dimensional code generated by the two-dimensional code generation method as shown in FIG. 2, specifically includes the following steps:

[0061] Step 401, receiving a first device identifier and the order two-dimensional code from a first device.

[0062] Among them, the first device identifier is any one of N kinds of device identifiers, and N is a positive integer. The above first device can be any one of the device identifiers, and the first device can upload the order two-dimensional code and the first device identifier to the cloud server when scanning the order two-dimensional code.

[0063] It can be seen that by receiving the first device identifier and the order two-dimensional code from the first device, the cloud server can identify the two-dimensional code parameter corresponding to the first device identifier, avoid verification to other goods, and greatly improve the user experience.

[0064] At step 402, the first two-dimensional code parameter is determined according to the first device identifier corresponding to the first commodity type.

[0065] The first commodity type is any one of N commodity types, and the first two-dimensional code parameter is any one of N two-dimensional code parameters.

[0066] The first commodity type corresponding to the first device identifier can be determined, then the first commodity set corresponding to the first commodity type is determined, and then the first flag bit corresponding to the first commodity set is determined. The first flag bit belongs to any one of the N groups of flag bits, and finally the first two-dimensional code parameter is determined according to the first flag bit.

[0067] Specifically, the cloud server can internally store a preset first mapping relationship between the vending device identifier and the commodity type, and when the first device identifier and the order two-dimensional code are received, the first commodity type corresponding to the first device identifier can be determined through the first mapping relationship, and then the first commodity set in the N groups of to-be-verified commodity subsets can be determined based on the first commodity type. Since the N groups of to-be-verified commodity subsets are distinguished by flag bits, the first flag bit can be determined to determine the first two-dimensional code parameter.

[0068] In one possible embodiment, the cloud server can parse the order two-dimensional code to determine the N two-dimensional code parameters and the corresponding data flag information contained therein, and after determining the first flag bit, the corresponding first two-dimensional code parameter is called for subsequent processing.

[0069] In one possible embodiment, the cloud server can determine the first area of the order two-dimensional code that needs to be identified according to the first flag bit, identify the first area of the order two-dimensional code, and obtain the first two-dimensional code parameter, which is not limited here.

[0070] In one possible embodiment, the cloud server can internally store a preset second mapping relationship between the vending device identifier and the flag bit, and when the first device identifier and the order two-dimensional code are received, the first flag bit corresponding to the first device identifier can be determined through the second mapping relationship, and then the first area of the order two-dimensional code that needs to be identified can be determined according to the first flag bit, and the first two-dimensional code parameter is obtained, which will not be repeated here.

[0071] It can be seen that the first two-dimensional code parameter is determined according to the first device identifier and the corresponding first commodity type, so that the first commodity set can be accurately positioned and the commodity verification efficiency can be improved.

[0072] In step 403, the first two-dimensional code parameter is processed to verify the first commodity set.

[0073] The first commodity set belongs to any one of the N groups of commodity subsets to be verified.

[0074] The first two-dimensional code parameter can be identified to determine that the first commodity set is in a completed sales state and inform the user device, and the first two-dimensional code parameter is marked as invalid, and the N-1 two-dimensional code parameters are maintained in an effective state.

[0075] In one possible embodiment, after the first two-dimensional code parameter is processed to verify the first commodity set, the following steps can also be performed:

[0076] The second device identifier and the order two-dimensional code are received from the second device.

[0077] The second device identifier is any one of the N types of device identifiers except the first device identifier.

[0078] The second two-dimensional code parameter can be determined according to the second device identifier and the corresponding second commodity type, the second commodity type is any one of the N types of commodities except the first commodity type, and the second two-dimensional code parameter is any one of the N-1 two-dimensional code parameters.

[0079] It can be understood that there can also be a third device, a fourth device, an Nth device, and so on, which will not be described here. The user device can obtain whether the commodities in the order are verified in real time through the online shopping platform.

[0080] It can be seen that the commodity verification efficiency can be greatly improved by the above commodity verification method.

[0081] The following will be described in combination with Figure 5 A cloud server in an embodiment of the present application is described, Figure 5 A structure diagram of a cloud server provided in an embodiment of the present application is shown in Figure 5As shown, the cloud server 500 includes a processor 501, a communication interface 502 and a memory 503, which are connected with each other, wherein the cloud server 500 can further include a bus 504, and the processor 501, the communication interface 502 and the memory 503 can be connected with each other through the bus 504, and the bus 504 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus 504 can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, Figure 5 The memory 503 is configured to store a computer program, the computer program including program instructions, and the processor is configured to invoke the program instructions to execute all or part of the methods described in the above embodiments. Figure 3 and / or Figure 4 the above embodiments.

[0082] The above mainly introduces the scheme of the embodiments of the present application from the perspective of the process of executing the method. It can be understood that, in order to implement the above functions, the cloud server includes the hardware structure and / or software module corresponding to executing each function. Those skilled in the art should easily realize that, in combination with the unit and algorithm steps of the examples described in the embodiments provided in the present application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. The professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0083] The embodiments of the present application can divide the functional units of the cloud server according to the above method examples, for example, each functional unit can be divided according to each function, or two or more functions can be integrated in one processing unit. The integrated unit can be realized in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and actual implementation can have another division manner.

[0084] In the case of dividing each functional module according to each function, the following will be described in combination with Figure 6 The two-dimensional code generation device in the embodiments of the present application is described, Figure 6A functional unit composition block diagram of a two-dimensional code generation apparatus provided for an embodiment of the present application, the two-dimensional code generation apparatus 600 comprises:

[0085] An order acquisition unit 610 is configured to acquire order data from a user device, the order data comprising a set of to-be-redeemed goods and N types of goods, the N types of goods corresponding to N types of vending device identifiers, N being a positive integer;

[0086] A two-dimensional code parameter unit 620 is configured to divide the set of to-be-redeemed goods into N groups of to-be-redeemed goods subsets according to the N types of goods to generate N two-dimensional code parameters, the N two-dimensional code parameters corresponding to the N types of goods;

[0087] A two-dimensional code generation unit 630 is configured to generate an order two-dimensional code according to the N two-dimensional code parameters.

[0088] According to the two-dimensional code generation method and the related apparatus, first, order data from a user device is acquired, the order data comprising a set of to-be-redeemed goods and N types of goods, the N types of goods corresponding to N types of vending device identifiers, N being a positive integer; then, the set of to-be-redeemed goods is divided into N groups of to-be-redeemed goods subsets according to the N types of goods to generate N two-dimensional code parameters, the N two-dimensional code parameters corresponding to the N types of goods; finally, an order two-dimensional code is generated according to the N two-dimensional code parameters. One order two-dimensional code can be generated according to goods of multiple types of goods, without the need for the user to present multiple two-dimensional codes, greatly improving the user experience.

[0089] In the case of dividing each functional module according to the corresponding function, the following will be described in combination with Figure 7 An embodiment of a goods redemption apparatus is described, Figure 7 A functional unit composition block diagram of a goods redemption apparatus provided for an embodiment of the present application, the goods redemption apparatus 700 comprises:

[0090] A receiving unit 710 is configured to receive a first device identifier and the order two-dimensional code from a first device, the first device identifier being any one of N types of vending device identifiers, N being a positive integer;

[0091] A parameter determination unit 720 is configured to determine a first two-dimensional code parameter according to a first type of goods corresponding to the first device identifier, the first type of goods being any one of N types of goods, the first two-dimensional code parameter being any one of N two-dimensional code parameters;

[0092] A redemption unit 730 is configured to perform a first processing on the first two-dimensional code parameter to redeem a first set of goods, the first set of goods belonging to any one of N groups of to-be-redeemed goods subsets.

[0093] By the above commodity verification method and related device, first, the first device identifier and the order two-dimensional code from the first device are received, the first device identifier is any one of N kinds of device identifiers, and N is a positive integer; then, the first two-dimensional code parameter is determined according to the first commodity type corresponding to the first device identifier, the first commodity type is any one of N kinds of commodity types, and the first two-dimensional code parameter is any one of N two-dimensional code parameters; finally, the first two-dimensional code parameter is processed to verify the first commodity set, and the first commodity set belongs to any one of N groups of commodity subsets to be verified. An order two-dimensional code can be generated according to commodities of multiple commodity types, and the user does not need to present multiple two-dimensional codes, which greatly improves the user experience and commodity verification efficiency.

[0094] The embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute part or all steps of any method described in the above method embodiments.

[0095] The embodiments of the present application further provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all steps of any method described in the above method embodiments. The computer program product can be a software installation package, and the computer includes a cloud server.

[0096] It should be noted that, for the above method embodiments, in order to simply describe, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited to the action sequence described, because according to the present application, some steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily necessary for the present application.

[0097] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0098] In several embodiments provided in the present application, it should be understood that the disclosed apparatus can be implemented in other manners. For example, the division of the apparatus embodiments described above is merely illustrative, and the division of the units can be changed according to actual needs. For example, the units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0099] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.

[0100] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0101] When the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.

[0102] Those of ordinary skill in the art can understand that all or part of the steps of the various methods in the above embodiments can be completed by a program instructing relevant hardware, and the program can be stored in a computer readable storage medium, which can include a flash disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc.

[0103] The above has introduced the embodiments of the present application in detail, and the principles and implementation manners of the present application are described by applying specific examples; the above embodiment description is only used for helping to understand the method of the present application and its core idea; meanwhile, for the general technical personnel in the art, according to the idea of the present application, the specific implementation manner and application range will have changes; and according to the above, the content of the specification should not be understood as the limitation of the present application.

Claims

1. A method of generating a two-dimensional code, characterized by, The method comprises: obtaining order data from a user device, the order data comprising a set of to-be-canceled goods and N types of goods, the N types of goods corresponding to N types of vending device identifiers, N being a positive integer, wherein the set of to-be-canceled goods from the user device is obtained through an online shopping platform; identifying the type identifier of each to-be-canceled good in the set of to-be-canceled goods to determine the N types of goods; dividing the set of to-be-canceled goods into N groups of to-be-canceled goods subsets according to the N types of goods to generate N two-dimensional code parameters, the N two-dimensional code parameters corresponding to the N types of goods, wherein the set of to-be-canceled goods is divided into N groups of to-be-canceled goods subsets according to the N types of goods, and the to-be-canceled goods in each group of to-be-canceled goods subsets carry the same type identifier; encrypting the N groups of to-be-canceled goods subsets to generate the N two-dimensional code parameters, the N two-dimensional code parameters comprising one-to-one N data flag information, the N data flag information being used to distinguish the N two-dimensional code parameters; generating an order two-dimensional code according to the N two-dimensional code parameters, wherein the N groups of flag bits of the N two-dimensional code parameters in the order two-dimensional code are set according to the N data flag information; and generating the order two-dimensional code according to the N two-dimensional code parameters and the N groups of flag bits.

2. A method of merchandise authentication, characterized by, The order two-dimensional code generated by the two-dimensional code generation method of claim 1 is used, and the goods cancellation method comprises: receiving a first device identifier and the order two-dimensional code from a first device, the first device identifier being any one of the N types of vending device identifiers, N being a positive integer; determining a first two-dimensional code parameter according to a first type of goods corresponding to the first device identifier, the first type of goods being any one of the N types of goods, and the first two-dimensional code parameter being any one of the N two-dimensional code parameters; performing first processing on the first two-dimensional code parameter to cancel a first set of goods, the first set of goods belonging to any one of the N groups of to-be-canceled goods subsets.

3. The method of claim 2, wherein determining a first two-dimensional code parameter according to a first type of goods corresponding to the first device identifier comprises: determining the first type of goods corresponding to the first device identifier; determining the first set of goods corresponding to the first type of goods; determining a first flag bit corresponding to the first set of goods, the first flag bit belonging to any one of the N groups of flag bits; determining the first two-dimensional code parameter according to the first flag bit.

4. The method of claim 3, wherein, The first processing on the first two-dimensional code parameter to cancel the first set of goods comprises: identifying the first two-dimensional code parameter to determine that the first set of goods is in a completed sales state and informing a user device; and marking the first two-dimensional code parameter as invalid, and maintaining the valid state of N-1 two-dimensional code parameters other than the first two-dimensional code parameter.

5. The method of claim 4, wherein, After the first processing on the first two-dimensional code parameter to cancel the first set of goods, the method further comprises: receiving a second device identification and the order two-dimensional code from a second device, the second device identification being any one of the N device identifications except the first device identification; determining a second two-dimensional code parameter according to a second commodity type corresponding to the second device identification, the second commodity type being any one of the N commodity types except the first commodity type, the second two-dimensional code parameter being any one of the N-1 two-dimensional code parameters.

6. A cloud server, characterized by, A computer program product comprising a computer readable medium storing computer program comprising program instructions that when executed by a processor cause the processor to perform the steps of any of the methods of claims 1 or 2-5.

7. A computer storage medium, characterized in that The computer storage medium stores a computer program, the computer program comprising program instructions, the program instructions when executed by a processor cause the processor to perform the method of any of claims 1 or 2-5.

Citation Information

Patent Citations

  • Universal two-dimensional code verification method based on park system

    CN110378094A

  • Two-dimensional code cancel-after-verification method

    CN111292456A