Coupon code cancel-after-verification method and device, equipment, storage medium and product
By using the dual verification mechanism of the messaging system and blockchain network during the coupon code verification process, the problem of low security of existing coupon code verification methods is solved, and higher coupon code verification security and transparency.
Patent Information
- Application Number
- CN202411412239.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-02-07
AI Technical Summary
The existing coupon code verification methods are relatively low in security, which can easily lead to the coupon code leakage and be used by other personnel.
The message communication system sends a must-reach notification instruction to the user terminal to ensure the accurate transmission of the verification request. After the user terminal confirms the verification, double verification is performed through the blockchain network to ensure the security of the coupon code.
It improves the security of coupon code verification, prevents coupon codes from being illegally exploited after leaking, and ensures the transparency and credibility of the coupon process.
Smart Images

Figure CN119398844A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a coupon code verification method, device, equipment, storage medium and product. Background Art
[0002] With the continuous development of the Internet, consumer payment methods are becoming more and more diverse, among which coupon code benefits are a marketing model that is very popular with merchants and users. China Mobile's benefits field is also constantly exploring and exploring the use scenarios and implementation methods of coupon code benefits.
[0003] The current implementation of coupon code rights and interests, the entire process mainly includes three stages: coupon code generation, coupon code issuance, and coupon code use. Specifically, merchants build a coupon code system, generate a series of fixed coupon codes for marketing in the system, and then issue them to users in certain channels or self-operated pages, and store the receipt records in the system database. After the user uses the coupon code in certain scenarios, the system will update the usage status of the relevant user's coupon code in the database, that is, cancel it. The most common offline usage scenario is that users use the coupon code to use it in offline stores, and the store cancels the coupon code through system equipment to realize the redemption of the coupon code.
[0004] However, the offline verification process is too simple. In most solutions, the user shows the coupon code, and the merchant obtains the coupon code and directly verifies it. In this process, it is easy for the coupon code to be leaked and used by other people. Therefore, the existing coupon code verification method has low security. Summary of the invention
[0005] The embodiments of the present application provide a voucher code verification method, device, equipment, storage medium and product to solve the problem of low security of existing voucher code verification methods.
[0006] In a first aspect, an embodiment of the present application provides a voucher code verification method, which is applied to a message transmission system, and the method includes:
[0007] Receiving a notification request sent by the voucher code business platform, wherein the notification request is used by the voucher code business platform to request the message transmission system to send a mandatory notification instruction for confirmation of cancellation of the voucher code to be cancelled to the user terminal;
[0008] In response to the notification sending request, the must-reach notification instruction is sent to the user terminal, wherein the must-reach notification instruction is used to request the first user to confirm the cancellation of the voucher code to be cancelled through the user terminal;
[0009] Upon receiving a confirmation cancellation instruction sent by the user terminal based on the must-reach notification instruction, a confirmation result corresponding to the confirmation cancellation instruction is sent to the voucher code business platform, and the voucher code business platform is used to cancel the voucher code to be cancelled based on the confirmation result.
[0010] In a second aspect, an embodiment of the present application provides a voucher code verification method, which is applied to a voucher code business platform, and the method includes:
[0011] In the case of receiving a cancellation request for the voucher code to be cancelled, sending a notification request to the message transmission system, wherein the notification request is used to request the message transmission system to send a mandatory notification instruction for confirming the cancellation of the voucher code to be cancelled to the user terminal;
[0012] Receiving a confirmation result sent by the message transmission system based on the notification sending request feedback, wherein the confirmation result is the feedback from the user terminal to the message transmission system based on the must-deliver notification instruction;
[0013] Upload the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network, and the blockchain network is used to perform the first cancellation of the coupon code to be cancelled;
[0014] When the first cancellation result of the blockchain network is received, the coupon code to be cancelled is cancelled for a second time using the first coupon code information.
[0015] In a third aspect, an embodiment of the present application provides a voucher code verification method, which is applied to a blockchain network, and the method includes:
[0016] Receive the confirmation result sent by the voucher code business platform and the first voucher code information of the voucher code to be cancelled, wherein the confirmation result is the cancellation confirmation result fed back by the user terminal to the message transmission system based on the must-reach notification instruction, and the must-reach notification instruction is the instruction sent by the message transmission system;
[0017] Using the confirmation result and the first voucher code information, the voucher code to be cancelled is cancelled to obtain a first cancellation result;
[0018] The first verification result is sent to the voucher code business platform, so that the voucher code business platform performs a second verification on the voucher code to be verified based on the first verification result.
[0019] In a fourth aspect, an embodiment of the present application provides a voucher code cancellation device, which is applied to a message transmission system, and the device includes:
[0020] The first sending module is used to receive a notification sending request sent by the voucher code business platform, wherein the notification sending request is used by the voucher code business platform to request the message transmission system to send a mandatory notification instruction for confirming the cancellation of the voucher code to be cancelled to the user terminal;
[0021] A response module, configured to send the must-reach notification instruction to the user terminal in response to the notification issuance request, wherein the must-reach notification instruction is used to request the first user to confirm the cancellation of the voucher code to be cancelled through the user terminal;
[0022] The second sending module is used to send a confirmation result corresponding to the confirmation and cancellation instruction to the voucher code business platform when receiving the confirmation and cancellation instruction sent by the user terminal based on the must-reach notification instruction. The voucher code business platform is used to cancel the voucher code to be cancelled based on the confirmation result.
[0023] In a fifth aspect, an embodiment of the present application provides a voucher code verification device, which is applied to a voucher code business platform, and the device includes:
[0024] The third sending module is used to send a notification request to the message transmission system when receiving a cancellation request for the voucher code to be cancelled, wherein the notification request is used to request the message transmission system to send a mandatory notification instruction for confirming the cancellation of the voucher code to be cancelled to the user terminal;
[0025] A first receiving module is used to receive a confirmation result sent by the message transmission system based on the notification sending request feedback, wherein the confirmation result is the feedback from the user terminal to the message transmission system based on the must-reach notification instruction;
[0026] An uploading module, used to upload the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network, and the blockchain network is used to perform the first cancellation of the coupon code to be cancelled;
[0027] The first cancellation module is used to perform a second cancellation on the coupon code to be cancelled using the first coupon code information when receiving the first cancellation result of the blockchain network.
[0028] In a sixth aspect, an embodiment of the present application provides a voucher code verification device, which is applied to a blockchain network, and the device includes:
[0029] A second receiving module is used to receive the confirmation result sent by the voucher code business platform and the first voucher code information of the voucher code to be cancelled, wherein the confirmation result is the cancellation confirmation result fed back by the user terminal to the message transmission system based on the must-reach notification instruction, and the must-reach notification instruction is the instruction sent by the message transmission system;
[0030] A second cancellation module, used to cancel the coupon code to be cancelled by using the confirmation result and the first coupon code information, and obtain a first cancellation result;
[0031] The fourth sending module is used to send the first cancellation result to the coupon code business platform, so that the coupon code business platform performs a second cancellation on the coupon code to be cancelled based on the first cancellation result.
[0032] In a seventh aspect, an embodiment of the present application provides a terminal device, the device comprising: a processor and a memory storing computer program instructions;
[0033] When the processor executes the computer program instructions, the coupon code verification method of the first aspect, the second aspect or the third aspect is implemented.
[0034] In an eighth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, a coupon code verification method as in the first aspect, the second aspect, or the third aspect is implemented.
[0035] In a ninth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the coupon code verification method of the first aspect, the second aspect, or the third aspect.
[0036] The voucher code verification method provided in the embodiment of the present application sends a must-reach notification instruction to the first user through a message transmission system, ensuring that the verification request is accurately transmitted to the first user, reducing the possibility of information loss or mistransmission. And only when the confirmation verification instruction sent by the user terminal based on the must-reach notification instruction is received, the confirmation result of the verification is sent to the voucher code business platform, and then the voucher code to be verified is verified through the voucher code business platform. In this process, the disadvantage of the traditional method that the merchant only needs to obtain the voucher code displayed by the first user to directly verify is avoided. And by verifying the voucher code only after the first user confirms it, the problem of the voucher code being exploited or used by other people after being leaked can be avoided, thereby improving the security of voucher code verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0038] Figure 1 It is a schematic diagram of the interactive process of the coupon code verification method provided in the embodiment of the present application;
[0039] Figure 2 It is a structural schematic diagram of a coupon code cancellation device applied to a message transmission system provided in an embodiment of the present application;
[0040] Figure 3 It is a structural diagram of a coupon code cancellation device applied to a coupon code business platform provided in an embodiment of the present application;
[0041] Figure 4 It is a structural diagram of a device for verifying and canceling a voucher code on a blockchain network provided in an embodiment of the present application;
[0042] Figure 5 It is a structural diagram of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0044] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0045] In order to solve the problems of the prior art, the embodiments of the present application provide a coupon code verification method, device, equipment, storage medium and product.
[0046] The following first introduces the coupon code verification method provided in the embodiment of the present application.
[0047] Figure 1 The following is a schematic diagram showing the interactive process of a coupon code verification method provided by an embodiment of the present application. Figure 1 As shown, the method includes:
[0048] Step 101, when receiving a cancellation request for canceling a coupon code to be cancelled, the coupon code business platform sends a notification request to the message transmission system;
[0049] In an embodiment, the cancellation request may be sent by the merchant through a cancellation tool. Specifically, the process of obtaining the coupon code to be cancelled may be:
[0050] (1) The first user shows the merchant the voucher code to be redeemed.
[0051] (2) The merchant uses the verification tool to verify the amount.
[0052] (3) The merchant uses the verification tool to obtain the coupon code to be verified, which can be obtained by scanning the QR code or manually entering the coupon code string.
[0053] (4) The cancellation tool sends a cancellation request to the voucher code business platform for the voucher code to be cancelled. The request includes the merchant ID and the voucher code ID of the voucher code to be cancelled.
[0054] When the voucher code business platform receives the cancellation request again, it saves the merchant ID, voucher code ID and the timestamp of receiving the cancellation request in the cancellation request.
[0055] In addition, when the coupon code business platform receives the cancellation request, it is also necessary to use the merchant ID and coupon code ID to search for the corresponding target coupon code in the coupon code database; if the target coupon code is found, it is determined that the coupon code to be cancelled exists, and a notification request is sent to the message transmission system; if the target coupon code is not found, a message that the coupon code to be cancelled does not exist is sent to the cancellation tool. Through the above process, the verification of the coupon code to be cancelled is realized to prevent the situation where the coupon code to be cancelled is incorrect or does not exist.
[0056] Step 102, the message transmission system receives the notification issuance request sent by the coupon code business platform;
[0057] In this embodiment, the notification request is used to request the message transmission system to send an instruction to the user terminal to confirm the cancellation of the coupon code to be cancelled. The notification request carries the coupon code information (merchant ID, coupon code ID) of the coupon code to be cancelled, so that the message transmission system can send the corresponding must-deliver notification instruction to the user terminal when receiving the coupon code information.
[0058] Among them, the message transmission system can be a super SIM must-have system, which has a super SIM must-have notification capability. The super SIM must-have notification capability is a unique capability of the operator and can be based on a super SIM card. It can ensure that the identity of the first user is authentic and valid, and that the second confirmation of the must-have notification is performed by the first user himself, thereby avoiding illegal use of the coupon code collection and use links, and avoiding customer complaints caused by uninformed ordering.
[0059] Step 103, the message delivery system sends the must-deliver notification instruction to the user terminal in response to the notification delivery request;
[0060] In this embodiment, the must-reach notification instruction is used to request the first user to confirm the cancellation of the coupon code to be cancelled through the user terminal. The instruction can be used to display an interface pop-up window on the user terminal, and the conversation content included in the interface pop-up window can be "Please confirm the cancellation of XX coupons" and the corresponding "Confirm cancellation" and "Cancel cancellation" buttons, so that the first user clicks the corresponding button to confirm the cancellation or cancel the cancellation.
[0061] Step 104, when the message transmission system receives the confirmation and cancellation instruction sent by the user terminal based on the must-reach notification instruction, it sends a confirmation result corresponding to the confirmation and cancellation instruction to the voucher code business platform, and the voucher code business platform is used to cancel the voucher code to be cancelled based on the confirmation result.
[0062] In this embodiment, after the first user confirms the cancellation of the coupon code to be cancelled on the user terminal, the user terminal sends the confirmation result of the cancellation to the message transmission system. The message transmission system then sends the confirmation result to the coupon code business platform so that the coupon code business platform can cancel the coupon code to be cancelled.
[0063] Step 105, the voucher code business platform receives the confirmation result based on the notification request feedback sent by the message transmission system;
[0064] In this embodiment, in addition to feeding back the confirmation result, the message transmission system also feeds back the encrypted mobile phone number of the user terminal to the coupon code service platform. Among them, obtaining the encrypted mobile phone number is a unique attribute of the super SIM card service and is bound to the user terminal.
[0065] Step 106, the voucher code business platform uploads the confirmation result and the pre-acquired first voucher code information of the voucher code to be cancelled to the blockchain network, and the blockchain network is used to perform the first cancellation of the voucher code to be cancelled;
[0066] In this embodiment, the first voucher code information includes the voucher code identifier of the voucher code to be cancelled, the first task number and the current timestamp. The first task number is generated by the super SIM system when receiving the notification request and sent to the voucher code business platform. The first task number represents the coded record of this cancellation process.
[0067] The confirmation result and the first coupon code information are uploaded to the blockchain network for chain storage. In addition, the target mobile phone number corresponding to the above-mentioned encrypted mobile phone number is also uploaded to the blockchain network. At the same time, the blockchain uses its decentralized and tamper-proof characteristics to perform the first cancellation of the cancellation coupon code, which improves the transparency and credibility of the cancellation process and ensures the authenticity and validity of the cancellation result.
[0068] Step 107, the blockchain network receives the confirmation result and the first coupon code information sent by the coupon code business platform;
[0069] Step 108: The blockchain network uses the confirmation result and the first voucher code information to cancel the voucher code to obtain a first cancellation result;
[0070] In this embodiment, after receiving the confirmation result, the blockchain will cancel it. Specifically, the smart contract can be used to cancel the coupon code on the chain, and the data record with the coupon code identifier as the key is updated on the blockchain, and the usage status status is "used", and the used status status is agreed to be 1. It should be noted that the blockchain stores the coupon code identifiers of all issued coupon codes. The coupon code identifier and the usage status are stored in the blockchain in the form of key-value pairs. The value of the used status is represented by 1, and the value of the unused status is represented by 0. When canceling the coupon code to be cancelled, it is only necessary to execute the corresponding smart contract to update the usage status of the corresponding coupon code to be cancelled in the blockchain from the unused state to the used state, and the cancellation of the coupon code to be cancelled in the blockchain can be completed.
[0071] After the write-off is completed, the first write-off result is obtained, including whether the write-off is completed or not.
[0072] Step 109, the blockchain network sends the first verification result to the coupon code business platform;
[0073] Step 110: Upon receiving the first cancellation result of the blockchain network, the voucher code business platform uses the first voucher code information to perform a second cancellation on the voucher code to be cancelled.
[0074] In this embodiment, after the blockchain network completes the cancellation of the coupon code to be cancelled, the coupon code business platform needs to perform a second cancellation of the coupon code to be cancelled to ensure the synchronous cancellation of the coupon code to be cancelled by the coupon code business platform and the blockchain platform.
[0075] Specifically, the voucher code business platform can update the data of the voucher code to be cancelled in the database, and update its usage status to "used". The voucher code business platform returns the cancellation result of the second cancellation to the cancellation tool. The cancellation tool returns the cancellation result to the merchant. The merchant receives the cancellation result and issues the rights and interests to the first user. The first user successfully cancels, completes the cancellation process, and successfully redeems the rights and interests.
[0076] In this embodiment, blockchain technology is introduced. The voucher code data is not only stored on the voucher code business platform, but also stored on the chain, with two voucher code data ledgers. The chain verification is realized through smart contracts, data decentralization is achieved, and it is sent back to the business server for secondary verification. Such a double verification mechanism distributes risks to multiple links. During the audit, the two data ledgers can be compared to prevent data tampering.
[0077] In this embodiment, a must-reach notification instruction is sent to the first user through the message transmission system, ensuring that the cancellation request is accurately transmitted to the first user, reducing the possibility of information loss or miscommunication. And only when the confirmation cancellation instruction sent by the user terminal based on the must-reach notification instruction is received, the confirmation result of the confirmation cancellation is sent to the voucher code business platform, and then the voucher code to be cancelled is cancelled through the voucher code business platform. In this process, the disadvantage of the traditional method that the merchant only needs to obtain the voucher code displayed by the first user to directly cancel is avoided. And by canceling the voucher code only after the first user confirms it, the problem of the voucher code being exploited or used by other people after being leaked can be avoided, thereby improving the security of voucher code cancellation.
[0078] In one embodiment of the present application, the sending of a must-reach notification instruction to the user terminal includes:
[0079] Sending the must-reach notification instruction to the super SIM card in the user terminal, the must-reach notification instruction is used to instruct the super SIM card to display the session information of the cancellation confirmation in the user terminal;
[0080] In this embodiment, the Super SIM card is a card with specific functions implemented by China Mobile based on the SIM card capabilities, combined with the SIM card security chip and NFC near-field interaction capabilities. It not only retains the communication functions of the traditional SIM card, but also upgrades the SIM card from a communication carrier to an IT security service tool through technological innovation, providing system login, security authentication and other services for various industries.
[0081] The super SIM card is a hardware component built into the user terminal. The message transmission system directly sends a mandatory notification instruction to the super SIM card, which can reduce notification failures or delays caused by network fluctuations, software failures and other factors, and ensure the accurate transmission of the cancellation instruction. The session information of the cancellation confirmation is displayed instantly on the user terminal. The first user can immediately see and respond to the cancellation request without waiting for or relying on notifications from other applications. The efficiency of the cancellation process and user experience are improved. Among them, the session information can be embodied in the form of text messages, or it can also be embodied in the form of 5G messages, which is not limited in this embodiment.
[0082] In one embodiment of the present application, after sending the notification request to the message transmission system and before receiving the confirmation result based on the feedback of the must-reach notification instruction sent by the message transmission system, the method further includes:
[0083] Upon receiving a notification request sent by the coupon code platform, generating a first task number;
[0084] Associating the first task number with the voucher code to be redeemed;
[0085] The associated first task number is sent to the coupon code business platform, so that the coupon code business platform uses the first task number to cancel the coupon code to be cancelled.
[0086] In this embodiment, since the message transmission system sends information to the voucher code platform in the voucher code verification business, it is an asynchronous message processing task. Therefore, in order to ensure the correct verification of the same voucher code to be verified, after receiving the notification request sent by the voucher code platform, it is necessary to generate a first task number and associate it with the voucher code to be verified. The first task number is the unique process code of the voucher code to be verified. When the voucher code business platform verifies the voucher code to be verified, it can ensure that the same voucher code to be verified that the message transmission system sent to the user terminal for verification confirmation is verified.
[0087] Correspondingly, in one embodiment, before receiving the confirmation result based on the feedback of the must-reach notification instruction sent by the message delivery system, the method further includes:
[0088] receiving a first task number sent by the message conveying system;
[0089] The step of uploading the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network includes:
[0090] When the first task number and the second task number are the same, the confirmation result and the first voucher code information are uploaded to the blockchain network so that the blockchain network performs the first cancellation of the voucher code to be cancelled.
[0091] In this embodiment, the confirmation result includes a second task number, which is the first task number that the message conveying system carries in the confirmation result and resends to the coupon code business platform after receiving the confirmation result fed back by the user terminal.
[0092] Since the message transmission system sends information to the voucher code platform as an asynchronous message processing task, the confirmation result sent may be the confirmation result of other voucher codes. Therefore, in order to ensure the correctness of the cancellation, it is necessary to compare the second task number in the confirmation result with the first task number after receiving the confirmation result sent by the message transmission system. Only when the second task number is the same as the first task number can it be determined that the cancellation process processed by the voucher code business platform is the cancellation process of the same voucher code to be cancelled. In this way, the confirmation result and the first voucher code information are further uploaded to the blockchain network so that the blockchain network can cancel it.
[0093] In this embodiment, after comparing the task numbers sent twice by the message transmission system, the voucher code information is uploaded to the blockchain network for verification only when the task numbers are the same twice, thereby ensuring that the currently verified voucher code is the same voucher code to be verified, thereby ensuring the correctness of the voucher code verification.
[0094] In one embodiment of the present application, after receiving the confirmation result based on the notification sending request feedback sent by the message transmission system, before uploading the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network, the method includes:
[0095] In the voucher code database, the voucher code identifier is used to query the first merchant, the second user and the validity period respectively associated with the voucher code to be cancelled;
[0096] When the first merchant is the same as the second merchant, the second user is the same as the first user, and the coupon code to be cancelled is within the validity period, execute the step of uploading the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network, wherein the second merchant is the user who sends the cancellation request.
[0097] In this embodiment, there is a coupon code database in the coupon code business platform, which stores relevant data of all published and received coupon codes, such as the merchant that issued the coupon code, the user who received the coupon code, and the validity period of the coupon code.
[0098] After the voucher code business platform obtains the first voucher code information of the voucher code to be cancelled, the voucher code identifier in the first voucher code information is used to find the corresponding second voucher code information in the voucher code database, including the first merchant bound to the voucher code identifier, the second user, and the validity period of the voucher code corresponding to the voucher code identifier. Then, by comparing whether the second merchant sending the cancellation request is consistent with the first merchant, whether the second user is consistent with the first user, and whether the voucher code to be cancelled is within the validity period, it is determined whether the voucher code to be cancelled needs to be cancelled using the blockchain network. Among them, the first user is the user bound to the user terminal, that is, the user who is canceling the voucher code to be cancelled.
[0099] Specifically, when the first merchant and the second merchant are the same, the second user and the first user are the same, and the voucher code to be cancelled is within the validity period, it means that the voucher code to be cancelled is for the use of the person who received it and is issued by the merchant. At this time, the first voucher code information and the confirmation result can be sent to the blockchain so that the blockchain can cancel the voucher code to be cancelled.
[0100] In addition, if the first merchant is different from the second merchant, the coupon code to be cancelled does not belong to the merchant's coupon code, and it is returned to the cancellation tool "the coupon code to be cancelled does not belong to the merchant"; if the second user is different from the first user, the coupon code to be cancelled does not belong to the user's coupon code, and it is returned to the user terminal "the coupon code to be cancelled does not belong to the user"; if the coupon code to be cancelled is not within the validity period, it means that the coupon code to be cancelled has expired, and it is returned to the cancellation tool "the coupon code to be cancelled has expired".
[0101] In this embodiment, before the coupon code business platform sends the coupon code to be cancelled to the blockchain platform for cancellation, the legality and validity of the coupon code to be cancelled are verified again to prevent errors in subsequent cancellation, ensure that the rights and interests of merchants and users are not harmed, and improve the security of the coupon code cancellation process.
[0102] In one embodiment of the present application, the receiving a confirmation result based on the notification sending request feedback sent by the message conveying system includes:
[0103] Receiving a confirmation result based on the notification sending request feedback and the encrypted mobile phone number of the user terminal sent by the message transmission system;
[0104] Decrypting the encrypted mobile phone number to obtain the target mobile phone number;
[0105] The step of uploading the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network includes:
[0106] The confirmation result, the first coupon code information and the target mobile phone number are uploaded to the blockchain network so that the blockchain network performs the first cancellation of the coupon code to be cancelled.
[0107] In this embodiment, in addition to feeding back the confirmation result, the message transmission system also feeds back the encrypted mobile phone number of the user terminal to the coupon code service platform. Among them, obtaining the encrypted mobile phone number is a unique attribute of the super SIM card service and is bound to the user terminal.
[0108] When the voucher code business platform receives the encrypted mobile phone number, it needs to decrypt it to obtain the target mobile phone number. Then the target mobile phone number, the first voucher code information and the confirmation result are sent to the blockchain network for verification.
[0109] When decrypting the encrypted mobile phone number, if a symmetric encryption algorithm (such as AES, DES, etc.) is used to encrypt the mobile phone number, the decryption process will require the same key. The coupon code business platform will use the same algorithm and key as used for encryption to perform the reverse operation on the encrypted mobile phone number to restore the original target mobile phone number. If an asymmetric encryption algorithm (such as RSA, ECC, etc.) is used to encrypt the mobile phone number, the decryption process will need to use a different key pair (public key and private key) than that used for encryption. In this case, the super SIM card can use the public key for encryption, and the coupon code business platform uses the corresponding private key for decryption. Those skilled in the art can choose different encryption and decryption methods to encrypt and decrypt the mobile phone number of the user terminal, and this embodiment is not limited here.
[0110] In this embodiment, by encrypting the user's mobile phone number and decrypting it in the subsequent process, the solution effectively protects the user's privacy information and prevents the risk of sensitive data leakage during transmission. The confirmation result, coupon code information and decrypted mobile phone number are uploaded to the blockchain network, realizing the decentralized recording and verification of the cancellation process. The tamper-proof nature of the blockchain ensures the authenticity and credibility of the cancellation record. Any participant can review and verify the details of the cancellation, which improves the transparency and traceability of the cancellation process.
[0111] In one embodiment of the present application, the second cancellation of the to-be-cancelled coupon code by using the coupon code information includes:
[0112] The voucher code information is used to update the usage status of the voucher code to be cancelled to "not used".
[0113] In this embodiment, the coupon code business platform updates the coupon code data of the coupon code to be cancelled in the database, and updates its usage status to "used". By changing the status of the coupon code to be cancelled in the coupon code business platform to "used", the cancellation of the coupon code to be cancelled on the coupon code business platform is realized, so that the merchant can delegate the corresponding rights and interests to the first user, ensuring the security of the coupon code cancellation.
[0114] In an embodiment of the present application, the use of the confirmation result and the first voucher code information to cancel the voucher code to obtain the first cancellation result includes:
[0115] Using the first smart contract, the usage status of the to-be-redeemed coupon code corresponding to the first coupon code information is changed from an unused status to a used status;
[0116] By using the second smart contract, the confirmation result and the voucher code to be cancelled after the status modification are associated and stored to obtain the first cancellation result.
[0117] In this embodiment, the first smart contract can be used to cancel the on-chain voucher code, and the data record with the voucher code identifier as the key is updated on the blockchain, and the usage status is "used", and the used status status is agreed to be 1. It should be noted that the blockchain stores the voucher code identifiers of all issued voucher codes, and the voucher code identifier and the usage status are stored in the blockchain in the form of a key-value pair. The value of the used status is represented by 1, and the value of the unused status is represented by 0. When canceling the voucher code to be cancelled, it is only necessary to execute the corresponding smart contract, and update the usage status of the corresponding voucher code to be cancelled in the blockchain from the unused status to the used status, and the cancellation of the voucher code to be cancelled in the blockchain can be completed.
[0118] The second smart contract can be used to record the cancellation record as evidence. In addition to the above-mentioned confirmation result and the coupon code to be cancelled after the status is modified, the cancellation record also includes the coupon code identifier of the coupon code to be cancelled, the transaction number, the first task number, the target mobile phone number, the merchant identifier and the current timestamp. Among them, the transaction number is the number generated for the cancellation process after receiving the confirmation result sent by the coupon code business platform. After the above information is associated and stored, the first cancellation result is obtained.
[0119] In this embodiment, the cancellation of the coupon code to be cancelled is completed through the blockchain network. By utilizing the tamper-proof nature of the blockchain network, it is possible to ensure that the status of the coupon code to be cancelled after cancellation is accurately preserved, thereby preventing tampering and theft, and improving the security of the coupon code.
[0120] like Figure 2 As shown, the embodiment of the present application further provides a voucher code verification device 200, which is applied to a message transmission system. The voucher code verification device 200 includes:
[0121] The first sending module 201 is used to receive a notification sending request sent by the voucher code business platform, wherein the notification sending request is used by the voucher code business platform to request the message transmission system to send a mandatory notification instruction for confirming the cancellation of the voucher code to be cancelled to the user terminal;
[0122] A response module 202 is used to send the must-reach notification instruction to the user terminal in response to the notification sending request, wherein the must-reach notification instruction is used to request the first user to confirm the cancellation of the voucher code to be cancelled through the user terminal;
[0123] The second sending module 203 is used to send a confirmation result corresponding to the confirmation and cancellation instruction to the voucher code business platform upon receiving the confirmation and cancellation instruction sent by the user terminal based on the must-reach notification instruction. The voucher code business platform is used to cancel the voucher code to be cancelled based on the confirmation result.
[0124] Optionally, the response module 202 is specifically configured to:
[0125] The must-arrive notification instruction is sent to the super SIM card in the user terminal, and the must-arrive notification instruction is used to instruct the super SIM card to display the session information of the verification confirmation in the user terminal.
[0126] Optionally, the coupon code cancellation device 200 further includes:
[0127] A generating module, configured to generate a first task number upon receiving a notification issuing request sent by the coupon code platform;
[0128] An association module, used for associating the first task number with the voucher code to be cancelled;
[0129] The fifth sending module is used to send the associated first task number to the coupon code business platform, so that the coupon code business platform uses the first task number to cancel the coupon code to be cancelled.
[0130] It should be noted that the coupon code cancellation device 200 is a device corresponding to the coupon code cancellation method applied to the message transmission system. All implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.
[0131] like Figure 3 As shown, the embodiment of the present application further provides a voucher code verification device 300, which is applied to a voucher code business platform. The voucher code verification device 300 includes:
[0132] The third sending module 301 is used to send a notification request to the message transmission system when receiving a cancellation request for the voucher code to be cancelled, wherein the notification request is used to request the message transmission system to send a mandatory notification instruction for confirming the cancellation of the voucher code to be cancelled to the user terminal;
[0133] The first receiving module 302 is used to receive the confirmation result sent by the message transmission system based on the notification sending request feedback, and the confirmation result is the feedback from the user terminal to the message transmission system based on the must-reach notification instruction;
[0134] An uploading module 303 is used to upload the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network, and the blockchain network is used to perform the first cancellation of the coupon code to be cancelled;
[0135] The first cancellation module 304 is used to perform a second cancellation on the to-be-cancelled coupon code using the first coupon code information when receiving the first cancellation result of the blockchain network.
[0136] Optionally, the coupon code cancellation device 300 further includes:
[0137] A third receiving module, used for receiving a first task number sent by the message conveying system;
[0138] Optionally, the upload module 303 is specifically used for:
[0139] When the first task number and the second task number are the same, the confirmation result and the first voucher code information are uploaded to the blockchain network so that the blockchain network performs the first cancellation of the voucher code to be cancelled.
[0140] Optionally, the coupon code cancellation device 300 further includes:
[0141] A query module, used to query the first merchant, the second user and the validity period respectively associated with the coupon code to be cancelled in the coupon code database by using the coupon code identifier;
[0142] An execution module is used to execute the step of uploading the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network when the first merchant is the same as the second merchant, the second user is the same as the first user, and the coupon code to be cancelled is within the validity period, wherein the second merchant is the user who sends the cancellation request, and the first user is the user corresponding to the user terminal.
[0143] Optionally, the first receiving module 302 is specifically configured to:
[0144] Receiving a confirmation result based on the notification sending request feedback and the encrypted mobile phone number of the user terminal sent by the message transmission system;
[0145] Optionally, the upload module 303 includes:
[0146] A decryption submodule, used to decrypt the encrypted mobile phone number to obtain a target mobile phone number;
[0147] The upload submodule is used to upload the confirmation result, the first coupon code information and the target mobile phone number to the blockchain network, so that the blockchain network can perform the first cancellation of the coupon code to be cancelled.
[0148] Optionally, the first write-off module 304 is specifically configured to:
[0149] Using the first coupon code information, the usage status of the coupon code to be cancelled is updated to used.
[0150] It should be noted that the coupon code cancellation device 300 is a device corresponding to the coupon code cancellation method applied to the coupon code business platform. All implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.
[0151] like Figure 4 As shown, the embodiment of the present application also provides a voucher code verification device 400, which is applied to a blockchain network. The voucher code verification device 400 includes:
[0152] The second receiving module 401 is used to receive the confirmation result sent by the voucher code business platform and the first voucher code information of the voucher code to be cancelled, wherein the confirmation result is the cancellation confirmation result fed back by the user terminal to the message transmission system based on the must-reach notification instruction, and the must-reach notification instruction is the instruction sent by the message transmission system;
[0153] A second cancellation module 402 is used to cancel the coupon code to be cancelled by using the confirmation result and the first coupon code information to obtain a first cancellation result;
[0154] The fourth sending module 403 is used to send the first cancellation result to the coupon code business platform, so that the coupon code business platform performs a second cancellation on the coupon code to be cancelled based on the first cancellation result.
[0155] Optionally, the second write-off module 402 includes:
[0156] A modification submodule, used to modify the usage status of the to-be-redeemed coupon code corresponding to the first coupon code information from an unused status to a used status by using the first smart contract;
[0157] The storage submodule is used to use the second smart contract to associate and store the confirmation result and the voucher code to be cancelled after the status is modified to obtain the first cancellation result.
[0158] It should be noted that the coupon code cancellation device 400 is a device corresponding to the above-mentioned coupon code cancellation method applied to the blockchain network. All implementation methods in the above-mentioned method embodiment are applicable to the embodiment of the device and can achieve the same technical effect.
[0159] Figure 5 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application is shown.
[0160] The terminal device may include a processor 501 and a memory 502 storing computer program instructions.
[0161] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0162] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.
[0163] In certain embodiments, the memory 502 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0164] The processor 501 implements any one of the coupon code verification methods in the above embodiments by reading and executing the computer program instructions stored in the memory 502 .
[0165] In one example, the terminal device may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.
[0166] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0167] Bus 510 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0168] In addition, in combination with the coupon code verification method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the coupon code verification methods in the above embodiment is implemented.
[0169] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0170] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0171] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0172] Aspects of the present disclosure are described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable coupon code verification device to produce a machine so that these instructions executed by the processor of the computer or other programmable coupon code verification device enable the implementation of the functions / actions specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0173] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A voucher code verification method, characterized in that: Applied to a message delivery system, the method comprises: Receiving a notification request sent by the voucher code business platform, wherein the notification request is used by the voucher code business platform to request the message transmission system to send a mandatory notification instruction for confirmation of cancellation of the voucher code to be cancelled to the user terminal; In response to the notification sending request, the must-reach notification instruction is sent to the user terminal, wherein the must-reach notification instruction is used to request the first user to confirm the cancellation of the voucher code to be cancelled through the user terminal; Upon receiving a confirmation cancellation instruction sent by the user terminal based on the must-reach notification instruction, a confirmation result corresponding to the confirmation cancellation instruction is sent to the voucher code business platform, and the voucher code business platform is used to cancel the voucher code to be cancelled based on the confirmation result.
2. The voucher code verification method according to claim 1, characterized in that: The sending of a must-reach notification instruction to the user terminal includes: The must-arrive notification instruction is sent to the super SIM card in the user terminal, and the must-arrive notification instruction is used to instruct the super SIM card to display the session information of the verification confirmation in the user terminal.
3. The voucher code verification method according to claim 1, characterized in that: Before sending the must-arrive notification instruction to the user terminal in response to the notification delivery request, the method further includes: Upon receiving a notification request sent by the coupon code platform, generating a first task number; Associating the first task number with the voucher code to be redeemed; The associated first task number is sent to the coupon code business platform, so that the coupon code business platform uses the first task number to cancel the coupon code to be cancelled.
4. A voucher code verification method, characterized in that: Applied to the coupon code business platform, the method includes: In the case of receiving a cancellation request for the voucher code to be cancelled, sending a notification request to the message transmission system, wherein the notification request is used to request the message transmission system to send a mandatory notification instruction for confirming the cancellation of the voucher code to be cancelled to the user terminal; Receiving a confirmation result sent by the message transmission system based on the notification sending request feedback, wherein the confirmation result is the feedback from the user terminal to the message transmission system based on the must-deliver notification instruction; Upload the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network, and the blockchain network is used to perform the first cancellation of the coupon code to be cancelled; When the first cancellation result of the blockchain network is received, the coupon code to be cancelled is cancelled for a second time using the first coupon code information.
5. The voucher code verification method according to claim 4, characterized in that: The confirmation result includes a second task number, where the second task number is the resent first task number; After sending the notification request to the message delivery system and before receiving the confirmation result based on the feedback of the notification instruction sent by the message delivery system, the method further includes: receiving a first task number sent by the message conveying system; The step of uploading the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network includes: When the first task number and the second task number are the same, the confirmation result and the first voucher code information are uploaded to the blockchain network so that the blockchain network performs the first cancellation of the voucher code to be cancelled.
6. The voucher code verification method according to claim 4, characterized in that: The first coupon code information includes a coupon code identifier of the coupon code to be cancelled; After receiving the confirmation result based on the notification request feedback sent by the message transmission system, and before uploading the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network, the method includes: In the voucher code database, the voucher code identifier is used to query the first merchant, the second user and the validity period respectively associated with the voucher code to be cancelled; When the first merchant is the same as the second merchant, the second user is the same as the first user, and the coupon code to be cancelled is within the validity period, execute the step of uploading the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network, wherein the second merchant is the user who sends the cancellation request, and the first user is the user corresponding to the user terminal.
7. The voucher code verification method according to claim 4, characterized in that: The receiving a confirmation result sent by the message delivery system based on the notification sending request feedback includes: Receiving a confirmation result based on the notification sending request feedback and the encrypted mobile phone number of the user terminal sent by the message transmission system; The step of uploading the confirmation result and the pre-acquired first coupon code information of the coupon code to be cancelled to the blockchain network includes: Decrypting the encrypted mobile phone number to obtain the target mobile phone number; The confirmation result, the first coupon code information and the target mobile phone number are uploaded to the blockchain network so that the blockchain network performs the first cancellation of the coupon code to be cancelled.
8. The voucher code verification method according to claim 4, characterized in that: The using the first voucher code information to perform a second write-off on the voucher code to be written off includes: Using the first coupon code information, the usage status of the coupon code to be cancelled is updated to used.
9. A voucher code verification method, characterized in that: Applied to a blockchain network, the method comprises: Receive the confirmation result sent by the voucher code business platform and the first voucher code information of the voucher code to be cancelled, wherein the confirmation result is the cancellation confirmation result fed back by the user terminal to the message transmission system based on the must-reach notification instruction, and the must-reach notification instruction is the instruction sent by the message transmission system; Using the confirmation result and the first voucher code information, the voucher code to be cancelled is cancelled to obtain a first cancellation result; The first verification result is sent to the voucher code business platform, so that the voucher code business platform performs a second verification on the voucher code to be verified based on the first verification result.
10. The voucher code verification method according to claim 8, characterized in that: The using the confirmation result and the first voucher code information to cancel the voucher code to obtain a first cancellation result includes: Using the first smart contract, the usage status of the to-be-redeemed coupon code corresponding to the first coupon code information is changed from an unused status to a used status; By using the second smart contract, the confirmation result and the voucher code to be cancelled after the status modification are associated and stored to obtain the first cancellation result.