An anti-counterfeiting method, device and electronic device for gas station receipts

By printing the generated verification code on the refueling receipt, the existing refueling receipt has been solved, and the efficient anti-counterfeiting and simplifying the refueling process has been achieved.

CN113935753BActive Publication Date: 2025-05-30SHANDONG ENERGY CHAIN HLDG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111226199.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-21
Publication Date
2025-05-30
Estimated Expiration
2041-10-21

AI Technical Summary

Technical Problem

The existing gas tickets are cumbersome and there is a high possibility of forgery, especially during the gasing process, the space distance between the gas ticket printing equipment and the gas gun/scan code allowance range is more due to the intermediary links.

Method used

When receiving the payment information of the target user when refueling, the order identification and verification information are obtained, the verification code is generated and sent to the printing equipment, and the verification code is printed on the receipt, so that the refueler can identify the authenticity of the receipt through the naked eye, eliminating the stamping process.

Benefits of technology

It improves the anti-counterfeiting performance of small receipts, reduces the possibility of forgery, simplifies refueling operations, improves refueling efficiency, and facilitates reconciliation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113935753B_ABST
    Figure CN113935753B_ABST
Patent Text Reader

Abstract

The present invention discloses an anti-counterfeiting method for gas station receipts. When receiving the scan payment information of a target user during refueling, obtain the order identifier of the target user; obtain the verification information corresponding to the order identifier; generate a verification code according to the verification information and send it to a printing device to print the verification code on the gas station receipt. The anti-counterfeiting method, device and electronic device disclosed by the present invention can effectively improve the anti-counterfeiting performance of the receipt and reduce the possibility of the receipt being forged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and particularly to an anti-counterfeiting method, device and electronic device for gas station receipts. Background Art

[0002] With the rapid development of automotive technologies, the supporting facilities for vehicles have also developed rapidly. Supporting facilities such as gas stations have been greatly expanded. With the increase in the number of gas stations, users can enter the corresponding gas stations for refueling in a shorter time, improving the refueling efficiency.

[0003] In the prior art during the refueling process, due to safety and explosion-proof requirements, there is a certain spatial distance between the receipt printing device and the allowable range of the fuel dispenser / barcode scanner. Thus, after a user scans and pays at the scanning location, they need to pick up the receipt at the printing device, then hand it to the gas station staff for stamping, and after stamping, hand it to the fuel dispenser operator who refuels based on it. Its operation is cumbersome with many intermediate steps, making the possibility of forgery of the receipt relatively high. Summary of the Invention

[0004] Embodiments of the present invention provide an anti-counterfeiting method, device and electronic device for gas station receipts, which can effectively improve the anti-counterfeiting performance of receipts and reduce the possibility of receipt forgery.

[0005] A first aspect of an embodiment of the present invention provides an anti-counterfeiting method for gas station receipts, the method including:

[0006] When receiving the scan payment information during the refueling of a target user, obtain the order identifier of the target user;

[0007] Obtain the verification information corresponding to the order identifier,

[0008] Generate a verification code according to the verification information and send it to the printing device to print the verification code on the gas station receipt.

[0009] Optionally, the verification information includes a gas station identifier; the generating of the verification code according to the order identifier and the verification information includes:

[0010] Extract the first information of the gas station identifier and extract the second information in the order identifier;

[0011] Generate the verification code according to the first information and the second information.

[0012] Optionally, the generating of the verification code according to the first information and the second information includes:

[0013] Merge the first information and the second information to obtain a first merged information;

[0014] Generate the check code according to the first merging information and the generated first random number.

[0015] Optionally, after extracting the first information of the gas station identifier and the second information in the order identifier, if the check information further includes the shift identifier of the order identifier, generating the check code according to the check information includes:

[0016] Extract the third information of the shift identifier;

[0017] Generate the check code according to the first information, the second information and the third information.

[0018] Optionally, generating the check code according to the first information, the second information and the third information includes:

[0019] Merge the first information, the second information and the third information to obtain second merging information;

[0020] Generate the check code according to the second merging information and the generated second random number.

[0021] Optionally, the check code includes valid data and invalid data, wherein the valid data is the data on the valid bits of the check code, the data on the valid bits is determined according to the order identifier and / or the check information, and the invalid data is a random number.

[0022] A second aspect of the embodiments of the present invention further provides an anti-counterfeiting device for a gas station receipt, and the device includes:

[0023] An order identifier acquisition unit, configured to acquire the order identifier of the target user when receiving the scan payment information during the target user's refueling;

[0024] A check information acquisition unit, configured to acquire the check information corresponding to the order identifier;

[0025] A check code generation unit, configured to generate a check code according to the order identifier and the check information and send it to a printing device to print the check code on the gas station receipt.

[0026] Optionally, the check information includes a gas station identifier, and the check code generation unit is configured to extract the first information of the gas station identifier and the second information in the order identifier; generate the check code according to the first information and the second information.

[0027] In a third aspect of the embodiments of the present invention, an electronic device is provided, including a memory and one or more programs, where one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include operation instructions for performing the anti-counterfeiting method of the gas station receipt provided in the first aspect.

[0028] In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps corresponding to the anti-counterfeiting method of the gas station receipt provided in the first aspect are implemented.

[0029] The above one or at least one technical solution in the embodiments of the present application has at least the following technical effects:

[0030] Based on the above technical solution, when receiving the scan payment information during the target user's refueling, obtain the order identifier of the target user, and obtain the verification information corresponding to the order identifier; generate a verification code according to the verification information and send it to the printing device to print the verification code on the gas station receipt, so that the fuel dispenser can determine the authenticity of the receipt only by the naked eye, which is easy for the staff to identify, eliminates the stamping link, and is not easy to forge, facilitating account reconciliation. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a schematic flowchart of the anti-counterfeiting method of the gas station receipt provided in the embodiments of the present application;

[0032] Figure 2 It is a block diagram of the anti-counterfeiting device of the gas station receipt provided in the embodiments of the present application;

[0033] Figure 3 It is a schematic structural diagram of an electronic device provided in the embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0034] The main implementation principle, specific implementation manner and corresponding beneficial effects that can be achieved of the technical solution in the embodiments of the present application are elaborated in detail below with reference to the drawings.

[0035] Embodiment

[0036] Please refer to Figure 1 , the embodiments of the present application provide an anti-counterfeiting method for gas station receipts, and the method includes the following steps:

[0037] S101. When receiving the scan payment information during the target user's refueling, obtain the order identifier of the target user;

[0038] S102. Obtain the verification information corresponding to the order identifier;

[0039] S103. Generate a verification code based on the order identifier and the verification information, and send it to the printing device to print the verification code on the gas station receipt.

[0040] In the embodiments of this specification, a gas station refers to a gas station; further, the embodiments of the application provide an anti-counterfeiting method for gas station receipts, which is applied to a server.

[0041] Among them, in step S101, when the target user refuels, the mobile terminal is used for scanning code payment. The mobile terminal will send the scanning code payment information to the server, so that the server receives the scanning code payment information when the target user refuels. And when the server receives the scanning code payment information when the target user refuels, it obtains the order identifier of the target user. Among them, the order identifier is generated based on the order number. Of course, the order identifier may include the order amount, user identifier, refueling information, etc.

[0042] For example, taking the target user as A1 and the server as B, when the target user A1 refuels, the smart phone A11 is used for scanning code payment. A11 will send the scanning code payment information to B, so that B will receive the scanning code payment information. At this time, the scanning code payment information includes the order number of A11's scanning code payment, for example, 1000122, the payment amount of 255 yuan, the user identifier may be the identification information of A11 or the account information of A1, and the refueling information includes the refueling time and the refueling volume, etc.

[0043] Continuing, taking the target user as A2 and the server as B, when the target user A2 refuels, the smart phone A21 is used for scanning code payment. A21 will send the scanning code payment information to B, so that B will receive the scanning code payment information. At this time, the scanning code payment information includes the order number of A21's scanning code payment, for example, 0212101, and the user identifier may be the identification information of A21 or the account information of A2, etc.

[0044] After obtaining the order identifier, step S102 is executed.

[0045] In step S102, after obtaining the order identifier, the gas station identifier corresponding to the order identifier can be obtained according to the collection account corresponding to the order identifier; in this way, the verification information can be obtained according to the gas station identifier and the order identifier. Of course, the shift identifier corresponding to the order identifier can also be obtained. The shift identifier can be set in the form of "year-month-date-shift sequence number". In this way, the verification information can be obtained according to the shift identifier, gas station identifier and order identifier.

[0046] After obtaining the verification information, step S103 is executed.

[0047] In step S103, first, a check code is generated based on the verification information, and then the generated check code is transmitted to the printing device via a wireless network, so that the printing device can print the check code on the gas station receipt. Among them, the printing device can be a printer or the like.

[0048] Specifically, when generating the check code, if the verification information includes the gas station identifier, the first information of the gas station identifier is extracted, and the second information in the order identifier is extracted; then, based on the first information and the second information, the check code is generated. Among them, when extracting the first information of the gas station identifier, the first data of the first set bit can be extracted from the gas station identifier as the first information, and when extracting the second information in the order identifier, the second data of the second set bit can be extracted from the order identifier as the second information. Here, the first set bit and the second set bit can be the same or different.

[0049] For example, the first data of the last two bits can be extracted from the gas station identifier as the first information, or the first data of the first two bits can be extracted from the gas station identifier as the first information, or the first data of the middle two bits can be extracted from the gas station identifier as the first information. For example, if the gas station identifier is 01214412, when the first set bit is the last two bits, the extracted first data is 12; when the first set bit is the first bit, the extracted first data is 0. Correspondingly, the second data of the last two bits can be extracted from the order identifier as the second information, or the second data of the first two bits can be extracted from the order identifier as the second information, or the second data of the middle two bits can be extracted from the order identifier as the second information. For example, if the order number is 1000122, when the second set bit is the last two bits, the extracted second data is 22; when the second set bit is the middle bit, the extracted second data is 0.

[0050] Specifically, when generating the check code based on the first information and the second information, the first information and the second information can be combined to obtain the first combined information; then, based on the first combined information and the generated first random number, the check code is generated. When generating the first random number, a random number can be randomly generated by a random number generator as the first random number, and the value of the first random number is usually a positive integer. Of course, the first combined information can also be directly used as the check code.

[0051] Specifically, when generating the check code based on the first combined information and the first random number, the first random number can be added in front of, behind, or in the middle of the first combined information, and then the added data is used as the check code; of course, the added data can also be added to the valid bits of the check code to form the check code, and this specification does not make specific restrictions.

[0052] For example, taking the gas station identifier as 01214412 and the order number as 1000122 as an example, if both the first set bit and the second set bit are the last two digits, then the data on the last two digits is extracted from 01214412 as 12 as the first piece of information; and the data on the last two digits is extracted from 1000122 as 22 as the second piece of information. The first piece of information and the second piece of information are combined to obtain the first combined information as 1222. At this time, if the first random number generated by the random number generator is 4, then according to the first combined information and the first random number, the generated check code can be 12224 or 41222, etc.

[0053] Since the first piece of information is extracted from the gas station identifier, the second piece of information is extracted from the order identifier, and the first random number is randomly generated, the gas station can be accurately identified through the first piece of information, the order identifier can be accurately identified through the second piece of information, and since the first random number is randomly generated, the confidentiality performance of the check code generated according to the first random number and the first combined information can be effectively improved, and the probability of the check code being cracked can be reduced.

[0054] In another embodiment of this specification, if the verification information further includes the shift identifier of the order identifier, then the third piece of information of the shift identifier is extracted, and then the check code is generated according to the first piece of information, the second piece of information, and the third piece of information. When extracting the third piece of information of the shift identifier, the third data of the third set bit can be extracted from the shift identifier as the third piece of information, where the third set bit can be the same as or different from the first set bit, and this specification does not make specific limitations.

[0055] Specifically, when the verification information includes the shift identifier of the order identifier and the check code is generated according to the first piece of information, the second piece of information, and the third piece of information, the first piece of information, the second piece of information, and the third piece of information can be combined to obtain the second combined information; then the check code is generated according to the second combined information and the generated second random number. When generating the second random number, a random number can be randomly generated by the random number generator as the second random number, and the value of the second random number is usually a positive integer. Of course, the first combined information can also be directly used as the check code.

[0056] Specifically, when generating the check code according to the second combined information and the second random number, the second random number can be added in front of or behind or in the middle of the second combined information, and then the added data is used as the check code; of course, the added data can also be added to the valid bits of the check code to form the check code, and this specification does not make specific limitations.

[0057] For example, taking the gas station identifier as 01214412, the order number as 1000122, and the shift identifier as 2019-9-15-115 as examples, if the first set bit, the second set bit, and the third set bit are all the first two digits, then the data on the first two digits extracted from 01214412 is 01 as the first information; and the data on the first two digits extracted from 1000122 is 10 as the second information; and the data on the first two digits extracted from 2019-9-15-115 is 20 as the third information; then combining the first information, the second information, and the third information, the second combined information obtained is 011020. At this time, if the second random number generated by the random number generator is 6, then according to the second combined information and the second random number, the generated check code can be 0110206 or 6011020, etc.

[0058] Since the first information is extracted from the gas station identifier, the second information is extracted from the order identifier, the third information is extracted from the shift identifier, and the second random number is randomly generated, the gas station can be accurately identified through the first information, the order identifier can be accurately identified through the second information, and the shift identifier can be determined through the third information. In this way, the order identifier and its affiliated gas station and shift information can be accurately identified through the first information, the second information, and the third information for subsequent verification; and since the second random number is randomly generated, the confidentiality performance of the check code generated according to the second random number and the second combined information can be effectively improved, and the probability of the check code being cracked can be reduced.

[0059] In another embodiment of this specification, the check code includes valid data and invalid data. Among them, the valid data is the data on the valid bits of the check code, and the data on the valid bits is determined based on the order identifier and / or the verification information, and the invalid data is a random number.

[0060] Specifically, when generating the check code according to the first information and the second information, the first combined information and the first random number can be filled in the valid bits of the check code as the verification information; when generating the check code according to the first information, the second information, and the third information, the second combined information and the second random number can be filled in the valid bits of the check code as the verification information; the data on the invalid bits in the check code can be randomly generated to further improve the accuracy of the check code.

[0061] Specifically, the valid bits and invalid bits in the check code will change over time, for example, they change every half hour, every day, etc., to further improve the security of the check code. Of course, the valid bits and invalid bits in the check code can also remain unchanged.

[0062] For example, taking the check code as 10 digits, there are 5 valid digits in the check code, which are the 2nd, 3rd, 6th, 7th and 9th digits respectively. If the first merged information is 1222 and the first random number is 4, then 1222 and 4 are filled in the 2nd, 3rd, 6th, 7th and 9th digits of the check code at once, for example, it can be 2124322643, so that the data on the 2nd, 3rd, 6th, 7th and 9th digits of the check code are 12224 respectively.

[0063] And, after the verification code is generated, the generated verification code is sent to the printing device, and the verification code is printed on the gas station receipt through the printing device. Of course, the order identification can also be sent to the printing device, so that the order identification can also be printed on the gas station receipt through the printing device; in this way, when verifying the gas station receipt, the authenticity of the gas station receipt can be directly determined by the verification code on the gas station receipt, without the need to stamp the gas station receipt. Compared with the prior art, the stamping operation is omitted, the operation is simplified, and the refueling efficiency is improved; and the verification code is printed on the gas station receipt, which can effectively improve the anti-counterfeiting performance of the receipt and reduce the possibility of counterfeiting of the receipt.

[0064] Based on the above technical solution, when receiving the scanned code payment information of the target user when refueling, the order identification of the target user is obtained, and the verification information corresponding to the order identification is obtained; according to the verification information, a verification code is generated and sent to the printing device to print the verification code on the gas station receipt; in this way, when the gas station receipt is generated, the verification code has been printed on the gas station receipt, and the verification code is generated according to the verification information corresponding to the order identification, which improves the confidentiality of the verification code. On the basis of the improvement of the confidentiality of the verification code, the confidentiality of the gas station receipt is also improved, which can effectively improve the anti-counterfeiting performance of the gas station receipt and reduce the possibility of counterfeiting of the receipt. At the same time, the gas station attendant can determine the authenticity of the receipt only by the naked eye, and the staff can easily identify it, eliminating the stamping link, and improving the convenience of refueling.

[0065] In view of the above embodiment, a method for anti-counterfeiting a gas station receipt is provided. The present application embodiment also provides an anti-counterfeiting device for a gas station receipt. Figure 2 , the device comprises:

[0066] The order identification acquisition unit 201 is used to acquire the order identification of the target user when receiving the scan code payment information of the target user when refueling;

[0067] A verification information acquisition unit 202, used to acquire verification information corresponding to the order identifier;

[0068] The verification code generating unit 203 is used to generate a verification code according to the order identification and the verification information and send it to the printing device so that the verification code is printed on the gas station receipt.

[0069] In an alternative embodiment, the verification information includes a gas station identifier and an order identifier. The verification code generation unit 203 is configured to extract first information of the gas station identifier and second information in the order identifier; and generate the verification code according to the first information and the second information.

[0070] In an alternative embodiment, the verification code generation unit 203 is configured to merge the first information and the second information to obtain first merged information; and generate the verification code according to the first merged information and a first random number generated.

[0071] In an alternative embodiment, the verification code generation unit 203 is configured to merge the first information and the second information to obtain first merged information; and generate the verification code according to the first merged information and a first random number generated.

[0072] In an alternative embodiment, after the verification code generation unit 203 extracts the first information of the gas station identifier and the second information in the order identifier, if the verification information further includes a shift identifier of the order information, the verification code generation unit 203 extracts third information of the shift identifier; and generates the verification code according to the first information, the second information, and the third information.

[0073] In an alternative embodiment, the verification code generation unit 203 is configured to merge the first information, the second information, and the third information to obtain second merged information; and generate the verification code according to the second merged information and a second random number generated.

[0074] In an alternative embodiment, the verification code includes valid data and invalid data. Among them, the valid data is the data on the valid bits of the verification code, and the data on the valid bits is determined according to the order identifier and / or the verification information. The invalid data is a random number.

[0075] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0076] Figure 3 It is a block diagram of an electronic device 800 for an anti-counterfeiting method of a gas station receipt shown according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0077] Refer to Figure 3, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / presentation (I / O) interface 812, a sensor component 814, and a communication component 816.

[0078] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing unit 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0079] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0080] The power component 806 provides power to various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0081] The multimedia component 808 includes a screen that provides a presentation interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0082] The audio component 810 is configured to present and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for presenting audio signals.

[0083] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.

[0084] The sensor component 814 includes one or more sensors for providing an assessment of the status of the electronic device 800 in various aspects. For example, the sensor component 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800. The sensor component 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor that is configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0085] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0086] In an exemplary embodiment, the electronic device 800 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0087] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by a processor 820 of the electronic device 800 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0088] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute an anti-counterfeiting method for gas station receipts, the method including:

[0089] When receiving the scan payment information of a target user during refueling, obtaining the order identifier of the target user;

[0090] Obtaining the verification information corresponding to the order identifier;

[0091] Generating a verification code according to the order identifier and the verification information and sending it to a printing device to print the verification code on the gas station receipt.

[0092] Other embodiments of the present invention will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include known common general knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and examples are only illustrative, and the true scope and spirit of the invention are pointed out by the following claims.

[0093] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

[0094] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for anti-counterfeiting of gas station receipts, characterized in that, the method includes: When receiving the scan payment information during the refueling of the target user, obtain the order identifier of the target user; Obtain the verification information corresponding to the order identifier; Generate a verification code according to the order identifier and the verification information and send it to the printing device to print the verification code on the gas station receipt; If the verification information includes the gas station identifier, then generating the verification code according to the order identifier and the verification information includes: Extract the first information of the gas station identifier and extract the second information in the order identifier; Generate the verification code according to the first information and the second information; The generating the verification code according to the first information and the second information includes: Merge the first information and the second information to obtain the first merged information; Generate the verification code according to the first merged information and the generated first random number.

2. The method according to claim 1, characterized in that, After extracting the first information of the gas station identifier and extracting the second information in the order identifier, if the verification information further includes the shift identifier of the order identifier, generating the verification code includes: Extract the third information of the shift identifier; Generate the verification code according to the first information, the second information and the third information.

3. The method according to claim 2, characterized in that, The generating the verification code according to the first information, the second information and the third information includes: Merge the first information, the second information and the third information to obtain the second merged information; Generate the verification code according to the second merged information and the generated second random number.

4. The method according to any one of claims 1-3, characterized in that, The verification code includes valid data and invalid data. Among them, the valid data is the data on the valid bits of the verification code, and the data on the valid bits is determined according to the order identifier and / or the verification information. The invalid data is a random number.

5. An anti-counterfeiting device for gas station receipts, characterized in that, the device includes: An order identifier acquisition unit, configured to obtain the order identifier of the target user when receiving the scan payment information during the refueling of the target user; A verification information acquisition unit, configured to obtain the verification information corresponding to the order identifier; A verification code generation unit, configured to generate a verification code according to the order identifier and the verification information and send it to the printing device to print the verification code on the gas station receipt; If the verification information includes the gas station identifier, then generating the verification code according to the order identifier and the verification information includes: Extract the first information of the gas station identifier and extract the second information in the order identifier; Generate the verification code according to the first information and the second information; The generating the verification code according to the first information and the second information includes: Merge the first information and the second information to obtain the first merged information; Generate the verification code according to the first merged information and the generated first random number.

6. The device according to claim 5, characterized in that, If the verification information includes a gas station identifier, the verification code generation unit is configured to extract first information of the gas station identifier and second information of the order identifier; and generate the verification code according to the first information and the second information.

7. An electronic device characterized in that it includes a memory and one or more programs, where one or more programs are stored in the memory and are configured to be executed by one or more processors to perform operation instructions corresponding to the methods described in any one of claims 1 to 4.

8. A computer-readable storage medium, on which a computer program is stored, characterized in that when the program is executed by a processor, it implements the steps corresponding to the methods described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • System and method used for verifying bill authenticity

    CN104299310A