Data processing method and device of deduction code, storage medium and electronic equipment

By coordinating management between the deduction code agent issuance platform and the supplier system, and using encryption algorithms to generate and transmit deduction codes, the problems of complex deduction code information management and low security are solved, and a flexible and efficient deduction code data processing flow is realized.

CN121836718APending Publication Date: 2026-04-10CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA CONSTRUCTION BANK
Filing Date
2025-12-23
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

The existing deduction code information management operation is complicated and has low security. Static deduction codes are easy to be leaked and difficult to trace and verify, resulting in insufficient efficiency and traceability of the issuance mechanism.

Method used

The system obtains configuration rule data through the deduction code agent issuance platform, generates digital signature encrypted information using an asymmetric encryption algorithm, generates deduction codes to be distributed, and coordinates with the deduction code supplier system to ensure that the generation and distribution of deduction codes follow the pre-set rules and strategies. A symmetric encryption algorithm is used to protect the security of client data transmission.

Benefits of technology

It simplifies and enhances the security of deduction code information management, ensures the flexibility and traceability of deduction code generation and distribution, reduces manual intervention and security vulnerabilities, and improves operational fluency and supply chain collaboration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121836718A_ABST
    Figure CN121836718A_ABST
Patent Text Reader

Abstract

The invention discloses a deduction code data processing method and device, a storage medium and electronic equipment, and the method comprises the steps: obtaining the configuration rule data of a deduction code, and the configuration rule data at least comprises a contract rule, a distribution rule and a use rule of the deduction code; generating an issuing quantity request based on the configuration rule data; sending the issuing quantity request to a deduction code supplier system; encrypting the configuration rule data by using a private key of a preset asymmetric encryption algorithm to obtain digital signature encryption information; and based on the digital signature encryption information, the configuration rule data and the deduction code issuing number, generating the deduction code to be distributed, the deduction code issuing number being determined based on received feedback information sent by a deduction code supplier system. By adopting the technical scheme, the problems that the operation of performing data management on the deduction code information is relatively complex and the security is relatively low in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of data management, in particular, to a data processing method and device for a deduction code, a storage medium and an electronic device. BACKGROUND

[0002] With the frequent application of deduction codes in transaction activities, efficient management of deduction code information faces significant technical challenges. In related technologies, static deduction codes independently generated by a deduction code supplier have defects in security. If a deduction code is leaked, it is difficult to effectively trace and control the situation of false claims for cancellation, highlighting the limitations of the existing deduction code issuance mechanism in efficiency, security and traceability, resulting in complex operations and low security in data management of deduction code information in related technologies. SUMMARY

[0003] The embodiments of the present application provide a data processing method and device for a deduction code, a storage medium and an electronic device to at least solve the problems of complex operations and low security in data management of deduction code information in related technologies.

[0004] According to an embodiment of the present application, a data processing method for a deduction code is provided, applied to a deduction code proxy issuance platform. The method comprises: obtaining configuration rule data of the deduction code, wherein the configuration rule data at least includes contract rules, distribution rules and usage rules of the deduction code, and the contract rules are used to represent the participation rules of each participant of the deduction code; generating an issuance quantity request based on the configuration rule data; sending the issuance quantity request to a deduction code supplier system; using a private key of a preset asymmetric encryption algorithm to encrypt the configuration rule data to obtain digital signature encryption information; generating the to-be-distributed deduction code based on the digital signature encryption information, the configuration rule data and the deduction code issuance quantity, wherein the deduction code issuance quantity is determined based on the received feedback information sent by the deduction code supplier system.

[0005] Optionally, obtaining the configuration rule data of the deduction code comprises: obtaining a contract identifier, an expected issuance quantity, distribution rules and usage rules of the deduction code; determining the contract rules based on the contract identifier; and generating the configuration rule data based on the contract rules, the expected issuance quantity, the distribution rules and the usage rules.

[0006] Optionally, the feedback information at least includes the inventory issuance quantity of the deduction code supplier system. In the case that the expected issuance quantity is less than or equal to the inventory issuance quantity, the deduction code issuance quantity is determined based on the expected issuance quantity. In the case that the expected issuance quantity is greater than the inventory issuance quantity, the deduction code issuance quantity is determined by a maintenance personnel.

[0007] According to another aspect of the embodiments of the present application, a data processing method of a discount code is also provided, applied to a discount code proxy issuing platform, and the method comprises the following steps. A discount code issuing quantity request is generated based on a discount code issuing quantity request received. Feedback information is sent to a discount code proxy issuing platform, wherein the feedback information is used to generate a discount code to be distributed.

[0008] According to another aspect of the embodiments of the present application, a data processing method of a discount code is also provided, applied to a discount code proxy issuing platform, and the method comprises the following steps. A discount code issuing quantity request is generated based on a discount code issuing quantity request received. Feedback information is sent to a discount code proxy issuing platform, wherein the feedback information is used to generate a discount code to be distributed.

[0009] Optionally, the method further comprises the following steps. The digital signature encryption information in the discount code to be used is encrypted by using a preset symmetric encryption algorithm to obtain encrypted information of the discount code to be used. The encrypted information is sent to a client corresponding to the discount code to be used, wherein the client is used to display the encrypted information.

[0010] Optionally, the method further comprises the following steps. In response to the end of the discount code distribution activity period, the discount code to be distributed that is not distributed to the client is cancelled to obtain an invalid discount code. The inventory issuing quantity of the discount code supplier system is restored based on the invalid discount code.

[0011] Optionally, the method further comprises the following steps. The discount code to be used that meets the use rule is cancelled to obtain a cancelled discount code.

[0012] According to another aspect of the embodiments of the present application, a data processing device of a discount code is also provided, applied to a discount code proxy issuing platform, and the device comprises the following modules. An obtaining module is configured to obtain configuration rule data of a discount code, wherein the configuration rule data at least comprises contract rules, distribution rules and use rules of the discount code. The contract rules are used to represent the participation rules of each participant of the discount code determined in advance. A first generation module is configured to generate an issuing quantity request based on the configuration rule data. A sending module is configured to send the issuing quantity request to a discount code supplier system. A second generation module is configured to encrypt the configuration rule data by using a private key of a preset asymmetric encryption algorithm to obtain digital signature encryption information. The discount code to be distributed is generated based on the digital signature encryption information, the configuration rule data and the discount code issuing quantity, wherein the discount code issuing quantity is determined based on the feedback information received and sent by the discount code supplier system.

[0013] According to another aspect of the embodiments of the present application, a data processing apparatus for a discount code is also provided, which is applied to a discount code supplier system, and includes: a generation module configured to generate feedback information based on an issuance quantity request in response to receiving the issuance quantity request, wherein the issuance quantity request is generated by using the method described above, and the feedback information includes at least an inventory issuance quantity of the discount code corresponding to the issuance quantity request; and a sending module configured to send the feedback information to a discount code proxy issuance platform, wherein the feedback information is used to generate the discount code to be distributed by using the method described above.

[0014] According to another aspect of the embodiments of the present application, a data processing apparatus for a discount code is also provided, which is applied to a discount code proxy issuance platform, and includes: a distribution module configured to distribute the discount code to be distributed to a client that meets a distribution rule of the discount code to be distributed within a discount code distribution activity period, wherein the discount code to be distributed is generated by using the method described above; and a conversion module configured to convert the discount code to be distributed distributed to the client to obtain a discount code to be used.

[0015] According to still another aspect of the embodiments of the present application, a computer readable storage medium is also provided, which stores a computer program, wherein the computer program is configured to execute the data processing method for a discount code when running.

[0016] According to still another aspect of the embodiments of the present application, an electronic device is also provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the data processing method for a discount code by using the computer program.

[0017] According to still another aspect of the embodiments of the present application, a computer program product is also provided, which includes a computer program, and the data processing method for a discount code is executed by using the computer program when the computer program is executed by a processor.

[0018] In the embodiment of the present application, first, the configuration rule data of the deduction code is acquired, the configuration rule data at least includes the contract rule, the distribution rule and the use rule of the deduction code, the contract rule is used to represent the participation rule of each participant of the pre-determined deduction code; then, based on the configuration rule data, the issuance quantity request is generated; then, the issuance quantity request is sent to the deduction code supplier system; finally, the configuration rule data is encrypted by using the private key of the preset asymmetric encryption algorithm to obtain the digital signature encryption information; based on the digital signature encryption information, the configuration rule data and the deduction code issuance quantity, the to-be-distributed deduction code is generated, and the deduction code issuance quantity is determined based on the received feedback information sent by the deduction code supplier system. The deduction code data processing method proposed in the present application can acquire the configuration rule data based on the contract rule, the distribution rule and the use rule of the deduction code, and this process ensures that the generation of the deduction code is in accordance with the pre-set participant rule and strategy. The introduction of the smart contract technology makes the setting of the configuration rule data more flexible and intelligent, the contract rule is clear and automatically executed, reduces the manual intervention, and avoids the management complexity and security vulnerabilities caused by human errors. According to the configuration rule data, the issuance quantity request is generated and sent to the deduction code supplier system, the deduction code inventory can be reasonably controlled based on the actual demand, the feedback information of the deduction code supplier system is responded, the issuance quantity is flexibly adjusted, the deduction code supply chain management is improved, and the collaborative efficiency with the deduction code supplier system is enhanced. Based on the configuration rule data and the determined issuance quantity, the to-be-distributed deduction code is generated, the present application simplifies the deduction code information management through the integrated and dynamic deduction code data processing process, improves the security of the deduction code information processing process and the smoothness of the operation, and further solves the problems of complex operation and low security in the related art for managing the deduction code information. BRIEF DESCRIPTION OF DRAWINGS

[0019] The accompanying drawings, which are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application and, together with the specification, serve to explain the principles of the application.

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.

[0021] Figure 1 is a flowchart of a deduction code data processing method according to an embodiment of the present application;

[0022] Figure 2 is a flowchart of another deduction code data processing method according to an embodiment of the present application;

[0023] Figure 3 This is a flowchart of another data processing method for a deduction code according to an embodiment of this application;

[0024] Figure 4 This is a schematic diagram of an optional data processing system architecture for a deduction code according to an embodiment of this application;

[0025] Figure 5 This is a schematic diagram of an optional data processing procedure for a deduction code according to an embodiment of this application;

[0026] Figure 6 This is a schematic diagram of an optional coupon code generation and verification process according to an embodiment of this application;

[0027] Figure 7 This is a schematic diagram of an optional dynamic key update process according to an embodiment of this application;

[0028] Figure 8 This is a schematic diagram of the data processing sequence of an optional deduction code according to an embodiment of this application;

[0029] Figure 9 This is a schematic diagram of a data processing device for a deduction code according to an embodiment of this application;

[0030] Figure 10 This is a schematic diagram of another data processing device for a deduction code according to an embodiment of this application;

[0031] Figure 11 This is a schematic diagram of another deduction code data processing device according to an embodiment of this application. Detailed Implementation

[0032] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0033] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, apparatus, or device that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, apparatus, or devices.

[0034] According to one aspect of the embodiments of this application, a data processing method for deduction codes is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0035] Figure 1 This is a flowchart of a data processing method for a discount code according to an embodiment of this application, applied to a discount code agent issuance platform, such as... Figure 1 As shown, the method includes the following steps:

[0036] Step S102: Obtain the configuration rule data for the deduction code.

[0037] The configuration rule data includes at least the contract rules, distribution rules, and usage rules for the deduction code. The contract rules are used to represent the participation rules of each party involved in the pre-determined deduction code.

[0038] The aforementioned discount code can be a coupon or similar item, which can be used to deduct part of the transaction amount or redeem specific discounts. In this application, the discount code can be jointly generated by the discount code issuing platform and the discount code supplier system, and is used to offer customers discounts under specific conditions to facilitate transactions.

[0039] The aforementioned contractual rules refer to the agreements and conditions that all participating parties, such as the deduction code issuing platform, the deduction code supplier system, and customers, must abide by during the issuance, use, and redemption of deduction codes. These contractual rules may include, but are not limited to, rules for issuing deduction codes, the validity period of the deduction codes, the redemption process, and settlement rules among the parties. Contractual rules serve as a standardized basis for ensuring the rights and interests of all parties and the standardization of operational procedures.

[0040] The aforementioned distribution rules can refer to the rules that define how to allocate or distribute discount codes to eligible customers. Distribution rules may include specific conditions that customers need to meet, such as spending amount, account type, participation in activities, etc., in order to obtain a discount code, as well as rules on the distribution channels, time, frequency, etc.

[0041] The aforementioned usage rules refer to the conditions and restrictions that customers need to comply with when using discount codes. These may include the validity period of the discount code, the scope of applicable goods or services, the quantity that can be used in a single transaction, and whether it can be used in conjunction with other offers, etc., to ensure the reasonable and compliant use of discount codes.

[0042] In one optional embodiment, the acquisition and definition of configuration rule data can ensure the standardization, transparency, and security of processes such as deduction code generation, distribution, display, and verification. The configuration rule data for deduction codes can be generated and maintained by the deduction code rule configuration module of the deduction code agent issuance platform. This configuration rule data can include information on contract rules, distribution rules, and usage rules. Contract rules clarify the rights and responsibilities among the deduction code agent issuance platform, the deduction code supplier system, and the customer; these rules can be determined during the contract signing stage. Distribution rules specify how customers can obtain, purchase, or receive deduction codes, including distribution conditions such as spending limits, membership levels, distribution methods (online applications, SMS, email), and distribution time windows. Usage rules define the usage scenarios, validity period, scope of deductible goods or services, and verification elements in the verification process. Specifically, the above rules can be input and edited through the deduction code rule configuration module of the deduction code agent issuance platform to form a deduction code configuration rule dataset. Configuration rule data can be stored in the system database as the basis for subsequent operations, including the issuance of discount codes, customer distribution, and verification. Configuration rule data can also be distributed to the discount code supplier system via a secure communication channel, ensuring that the discount code issuance platform and the discount code supplier system follow the same set of rules in the generation, distribution, and verification of discount codes.

[0043] In the above process, clear configuration rule data ensures the standardization of the data interface between the discount code agent issuance platform and the discount code supplier system, avoiding data mismatches caused by ambiguous rules. Dynamic acquisition of configuration rule data enables rapid adjustments to discount code distribution and usage strategies based on market changes or customer needs, enhancing the flexibility of discount code applications.

[0044] Step S104: Generate a release quantity request based on the configuration rule data.

[0045] The aforementioned issuance quantity request may refer to an instruction issued by the discount code agent issuance platform to the discount code supplier system to request the generation of a specific number of discount codes. The issuance quantity request may include information such as the expected issuance quantity of the corresponding discount codes.

[0046] In one optional embodiment, the deduction code agent issuance platform's deduction code rule configuration module can acquire configuration rule data. Then, based on the configuration rule data, it can generate an issuance quantity request. To ensure the integrity and immutability of the issuance quantity request, the deduction code agent issuance platform can encrypt and digitally sign the request data using a preset asymmetric encryption algorithm, generating an encrypted issuance quantity request. The encrypted issuance quantity request can be sent to the deduction code supplier system through a secure communication channel. The deduction code supplier system generates corresponding feedback information based on the received issuance quantity request and can send the feedback information to the deduction code agent issuance platform.

[0047] In the above process, based on rule data, the platform generates issuance quantity requests, enabling it to precisely adjust the scale and cost of discount code activities, avoiding the risk of resource waste caused by blind issuance. The platform can quickly generate new issuance quantity requests based on real-time market feedback and customer needs, making discount code activities more flexible and able to respond rapidly to market changes.

[0048] Step S106: Send the issuance quantity request to the deduction code supplier system.

[0049] The aforementioned discount code supplier system can refer to external merchants or organizations that provide discount codes.

[0050] In one optional embodiment, the discount code agent issuance platform can obtain the data required for the issuance quantity request, such as the expected issuance quantity, from the discount code rule configuration module. To ensure data security, an asymmetric encryption algorithm can be used to encrypt the issuance quantity request and generate a digital signature to ensure that the request data is not tampered with by a third party during transmission. A suitable communication protocol can be selected to encapsulate the encrypted data to ensure the integrity of data transmission and improve communication efficiency. The encrypted issuance quantity request can also be sent to the discount code supplier system through a preset communication interface. After receiving the request, the discount code supplier system can decrypt and verify the digital signature to determine the issuance quantity request. During the request transmission process, certain fault tolerance mechanisms, such as retransmission mechanisms and data backups, can also be set to prevent data loss or delay during transmission.

[0051] In the above process, selecting appropriate communication protocols and designing fault-tolerance mechanisms can ensure data exchange between the discount code issuing platform and the discount code supplier system, while also ensuring the reliability and continuity of communication. Accurate issuance quantity requests enable the discount code supplier system to rationally plan resources according to the needs of the discount code issuing platform, avoiding inventory surpluses or shortages caused by inaccurate information and improving the supply chain management of discount codes.

[0052] Step S108: Use the private key of the preset asymmetric encryption algorithm to encrypt the configuration rule data to obtain digital signature encryption information.

[0053] The aforementioned pre-defined asymmetric encryption algorithm refers to an algorithm pre-agreed upon between the discount code agent issuance platform and the discount code supplier system, used for encrypting and decrypting data. The asymmetric encryption algorithm uses a pair of keys for encryption and decryption, namely a public key and a private key. In this application, the discount code agent issuance platform can use the private key to encrypt configuration rule data, generating digital signature encrypted information. The discount code supplier system can use the public key for decryption and verification, ensuring the security and integrity of data transmission and preventing data tampering or impersonation during transmission.

[0054] The aforementioned digital signature encrypted information refers to the data obtained by the deduction code agent issuing platform encrypting the configuration rule data using a preset asymmetric encryption algorithm's private key when sending the configuration rule data. The digital signature encrypted information may contain the content of the configuration rule data, and may also include the signature information of the deduction code agent issuing platform, proving the source of the data and that it has not been tampered with. It can be used to verify the integrity of the data and the authenticity of its source, and can also serve as a reference for subsequent decryption and verification.

[0055] Step S110: Generate the deduction code to be distributed based on the digital signature encryption information, the configuration rule data, and the number of deduction codes issued.

[0056] The number of discount codes issued is determined based on the feedback information received from the discount code supplier system.

[0057] In one optional embodiment, the configuration rule data can be encrypted using a private key of a preset asymmetric encryption algorithm to generate digital signature encrypted information, thereby generating deduction codes to be distributed. Specifically, the configuration rule data can be encrypted using a private key of a preset asymmetric encryption algorithm to generate digital signature encrypted information, ensuring data security during transmission and storage. Then, based on the encrypted digital signature encrypted information, the configuration rule data and the number of deduction codes to be issued can be configured to generate deduction codes, attach a serial number to each deduction code, and combine it with the digital signature encrypted information to generate deduction codes to be distributed.

[0058] In the above process, the generation of digital signature encryption information protects the integrity and authenticity of the configuration rule data, giving the discount code itself anti-counterfeiting characteristics and improving its security throughout the entire transaction process. The encrypted configuration rule data ensures that the generation of the discount code follows pre-set distribution and usage rules, avoiding rule deviations that may occur during the distribution process. Through encryption, the discount code data is transformed into secure digital signature encryption information before distribution, reducing risks during data transmission.

[0059] In one optional embodiment, after sending an issuance quantity request, the discount code agent issuance platform can wait for feedback from the discount code supplier's system. This feedback may include the inventory issuance quantity supported by the discount code supplier. The discount code agent issuance platform can compare the inventory issuance quantity provided by the supplier with the expected issuance quantity in the configuration rule data. If the inventory issuance quantity is less than the expected quantity, the platform can reassess the activity scale or negotiate adjustments with the discount code supplier. If the inventory issuance quantity is greater than or equal to the expected quantity, the platform can determine the discount code issuance quantity based on the expected quantity. The platform can then generate discount codes to be distributed based on the determined issuance quantity, combined with the contract rules, distribution rules, and usage rules in the configuration rule data. During the generation process, asymmetric encryption algorithms can be used to encrypt the configuration rule data and the serial number of each discount code to form a digital signature. The generated discount codes to be distributed can remain in a pending distribution state on the discount code agent issuance platform, awaiting distribution to eligible customers according to the distribution rules and activity plan.

[0060] In the aforementioned process, the discount code distribution platform generates discount codes by referencing feedback from suppliers. This allows for flexible responses to inventory fluctuations in the discount code supplier system, ensuring the feasibility of discount code campaigns and reducing the pressure on the supplier system. The generation, status management, and subsequent distribution of discount codes can all be automated through the platform, reducing human error, improving operational efficiency, and supporting high concurrency and large-scale discount code distribution activities.

[0061] In this embodiment, firstly, configuration rule data for the discount code is obtained. This configuration rule data includes at least the contract rules, distribution rules, and usage rules for the discount code. The contract rules represent the predetermined participation rules for each party involved in the discount code. Next, based on the configuration rule data, an issuance quantity request is generated. Then, the issuance quantity request is sent to the discount code supplier system. Finally, based on the configuration rule data and the discount code issuance quantity, discount codes to be distributed are generated. The issuance quantity is determined based on feedback information received from the discount code supplier system. The discount code data processing method proposed in this application allows the discount code agent issuance platform to obtain configuration rule data based on contract rules, distribution rules, and usage rules. This process ensures that the generation of discount codes follows pre-set participant rules and strategies. The introduction of smart contract technology makes the setting of configuration rule data more flexible and intelligent. The contract rules are clear and automatically executed, reducing manual intervention and avoiding management complexity and security vulnerabilities caused by human error. Based on the configuration rule data, a request for the issuance quantity is generated and sent to the discount code supplier system. This allows for reasonable adjustment of coupon inventory based on actual needs, responds to feedback from the discount code supplier system, flexibly adjusts the issuance quantity, improves discount code supply chain management, and enhances collaborative efficiency with the discount code supplier system. By generating discount codes to be distributed based on configuration rule data and the determined issuance quantity, this application simplifies coupon information management and improves the security and smoothness of the discount code information processing flow through an integrated and dynamic discount code data processing workflow. This addresses the problems of complex data management and low security in related technologies.

[0062] Optionally, the configuration rule data for the discount code is obtained, including: obtaining the contract identifier, expected issuance quantity, distribution rules, and usage rules of the discount code; determining the contract rules based on the contract identifier; and generating configuration rule data based on the contract rules, expected issuance quantity, distribution rules, and usage rules.

[0063] The aforementioned contract identifier can refer to the identifier of the contract rule corresponding to the discount code, used to identify the corresponding contract in the contractual relationship established between the discount code agent issuance platform and the discount code supplier system. The contract identifier ensures the uniqueness and traceability of each contract at the system level. The contract identifier can also serve as an index for querying and managing contract rules, ensuring that the correct contract rules are accurately applied when generating discount codes.

[0064] The aforementioned expected issuance quantity refers to the preset number of discount codes to be issued to customers during discount code promotions, welcome events, achievement-based promotions, or product promotions. The expected issuance quantity can be estimated based on the anticipated number of participants, budget, marketing strategy, and customer response. The expected issuance quantity can be determined based on the nature of the activity, target customer group, and expected results, and sent as part of the issuance quantity request to the discount code supplier system to facilitate the determination of the actual number of discount codes issued.

[0065] In one optional embodiment, the deduction code rule configuration module of the deduction code agent issuance platform can obtain or update the contract identifier of the deduction code, and can also collect the expected issuance quantity, distribution rules, and usage rules of the deduction code activity plan. Then, based on the contract identifier, the contract rules associated with the contract identifier can be extracted from the database, which may include, but are not limited to, multi-party business agreements, responsibility allocation, settlement terms, etc. Next, the contract identifier, contract rules, expected issuance quantity, distribution rules, and usage rules can be merged to generate configuration rule data. During the generation process, data integrity checks and compliance verification can be performed.

[0066] In the aforementioned process, through clear contract identifiers and detailed distribution and usage rules, the discount code agency issuance platform can manage each batch of discount codes in a refined manner, ensuring that the generation, distribution, and usage processes of discount codes meet specific activity requirements and compliance standards. Clear contract rules and expected issuance quantities provide clear guidance for communication and collaboration between the discount code agency issuance platform and the discount code supplier system, reducing disputes arising from information inconsistencies and ensuring the efficient completion of the discount code generation process.

[0067] Optionally, the feedback information may include at least the quantity of inventory issued by the discount code supplier system. If the expected quantity issued is less than or equal to the quantity of inventory issued, the quantity of discount codes issued is determined based on the expected quantity issued; if the expected quantity issued is greater than the quantity of inventory issued, the quantity of discount codes issued is determined by the maintenance personnel.

[0068] The aforementioned feedback information may refer to the response of the discount code supplier system to the issuance quantity request, and may include the inventory issuance quantity of discount codes that the discount code supplier system can provide, which is used by the discount code agent issuance platform to further decide on the issuance quantity of discount codes.

[0069] The aforementioned number of discount codes issued refers to the actual number of discount codes that can be generated and distributed to customers. The discount code distribution platform can generate discount codes to be distributed based on this number.

[0070] In one optional embodiment, the discount code issuance platform can receive feedback information from suppliers, which may include the supplier's inventory issuance quantity. The platform can automatically compare the inventory issuance quantity in the feedback information with the expected issuance quantity. If the expected issuance quantity is less than or equal to the inventory issuance quantity, the actual discount code issuance quantity can be determined as the expected issuance quantity. If the expected issuance quantity is greater than the supplier's inventory issuance quantity, the automated process can be paused, and maintenance personnel can intervene to adjust the discount code issuance quantity based on the actual situation or coordinate with the discount code supplier to replenish inventory. The determined discount code issuance quantity can serve as the basis for discount code generation.

[0071] In the above setup, the discount code supplier feedback mechanism allows the discount code distribution platform to monitor suppliers' inventory levels in real time, preventing over-issuance that could lead to inventory pressure and achieving a dynamic balance between discount code issuance demand and supplier resources. When the desired issuance quantity exceeds the available inventory, the intervention of maintenance personnel provides additional flexibility, ensuring that the discount code campaign meets its objectives while adapting to changes in external conditions. This effectively prevents issues such as insufficient discount code supply or failed redemption due to issuance exceeding the supplier's actual capacity, reducing uncertainty and operational risks during campaign planning and execution.

[0072] According to another aspect of the embodiments of this application, a data processing method for deduction codes is also provided. Figure 2 This is a flowchart of a data processing method for a discount code according to an embodiment of this application, applied to a discount code supplier system, such as... Figure 2 As shown, the method includes the following steps:

[0073] Step S202: In response to receiving the issuance quantity request, generate feedback information based on the issuance quantity request.

[0074] The encryption information issuance quantity request is generated based on the deduction code configuration rule data. The encryption information feedback information includes at least the inventory issuance quantity of the deduction code corresponding to the encryption information issuance quantity request. The encryption information configuration rule data includes at least the encryption information deduction code contract rules, distribution rules, and usage rules. The encryption information contract rules are used to represent the participation rules of each participant in the encryption information deduction code in a pre-determined manner.

[0075] Step S204: Send the feedback information to the discount code agent issuing platform.

[0076] The encrypted information feedback is processed by the encrypted information deduction code agent issuance platform to obtain the deduction codes to be distributed.

[0077] In one optional embodiment, the discount code supplier system can receive a distribution quantity request from the discount code agent issuance platform. This request may include the desired distribution quantity of discount codes and related configuration rule data. Based on the received distribution quantity request, the discount code supplier system can query the existing discount code inventory to assess whether it can meet the needs of the discount code agent issuance platform. The discount code supplier system can generate feedback information based on the inventory distribution quantity. Alternatively, a preset asymmetric encryption algorithm can be used to encrypt the feedback information to ensure data transmission security before sending the encrypted feedback information back to the discount code agent issuance platform.

[0078] In the aforementioned process, through the feedback mechanism of the discount code supplier system, the discount code agency issuance platform can understand the inventory issuance quantity of discount codes in real time, thereby accurately adjusting the issuance quantity, avoiding supply chain tensions caused by excessive demand, and ensuring the smooth operation of discount code activities. Encrypted transmission of feedback information effectively prevents data leakage or malicious tampering in the internet environment, ensuring the accuracy of the discount code issuance quantity and the information security of both parties in the transaction. The automated processing of feedback information generation and transmission shortens the communication time between the discount code agency issuance platform and the discount code supplier system, improves the efficiency of discount code issuance cooperation, and facilitates rapid response to market activity needs.

[0079] According to another aspect of the embodiments of this application, a data processing method for deduction codes is also provided. Figure 3 This is a flowchart of a data processing method for a discount code according to an embodiment of this application, applied to a discount code agent issuance platform, such as... Figure 3 As shown, the method includes the following steps:

[0080] Step S302: During the distribution period of the discount code, distribute the discount code to the client that meets the distribution rules for the discount code to be distributed.

[0081] The deduction codes to be distributed are generated using the method described above.

[0082] The aforementioned discount code distribution activity period refers to the duration of the discount code distribution activity conducted by the discount code agent issuance platform. The discount code distribution activity period may include the start and end dates of the activity, as well as specific time windows during the activity, such as collection periods.

[0083] Step S304: Convert the deduction code to be distributed to the client to obtain the deduction code to be used.

[0084] The aforementioned pending discount codes refer to discount codes that have been issued to customers but have not yet been actually used or redeemed by them. These codes are in a state of waiting for customer use. When a customer chooses to use the discount code when purchasing goods or services, the code's status changes from pending to redeemed.

[0085] In one optional embodiment, during the discount code distribution campaign period, customer information can be monitored, and eligible customers can be selected according to the discount code distribution rules, such as customers who have reached a spending threshold, registered for the first time, or participated in specific tasks. Next, coupons can be extracted from the pool of coupons to be distributed and assigned to specific customers through the customer account module. These coupons contain digital signature encryption information to ensure the uniqueness and security of each coupon. Then, the coupons assigned to customers can be automatically converted to a ready-to-use state, which customers can subsequently use for consumption or redemption. To facilitate customer use, the digital signature encryption information of the ready-to-use coupons can be encrypted using a preset symmetric encryption algorithm to generate encryption password information. This encryption password information can be pushed to customers through various channels, such as mobile applications, SMS, or email.

[0086] By adhering to the distribution rules, it can be ensured that the discount codes are distributed to the target customers of the discount code campaign, thereby improving the effectiveness of the campaign. The transition of the discount codes from the pending distribution state to the ready-to-use state enables orderly management of discount code distribution. Through double encryption processing, the security of the discount code information is enhanced, preventing malicious interception or tampering during the distribution process.

[0087] Optionally, the method further includes: encrypting the digital signature encryption information in the deduction code to be used using a preset symmetric encryption algorithm to obtain the encryption information of the deduction code to be used; and sending the encryption information to the client corresponding to the deduction code to be used, wherein the client is used to display the encryption information.

[0088] The aforementioned pre-defined symmetric encryption algorithm refers to an algorithm pre-agreed upon between the discount code agent issuing platform and the customer's mobile terminal, used for rapid encryption and decryption of data. The pre-defined symmetric encryption algorithm can use the same key for encryption and decryption operations, but the distribution and management of the key require additional security measures. In this application, the pre-defined symmetric encryption algorithm can be used to encrypt digital signature encrypted information to generate encrypted information. The pre-defined symmetric encryption algorithm ensures the security of the voucher code information received by the customer during transmission and prevents tampering by third parties.

[0089] The aforementioned encrypted information refers to the voucher code information encrypted using a preset symmetric encryption algorithm. This may include digital signature encryption information and other data related to the voucher code, such as its validity period and usage conditions. Before being displayed on the client's terminal, the encrypted information is sent to the client in encrypted format via a secure communication channel, ensuring the security of the voucher code information during transmission. After receiving the encrypted information, the client's mobile terminal can decrypt it using the same symmetric key as the voucher code issuing platform to obtain the voucher code's digital signature encryption information. The use of a preset symmetric encryption algorithm protects the security of the voucher code data and also ensures the dynamism and uniqueness of the voucher code, preventing its copying and misuse.

[0090] The aforementioned client can refer to a device used by the customer to receive and display encrypted information, including portable electronic devices such as smartphones, smartwatches, and tablets. In this application, the discount code issuing platform can send encrypted information to the customer's mobile terminal through a secure channel. The customer can receive and decrypt the coupon code information through the client application on the mobile terminal. The application software on the mobile terminal is responsible for decrypting the coupon code information and displaying the detailed content of the coupon code to the customer in a secure and user-friendly manner, including the coupon code, usage conditions, and validity period. In addition, the mobile terminal can also provide coupon redemption functionality, allowing customers to directly use the coupon code for payment on the mobile terminal, deducting the corresponding amount or obtaining discounts. The interaction between the mobile terminal and the discount code issuing platform ensures the convenience and security of coupon code use.

[0091] In one optional embodiment, after obtaining the discount code to be used, the digital signature encryption information can be extracted from the discount code. The digital signature encryption information may contain the basic attributes and authentication data of the discount code. A preset symmetric encryption algorithm can be used to perform secondary encryption on the extracted digital signature encryption information to generate encryption key information. This process can be performed before the discount code is distributed to the customer's mobile terminal to further improve the security of the discount code. The encrypted coupon information can be transmitted to the customer's designated mobile terminal. The encryption key information can be transmitted through a secure communication channel to prevent data interception or corruption during transmission. After receiving the encryption key information, the customer's mobile terminal can decrypt it using a pre-shared symmetric encryption algorithm key, presenting the coupon information to the user for viewing and use.

[0092] In the above process, the introduction of symmetric encryption algorithms provides an extra layer of protection for digital signature encryption information. Even if the discount code information is illegally accessed on the mobile terminal, the true content of the discount code cannot be read without the correct key, thus improving the anti-theft and anti-tampering capabilities of the discount code. The generation and transmission process of encryption information ensures that the discount code maintains a high degree of security and traceability throughout the entire data flow from the discount code agent issuance platform to the customer's mobile terminal, which is conducive to monitoring the use of discount codes and timely detection of abnormal operations or data leaks.

[0093] Optionally, the method further includes: in response to the end of the discount code distribution activity period, canceling the discount codes that have not been distributed to the client to obtain invalid discount codes; and restoring the inventory issuance quantity of the discount code supplier system based on the invalid discount codes.

[0094] The aforementioned invalid discount codes refer to discount codes that were not distributed or assigned to customers after the discount code distribution campaign ended. When the discount code distribution campaign ended, the discount code agency distribution platform can automatically identify and isolate those discount codes that were generated during the campaign but were not actually distributed, and the discount codes will be converted into invalid discount codes.

[0095] In one optional embodiment, after the discount code distribution activity period ends, the discount code agency issuance platform can cancel unallocated discount codes and restore supplier inventory. Specifically, the discount code agency issuance platform can monitor the discount code activity timeline in real time, and trigger the discount code cancellation process promptly when the activity period ends. The discount code agency issuance platform can check the discount code pool to be distributed, cancel discount codes that have not been distributed to customers, change the discount code status to invalid, and obtain invalid discount codes. Based on the list of invalid discount codes, the discount code agency issuance platform can send an inventory restoration request to the discount code supplier. The inventory restoration request can include the number of invalid discount codes and related identification information, such as the discount code supplier number, product number, etc. After receiving the inventory restoration request, the discount code supplier system can adjust the internal inventory issuance quantity according to the number of invalid discount codes to reflect the remaining number of discount codes available for issuance.

[0096] In the aforementioned process, by canceling unused discount codes after the discount code distribution period ends, the discount code issuing platform can recover invalid coupon resources, avoiding inventory waste and improving resource allocation. The inventory recovery mechanism strengthens supply chain coordination between the discount code issuing platform and the discount code supplier system, ensuring the authenticity of the supplier system's inventory and the accuracy of the coupon quantity in the discount code issuing platform. This provides both parties with a clear inventory management view, facilitating long-term cooperation and resource planning.

[0097] Optionally, the method further includes: verifying the deduction codes to be used that meet the usage rules to obtain verified deduction codes.

[0098] The aforementioned redeemed discount codes refer to discount codes successfully used by customers to offset the cost of goods or services. If a customer completes a transaction using a discount code, the discount code issuing platform will receive a redemption notification from the merchant, confirming the code's usage. The platform can update the code's status from pending use to redeemed. Redeemed discount codes record usage history and can trigger subsequent accounting reconciliation and settlement processes.

[0099] In one optional embodiment, under scenarios that meet usage rules, such as specific merchants, time limits, or spending amount requirements, customers can choose to apply a pending discount code when making a payment. After receiving the coupon code information from the customer's mobile terminal, the discount code provider system can decrypt the coupon code using a preset symmetric encryption algorithm to obtain the digital signature and coupon code details. After decryption, the discount code provider system can verify the digital signature using the public key of a preset asymmetric encryption algorithm to ensure that the coupon code information has not been tampered with and that the coupon code was indeed legally generated by the discount code agent issuing platform. When the verification is successful, the discount code agent issuing platform can update the discount code status from pending use to redeemed, and can record information such as redemption time and redemption location, while sending a redemption notification to the discount code agent issuing platform. After receiving the redemption notification, the discount code agent issuing platform can update the coupon code status in the customer's account and record it in the accounting module, preparing for subsequent settlement processing.

[0100] In the aforementioned process, digital signature verification and status updates ensure the authenticity and validity of the redemption transactions, effectively preventing the illegal use and duplicate redemption of coupon codes, and enhancing transaction security. The automation and efficiency of the coupon code redemption process reduce customer waiting time for confirmation, improve the payment experience, and ensure real-time communication, thus improving the smoothness of the entire transaction process. The real-time synchronization of redemption information allows the coupon code issuing platform to adjust inventory status promptly, providing an accurate data foundation for subsequent accounting and settlement work, and ensuring the transparency and accuracy of financial processes.

[0101] The technical solution proposed in this application will be described below with reference to an optional embodiment. This application proposes a method, apparatus and equipment for issuing external merchant discount codes based on contracts.

[0102] Figure 4 This is a schematic diagram of an optional data processing system architecture for a deduction code according to an embodiment of this application, such as... Figure 4As shown, the system includes a discount code supplier system and a discount code agent issuance platform. The discount code supplier system comprises a financial processing module, an inventory acceptance module, a coupon verification and redemption module, and a key management module. The discount code agent issuance platform comprises a financial processing module, a discount code rule configuration module, a discount code inventory module, a key management module, a discount code application module, and a customer account module. Specifically, the financial processing module in the discount code supplier system is connected to the inventory acceptance module, which in turn is connected to the coupon verification and redemption module, and the coupon verification and redemption module is connected to the key management module. Similarly, the financial processing module in the discount code agent issuance platform is connected to the discount code rule configuration module, which in turn is connected to the discount code inventory module and the discount code application module. The discount code inventory module is also connected to the key management module and the discount code application module, and the key management module is also connected to the customer account module, which in turn is connected to the discount code application module. The financial processing module in the deduction code supplier system is connected to the financial processing module in the deduction code agent issuance platform. The inventory acceptance module in the deduction code supplier system is connected to the deduction code rule configuration module and the deduction code inventory module in the deduction code agent issuance platform. The key management module in the deduction code supplier system is connected to the key management module in the deduction code agent issuance platform.

[0103] The discount code agency issuance platform includes a coupon rule configuration module, which allows configuration of discount code rules such as contract number, supplier number, product number, issuance quantity, purchase, receipt or distribution conditions, usage conditions, and announcement instructions. The elements of discount code rights number, contract number, discount code supplier number, discount code product number, and issuance quantity can be used to apply for agency inventory generation: applying to the discount code supplier number, based on the contract number, to generate a fixed issuance quantity of discount codes for a specific product number. After the event ends, the remaining unclaimed, unpurchased, and undistributed discount quantities are tallied, and the remaining discount quantities are used to apply to the discount code supplier number to withdraw the remaining inventory: applying to the discount code supplier number to withdraw the remaining discount quantities of specific product numbers based on the contract number.

[0104] The deduction code inventory module can generate voucher codes based on the deduction code rights number, contract number, supplier number, product number, and issuance quantity. The voucher code generation process includes private key encryption using the RSA algorithm. The elements such as the deduction code rights number, contract number, supplier number, product number, and deduction code serial number are used for digital signature verification.

[0105] The customer account module registers the discount code rights number, contract number, supplier number, product number, discount code serial number, and discount code status under each customer's name, and saves the RSA digital signature encrypted block of the coupon code. When querying coupon codes, the RSA digital signature encrypted block and customer number are encrypted using the 3DES algorithm and returned to the front end for display. When receiving a redemption notification, the module traces and verifies whether the RSA digital signature encrypted block and the customer code are consistent; if a temporary coupon code exists, it is decrypted using the temporary coupon code, and both the official coupon code and the temporary coupon code are registered and marked as redeemed. The discount code application module interfaces with the front end and supports customer-facing interactive functions such as displaying discount code details, redeeming discount codes, purchasing discount codes, distributing discount codes, redemption notifications for discount codes, and displaying coupon packages. The accounting module performs settlement processing according to the agreement service. The key management module saves the private key of the digital signature RSA algorithm. It supports dynamic exchange of 3DES algorithm keys for coupon codes, using RSA algorithm protection for the exchanged 3DES keys (referred to as symmetric key exchange RSA protected key). The coupon code agent issuance platform stores the private key of the symmetric key exchange RSA protected key. After dynamic key exchange, the old key is retained for 5 minutes. If decryption fails using the new key, the old key can be used again for encryption and decryption. After 5 minutes, the old key must be deleted.

[0106] The discount code supplier system may include an inventory acceptance module. When the discount code agent issuance platform issues an application, it authorizes the generation of discount codes with specific product numbers for a certain issuance quantity. During the redemption phase, the system supports verification of whether the issuance quantity has been exceeded, and verifies the accuracy of the digital signature information of the voucher code, as well as the accuracy of the discount code's rights number, contract number, supplier number, and product number. It supports the registration of voucher codes, customer numbers, and RSA digital signature encryption blocks. After the activity ends, accounting is processed based on the redeemed issuance quantity and contract agreement.

[0107] The voucher code verification and redemption module uses the 3DES algorithm to decrypt voucher codes and the RSA algorithm's public key for decryption. Elements such as the redemption code's rights number, contract number, supplier number, product number, and redemption code serial number are used for digital signature verification. The module notifies the redemption code agent issuing platform; if the notification fails, it re-notifies or verifies the document. When re-notifying, the current 3DES encryption is used, and the customer number and RSA digital signature encryption block are used as a temporary voucher code. The temporary voucher code is compared with the official voucher code; if they do not match, the notification message must include both the official and temporary voucher codes used for redemption and be sent to the redemption code agent issuing platform. The accounting module performs settlement processing according to the agreement service. The key management module can store the public key for the digital signature RSA algorithm; it can store the public key for the symmetric key exchange RSA protection key; it can store the 3DES algorithm key, supporting dynamic key exchange. After 5 minutes, the old key is retained; if decryption fails using the new key, the old key is used again for encryption and decryption; after 5 minutes, the old key must be deleted.

[0108] Figure 5 This is a schematic diagram of an optional data processing procedure for a deduction code according to an embodiment of this application, as shown below. Figure 5 As shown, the system includes a discount code agent issuance platform, a discount code supplier system, the customer's mobile terminal, and a barcode scanner. The discount code agent issuance platform synchronizes information with the discount code supplier system, the discount code agent issuance platform distributes coupons to the customer's mobile terminal, the customer's mobile terminal displays and scans the coupons with the barcode scanner, and the barcode scanner initiates verification with the discount code supplier system.

[0109] Figure 6 This is a schematic diagram of an optional coupon code generation and verification process according to an embodiment of this application, as shown below. Figure 6 As shown, the deduction code agent issuance platform and the deduction code supplier system interact sequentially. The deduction code agent issuance platform applies to generate inventory, the deduction code supplier system authorizes the generation of inventory and authorizes the issuance quantity, the deduction code agent issuance platform generates inventory and displays the equipment code, the deduction code supplier system verifies and sends a verification notification, and the deduction code agent issuance platform receives the verification notification.

[0110] Figure 7 This is a schematic diagram of an optional dynamic key update process according to an embodiment of this application, such as... Figure 7As shown, the interaction between the deduction code agent issuance platform and the deduction code supplier system proceeds sequentially. The deduction code agent issuance platform initiates the process, the deduction code supplier system applies for an update of the dynamic key, the deduction code agent issuance platform initiates the update of the dynamic key, the deduction code supplier system accepts the update of the dynamic key, saves the dynamic key, and sends a notification that the dynamic key has been saved, the deduction code agent issuance platform receives the notification that the dynamic key has been saved, and sends a notification to prepare for the update, the deduction code supplier system updates and uses the new dynamic key, confirms that the dynamic key has been updated, and the deduction code agent issuance platform uses the new dynamic key.

[0111] Figure 8 This is a schematic diagram illustrating the data processing timing of an optional deduction code according to an embodiment of this application, as shown below. Figure 8 As shown, it includes a data synchronization interface, an activity rules table, an inventory data table, a user coupon package data table, a key management table, and an account registration table. The data synchronization interface connects to the activity rules table to maintain the discount code benefits and save the rules; the activity rules table connects to the inventory data table to maintain the discount code benefits and generate inventory; the data synchronization interface connects to the inventory data table to purchase, receive, and distribute discount codes and obtain the original information of the coupon codes; the data synchronization interface connects to the user coupon package data table to purchase, receive, and distribute discount codes and register coupon packages; the data synchronization interface connects to the user coupon package data table to display coupon packages and query the original information of the coupon codes; the user coupon package data table connects to the key management table to display coupon packages and generate coupon codes in real time using the key; the data synchronization interface connects to the user coupon package data table to receive redemption notifications and query the original information of the coupon codes; the user coupon package data table connects to the key management table to receive redemption notifications and decrypt coupon codes in real time using the key; the user coupon package data table connects to the account registration table to receive redemption notifications and register the accounts.

[0112] This application addresses the system stability issues of discount code agency issuance platforms. Based on contract-generated voucher codes, these codes contain the platform's identification information and the supplier's product information. This application ensures the voucher code remains integrated throughout the entire lifecycle of the discount code, from purchase and receipt to distribution, verification, and reconciliation. In the event of voucher code leakage or fraudulent verification, traceability is significantly improved. Furthermore, this application utilizes dynamic voucher codes for end-to-end customer integration, which, compared to static voucher codes generated by discount code suppliers, offers a technically superior protection against risks such as leakage and theft.

[0113] This application solves performance issues and supports high concurrency and high throughput by combining RSA and 3DES algorithms throughout the entire process of generating, purchasing, receiving, distributing, redeeming, and reconciling discount codes. Based on end-to-end customer interaction using dynamic coupon codes, it is technically more effective in preventing risks such as leakage and theft, and facilitates traceability. Developed specifically for banks with their large transaction volumes, high timeliness requirements, and demanding customer experience, this application is suitable for large banks to issue discount codes to external merchants.

[0114] According to another aspect of the embodiments of this application, a data processing device for deduction codes is also provided, which is applied to a deduction code agent issuance platform. The device can execute the data processing method for deduction codes in the above embodiments. The specific implementation method and preferred application scenarios are the same as those in the above embodiments, and will not be described in detail here.

[0115] Figure 9 This is a schematic diagram of a data processing device for a deduction code according to an embodiment of this application, as shown below. Figure 9 As shown, the device includes the following: an acquisition module 902, a first generation module 904, a sending module 906, and a second generation module 908.

[0116] The system includes: an acquisition module 902 for acquiring configuration rule data for the discount code, wherein the configuration rule data includes at least contract rules, distribution rules, and usage rules for the discount code, and the contract rules represent the participation rules of each party involved in the discount code in a pre-determined manner; a first generation module 904 for generating a quantity issuance request based on the configuration rule data; a sending module 906 for sending the quantity issuance request to the discount code supplier system; and a second generation module 908 for encrypting the configuration rule data using a private key of a preset asymmetric encryption algorithm to obtain digital signature encryption information; and generating the discount code to be distributed based on the digital signature encryption information, the configuration rule data, and the quantity of discount codes to be issued, wherein the quantity of discount codes to be issued is determined based on feedback information received from the discount code supplier system.

[0117] The acquisition module is also used to acquire the contract identifier, expected issuance quantity, distribution rules, and usage rules of the discount code; determine the contract rules based on the contract identifier; and generate configuration rule data based on the contract rules, expected issuance quantity, distribution rules, and usage rules.

[0118] The feedback information includes at least the quantity of deduction codes issued from the supplier's inventory. If the expected quantity to be issued is less than or equal to the quantity to be issued from inventory, the quantity of deduction codes issued is determined based on the expected quantity. If the expected quantity to be issued is greater than the quantity to be issued from inventory, the quantity of deduction codes issued is determined by the maintenance personnel.

[0119] According to another aspect of the embodiments of this application, a data processing device for deduction codes is also provided, which is applied to a deduction code supplier system. The device can execute the data processing method for deduction codes in the above embodiments. The specific implementation method and preferred application scenarios are the same as those in the above embodiments, and will not be described in detail here.

[0120] Figure 10 This is a schematic diagram of a data processing device for a deduction code according to an embodiment of this application, as shown below. Figure 10 As shown, the device includes the following: a generation module 1002 and a transmission module 1004.

[0121] The generation module 1002 is used to generate feedback information in response to receiving a distribution quantity request, wherein the distribution quantity request is generated using the method described above, and the feedback information includes at least the inventory distribution quantity of the deduction code corresponding to the distribution quantity request; the sending module 1004 is used to send the feedback information to the deduction code agent distribution platform, wherein the feedback information is used to generate deduction codes to be distributed using the method described above.

[0122] According to another aspect of the embodiments of this application, a data processing device for deduction codes is also provided, which is applied to a deduction code agent issuance platform. The device can execute the data processing method for deduction codes in the above embodiments. The specific implementation method and preferred application scenarios are the same as those in the above embodiments, and will not be described in detail here.

[0123] Figure 11 This is a schematic diagram of a data processing device for a deduction code according to an embodiment of this application, as shown below. Figure 11 As shown, the device includes the following: a distribution module 1102 and a conversion module 1104.

[0124] The distribution module 1102 is used to distribute deduction codes to customers who meet the distribution rules for deduction codes within the distribution period of the deduction code distribution activity. The deduction codes to be distributed are generated using the method described above. The conversion module 1104 is used to convert the deduction codes to be distributed to customers to obtain deduction codes to be used.

[0125] The conversion module is also used to encrypt the digital signature encryption information in the deduction code to be used using a preset symmetric encryption algorithm to obtain the encryption information of the deduction code to be used; and to send the encryption information to the client corresponding to the deduction code to be used, wherein the client is used to display the encryption information.

[0126] The conversion module is also used to cancel the undistributed deduction codes that have not been distributed to customers in response to the end of the deduction code distribution activity period, and obtain invalid deduction codes; based on the invalid deduction codes, the inventory issuance quantity of the deduction code supplier system is restored.

[0127] The conversion module is also used to verify the deduction codes that meet the usage rules and obtain the verified deduction codes.

[0128] Embodiments of this application also provide an electronic device, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods in various embodiments of this application when it runs.

[0129] The aforementioned memory can refer to devices inside a computer used to store data and programs, including RAM, hard disks, etc. RAM can be used to temporarily store running programs and data, while hard disks can be used to store programs and data long-term. Memory enables the computer to read and write data and execute programs. The aforementioned processor is responsible for executing instructions in computer programs and performing data processing. It can also be responsible for controlling and executing various operations, including arithmetic operations, logical operations, and data transmission.

[0130] Embodiments of this application also provide a computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the methods of various embodiments of this application.

[0131] The aforementioned computer storage media can refer to the media used in computer memory to store certain discontinuous physical quantities. Computer storage media mainly include semiconductors, magnetic cores, magnetic drums, magnetic tapes, laser discs, etc. Computer-readable storage media include stored programs, which can be a set of instructions that a computer can recognize and execute, running on an electronic computer to meet certain information needs.

[0132] Embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.

[0133] The aforementioned computer program products can refer to software programs that have been written, tested, and released, and can run on computers or other devices. Computer program products can include application programs, operating systems, utility software, etc., used to achieve specific functions or solve specific problems.

[0134] Embodiments of this application also provide a computer program product, including a non-volatile computer-readable storage medium for storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.

[0135] The aforementioned non-volatile computer-readable storage medium can refer to a medium for storing data. Non-volatile computer-readable storage media can retain data without loss when power is off and can be used to store long-term data, such as operating systems, applications, and user files. Non-volatile storage media can include hard disk drives, solid-state drives, optical disks, and flash memory storage devices, etc.

[0136] Embodiments of this application also provide a computer program that, when executed by a processor, implements the methods described in the various embodiments of this application.

[0137] The aforementioned computer program can refer to a set of instructions used to tell the computer to perform specific tasks or operations. Computer programs can be written by programmers using specific programming languages ​​and can include algorithms, data structures, logic, and control flow. Computer programs can be used for a variety of purposes, including application software, operating systems, etc.

[0138] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical discs.

[0139] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.

[0140] The collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0141] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, they do not mean that the applicant has used or necessarily used the solution.

[0142] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0143] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A data processing method for a discount code, characterized in that, Applied to a discount code agent issuance platform, the method includes: Obtain configuration rule data for the deduction code, wherein the configuration rule data includes at least the contract rules, distribution rules, and usage rules for the deduction code, and the contract rules are used to represent the participation rules of each participant in the deduction code as predetermined; Based on the configuration rule data, a request for the number of shares to be issued is generated; Send the issuance quantity request to the discount code supplier system; The configuration rule data is encrypted using a private key of a preset asymmetric encryption algorithm to obtain digital signature encrypted information; Based on the digital signature encryption information, the configuration rule data, and the number of deduction codes issued, the deduction codes to be distributed are generated, wherein the number of deduction codes issued is determined based on feedback information received from the deduction code supplier system.

2. The data processing method for the discount code according to claim 1, characterized in that, Retrieve the configuration rule data for the deduction code, including: Obtain the contract identifier, expected issuance quantity, distribution rules, and usage rules of the discount code; The contract rules are determined based on the contract identifier; The configuration rule data is generated based on the contract rules, the expected issuance quantity, the distribution rules, and the usage rules.

3. The data processing method for the deduction code according to claim 1 or 2, characterized in that, The feedback information includes at least the inventory issuance quantity of the discount code supplier system. If the expected issuance quantity is less than or equal to the inventory issuance quantity, the discount code issuance quantity is determined based on the expected issuance quantity; if the expected issuance quantity is greater than the inventory issuance quantity, the discount code issuance quantity is determined by maintenance personnel.

4. A data processing method for a discount code, characterized in that, Applied to a discount code supplier system, the method includes: In response to receiving a request for issuance quantity, feedback information is generated based on the request for issuance quantity. The request for issuance quantity is generated based on the configuration rule data of the discount code. The feedback information includes at least the inventory issuance quantity of the discount code corresponding to the request for issuance quantity. The configuration rule data includes at least the contract rules, distribution rules, and usage rules of the discount code. The contract rules are used to represent the predetermined participation rules of each participant in the discount code. The feedback information is sent to the discount code agent issuance platform, whereby the feedback information is processed by the discount code agent issuance platform to obtain the discount codes to be distributed.

5. A data processing method for a discount code, characterized in that, Applied to a discount code agent issuance platform, the method includes: During the period of the discount code distribution activity, the discount code to be distributed is distributed to clients that meet the distribution rules of the discount code to be distributed, wherein the discount code to be distributed is generated by the method described in any one of claims 1 to 3. The deduction code to be distributed to the client is converted to obtain a deduction code to be used.

6. The data processing method for the deduction code according to claim 5, the method further includes: The digital signature encryption information in the deduction code to be used is encrypted using a preset symmetric encryption algorithm to obtain the encrypted information of the deduction code to be used. The encryption information is sent to the client corresponding to the deduction code to be used, wherein the client is used to display the encryption information.

7. The data processing method for the discount code according to claim 5, characterized in that, The method further includes: In response to the end of the deduction code distribution activity period, the deduction codes that have not been distributed to the client will be cancelled, resulting in invalid deduction codes; Based on the invalid deduction code, the inventory issuance quantity of the deduction code supplier system is restored.

8. The data processing method for the discount code according to claim 5, characterized in that, The method further includes: The deduction codes that meet the usage rules are verified to obtain the verified deduction codes.

9. A data processing device for a discount code, characterized in that, The device, used in a discount code agent issuance platform, includes: The acquisition module is used to acquire configuration rule data of the deduction code, wherein the configuration rule data includes at least the contract rules, distribution rules and usage rules of the deduction code, and the contract rules are used to represent the participation rules of each participant of the deduction code in advance; The first generation module is used to generate a release quantity request based on the configuration rule data; The sending module is used to send the issuance quantity request to the discount code supplier system; The second generation module is used to encrypt the configuration rule data using a private key of a preset asymmetric encryption algorithm to obtain digital signature encryption information; based on the digital signature encryption information, the configuration rule data, and the number of deduction codes issued, it generates the deduction codes to be distributed, wherein the number of deduction codes issued is determined based on feedback information received from the deduction code supplier system.

10. A data processing device for a discount code, characterized in that, The device, used in a discount code supplier system, includes: A generation module is configured to, in response to receiving a release quantity request, generate feedback information based on the release quantity request, wherein the release quantity request is generated using the method of claim 1, and the feedback information includes at least the inventory release quantity of the deduction code corresponding to the release quantity request; The sending module is used to send the feedback information to the deduction code agent issuance platform, wherein the feedback information is used to generate a deduction code to be distributed using the method described in claim 1.

11. A data processing device for a discount code, characterized in that, The device, used in a discount code agent issuance platform, includes: The distribution module is used to distribute the deduction code to be distributed to clients that meet the distribution rules of the deduction code to be distributed within the distribution period of the deduction code distribution activity, wherein the deduction code to be distributed is generated by the method of claim 1. The conversion module is used to convert the deduction code to be distributed to the client into a deduction code to be used.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the data processing method for the deduction code as described in any one of claims 1 to 8.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the data processing method for the deduction code as described in any one of claims 1 to 8.