Redemption code resource processing method, device and electronic device
By performing multiple encryption processes between the redemption code maintainer and the user, the problem of information leakage during the maintenance and activities of the redemption code resources is solved, the secure transmission and storage of the redemption code resources is ensured, and the secure issuance of rights and interests is achieved.
Patent Information
- Application Number
- CN202410771507.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-06-14
AI Technical Summary
In the prior art, during the allocation of redemption code resources, there is a risk of information leakage during the maintenance and activities of the redemption code resources, which affects the issuance of benefits.
By performing multiple encryption processes between the redemption code maintainer and the user, including encrypting the redemption code file during upload and download, the secure storage and transmission of the file in the resource management system is ensured.
It effectively avoids the leakage of redemption code resources and ensures the security and integrity of rights issuance.
Smart Images

Figure CN118862108B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial technology, and more specifically, to a method, device, and electronic device for processing redemption code resources. Background Art
[0002] Financial institutions promote events by distributing benefits. These events require the allocation of resources available for distribution. These resources are categorized as internal and external. External resources can include redemption code resources. For example, when using external resources, which are not created and maintained by the financial institution, information leakage can occur during resource acquisition, potentially impacting the proper distribution of benefits.
[0003] Currently, no effective solution has been proposed to address the problem in related technologies that redemption code resources are at risk of information leakage during maintenance and when redemption codes are allocated during activities, which affects the issuance of benefits. Summary of the Invention
[0004] The present application provides a method, device, and electronic device for processing redemption code resources to solve the problem of information leakage risks in the process of maintaining redemption codes and distributing redemption codes in activities, which affects the issuance of rights.
[0005] According to one aspect of the present application, a method for processing redemption code resources is provided. The method includes: receiving a redemption code file upload request sent by a first client, parsing the upload request, obtaining a redemption code file, and storing the redemption code file, wherein the first client is a client of a redemption code maintainer, the redemption code file is an encrypted file, and the redemption code file contains a redemption code resource; receiving a redemption code resource download request from a second client, sending the redemption code file to the second client, wherein the second client is a client of a redemption code user, the second client decrypting the redemption code file, re-encrypting the decrypted redemption code file, storing the re-encrypted redemption code file in a database of the second client, and allocating the redemption code resource in the redemption code file to the activity based on activity creation requirements.
[0006] Optionally, the first client obtains the redemption code file in the following manner: sending a first resource request to the redemption code resource provider, receiving an initial redemption code resource fed back by the redemption code resource provider based on the first resource request, generating an initial redemption code file based on the initial redemption code resource, and encrypting the initial redemption code file through an electronic file security control system to obtain the redemption code file; or sending an encryption policy and a second resource request to the redemption code resource provider, receiving a redemption code file fed back by the redemption code resource provider based on the second resource request, wherein the redemption code resource provider encrypts the initial redemption code resource based on the encryption policy to obtain the redemption code file.
[0007] Optionally, before storing the redemption code file, the method further includes: performing a first check on the information of the redemption code maintainer; when the result of the first check indicates that the check is passed, performing a second check on the attribute information of the redemption code file; when the result of the second check indicates that the check is passed, executing the step of storing the redemption code file; when the result of the first check indicates that the check is failed or the result of the second check indicates that the check is failed, recording an error log.
[0008] Optionally, performing a second check on the attribute information of the redemption code file includes at least one of the following: checking the file suffix, checking the file size, checking the file format, checking the maximum number of rows in the file, and checking the fields in the file.
[0009] Optionally, storing the redemption code file includes: renaming the redemption code file with a random number; and storing the renamed redemption code file in a target path, wherein the target path is a path other than an access path of the network application.
[0010] Optionally, the first client sends an upload request for the redemption code file to the resource management system through an intranet environment.
[0011] Optionally, after the winning mechanism of the activity is triggered, the redemption code file corresponding to the activity is retrieved from the database of the second client, the redemption code file is decrypted, and a preset number of redemption codes in the decrypted redemption code resource are distributed to the winning customers.
[0012] According to another aspect of the present application, a device for processing redemption code resources is provided. The device includes: an upload unit for receiving an upload request for a redemption code file sent by a first client, parsing the upload request, obtaining a redemption code file, and storing the redemption code file, wherein the first client is a client of a redemption code maintainer, the redemption code file is an encrypted file, and the redemption code file contains a redemption code resource; a download unit for receiving a download request for a redemption code resource from a second client, sending the redemption code file to the second client, wherein the second client is a client of a redemption code user, decrypting the redemption code file, re-encrypting the decrypted redemption code file, storing the re-encrypted redemption code file in a database of the second client, and allocating the redemption code resource in the redemption code file to the activity based on activity creation requirements.
[0013] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a processor and a memory; the memory stores computer-readable instructions, and the processor is configured to execute the computer-readable instructions, wherein when the computer-readable instructions are executed, a method for processing redemption code resources is executed.
[0014] According to another aspect of the present application, a computer program product is provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the above-mentioned methods for processing redemption code resources.
[0015] Through this application, the following steps are adopted: receiving an upload request for a redemption code file sent by a first client, parsing the upload request, obtaining a redemption code file, and storing the redemption code file, wherein the first client is the client of the redemption code maintainer, the redemption code file is an encrypted file, and the redemption code file contains redemption code resources; receiving a download request for a redemption code resource from a second client, sending the redemption code file to the second client, wherein the second client is the client of the redemption code user, the second client decrypts the redemption code file, and encrypts the decrypted redemption code file again, stores the re-encrypted redemption code file in the database of the second client, and allocates the redemption code resources in the redemption code file to the activity based on the activity creation requirements, thereby solving the problem of information leakage in the process of maintaining redemption codes and allocating redemption codes in activities, which affects the issuance of rights and interests. By performing multiple encryptions in different steps when the redemption code maintainer uploads and the redemption code user downloads and stores the redemption code resources, the effect of avoiding the leakage of redemption code resources is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of this application. The exemplary embodiments and descriptions of this application are intended to explain this application and do not constitute an improper limitation on this application. In the accompanying drawings:
[0017] Figure 1 is a flowchart of a method for processing redemption code resources according to an embodiment of the present application;
[0018] Figure 2 2 is a schematic diagram of a method for verifying a redemption code resource before uploading according to an embodiment of the present application;
[0019] Figure 3 is a schematic diagram of a device for processing redemption code resources according to an embodiment of the present application;
[0020] Figure 4 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0025] According to an embodiment of the present application, a method for processing redemption code resources is provided.
[0026] Figure 1 Flowchart of a method for processing redemption code resources according to an embodiment of the present application. The method is applied to a resource management system, such as Figure 1 As shown, the method includes the following steps:
[0027] Step S101: Receive a redemption code file upload request sent by a first client, parse the upload request, obtain a redemption code file, and store the redemption code file. The first client is a client of a redemption code maintainer, the redemption code file is an encrypted file, and the redemption code file contains a redemption code resource.
[0028] It should be noted that the upload request includes at least one of the following information: the identity information of the uploader, the resource management system can verify the uploader's authority through the identity information of the uploader; the resource identifier, the resource management system can identify and store the redemption code resource through the resource identifier; the resource type, the resource management system can assign an appropriate storage location and processing method to the resource through the resource type. In the embodiment of the present application, the resource type can be in the form of a document, a table or a file, etc. The storage location refers to the target path or storage address to which the resource should be uploaded; resource data, which refers to the resource content of the uploaded file, for example, the redemption code resource, the redemption code resource is a redemption code used to participate in specific activities or promotions, but there are restrictions on the time and place of use. Users holding the redemption code can use the redemption code to receive gifts, discounts or other specific offers at the time and place specified in the activity.
[0029] The client of the redemption code maintainer belongs to the client used by the redemption code maintainer, which can be a mobile phone, PC, etc. The redemption code maintainer is different from the redemption code user. The redemption code maintainer is used to obtain and maintain redemption code resources. The redemption code maintainer generates an upload request for the redemption code file based on the acquired redemption code resources, and sends it to the resource management system through the first client. Therefore, when the resource management system obtains the redemption code file from the client of the redemption code maintainer, it needs to first parse the upload request of the client of the redemption code maintainer. After the parsing is completed, the redemption code file uploaded by the redemption code maintainer will be stored.
[0030] It should be noted that the redemption code resource is uploaded as a file each time. During the upload to the resource management system, the redemption code file is in an encrypted state, which can reduce the risk of leakage during the upload of the redemption code file to the resource management system.
[0031] Step S102: Receive a download request for a redemption code resource from a second client, and send a redemption code file to the second client, wherein the second client is a client of a redemption code user. The second client decrypts the redemption code file, and encrypts the decrypted redemption code file again, stores the re-encrypted redemption code file in a database of the second client, and allocates the redemption code resource in the redemption code file to the activity based on the activity creation requirements.
[0032] It should be noted that the download request is a request to download the redemption code file from the resource management system. The process of the redemption code user downloading the redemption code file through the second client includes the following steps: Since the redemption code file stored in the resource management system is an encrypted file, after downloading the redemption code file, in order to obtain the specific redemption code resource, the redemption code user must first obtain file read authorization (authorized by the business personnel responsible for encryption) and then decrypt it. After decryption, the plaintext redemption code is obtained. However, there is still a risk of redemption code leakage when it is stored in the second client of the redemption code user. The redemption code user further reduces the risk of redemption code leakage by encrypting it first and then storing it in its own database. When the second client has an activity creation demand, the corresponding number of redemption code resources is allocated to the activity based on the activity budget, and the redemption code file is retrieved from the database of the second client. For example, if the activity budget is 50,000 yuan and one redemption code resource is 5 yuan, then the number of redemption code resources required for the activity creation demand is 10,000.
[0033] The method for processing redemption code resources provided in the embodiment of the present application receives an upload request for a redemption code file sent by a first client, parses the upload request, obtains a redemption code file, and stores the redemption code file, wherein the first client is the client of the redemption code maintainer, the redemption code file is an encrypted file, and the redemption code file contains redemption code resources; receives a download request for a redemption code resource from a second client, sends the redemption code file to the second client, wherein the second client is the client of the redemption code user, decrypts the redemption code file, and encrypts the decrypted redemption code file again, stores the re-encrypted redemption code file in the database of the second client, and allocates the redemption code resources in the redemption code file to the activity based on the activity creation requirements. This solves the problem of information leakage risk in the process of maintaining redemption codes and allocating redemption codes in activities, which affects the issuance of rights and interests. By performing multiple encryptions in different steps when the redemption code maintainer uploads and the redemption code user downloads and stores the redemption code resources, the effect of avoiding the leakage of redemption code resources is achieved.
[0034] There are different ways to encrypt the redemption code file. Optionally, in the redemption code resource processing method provided in the embodiment of the present application, the first client obtains the redemption code file in the following manner: sending a first resource request to the redemption code resource provider, receiving the initial redemption code resource fed back by the redemption code resource provider based on the first resource request, generating an initial redemption code file based on the initial redemption code resource, and encrypting the initial redemption code file through the electronic file security control system to obtain the redemption code file; or sending an encryption policy and a second resource request to the redemption code resource provider, receiving the redemption code file fed back by the redemption code resource provider based on the second resource request, wherein the redemption code resource provider encrypts the initial redemption code resource based on the encryption policy to obtain the redemption code file.
[0035] In an optional implementation, the redemption code maintainer may first obtain the initial redemption code resource from the redemption code resource provider, and then encrypt the initial redemption code resource using an electronic file security control system, which is a technical policy system for protecting the security of electronic files and data.
[0036] In this embodiment, the electronic document security control system uses encryption technology and file integrity verification to encrypt the initial redemption code resources. The encryption technology can use the national secret algorithm, and the file integrity verification can be implemented using hash function information. The hash function can be the information digest algorithm (MD5), abstract algorithm (SHA-256), etc.
[0037] In an optional implementation, the redemption code provider may encrypt the initial redemption code resource in accordance with an agreement with the redemption code maintainer. Encryption policies are technologies used to protect sensitive data and enhance data security, primarily targeting data transmission and security. In this implementation, the encryption policy sent by the first client is jointly agreed upon by the resource maintainer of the resource management system and the redemption code resource provider.
[0038] Through this embodiment, two encryption methods are adopted, namely, encryption after obtaining the redemption code file and encryption before obtaining the redemption code file, thereby achieving the effect of preventing the redemption code file from being leaked before being uploaded to the resource management system.
[0039] The redemption code resource needs to be verified before uploading. Figure 2 is a schematic diagram of a verification method before uploading a redemption code resource according to an embodiment of the present application. Optionally, in the method for processing redemption code resources provided in an embodiment of the present application, before storing the redemption code file, the method further includes:
[0040] Step S201: Perform a first verification on the information of the redemption code maintainer.
[0041] The resource management system performs a first verification on the information of the redemption code maintainer. On the one hand, it helps to verify whether the source of the corresponding redemption code file is reliable and ensure that the redemption code file received by the resource management system is provided by a trusted redemption code maintainer. The first verification operation can prevent users from uploading forged or fraudulent redemption code files and reduce the risks brought by file uploads. On the other hand, the resource management system can also verify the identity information of the redemption code maintainer to see whether it complies with the legitimacy of logging into the system, verify the legitimacy of the redemption code maintainer's transactions, and prevent unauthorized functions. For example, when the redemption code maintainer does not have the authority to operate the menu of the resource management system, the upload request of the unauthorized redemption code maintainer can be intercepted to reduce the risks brought by unauthorized operations.
[0042] Step S202: When the result of the first verification indicates that the verification is passed, a second verification is performed on the attribute information of the redemption code file.
[0043] After the first verification passes, a second verification is performed on the redemption code file's attributes to check whether the file's format, size, and type meet expected standards. This helps ensure that the file has not been damaged or illegally tampered with, maintaining data integrity. The redemption code file's attributes include at least one of the following: verification file suffix, verification file size, verification file format, verification file maximum number of rows, and verification file fields. Furthermore, by checking file attributes, only qualified redemption code files are stored, avoiding wasted storage resources or reduced system performance due to storing unqualified files.
[0044] Step S203: If the second verification result indicates that the verification is passed, the step of storing the redemption code file is performed.
[0045] Verification is performed before storing the redemption code file to ensure its security, integrity, and accuracy, thereby protecting the system from unnecessary risk and loss. Before uploading and storing the redemption code file, the redemption code file can be stored only after verifying the identity of the redemption code maintainer and the attributes of the redemption code file.
[0046] Step S204: If the result of the first verification indicates a verification failure or the result of the second verification indicates a verification failure, an error log is recorded, the current operation of uploading the redemption code file is no longer performed, and the resource management system is left to process the error information.
[0047] Through this embodiment, a first check on the redemption code maintainer and a second check on the attribute information of the redemption code file are set, thereby ensuring that the source of the redemption code file is credible and valid and reducing the risk of uploading the redemption code file.
[0048] After the resource management system confirms the legitimacy of the redemption code file, it needs to ensure the security of storage. Optionally, in the redemption code resource processing method provided in the embodiment of the present application, storing the redemption code file includes: renaming the redemption code file with a random number; storing the renamed redemption code file to the target path, wherein the target path is a path other than the access path of the network application.
[0049] Among them, random number renaming of files is to change the name of the file to a new name containing randomly generated numbers or characters. The purpose is to prevent the file name from being predicted, avoid duplicate names, enhance security and maintain anonymity. In addition, random number renaming can also simplify file management, especially for uploading and storing scenarios with large file volumes. The target path is the storage path under the resource management system. The target path is set to a path other than the access path of the network application in order to avoid direct access to the uploaded file through the network application, which effectively increases the security of the access path. In addition, in order to prevent scripts from running, the resource management system also sets the uploaded directory and uploaded files to non-executable, ensuring the security of the server and avoiding file parsing vulnerabilities.
[0050] Through this embodiment, the redemption code file is renamed with a random number and saved to a path outside the network application, thereby achieving the effect of enhancing the security of the redemption code storage process.
[0051] In the process of transmitting the redemption code file, considering the risks of network transmission, optionally, in the redemption code resource processing method provided in the embodiment of the present application, the first client sends the redemption code file upload request to the resource management system through the intranet environment.
[0052] An intranet refers to a computer network within a company or organization. Access is limited to members of the company or organization and it is not directly connected to the internet. It features privacy, resource sharing, and dedicated protocols. The isolated nature of an intranet not only reduces the possibility of redemption code resource leakage but also avoids the risk of external attacks, ensuring the security of redemption code file upload operations.
[0053] The first client sends an upload request for the redemption code file through the intranet environment, which involves a communication process involving the internal network security of the enterprise or organization. The first client first connects to the intranet of the enterprise or organization, thereby providing a relatively safe environment for data transmission. It should be noted that the upload request contains redemption code file data, metadata, and authentication and authorization information, wherein the metadata includes the name, size, and type of the redemption code file. When the resource management system receives the upload request, it will perform a series of checks and verifications, including identity verification of the uploader and verification of the attribute information of the redemption code file. In addition, when the resource management system completes uploading the redemption code file, it will send a confirmation response to the client, indicating that the redemption code file has been successfully uploaded, and provide the storage location of the uploaded redemption code file.
[0054] Through this embodiment, the redemption code file is uploaded by transmitting the request through the intranet environment, which can ensure that the redemption code file is not leaked during the transmission process, thereby achieving the effect of increasing the security of the redemption code file uploading process.
[0055] During the use of the redemption code, available redemption code resources are allocated to the activity. Optionally, in the method for processing the redemption code resources provided in the embodiment of the present application, after the winning mechanism of the activity is triggered, the redemption code file corresponding to the activity is retrieved from the database of the second client, the redemption code file is decrypted, and a preset number of redemption codes in the decrypted redemption code resources are distributed to the winning customers.
[0056] Before the event begins, the user of the resource downloads the redemption code file from the resource management system through the second client, and after decryption and re-encryption, it is stored in the database of the second client. When a customer participating in the event wins a prize, he or she needs to claim the redemption code corresponding to the event. Because the redemption code file stored in the database of the second client is also in an encrypted state, the file needs to be decrypted first. The process is: the redemption code file in the database is first extracted through the second client, and then decrypted. Then, the redemption code corresponding to the event is obtained from the decrypted redemption code resource, and the redemption code corresponding to the event is issued to the winning customer. In addition, the second client will record the issuance of the redemption code, including the information of the winning customer, the specific content of the redemption code, the time and method of issuance of the redemption code, etc., to facilitate subsequent audits, verifications and customer service, and provide necessary technical support for customer inquiries and problems that may arise in the future.
[0057] Through this embodiment, the second client decrypts the redemption code file before issuing it, thereby improving the confidentiality of the process of protecting the redemption code file from the second client's database to the winning customer, thereby achieving the effect of security in issuing rights.
[0058] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0059] The present application also provides a device for processing redemption code resources. It should be noted that the device for processing redemption code resources in the present application can be used to execute the method for processing redemption code resources provided in the present application. The following describes the device for processing redemption code resources provided in the present application.
[0060] Figure 3 Schematic diagram of a device for processing redemption code resources according to an embodiment of the present application. Figure 3 As shown, the device includes: an upload unit 301 and a download unit 302.
[0061] The upload unit 301 is used to receive an upload request for a redemption code file sent by a first client, parse the upload request, obtain the redemption code file, and store the redemption code file, wherein the first client is a client of the redemption code maintainer, the redemption code file is an encrypted file, and the redemption code file contains a redemption code resource.
[0062] The download unit 302 is used to receive a download request for a redemption code resource from a second client and send a redemption code file to the second client, wherein the second client is a client of a redemption code user, the second client decrypts the redemption code file, and encrypts the decrypted redemption code file again, stores the re-encrypted redemption code file in a database of the second client, and allocates the redemption code resource in the redemption code file to the activity based on the activity creation requirements.
[0063] In the redemption code resource processing device provided in an embodiment of the present application, an upload unit 301 receives an upload request for a redemption code file from a first client, parses the upload request, obtains a redemption code file, and stores the redemption code file. The first client is a client of the redemption code maintainer, and the redemption code file is an encrypted file containing the redemption code resource. A download unit 302 receives a download request for a redemption code resource from a second client and sends the redemption code file to the second client. The second client is a client of the redemption code user. The second client decrypts the redemption code file, re-encrypts the decrypted redemption code file, stores the re-encrypted redemption code file in the second client's database, and allocates the redemption code resource in the redemption code file to the activity based on the activity creation requirements. There is a risk of information leakage during the redemption code resource maintenance process and when redemption codes are allocated during activities, which can affect the issuance of benefits. By performing multiple encryption steps in different steps, both when the redemption code maintainer uploads the redemption code resource and when the redemption code user downloads and stores the redemption code resource, the leakage of the redemption code resource is prevented.
[0064] Optionally, in the redemption code resource processing device provided in the embodiment of the present application, the first client obtains the redemption code file in the following manner: sending a first resource request to the redemption code resource provider, receiving the initial redemption code resource fed back by the redemption code resource provider based on the first resource request, generating an initial redemption code file based on the initial redemption code resource, and encrypting the initial redemption code file through the electronic file security control system to obtain the redemption code file; or sending an encryption policy and a second resource request to the redemption code resource provider, receiving the redemption code file fed back by the redemption code resource provider based on the second resource request, wherein the redemption code resource provider encrypts the initial redemption code resource based on the encryption policy to obtain the redemption code file.
[0065] Optionally, in the redemption code resource processing device provided in the embodiment of the present application, the device also includes: a first verification unit, used to perform a first verification on the information of the redemption code maintainer before storing the redemption code file; a second verification unit, used to perform a second verification on the attribute information of the redemption code file when the result of the first verification indicates that the verification is passed; a storage unit, used to execute the step of storing the redemption code file when the result of the second verification indicates that the verification is passed; and an error unit, used to record an error log when the result of the first verification indicates that the verification is failed or the result of the second verification indicates that the verification is failed.
[0066] Optionally, in the redemption code resource processing device provided in the embodiment of the present application, the second verification unit includes at least one of the following: verification file suffix, verification file size, verification file format, verification file maximum number of lines, and verification file fields.
[0067] Optionally, in the processing device for redemption code resources provided in an embodiment of the present application, the upload unit storing the redemption code file includes: a renaming sub-unit for renaming the redemption code file with a random number; and a storage sub-unit for storing the renamed redemption code file to a target path, wherein the target path is a path other than the access path of the network application.
[0068] Optionally, in the redemption code resource processing device provided in an embodiment of the present application, the first client sends an upload request for the redemption code file to the resource management system through an intranet environment.
[0069] Optionally, in the processing device for redemption code resources provided in the embodiment of the present application, after triggering the winning mechanism of the activity, the redemption code file corresponding to the activity is retrieved from the database of the second client, the redemption code file is decrypted, and a preset number of redemption codes in the decrypted redemption code resources are distributed to the winning customers.
[0070] The redemption code resource processing device includes a processor and a memory. The upload unit 301 and the download unit 302 are stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions.
[0071] The processor contains a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be configured, and kernel parameters can be adjusted to prevent redemption code resource leaks.
[0072] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0073] The embodiment of the present application also provides an electronic device, Figure 4 is a schematic diagram of an electronic device according to an embodiment of the present application. The electronic device 40 includes a processor and a memory. The memory stores computer-readable instructions, and the processor is configured to execute the computer-readable instructions. When the computer-readable instructions are executed, a method for processing redemption code resources is executed. The electronic device herein may be a server, a PC, a PAD, a mobile phone, or the like.
[0074] An embodiment of the present application also provides a computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the program has the following method steps: receiving an upload request for a redemption code file sent by a first client, parsing the upload request, obtaining a redemption code file, and storing the redemption code file, wherein the first client is a client of a redemption code maintainer, the redemption code file is an encrypted file, and the redemption code file contains a redemption code resource; receiving a download request for a redemption code resource from a second client, sending the redemption code file to the second client, wherein the second client is a client of a redemption code user, the second client decrypts the redemption code file, and encrypts the decrypted redemption code file again, stores the re-encrypted redemption code file in a database of the second client, and allocates the redemption code resource in the redemption code file to the activity based on the activity creation requirements.
[0075] When the computer program is executed by the processor, it also includes the following method steps: the first client obtains the redemption code file in the following manner: sending a first resource request to the redemption code resource provider, receiving an initial redemption code resource fed back by the redemption code resource provider based on the first resource request, generating an initial redemption code file based on the initial redemption code resource, and encrypting the initial redemption code file through an electronic file security control system to obtain the redemption code file; or sending an encryption policy and a second resource request to the redemption code resource provider, receiving the redemption code file fed back by the redemption code resource provider based on the second resource request, wherein the redemption code resource provider encrypts the initial redemption code resource based on the encryption policy to obtain the redemption code file.
[0076] The computer program, when executed by a processor, also includes the following method steps: before storing the redemption code file, the method further includes: performing a first check on the information of the redemption code maintainer; when the result of the first check indicates that the check is passed, performing a second check on the attribute information of the redemption code file; when the result of the second check indicates that the check is passed, executing the step of storing the redemption code file; when the result of the first check indicates that the check is failed or the result of the second check indicates that the check is failed, recording an error log.
[0077] The computer program, when executed by a processor, further comprises the following method steps: performing a second check on the attribute information of the redemption code file includes at least one of the following: checking the file suffix, checking the file size, checking the file format, checking the maximum number of rows in the file, and checking the fields in the file.
[0078] When the computer program is executed by the processor, it also includes the following method steps: storing the redemption code file includes: renaming the redemption code file with a random number; storing the renamed redemption code file in a target path, wherein the target path is a path other than the access path of the network application.
[0079] When the computer program is executed by the processor, the program also includes the following method steps: the first client sends an upload request for the redemption code file to the resource management system through the intranet environment.
[0080] When the computer program is executed by the processor, it also includes the following method steps: after triggering the winning mechanism of the activity, retrieving the redemption code file corresponding to the activity from the database of the second client, decrypting the redemption code file, and distributing a preset number of redemption codes in the decrypted redemption code resource to the winning customers.
[0081] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0082] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0083] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0084] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0085] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0086] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0087] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0088] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0089] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A method for processing redemption code resources, characterized in that: Applied to resource management systems, including: Receiving a redemption code file upload request sent by a first client, parsing the upload request, obtaining the redemption code file, and storing the redemption code file, wherein the first client is a client of a redemption code maintainer, the redemption code file is an encrypted file, and the redemption code file includes a redemption code resource; receiving a download request for a redemption code resource from a second client, and sending the redemption code file to the second client, wherein the second client is a client of a redemption code user, the second client decrypting the redemption code file, re-encrypting the decrypted redemption code file, storing the re-encrypted redemption code file in a database of the second client, and allocating the redemption code resource in the redemption code file to the activity based on activity creation requirements; The first client obtains the redemption code file by: sending a first resource request to a redemption code resource provider, receiving an initial redemption code resource fed back by the redemption code resource provider based on the first resource request, generating an initial redemption code file based on the initial redemption code resource, and encrypting the initial redemption code file through an electronic file security control system to obtain the redemption code file; or sending an encryption policy and a second resource request to the redemption code resource provider, receiving the redemption code file fed back by the redemption code resource provider based on the second resource request, wherein the redemption code resource provider encrypts the initial redemption code resource based on the encryption policy to obtain the redemption code file; After the winning mechanism of the activity is triggered, the redemption code file corresponding to the activity is retrieved from the database of the second client, the redemption code file is decrypted, and a preset number of redemption codes in the decrypted redemption code resource are distributed to winning customers.
2. The method according to claim 1, characterized in that Before storing the redemption code file, the method further includes: Performing a first verification on the information of the redemption code maintainer; When the result of the first verification indicates that the verification is passed, performing a second verification on the attribute information of the redemption code file; If the second verification result indicates that the verification is passed, performing the step of storing the redemption code file; When the result of the first verification indicates that the verification has failed or the result of the second verification indicates that the verification has failed, an error log is recorded.
3. The method according to claim 2, characterized in that The second verification of the attribute information of the redemption code file includes at least one of the following: Verify file suffix, file size, file format, maximum number of lines in the file, and fields in the file.
4. The method according to claim 1, wherein Storing the redemption code file includes: Rename the redemption code file with a random number; The renamed redemption code file is stored in a target path, wherein the target path is a path other than the access path of the network application.
5. The method according to claim 1, wherein The first client sends an upload request for the redemption code file to the resource management system through an intranet environment.
6. A device for processing redemption code resources, characterized in that: include: an uploading unit, configured to receive an upload request for a redemption code file sent by a first client, parse the upload request, obtain a redemption code file, and store the redemption code file, wherein the first client is a client of a redemption code maintainer, the redemption code file is an encrypted file, and the redemption code file contains a redemption code resource; a download unit, configured to receive a download request for a redemption code resource from a second client, and send a redemption code file to the second client, wherein the second client is a client of a redemption code user, the second client decrypts the redemption code file, re-encrypts the decrypted redemption code file, stores the re-encrypted redemption code file in a database of the second client, and allocates a redemption code resource in the redemption code file to the activity based on activity creation requirements; The first client obtains the redemption code file by: sending a first resource request to a redemption code resource provider, receiving an initial redemption code resource fed back by the redemption code resource provider based on the first resource request, generating an initial redemption code file based on the initial redemption code resource, and encrypting the initial redemption code file through an electronic file security control system to obtain the redemption code file; or sending an encryption policy and a second resource request to the redemption code resource provider, receiving the redemption code file fed back by the redemption code resource provider based on the second resource request, wherein the redemption code resource provider encrypts the initial redemption code resource based on the encryption policy to obtain the redemption code file; After the winning mechanism of the activity is triggered, the redemption code file corresponding to the activity is retrieved from the database of the second client, the redemption code file is decrypted, and a preset number of redemption codes in the decrypted redemption code resource are distributed to winning customers.
7. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to execute the method for processing redemption code resources according to any one of claims 1 to 5 through the computer program.
8. A computer program product, characterized in that The present invention comprises a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing redemption code resources according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Virtual resource transfer method, system and device, computer equipment and storage medium
CN115694896A
Encryption method and device, decryption method and device, electronic equipment and computer program product
CN116781285A