Electronic coupon processing method, device and equipment and computer storage medium
Through the 5G message center, the identity verification of the terminal device is completed and the coupon code is sent, which solves the problem in the existing technology of relying on software for the issuance and use of electronic coupons, and achieves efficient electronic coupon management and user experience improvement.
Patent Information
- Application Number
- CN202311382091.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2024-10-18
AI Technical Summary
The issuance and use of existing electronic coupons requires users to download application software, resulting in increased storage space on terminal devices, poor user experience, and low efficiency.
The identity verification of the terminal device is completed through the 5G message center, and after the verification is passed, a coupon code associated with the user is generated and sent directly to the terminal device. The user can receive and use the electronic coupon without downloading software, realizing a client-free electronic Voucher issuance and use.
It saves the storage space of the terminal device, improves the efficiency of users to receive and use electronic coupons, improves the user experience, and realizes the verification of electronic coupons without relying on software.
Smart Images

Figure CN118798969A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to computer technology, and more particularly to an electronic voucher processing method, device, equipment and computer storage medium. Background Art
[0002] With the development of Internet technology and mobile communication technology, especially the paperless alternative has brought great convenience to work and life, more and more merchants have chosen to issue and use electronic coupons.
[0003] Usually, the existing issuance and use of electronic coupons require users to download application software on terminal devices, register and log in to an account on the application software before they can receive and use the electronic coupons issued by merchants. That is, users are highly dependent on the application software when using electronic coupons, which not only takes up storage space on terminal devices, but also reduces the efficiency of receiving and using electronic coupons, resulting in a poor user experience. Summary of the invention
[0004] The embodiments of the present application provide an electronic voucher processing method, device, equipment and computer storage medium, which saves storage space of terminal devices, improves the efficiency of users receiving and using electronic vouchers, and enhances user experience.
[0005] In a first aspect, an embodiment of the present application provides an electronic voucher processing method, the method comprising:
[0006] Receiving a request for issuing a coupon code to the first terminal device;
[0007] In response to the coupon code issuance request, generating a coupon code associated with the electronic coupon of the first user;
[0008] Send an authentication instruction to the 5G message center, where the authentication instruction is used to instruct the 5G message center to generate a 5G authentication message based on the authentication instruction, and send the 5G authentication message to the first terminal device, where the 5G authentication message is used to enable the first terminal device to perform identity authentication based on the 5G message;
[0009] Sending a voucher code to the 5G message center, where the voucher code is used to send the voucher code to the first terminal device through the 5G message center when the identity authentication result is passed;
[0010] Receiving the electronic voucher information to be redeemed sent by the second terminal device, where the electronic voucher information to be redeemed is obtained by the second terminal device scanning the voucher code displayed by the first terminal device;
[0011] Among the electronic coupons associated with the coupon code, the electronic coupon corresponding to the electronic coupon information to be cancelled is cancelled.
[0012] In some embodiments, the electronic voucher acquisition request includes the number of target electronic vouchers;
[0013] Generating a voucher code associated with the electronic voucher of the first user, including:
[0014] Obtain the electronic voucher inventory quantity of the first user; the electronic voucher inventory quantity is the quantity of all electronic vouchers of the first user;
[0015] Generate a coupon code corresponding to the electronic coupon inventory quantity.
[0016] In some embodiments, the electronic voucher information to be redeemed includes the number of electronic vouchers to be redeemed;
[0017] In the electronic voucher associated with the voucher code, the electronic voucher corresponding to the electronic voucher information to be cancelled is cancelled, including:
[0018] According to the number of electronic vouchers to be written off, the electronic vouchers corresponding to the number of electronic vouchers to be written off are written off from the electronic vouchers associated with the voucher code;
[0019] Determine the remaining number of electronic coupons in the electronic coupon associated with the coupon code;
[0020] Based on the remaining quantity, the electronic voucher inventory quantity of the first user is updated.
[0021] In some embodiments, the method further comprises:
[0022] Receive a forwarding instruction sent by the first terminal device through the 5G message center, where the forwarding instruction includes electronic voucher information corresponding to the target electronic voucher and device information corresponding to the third terminal device, where the target electronic voucher is an electronic voucher forwarded by the first terminal device to the third terminal device;
[0023] Generate a target coupon code associated with a target electronic coupon based on the electronic coupon information and the device information;
[0024] Send the target coupon code to the 5G message center so that the target coupon code is forwarded to the third terminal device through the 5G message center.
[0025] In some embodiments, the device information includes a unique identifier of each of the at least one third terminal device, and the electronic voucher information includes the number of target electronic vouchers corresponding to each of the at least one third terminal device;
[0026] Generate a target coupon code associated with the target electronic coupon based on the electronic coupon information and the device information, including:
[0027] For each unique identifier in the at least one unique identifier, perform the following steps in order:
[0028] Based on the number of target electronic coupons corresponding to the unique identifier, updating the electronic coupon inventory number of the third terminal device corresponding to the unique identifier;
[0029] Generate a target coupon code based on the updated electronic coupon inventory quantity.
[0030] In a second aspect, the embodiment of the present application provides an application to a 5G message center, including:
[0031] Receive the authentication instruction sent by the server, and generate a 5G authentication message based on the authentication instruction;
[0032] Sending a 5G authentication message to the first terminal device;
[0033] Receive an identity authentication result sent by the first terminal device; the identity authentication result is obtained by the first terminal device performing identity authentication based on the 5G authentication message;
[0034] Receiving a coupon code sent by the server, where the coupon code is generated by the server when receiving a request to issue an electronic coupon to the first terminal device, and the coupon code is a coupon code associated with the electronic coupon of the first user;
[0035] When the identity authentication result is passed, the coupon code is sent to the first terminal device.
[0036] In some embodiments, the method further comprises:
[0037] Receive a forwarding instruction sent by the first terminal device, and send a forwarding instruction to the server; the forwarding instruction includes the electronic voucher information corresponding to the target electronic voucher and the device information corresponding to the third terminal device; the electronic voucher information and the device information are used to enable the server to generate a target voucher code associated with the target electronic voucher, and forward the target voucher code to the third terminal device.
[0038] In a third aspect, an embodiment of the present application provides an electronic voucher processing method, which is applied to a first terminal device, including:
[0039] Receive the 5G authentication message sent by the 5G message center;
[0040] Perform identity authentication based on 5G messages and obtain identity authentication results;
[0041] Send the identity authentication result to the server through the 5G message center;
[0042] If the identity authentication result is passed, receiving the voucher code sent by the server through the 5G message center; the voucher code is generated by the server in response to the electronic voucher issuance request for the first terminal device, and the voucher code is the voucher code associated with the electronic voucher of the first user;
[0043] The voucher code is displayed, and the voucher code is used for the second terminal device to scan the voucher code to obtain the electronic voucher information to be cancelled, and the electronic voucher information to be cancelled is sent to the server. The electronic voucher information to be cancelled is used for the server to cancel the electronic voucher corresponding to the electronic voucher information to be cancelled in the electronic vouchers associated with the voucher code.
[0044] In some embodiments, the method further comprises:
[0045] A forwarding instruction is sent to the server through the 5G message center, and the forwarding instruction includes the electronic voucher information corresponding to the target electronic voucher and the device information corresponding to the third terminal device. The electronic voucher information and the device information are used to enable the server to generate a target voucher code associated with the target electronic voucher according to the electronic voucher information and the device information, and forward the target voucher code to the third terminal device through the 5G message center.
[0046] In a fourth aspect, an embodiment of the present application provides an electronic voucher processing device, which is applied to a server, and includes:
[0047] A first receiving module, configured to receive a coupon code issuing request for a first terminal device;
[0048] A first generating module, configured to generate a coupon code associated with the electronic coupon of the first user in response to the coupon code issuing request;
[0049] A first sending module is used to send an authentication instruction to the 5G message center, where the authentication instruction is used to instruct the 5G message center to generate a 5G authentication message based on the authentication instruction, and send the 5G authentication message to the first terminal device, where the 5G authentication message is used to enable the first terminal device to perform identity authentication based on the 5G message;
[0050] The second sending module is used to send a voucher code to the 5G message center, and the voucher code is used to send the voucher code to the first terminal device through the 5G message center when the identity authentication result is passed;
[0051] A second receiving module is used to receive the electronic voucher information to be cancelled sent by the second terminal device, where the electronic voucher information to be cancelled is obtained by the second terminal device scanning the voucher code displayed by the first terminal device;
[0052] The cancellation module is used to cancel the electronic voucher corresponding to the electronic voucher information to be cancelled among the electronic vouchers associated with the voucher code.
[0053] In a fifth aspect, an embodiment of the present application provides an electronic voucher processing device, which is applied to a 5G message center, including:
[0054] A third receiving module is used to receive an authentication instruction sent by the server, and generate a 5G authentication message based on the authentication instruction;
[0055] A third sending module, used to send the 5G authentication message to the first terminal device;
[0056] A fourth receiving module is used to receive an identity authentication result sent by the first terminal device; the identity authentication result is obtained by the first terminal device performing identity authentication based on the 5G authentication message;
[0057] a fifth receiving module, configured to receive a coupon code sent by the server, the coupon code being generated by the server upon receiving a request for issuing an electronic coupon to the first terminal device, the coupon code being a coupon code associated with the electronic coupon of the first user;
[0058] The fourth sending module is used to send the voucher code to the first terminal device when the identity authentication result is passed.
[0059] In a sixth aspect, an embodiment of the present application provides an electronic voucher processing device, applied to a first terminal device, including:
[0060] A sixth receiving module, used to receive a 5G authentication message sent by a 5G message center;
[0061] An authentication module, used to perform identity authentication based on 5G messages and obtain an identity authentication result;
[0062] The fifth sending module is used to send the identity authentication result to the server through the 5G message center;
[0063] a seventh receiving module, configured to receive a voucher code sent by the server through the 5G message center when the identity authentication result is passed; the voucher code is generated by the server in response to the electronic voucher issuance request for the first terminal device, and the voucher code is a voucher code associated with the electronic voucher of the first user;
[0064] The display module is used to display the coupon code. The coupon code is used to enable the second terminal device to scan the coupon code to obtain the electronic coupon information to be cancelled, and the electronic coupon information to be cancelled is sent to the server. The electronic coupon information to be cancelled is used to enable the server to cancel the electronic coupon corresponding to the electronic coupon information to be cancelled in the electronic coupons associated with the coupon code.
[0065] In a seventh aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;
[0066] When the processor executes the computer program instructions, it implements the electronic voucher processing method as described in any one of the first aspects, or executes the electronic voucher processing method as described in any one of the second aspects, or executes the electronic voucher processing method as described in any one of the third aspects.
[0067] In the eighth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are executed by the processor, an electronic voucher processing method such as any one of the first aspect is implemented, or an electronic voucher processing method such as any one of the second aspect is executed, or an electronic voucher processing method such as any one of the third aspect is executed.
[0068] The electronic voucher processing method, apparatus, equipment and computer storage medium of the embodiments of the present application can complete the identity authentication of the first terminal device through the 5G message center after the server issues an instruction to issue the electronic voucher. When the first terminal device passes the identity authentication, the service-generated voucher code associated with the electronic voucher to be issued to the first terminal device is sent to the first terminal device through the 5G message center, thereby achieving the first terminal device being able to obtain and use the electronic voucher without downloading the application software, which not only saves the storage space of the terminal device, but also improves the efficiency of users in receiving and using electronic vouchers, thereby enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] 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.
[0070] Figure 1 A system architecture diagram of an embodiment of the electronic voucher processing method provided by the present application;
[0071] Figure 2 It is a flowchart of an electronic voucher processing method provided by an embodiment of the present application;
[0072] Figure 3 is a flowchart of an electronic voucher processing method provided by another embodiment of the present application;
[0073] Figure 4 is a flowchart of an electronic voucher processing method provided by another embodiment of the present application;
[0074] Figure 5 It is a flowchart of a multi-level and multi-node electronic voucher inventory management method proposed in an embodiment of the present application;
[0075] Figure 6 is a schematic diagram of the structure of an electronic voucher processing device provided by an embodiment of the present application;
[0076] Figure 7 is a structural schematic diagram of an electronic voucher processing device provided by another embodiment of the present application;
[0077] Figure 8 is a structural schematic diagram of an electronic voucher processing device provided by another embodiment of the present application;
[0078] Fig. 9 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0079] 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.
[0080] 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.
[0081] Before introducing the specific implementation of the present application, the technical terms used in describing the implementation of the present application are first introduced.
[0082] 5G message: With the development of 5G communication technology, traditional SMS services have been upgraded to rich media message services, namely 5G message services. 5G messages support a variety of media formats, including text, pictures, audio and video, etc. Related services are divided into two categories: one is the interactive messages between individual users, and the other is the interactive messages between industry customers and individual users. Currently, 5G messages are sent through the 5th Generation Message Center (5GMC).
[0083] For individual users, 5G messages provide point-to-point messaging and group chat services. In addition to text, message content can also support multiple forms such as pictures, audio, video, location, contacts, etc. Users can send and receive 5G messages from other mobile phone users without downloading the client or adding friends.
[0084] For industry customers, 5G messages provide enhanced messaging services between individuals and applications, realizing "messaging as a service". Users can enjoy a variety of 5G application services intuitively and conveniently in the message window.
[0085] 5G messages break the length limit of traditional SMS messages and integrate text, pictures, audio, video, and emoticons. They support online payment, online and offline messages, and can initiate group messages and group chats at any time without adding friends.
[0086] The 5G messaging service is universal, and 5G terminals will gradually support the 5G messaging service.
[0087] With the development of Internet technology and mobile communication technology, especially the paperless alternative has brought great convenience to work and life, more and more merchants have chosen to issue and use electronic coupons.
[0088] Usually, the existing issuance and use of electronic coupons require users to download application software on terminal devices, register and log in to an account on the application software before they can receive and use the electronic coupons issued by merchants. That is, users are highly dependent on the application software when using electronic coupons, which not only takes up storage space on terminal devices, but also reduces the efficiency of receiving and using electronic coupons, resulting in a poor user experience.
[0089] Based on the above problems, the present application proposes an electronic voucher processing method, device, equipment and computer storage medium, which can complete the identity authentication of the first terminal device through the 5G message center after the server issues an electronic voucher issuance instruction. When the first terminal device passes the identity authentication, the service-generated voucher code associated with the electronic voucher to be issued to the first terminal device is sent to the first terminal device through the 5G message center, thereby achieving the first terminal device can still obtain and use the electronic voucher without downloading the application software, which not only saves the storage space of the terminal device, but also improves the efficiency of users in receiving and using electronic vouchers, thereby enhancing the user experience.
[0090] Figure 1 1 is a system architecture diagram of an embodiment of the electronic voucher processing method provided by the present application. Figure 1 As shown, the system architecture of the electronic voucher processing method includes a server 110, a first terminal device 120 and a 5G message center 130, and the server 110 is communicatively connected with the first terminal device 120 through the 5G message center 130.
[0091] In order to solve the problems of the prior art, the embodiments of the present application provide an electronic voucher processing method, device, equipment and computer storage medium. The electronic voucher processing method provided by the embodiments of the present application is first introduced below.
[0092] Figure 2 FIG. 1 is a flow chart of an electronic voucher processing method provided by an embodiment of the present application. Figure 2 As shown, the electronic voucher processing system is based on three execution entities, namely the server, the 5G message center and the first terminal device, and the electronic voucher processing method includes the following steps: S201-S214.
[0093] S201: The server receives a request for issuing a coupon code to a first terminal device.
[0094] It can be understood that the coupon code is a coupon code associated with the electronic coupon owned by the first user corresponding to the first terminal device.
[0095] As an example, the request for issuing the coupon code to the first terminal device may be a request issued by the first user through the first terminal device, or a request issued by the manager of the electronic coupon through the corresponding terminal device or client.
[0096] S202: The server generates a coupon code associated with the electronic coupon of the first user in response to the coupon code issuance request.
[0097] As an example, after receiving the coupon code issuance request for the first terminal device, the server generates a coupon code associated with the electronic coupon of the first user according to the information in the coupon code issuance request.
[0098] S203: The server sends an authentication instruction to the 5G message center.
[0099] It should be noted that in the prior art, users are usually required to download a client on a terminal device, and only after completing registration and login operations on the client can they receive the electronic voucher, and the user's identity authentication is completed during the registration and login process of the client. In the embodiment of the present application, the identity authentication of the first terminal device is completed through the 5G message center, thereby avoiding the dependence on the software (i.e., the client) for receiving and using the electronic voucher.
[0100] It is understandable that 5G messages can be used only with a mobile phone that has 5G functions. It gets rid of the previous situation in which the use of electronic coupons relies on client software for authentication, operation, information exchange, etc. with the backend server. When the user receives the text message and opens the link, the authentication and data transmission are completed. At the same time, the 5G message dialogue robot chatbot conversation platform can use 5G messages to transmit data and user instructions back to the server. It realizes the de-clientization of electronic coupon issuance, collection and use.
[0101] S204: The 5G message center receives the authentication instruction sent by the server, and generates a 5G authentication message based on the authentication instruction.
[0102] It should be noted that before the server sends the coupon code to the terminal device through the 5G message center, the identity of the terminal device needs to be authenticated. The coupon code will only be issued when it is determined that the terminal device is the first terminal device to which the coupon code is to be issued.
[0103] In an embodiment of the present application, the authentication instruction may include a unique identifier of the first terminal device.
[0104] As an example, after the 5G message center receives the authentication instruction sent by the server, it generates a 5G authentication message based on the authentication instruction.
[0105] S205: The 5G message center sends the 5G authentication message to the first terminal device.
[0106] S206: The first terminal device performs identity authentication based on the 5G authentication message and obtains an identity authentication result.
[0107] As an example, after the 5G message center sends the 5G authentication message to the first terminal device, the first terminal device compares the unique identifier in the 5G authentication message with its own unique identifier. If the comparison results are consistent, it means that the first terminal device is the terminal device to which the server wants to issue the coupon code, and the identity authentication result is passed; if the comparison results are inconsistent, it means that the first terminal device is not the terminal device to which the server wants to issue the coupon code, and the identity authentication result is failed.
[0108] For example, the 5G message center can generate a 5G short message (i.e., the 5G authentication message proposed in the embodiment of the present application) through a 5G message template according to the content of the authentication instruction, and send the token token in the authorization parameter of the Hypertext Transfer Protocol (HTTP) message header to the first terminal device to complete the mobile phone identity authentication. The token includes the 5G short message that can be browsed by the corresponding authority and the unique session identifier contributionID. The first user opens the 5G authentication message through the first terminal device, verifies the consistency between the local number and the content of the 5G authentication message, generates a unique session identifier InReplycontributionID, and sends the unique session identifier InReplycontributionID to the Chatbot platform of the 5G message center.
[0109] S207: The first terminal device sends the identity authentication result to the 5G message center.
[0110] S208: The 5G message center sends the identity authentication result to the server.
[0111] S209: The server sends the coupon code to the 5G message center.
[0112] As an example, after obtaining the identity authentication result, the server can decide whether to send the coupon code to the 5G message center based on the identity authentication result, or it can send the coupon code directly to the 5G message center, and the 5G message center will determine whether to send the coupon code to the first terminal device based on the identity authentication result.
[0113] S210: When the identity authentication result is passed, the 5G message center sends the coupon code to the first terminal device.
[0114] As an example, if the identity authentication result is passed, it means that the first terminal device is the terminal device to which the server wants to send the coupon code, and the 5G message center sends the coupon code to the first terminal device.
[0115] S211: The first terminal device displays the coupon code.
[0116] S212: The second terminal device scans the voucher code displayed by the first terminal device to obtain the electronic voucher information to be redeemed.
[0117] As an example, after the first terminal device displays the coupon code, the second terminal device may scan the coupon code displayed by the first terminal device through a scanning device to obtain the electronic coupon information to be redeemed.
[0118] S213: The second terminal device sends the electronic voucher information to be redeemed to the server.
[0119] S214: The server cancels the electronic voucher corresponding to the electronic voucher information to be cancelled from the electronic vouchers associated with the voucher code.
[0120] As an example, the second terminal device may send the electronic voucher information to be cancelled to the server through the client, and the server cancels the electronic voucher corresponding to the electronic voucher information to be cancelled among the electronic vouchers associated with the voucher code.
[0121] The electronic voucher processing method provided in the embodiment of the present application is to complete the identity authentication of the first terminal device through the 5G message center after the server issues the electronic voucher issuance instruction. When the first terminal device passes the identity authentication, the service-generated voucher code associated with the electronic voucher to be issued to the first terminal device is sent to the first terminal device through the 5G message center, thereby enabling the first terminal device to obtain and use the electronic voucher without downloading the application software, which not only saves the storage space of the terminal device, but also improves the efficiency of users receiving and using electronic vouchers and enhances the user experience. In addition, the electronic voucher can be redeemed without relying on software, further improving the efficiency of users receiving and using electronic vouchers.
[0122] Figure 3FIG. 1 is a flow chart of an electronic voucher processing method provided by another embodiment of the present application. Figure 3 As shown, the electronic voucher processing system is based on at least three execution entities, namely the server, the 5G message center and the first terminal device, and the electronic voucher processing method includes the following steps: S301-S317.
[0123] S301: The server receives a request for issuing a coupon code to a first terminal device.
[0124] Step S301 in this embodiment is the same as step S201 in the embodiment of the present application. For the sake of brevity, it will not be described in detail here. For detailed information, please refer to the description in the embodiment of the present application.
[0125] S302: The server obtains the electronic voucher inventory quantity of the first user in response to the voucher code issuance request.
[0126] In the embodiment of the present application, the electronic voucher inventory quantity may be the quantity of all electronic vouchers of the first user.
[0127] It should be noted that the electronic voucher inventory quantity may be the quantity of all electronic vouchers owned by the first user stored in the database.
[0128] S303: The server generates a voucher code corresponding to the electronic voucher inventory quantity.
[0129] It should be noted that in order to avoid the problem of low efficiency caused by the traditional electronic voucher management method that only one electronic voucher can be processed at a time, the embodiment of the present application generates a voucher code to correspond to multiple electronic vouchers. The voucher code can only correspond to the electronic voucher inventory quantity, thereby realizing the simultaneous processing of multiple electronic vouchers through one voucher code.
[0130] It is understandable that the electronic voucher inventory quantity may be an integer greater than or equal to 0, and a voucher code corresponding to the electronic voucher inventory quantity may be generated when the electronic voucher inventory quantity is greater than 0.
[0131] In the embodiment of the present application, after receiving the request to send the coupon code, the server searches for the electronic coupon inventory quantity corresponding to the first terminal device and generates a coupon code corresponding to the electronic coupon inventory quantity.
[0132] S304: The server sends an authentication instruction to the 5G message center.
[0133] S305: The 5G message center receives the authentication instruction sent by the server, and generates a 5G authentication message based on the authentication instruction.
[0134] S306: The 5G message center sends the 5G authentication message to the first terminal device.
[0135] S307: The first terminal device performs identity authentication based on the 5G authentication message and obtains an identity authentication result.
[0136] S308: The first terminal device sends the identity authentication result to the 5G message center.
[0137] S309: The 5G message center sends the identity authentication result to the server.
[0138] S310: The server sends the coupon code to the 5G message center.
[0139] S311: When the identity authentication result is passed, the 5G message center sends the coupon code to the first terminal device.
[0140] S312: The first terminal device displays the coupon code.
[0141] S313: The second terminal device scans the coupon code displayed by the first terminal device to obtain the electronic coupon information to be redeemed.
[0142] S314: The second terminal device sends the electronic voucher information to be redeemed to the server.
[0143] Steps S304-S314 in this embodiment are the same as steps S203-S213 in the embodiment of the present application. For the sake of brevity, they are not described in detail here. For detailed information, please refer to the description in the embodiment of the present application.
[0144] S315: The server cancels the electronic coupons corresponding to the number of electronic coupons to be cancelled from the electronic coupons associated with the coupon code according to the number of electronic coupons to be cancelled.
[0145] It can be understood that since one coupon code can correspond to multiple electronic coupons, after the second terminal device scans the coupon code displayed by the first terminal device, the number of electronic coupons that need to be cancelled, that is, the number of electronic coupons to be cancelled, can be set through the client corresponding to the second terminal device, and the scanned electronic coupon information and the number of electronic coupons to be cancelled can be sent to the server.
[0146] As an example, the electronic voucher information to be cancelled may be the electronic voucher information to be cancelled in the voucher code. The server cancels the electronic vouchers corresponding to the number of electronic vouchers to be cancelled from the electronic vouchers associated with the voucher code according to the number of electronic vouchers to be cancelled.
[0147] As another example, when the server receives the sum of the numbers of electronic vouchers to be cancelled, the number of electronic vouchers to be cancelled can also be compared with the number of electronic vouchers in stock for the first user. When the number of electronic vouchers to be cancelled is less than or equal to the number of electronic vouchers in stock, the number of electronic vouchers corresponding to the number of electronic vouchers to be cancelled is cancelled from the electronic vouchers associated with the voucher code.
[0148] S316: The server determines the remaining number of electronic coupons in the electronic coupon associated with the coupon code.
[0149] S317: The server updates the electronic voucher inventory quantity of the first user based on the remaining quantity.
[0150] As an example, after the server completes the redemption of the electronic voucher, it determines the remaining number of electronic vouchers in the electronic voucher associated with the voucher code, and updates the electronic voucher inventory quantity of the first user based on the remaining number.
[0151] In the above-mentioned electronic voucher processing method provided in the embodiment of the present application, the server side responds to the request for issuing the voucher code, obtains the electronic voucher inventory quantity of the first user, and generates a voucher code corresponding to the electronic voucher inventory quantity, thereby avoiding the problem of only being able to process one electronic voucher at a time and improving the processing efficiency of electronic vouchers.
[0152] Figure 4 FIG. 1 is a flow chart of an electronic voucher processing method provided by another embodiment of the present application. Figure 4 As shown, the electronic voucher processing system is based on at least three execution entities, namely the server, the 5G message center and the first terminal device, and the electronic voucher processing method includes the following steps: S401-S419.
[0153] S401: The server receives a request for issuing a coupon code to a first terminal device.
[0154] S402: The server generates a coupon code associated with the electronic coupon of the first user in response to the coupon code issuance request.
[0155] S403: The server sends an authentication instruction to the 5G message center.
[0156] S404: The 5G message center receives the authentication instruction sent by the server, and generates a 5G authentication message based on the authentication instruction.
[0157] S405: The 5G message center sends the 5G authentication message to the first terminal device.
[0158] S406: The first terminal device performs identity authentication based on the 5G authentication message and obtains an identity authentication result.
[0159] S407: The first terminal device sends the identity authentication result to the 5G message center.
[0160] S408: The 5G message center sends the identity authentication result to the server.
[0161] S409: The server sends the coupon code to the 5G message center.
[0162] S410: When the identity authentication result is passed, the 5G message center sends the coupon code to the first terminal device.
[0163] S411: The first terminal device displays the coupon code.
[0164] S412: The second terminal device scans the voucher code displayed by the first terminal device to obtain the electronic voucher information to be redeemed.
[0165] S413: The second terminal device sends the electronic voucher information to be redeemed to the server.
[0166] S414: The server cancels the electronic voucher corresponding to the electronic voucher information to be cancelled from the electronic vouchers associated with the voucher code.
[0167] Steps S401-S414 in this embodiment are the same as steps S201-S214 in the embodiment of the present application. For the sake of brevity, they are not described in detail here. For detailed information, please refer to the description in the embodiment of the present application.
[0168] S415: The first terminal device sends a forwarding instruction to the 5G message center.
[0169] In the embodiment of the present application, the forwarding instruction includes the electronic voucher information corresponding to the target electronic voucher and the device information corresponding to the third terminal device.
[0170] It is understandable that a user can send his / her electronic voucher to other users via the first terminal device.
[0171] As an example, the user can set the number of electronic coupons to be forwarded and the device information corresponding to the third terminal devices of other users to be forwarded through the first terminal device. Different numbers of electronic coupons can be forwarded to multiple other users at the same time.
[0172] S416: The 5G message center sends a forwarding instruction to the server.
[0173] As an example, the first terminal device sends a forwarding instruction to the 5G message center, and the 5G message center sends a forwarding instruction to the server.
[0174] S417: The server generates a target coupon code associated with the target electronic coupon based on the electronic coupon information and the device information.
[0175] In some embodiments of the present application, the device information includes a unique identifier of at least one third terminal device, and the electronic voucher information includes the number of target electronic vouchers corresponding to at least one third terminal device. S417 may include the following steps:
[0176] For each unique identifier in the at least one unique identifier, perform the following steps in order:
[0177] Based on the number of target electronic coupons corresponding to the unique identifier, updating the electronic coupon inventory number of the third terminal device corresponding to the unique identifier;
[0178] Generate a target coupon code based on the updated electronic coupon inventory quantity.
[0179] As an example, the server can update the electronic voucher inventory quantity of the third terminal device corresponding to the unique identifier according to the number of target electronic vouchers corresponding to the unique identifier, and generate a target voucher code based on the updated electronic voucher inventory quantity, thereby realizing the forwarding of multiple electronic vouchers at one time, increasing the forwarding quantity of electronic vouchers, and further improving the user experience.
[0180] As another example, after receiving the forwarding instruction, the server can compare the total number of all electronic coupons to be forwarded with the electronic coupon inventory quantity corresponding to the first user, and generate a target coupon code if the total number of all electronic coupons to be forwarded is less than or equal to the electronic coupon inventory quantity corresponding to the first user.
[0181] S418: The server sends the target coupon code to the 5G message center.
[0182] S419: The 5G message center forwards the target coupon code to the third terminal device.
[0183] As an example, the target coupon code is sent to the 5G message center, and the 5G message center forwards the target coupon code to the third terminal device, thereby completing the forwarding of the electronic coupon.
[0184] As another example, after the 5G message center forwards the target coupon code to the third terminal device, the server may send the forwarding result obtained by forwarding to the first terminal device through the 5G message center to notify the first user of the forwarding result.
[0185] It should be noted that the commonly used electronic voucher management method is forwarding and consumption, which realizes dynamic management, updating and searching through index inheritance relationship. It is suitable for scenarios where consumption vouchers are written off and forwarded for writing off and updating the status of electronic vouchers, and a unique ID needs to be generated for each electronic voucher. There is no concept of node inventory. However, the commonly used electronic voucher management mode for multi-level and multi-node inventory management of the same electronic voucher is not applicable. For example, M electronic vouchers are forwarded by administrator A to N users B1, B2, ..., BN, with at least one electronic voucher to each user. User B1 can continue to forward the corresponding number of electronic vouchers to other users until a certain user writes off the electronic voucher. The traditional electronic voucher management method is no longer applicable to this multi-level and multi-node inventory management mode.
[0186] In some embodiments of the present application, a non-indexed method is used to construct an electronic voucher batch library, an electronic voucher cancellation library, an electronic voucher forwarding record library, an administrator electronic voucher library, and a user electronic voucher library. The specific main fields and library tables are described as follows:
[0187] Table 1 Electronic batch voucher library batchEVoucher
[0188]
[0189] Table 2 Manager Electronic Voucher Library managerEVoucher
[0190]
[0191]
[0192] Table 3 User electronic voucher library userEVoucher
[0193]
[0194] Table 4 Electronic voucher cancellation database cancellationEVoucher
[0195]
[0196] Table 5 Electronic voucher forward record library forwardRecordEVoucher
[0197] Field Name Notes forwardRecordEVID Forwarding record ID (primary key) userEVID Forwarder's e-voucher ID acceptEVID Recipient user e-voucher ID forwardUserTel Forwarder's mobile phone number acceptUserTel Receiver's mobile phone number forwardNumber Number of forwarded copies forwardCreateTime Forwarding time
[0198] Below is a combination of the above Tables 1 to 5 and Figure 5 Describe the multi-level and multi-node electronic voucher inventory management method:
[0199] (501) Issue a specified number of electronic vouchers to the administrator according to the electronic voucher batch: Issue a specified number of electronic vouchers to the administrator according to the batchEVID (electronic voucher batch ID) in the specified batch electronic voucher library to generate a unique managerEVID (administrator electronic voucher ID). Issue according to batchEVID (electronic voucher batch ID) to complete the management and statistics of this batch of consumption vouchers. When using electronic vouchers, users need to verify the type, restriction conditions, validity period and other information of the current batch of electronic vouchers.
[0200] (502) Obtain the total amount currently issued based on the electronic voucher batch statistics: Search and issue the managerEVID (administrator electronic voucher ID) of the specified batch of consumption vouchers in the administrator electronic voucher library based on batchEVID (electronic voucher batch ID), and obtain the total number of consumption vouchers issued, the total number of allocations, and the usage of the corresponding batch in the administrator library.
[0201] (503) Allocate and issue, and recover a specified number of electronic vouchers to users based on the management electronic voucher ID: The administrator allocates the electronic vouchers to the user electronic voucher library based on the current electronic voucher managerEVTotal (total number of administrator electronic vouchers), managerEVAssignedNumber (number of administrator electronic vouchers issued), managerEVUsedNumber (number of administrator electronic vouchers used), managerEVRecoverNumber (number of administrator electronic vouchers recovered), and managerEVDestroyNumber (number of administrator electronic vouchers destroyed) to generate userEVID (user electronic voucher ID), and userEVID is associated with managerEVID (administrator electronic voucher ID).
[0202] (504) The user can forward his own electronic voucher in the user's electronic voucher library, and forward the stored electronic voucher.
[0203] (505) Complete the verification and confirmation based on the user's electronic voucher ID, the electronic voucher status of the program manager, the status of the batch electronic voucher, the number of user electronic vouchers, etc.: the user normally uses the verified consumption voucher and deposits it into the electronic voucher verification library, and the deposited status is normal use. The administrator can search for all the parent and child user consumption vouchers userEVID assigned by him according to managerEVID, and then recycle, destroy and deposit the corresponding user consumption vouchers into the electronic voucher verification library according to userEVID. For the verification behavior, the verification quantity, verification method and verification means are recorded.
[0204] (506) The forwarding quantity and the cancellation quantity are jointly queried according to the user's electronic voucher ID to obtain the remaining quantity: When forwarding or cancellation occurs, the electronic voucher forwarding record library and the electronic voucher cancellation library are queried according to the userEVID, and the forwardNumber (the number of forwarded vouchers) and cancellationEVNumber (the number of electronic vouchers cancelled) are counted. The userEVRemainNumber (the number of electronic vouchers remaining for the user) is refreshed according to the user's electronic voucher library userEVTotal (the total number of electronic vouchers initially owned by the user).
[0205] (507) The user electronic voucher library and the electronic voucher cancellation library jointly query the usage of the administrator electronic voucher: when a cancellation occurs, the managerEVID (administrator electronic voucher ID) in the administrator electronic voucher library is searched according to the userEVID (user electronic voucher ID), and then all userEVIDs in the user electronic voucher library are searched according to the managerEVID, and all cancellation data are searched according to these userEVIDs to obtain the collection of cancellationEVNumber (number of cancelled electronic vouchers) of all cancellationEVType (methods of cancelling electronic vouchers (for example, 0 for normal use, 1 for administrator destruction, and 2 for administrator recycling)), and then the managerEVAssignedNumber (number of administrator electronic vouchers issued), managerEVUsedNumber (number of administrator electronic vouchers used), managerEVRecoverNumber (number of administrator electronic vouchers recovered), and managerEVDestroyNumber (number of administrator electronic vouchers destroyed) are calculated and refreshed.
[0206] It should be noted that in the embodiment of the present application, by constructing five libraries, namely, an electronic voucher batch library, an administrator electronic voucher library, a user electronic voucher library, a forwarding record library, and an electronic voucher cancellation library, the needs for fast and accurate search and management of multi-level and multi-node electronic voucher inventories are met. There is no need for management and query through indexes and inheritance relationships, and the problem of locked inventory generated during the cancellation and forwarding process is avoided.
[0207] The electronic voucher processing method provided in the embodiment of the present application sends a forwarding instruction to the 5G message center through the first terminal device, and the 5G message center sends a forwarding instruction to the server, and the server generates a target voucher code associated with the target electronic voucher according to the electronic voucher information and the device information. The server sends the target voucher code to the 5G message center, and the 5G message center forwards the target voucher code to the third terminal device, thereby realizing the forwarding of electronic vouchers without relying on software, further improving the efficiency of users receiving and using electronic vouchers, and improving user experience.
[0208] Based on the electronic voucher processing method provided in the above embodiment, combined with the attached Figure 6 The specific implementation of the electronic voucher processing device provided in the embodiment of the present application is introduced.
[0209] See also Figure 6 , is a schematic diagram of the structure of an electronic voucher processing device provided by an embodiment of the present application, which can be applied to a server. The electronic voucher processing device 600 includes:
[0210] The first receiving module 601 is used to receive a coupon code issuance request for the first terminal device;
[0211] A first generating module 602, configured to generate a coupon code associated with the electronic coupon of the first user in response to the coupon code issuing request;
[0212] A first sending module 603 is used to send an authentication instruction to the 5G message center, where the authentication instruction is used to instruct the 5G message center to generate a 5G authentication message based on the authentication instruction, and send the 5G authentication message to the first terminal device, where the 5G authentication message is used to enable the first terminal device to perform identity authentication based on the 5G message;
[0213] The second sending module 604 is used to send the coupon code to the 5G message center, and the coupon code is used to send the coupon code to the first terminal device through the 5G message center when the identity authentication result is passed;
[0214] The second receiving module 605 is used to receive the electronic voucher information to be cancelled sent by the second terminal device, where the electronic voucher information to be cancelled is obtained by the second terminal device scanning the voucher code displayed by the first terminal device;
[0215] The cancellation module 606 is used to cancel the electronic voucher corresponding to the electronic voucher information to be cancelled among the electronic vouchers associated with the voucher code.
[0216] The electronic voucher processing device provided in the embodiment of the present application completes the identity authentication of the first terminal device through the 5G message center after the server issues the electronic voucher issuance instruction. When the first terminal device passes the identity authentication, the service-generated voucher code associated with the electronic voucher to be issued to the first terminal device is sent to the first terminal device through the 5G message center, thereby enabling the first terminal device to obtain and use the electronic voucher without downloading the application software, which not only saves the storage space of the terminal device, but also improves the efficiency of users in receiving and using electronic vouchers and enhances the user experience.
[0217] As an implementation of the present application, the electronic voucher acquisition request includes the number of target electronic vouchers, and the first generation module 602 may include:
[0218] The first generating submodule, used for generating a coupon code associated with the electronic coupon of the first user, comprises:
[0219] An acquisition submodule, used to acquire the electronic voucher inventory quantity of the first user; the electronic voucher inventory quantity is the quantity of all electronic vouchers of the first user;
[0220] The second generation submodule is used to generate a coupon code corresponding to the electronic coupon inventory quantity.
[0221] As an implementation of the present application, the to-be-redeemed electronic voucher information includes the number of to-be-redeemed electronic vouchers, and the redemption module 606 may include:
[0222] A cancellation submodule, configured to cancel the electronic vouchers corresponding to the number of electronic vouchers to be cancelled from the electronic vouchers associated with the voucher code according to the number of electronic vouchers to be cancelled;
[0223] A determination submodule, used to determine the remaining number of electronic coupons in the electronic coupon associated with the coupon code;
[0224] An updating submodule is used to update the electronic voucher inventory quantity of the first user based on the remaining quantity.
[0225] As an implementation of the present application, the above device may further include:
[0226] an eighth receiving module, configured to receive a forwarding instruction sent by the first terminal device through the 5G message center, wherein the forwarding instruction includes electronic voucher information corresponding to a target electronic voucher and device information corresponding to a third terminal device, and the target electronic voucher is an electronic voucher forwarded by the first terminal device to the third terminal device;
[0227] A second generating module, configured to generate a target coupon code associated with the target electronic coupon according to the electronic coupon information and the device information;
[0228] The sixth sending module is used to send the target coupon code to the 5G message center, so as to forward the target coupon code to the third terminal device through the 5G message center.
[0229] As an implementation of the present application, the device information includes a unique identifier of at least one third terminal device, and the electronic voucher information includes the number of target electronic vouchers corresponding to each of the at least one third terminal device. The above-mentioned apparatus may also include:
[0230] The execution module is used to execute the following steps in sequence for each unique identifier of the at least one unique identifier:
[0231] An updating module, configured to update the electronic voucher inventory quantity of the third terminal device corresponding to the unique identifier based on the quantity of the target electronic voucher corresponding to the unique identifier;
[0232] The third generating module is used to generate a target coupon code based on the updated electronic coupon inventory quantity.
[0233] Based on the electronic voucher processing method provided in the above embodiment, combined with the attached Figure 7 The specific implementation of the electronic voucher processing device provided in the embodiment of the present application is introduced.
[0234] See also Figure 7 , is a structural diagram of an electronic voucher processing device provided by another embodiment of the present application, which can be applied to a 5G message center. The electronic voucher processing device 700 includes:
[0235] The third receiving module 701 is used to receive the authentication instruction sent by the server, and generate a 5G authentication message based on the authentication instruction;
[0236] The third sending module 702 is used to send the 5G authentication message to the first terminal device;
[0237] The fourth receiving module 703 is used to receive the identity authentication result sent by the first terminal device; the identity authentication result is obtained by the first terminal device performing identity authentication based on the 5G authentication message;
[0238] A fifth receiving module 704 is configured to receive a coupon code sent by the server, wherein the coupon code is generated by the server when receiving an electronic coupon issuance request for the first terminal device, and the coupon code is a coupon code associated with the electronic coupon of the first user;
[0239] The fourth sending module 705 is used to send the coupon code to the first terminal device when the identity authentication result is passed.
[0240] As an implementation of the present application, the above device may further include:
[0241] A ninth receiving module is used to receive a forwarding instruction sent by the first terminal device, and send the forwarding instruction to the server; the forwarding instruction includes the electronic voucher information corresponding to the target electronic voucher and the device information corresponding to the third terminal device; the electronic voucher information and the device information are used to enable the server to generate a target voucher code associated with the target electronic voucher, and forward the target voucher code to the third terminal device.
[0242] The electronic voucher processing device provided in the embodiment of the present application completes the identity authentication of the first terminal device through the 5G message center after the server issues the electronic voucher issuance instruction. When the first terminal device passes the identity authentication, the service-generated voucher code associated with the electronic voucher to be issued to the first terminal device is sent to the first terminal device through the 5G message center, thereby enabling the first terminal device to obtain and use the electronic voucher without downloading the application software, which not only saves the storage space of the terminal device, but also improves the efficiency of users in receiving and using electronic vouchers and enhances the user experience.
[0243] Based on the electronic voucher processing method provided in the above embodiment, combined with the attached Figure 8The specific implementation of the electronic voucher processing device provided in the embodiment of the present application is introduced.
[0244] See also Figure 8 , is a structural diagram of an electronic voucher processing device provided by another embodiment of the present application, which can be applied to a first terminal device. The electronic voucher processing device 800 includes:
[0245] The sixth receiving module 801 is used to receive a 5G authentication message sent by the 5G message center;
[0246] An authentication module 802 is used to perform identity authentication based on the 5G message and obtain an identity authentication result;
[0247] The fifth sending module 803 is used to send the identity authentication result to the server through the 5G message center;
[0248] The seventh receiving module 804 is used to receive a coupon code sent by the server through the 5G message center when the identity authentication result is passed; the coupon code is generated by the server in response to the electronic coupon issuance request for the first terminal device, and the coupon code is a coupon code associated with the electronic coupon of the first user;
[0249] Display module 805 is used to display the coupon code, and the coupon code is used to enable the second terminal device to scan the coupon code to obtain the electronic coupon information to be cancelled, and send the electronic coupon information to be cancelled to the server. The electronic coupon information to be cancelled is used to enable the server to cancel the electronic coupon corresponding to the electronic coupon information to be cancelled in the electronic coupons associated with the coupon code.
[0250] As an implementation of the present application, the above device may further include:
[0251] The seventh sending module is used to send a forwarding instruction to the server through the 5G message center, and the forwarding instruction includes the electronic voucher information corresponding to the target electronic voucher and the device information corresponding to the third terminal device. The electronic voucher information and the device information are used to enable the server to generate a target voucher code associated with the target electronic voucher according to the electronic voucher information and the device information, and forward the target voucher code to the third terminal device through the 5G message center.
[0252] The above-mentioned electronic voucher processing device provided in the embodiment of the present application completes the identity authentication of the first terminal device through the 5G message center after the server issues an instruction to issue the electronic voucher. When the first terminal device passes the identity authentication, the service-generated voucher code associated with the electronic voucher to be issued to the first terminal device is sent to the first terminal device through the 5G message center, thereby achieving the first terminal device being able to obtain and use the electronic voucher without downloading the application software, which not only saves the storage space of the terminal device, but also improves the efficiency of users in receiving and using electronic vouchers, thereby enhancing the user experience.
[0253] Fig. 9 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application.
[0254] The electronic device 900 may include a processor 901 and a memory 902 storing computer program instructions.
[0255] Specifically, the processor 901 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.
[0256] The memory 902 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 902 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 902 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 902 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 902 is a non-volatile solid-state memory. The memory 902 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Therefore, typically, the memory 902 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 may perform the operations described in any of the electronic voucher processing methods in the above-mentioned embodiments.
[0257] The processor 901 implements any one of the electronic voucher processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 902 .
[0258] In one example, the electronic device 900 may further include a communication interface 903 and a bus 910. Fig. 9 As shown, the processor 901, the memory 902, and the communication interface 903 are connected via a bus 910 and communicate with each other.
[0259] The communication interface 903 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0260] Bus 910 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 910 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.
[0261] In addition, in combination with the electronic voucher processing 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 a processor, any electronic voucher processing method in the above embodiment is implemented.
[0262] 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.
[0263] The functional blocks shown in the above-described 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.
[0264] 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.
[0265] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the 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 square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0266] The above is only a specific implementation 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. An electronic voucher processing method, It is characterized in that Applied to the server, including: Receiving a request for issuing a coupon code to the first terminal device; In response to the coupon code issuance request, generating a coupon code associated with the electronic coupon of the first user; Sending an authentication instruction to the 5G message center, where the authentication instruction is used to instruct the 5G message center to generate a 5G authentication message based on the authentication instruction, and sending the 5G authentication message to the first terminal device, where the 5G authentication message is used to enable the first terminal device to perform identity authentication based on the 5G message; Sending the voucher code to the 5G message center, where the voucher code is used to send the voucher code to the first terminal device through the 5G message center when the identity authentication result is passed; Receiving the electronic voucher information to be redeemed sent by the second terminal device, wherein the electronic voucher information to be redeemed is obtained by the second terminal device scanning the voucher code displayed by the first terminal device; Among the electronic coupons associated with the coupon code, the electronic coupon corresponding to the electronic coupon information to be cancelled is cancelled.
2. The electronic voucher processing method according to claim 1, It is characterized in that The electronic voucher acquisition request includes the quantity of target electronic vouchers; The generating a voucher code associated with the electronic voucher of the first user includes: Acquire the electronic voucher inventory quantity of the first user; the electronic voucher inventory quantity is the quantity of all electronic vouchers of the first user; A coupon code corresponding to the electronic coupon inventory quantity is generated.
3. The electronic voucher processing method according to claim 1, It is characterized in that The electronic voucher information to be cancelled includes the number of electronic vouchers to be cancelled; The step of cancelling the electronic voucher corresponding to the electronic voucher information to be canceled in the electronic voucher associated with the voucher code includes: According to the number of electronic vouchers to be written off, writing off the number of electronic vouchers corresponding to the number of electronic vouchers to be written off from the electronic vouchers associated with the voucher code; Determine the remaining number of electronic coupons in the electronic coupon associated with the coupon code; Based on the remaining quantity, the electronic voucher inventory quantity of the first user is updated.
4. The electronic voucher processing method according to claim 1, It is characterized in that The method further comprises: Receive a forwarding instruction sent by the first terminal device through the 5G message center, where the forwarding instruction includes electronic voucher information corresponding to a target electronic voucher and device information corresponding to a third terminal device, where the target electronic voucher is an electronic voucher forwarded by the first terminal device to the third terminal device; Generate a target coupon code associated with the target electronic coupon according to the electronic coupon information and the device information; The target coupon code is sent to the 5G message center so as to forward the target coupon code to the third terminal device through the 5G message center.
5. The electronic voucher processing method according to claim 4, It is characterized in that The device information includes a unique identifier of at least one third terminal device, and the electronic voucher information includes the number of target electronic vouchers corresponding to each of the at least one third terminal device; The step of generating a target coupon code associated with the target electronic coupon according to the electronic coupon information and the device information includes: For each unique identifier in the at least one unique identifier, perform the following steps in order: Based on the number of target electronic coupons corresponding to the unique identifier, updating the electronic coupon inventory number of the third terminal device corresponding to the unique identifier; Based on the updated electronic voucher inventory quantity, a target voucher code is generated.
6. An electronic voucher processing method, It is characterized in that Applied to 5G message center, including: Receive an authentication instruction sent by the server, and generate a 5G authentication message based on the authentication instruction; Sending the 5G authentication message to the first terminal device; Receive an identity authentication result sent by the first terminal device; the identity authentication result is obtained by the first terminal device performing identity authentication based on the 5G authentication message; receiving a voucher code sent by the server, wherein the voucher code is generated by the server when receiving an electronic voucher issuance request for the first terminal device, and the voucher code is a voucher code associated with the electronic voucher of the first user; When the identity authentication result is passed, the coupon code is sent to the first terminal device.
7. The electronic voucher processing method according to claim 6, It is characterized in that The method further comprises: Receive a forwarding instruction sent by the first terminal device, and send the forwarding instruction to the server; the forwarding instruction includes electronic voucher information corresponding to the target electronic voucher and device information corresponding to the third terminal device; the electronic voucher information and the device information are used to enable the server to generate a target voucher code associated with the target electronic voucher, and forward the target voucher code to the third terminal device.
8. An electronic voucher processing method, It is characterized in that Applied to the first terminal device, including: Receive the 5G authentication message sent by the 5G message center; Perform identity authentication based on the 5G message to obtain an identity authentication result; Send the identity authentication result to the server through the 5G message center; When the identity authentication result is passed, receiving a voucher code sent by the server through the 5G message center; the voucher code is generated by the server in response to the electronic voucher issuance request for the first terminal device, and the voucher code is a voucher code associated with the electronic voucher of the first user; The voucher code is displayed, and the voucher code is used to enable the second terminal device to scan the voucher code to obtain the electronic voucher information to be cancelled, and the electronic voucher information to be cancelled is sent to the server. The electronic voucher information to be cancelled is used to enable the server to cancel the electronic voucher corresponding to the electronic voucher information to be cancelled among the electronic vouchers associated with the voucher code.
9. The electronic voucher processing method according to claim 8, It is characterized in that The method further comprises: A forwarding instruction is sent to the server through the 5G message center, and the forwarding instruction includes electronic voucher information corresponding to the target electronic voucher and device information corresponding to the third terminal device. The electronic voucher information and the device information are used to enable the server to generate a target voucher code associated with the target electronic voucher according to the electronic voucher information and the device information, and forward the target voucher code to the third terminal device through the 5G message center.
10. An electronic voucher processing device, It is characterized in that Applied to the server, including: A first receiving module, configured to receive a request for issuing a coupon code to a first terminal device; A first generating module, configured to generate a coupon code associated with the electronic coupon of the first user in response to the coupon code issuing request; A first sending module, configured to send an authentication instruction to a 5G message center, wherein the authentication instruction is used to instruct the 5G message center to generate a 5G authentication message based on the authentication instruction, and send the 5G authentication message to a first terminal device, wherein the 5G authentication message is used to enable the first terminal device to perform identity authentication based on the 5G message; A second sending module is used to send the coupon code to the 5G message center, and the coupon code is used to send the coupon code to the first terminal device through the 5G message center when the identity authentication result is passed; A second receiving module is used to receive the electronic voucher information to be cancelled sent by the second terminal device, wherein the electronic voucher information to be cancelled is obtained by the second terminal device scanning the voucher code displayed by the first terminal device; The cancellation module is used to cancel the electronic voucher corresponding to the electronic voucher information to be cancelled among the electronic vouchers associated with the voucher code.
11. An electronic voucher processing device, It is characterized in that Applied to 5G message center, including: A third receiving module is used to receive an authentication instruction sent by the server, and generate a 5G authentication message based on the authentication instruction; A third sending module, used to send the 5G authentication message to the first terminal device; A fourth receiving module is used to receive an identity authentication result sent by the first terminal device; the identity authentication result is obtained by the first terminal device performing identity authentication based on the 5G authentication message; a fifth receiving module, configured to receive a coupon code sent by the server, wherein the coupon code is generated by the server when receiving an electronic coupon issuance request for the first terminal device, and the coupon code is a coupon code associated with the electronic coupon of the first user; The fourth sending module is used to send the coupon code to the first terminal device when the identity authentication result is passed.
12. An electronic voucher processing device, It is characterized in that Applied to the first terminal device, including: A sixth receiving module, used to receive a 5G authentication message sent by the 5G message center; An authentication module, used to perform identity authentication based on the 5G message and obtain an identity authentication result; A fifth sending module, used to send the identity authentication result to the server through the 5G message center; a seventh receiving module, configured to receive, when the identity authentication result is passed, a voucher code sent by the server through the 5G message center; the voucher code is generated by the server in response to the electronic voucher issuance request for the first terminal device, and the voucher code is a voucher code associated with the electronic voucher of the first user; The display module is used to display the coupon code, and the coupon code is used to enable the second terminal device to scan the coupon code to obtain the electronic coupon information to be cancelled, and send the electronic coupon information to be cancelled to the server. The electronic coupon information to be cancelled is used to enable the server to cancel the electronic coupon corresponding to the electronic coupon information to be cancelled among the electronic coupons associated with the coupon code.
13. An electronic device, It is characterized in that The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the electronic voucher processing method as described in any one of claims 1-5, or executes the electronic voucher processing method as described in any one of claims 6-7, or executes the electronic voucher processing method as described in any one of claims 8-9.
14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the electronic voucher processing method as described in any one of claims 1-5, or, execute the electronic voucher processing method as described in any one of claims 6-7, or, execute the electronic voucher processing method as described in any one of claims 8-9.
