Data processing method and device, storage medium and program product
By unifying the processing of redemption requests from the activity platform and the connection with the resource platform through the resource management platform, the high performance requirements caused by many-to-many connections in the operation system have been resolved, and a more efficient prize distribution process has been achieved.
Patent Information
- Application Number
- CN202511230252.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-29
- Publication Date
- 2025-12-12
AI Technical Summary
Each activity platform in the operation system connects with a third-party resource platform for prize distribution, resulting in a many-to-many connection method. This increases the platform's performance requirements and the risk of system traffic throttling, affecting customer experience.
The resource management platform receives redemption requests from activity platforms, queries associated resource platforms, calls multiple resource platforms to process redemption requests, generates and approves resource information, updates approval forms, and synchronizes them to the target data table, avoiding direct many-to-many connections.
This reduces the concurrency during the prize redemption process, decreases the performance requirements of the event platform and resource platform, and improves the reliability and efficiency of the prize redemption process.
Smart Images

Figure CN121120143A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of financial technology, in particular, to a data processing method and device, a storage medium and a program product. BACKGROUND
[0002] At present, the operation system has multiple platforms for carrying out activities, including a task center (drawing, exchanging and awarding prizes), a consumption coupon (designated customer group awarding prizes), and the like. A variety of prizes can be supported in the process of carrying out activities, including carbon points, reduction money, and comprehensive points in the financial institution, and various software products and the like outside the financial institution. The forms of resource prize distribution include direct distribution and exchange code, and a variety of prize resources are distributed in the form of exchange codes to be exchanged and obtained by the customers in correspondence with multiple platforms. The corresponding resource types need to be connected with the corresponding cooperation parties.
[0003] In the related art, a many-to-many mode is used to connect the multiple activity platforms of the operation platform with the multiple third-party resource types, and the development cost is large. Each activity platform under the same operation system is directly connected with the third-party resource corresponding to the prize, and the performance requirement of the platform is high. For example, the direct distribution of the coupon has a high requirement on the system performance. Because the number of concurrent users for obtaining the prize is high, the calling of the corresponding interface for obtaining the prize can easily lead to the flow limitation of the system, and the customer experience is affected.
[0004] In addition, there is a limitation of the channel. For example, when the enterprise online banking channel directly distributes the reduction money resource of the designated platform, the customer cannot obtain the prize because the online channel cannot jump to open the app client of the mobile channel. In addition, because the prize resource types supported by the activity platform for distributing the exchange code are inconsistent, manual connection is required to find the prize.
[0005] In the related art, each activity platform of the operation system is connected with the third-party resource platform to distribute the prize, so that the activity platform and the third-party platform need to be connected in a many-to-many mode, and the performance requirement of the activity platform and the resource platform is high. At present, no effective solution has been proposed for this problem. SUMMARY
[0006] The main purpose of the present application is to provide a data processing method and device, a storage medium and a program product to solve the problem that each activity platform of the operation system is connected with the third-party resource platform to distribute the resource in the related art, so that the activity platform and the third-party platform need to be connected in a many-to-many mode, and the performance requirement of the activity platform and the resource platform is high.
[0007] In order to achieve the above object, according to one aspect of the present application, a data processing method is provided. The method comprises: receiving, by a resource management platform, exchange requests sent by N active platforms, obtaining M exchange requests, wherein the active platform is used to issue exchange information of resources to be exchanged, the resource management platform is used to provide resource exchange services, N and M are positive integers; querying a resource platform associated with each exchange request to obtain a query result, wherein the resource platform is used to provide resources to be exchanged; based on the query result, calling S resource platforms to process each exchange request, wherein the resource platform is used to provide resources corresponding to each exchange request, and S is a positive integer.
[0008] Further, before receiving, by a resource management platform, exchange requests sent by N active platforms, obtaining M exchange requests, the method further comprises: generating a resource audit request and sending the resource audit request to a target resource platform, wherein the resource audit request is used to request the target resource platform to audit whether a to-be-generated resource can be created; in the case that the target resource platform publishes resource information, determining that the resource audit request is approved, wherein the resource information is information of the generated resource.
[0009] Further, after sending the resource audit request to the target resource platform, it further comprises: obtaining an approval event number, wherein the approval event number comprises: an approval identifier of the to-be-generated resource; querying an approval table based on the approval event number to obtain a query result, and approving the to-be-generated resource based on the query result, wherein the approval table records approval information of all resources that need to be approved by the target resource platform.
[0010] Further, before determining that the resource audit request is approved, it further comprises: in the case that the target resource platform publishes the resource information, updating the resource information to the approval table to obtain an updated approval table; synchronizing the updated approval table to a first data table and a second data table of the target resource platform, wherein the second data table is used to provide resource exchange services for the target resource platform, and the first data table is used to provide backup for the second data table.
[0011] Furthermore, the resource management platform receives redemption requests from N activity platforms to obtain M redemption requests, including: determining the interface of each activity platform, wherein the interface of each activity platform includes: the interface of the activity platform connecting to the external network; sending the redemption request of each activity platform to the target queue of the activity platform through the interface of each activity platform, and sending the M redemption requests to the resource management platform based on the target queues of the N activity platforms, wherein the target queue of each activity platform includes: the verified redemption requests of the activity platform.
[0012] Furthermore, based on the query results, S resource platforms are invoked to process each exchange request, including: determining the resource platform associated with each exchange request based on the query results; invoking the target interface of the resource platform associated with each exchange request, sending each exchange request to the resource platform associated with the exchange request, and processing each exchange request.
[0013] Furthermore, the redemption request includes a redemption code. Processing each redemption request includes: verifying the redemption code to obtain a verification result, wherein verifying the redemption code includes at least one of the following: whether the redemption code has already been redeemed, whether the redemption code was redeemed by the holder of the redemption code; and if the verification result indicates that the redemption code has been verified, issuing the resources corresponding to the redemption request.
[0014] To achieve the above objectives, according to another aspect of this application, a data processing apparatus is provided. The apparatus includes: a receiving unit, configured to receive exchange requests sent by N activity platforms through a resource management platform, obtaining M exchange requests, wherein the activity platforms are used to issue exchange information for resources to be exchanged, and the resource management platform is used to provide resource exchange services, where N and M are positive integers; a query unit, configured to query the resource platform associated with each exchange request, obtaining a query result, wherein the resource platform is used to provide the resources to be exchanged; and a first processing unit, configured to, based on the query result, invoke S resource platforms to process each exchange request, wherein the resource platform is used to provide the resources corresponding to each exchange request, where S is a positive integer.
[0015] Furthermore, the data processing apparatus further includes: a generation unit, configured to generate a resource review request and send the resource review request to a target resource platform before receiving N redemption requests from activity platforms through the resource management platform and obtaining M redemption requests, wherein the resource review request is used to request the target resource platform to review whether the resource to be generated can be created; and a determination unit, configured to determine that the resource review request is approved when the target resource platform publishes resource information, wherein the resource information is information about the already generated resource.
[0016] Furthermore, the data processing device includes: an acquisition unit, configured to acquire an approval event number after sending the resource review request to the target resource platform, wherein the approval event number includes: the approval identifier of the resource to be generated; and a second processing unit, configured to query an approval table based on the approval event number, obtain a query result, and approve the resource to be generated based on the query result, wherein the approval table records: the approval information of all resources requiring approval on the target resource platform.
[0017] Furthermore, the data processing device also includes: an update unit, configured to update the resource information to the approval table before the resource review request is approved, provided that the target resource platform has published the resource information, to obtain an updated approval table; and a synchronization unit, configured to synchronize the updated approval table to a first data table and a second data table of the target resource platform, wherein the second data table is used to provide resource exchange services for the target resource platform, and the first data table is used to provide a backup for the second data table.
[0018] Further, the receiving unit includes: a first determining subunit, configured to determine the interface of each activity platform, wherein the interface of each activity platform includes: the interface of the activity platform connecting to the external network; and a reading subunit, configured to send the redemption request of each activity platform to the target queue of the activity platform through the interface of each activity platform, and send M redemption requests to the resource management platform based on the target queues of N activity platforms, wherein the target queue of each activity platform includes: the verified redemption request of the activity platform.
[0019] Furthermore, the first processing unit includes: a second determining subunit, configured to determine the resource platform associated with each exchange request based on the query result; and a processing subunit, configured to call the target interface of the resource platform associated with each exchange request, distribute each exchange request to the resource platform associated with the exchange request, and process each exchange request.
[0020] Furthermore, the redemption request includes a redemption code, and the processing subunit includes a verification module for verifying the redemption code and obtaining a verification result, wherein verifying the redemption code includes at least one of the following: whether the redemption code has been redeemed, or whether the redemption code was redeemed by the holder of the redemption code; and a distribution module for distributing the resources corresponding to the redemption request if the verification result indicates that the redemption code has been verified.
[0021] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is executed, it controls the device where the computer-readable storage medium is located to perform the data processing method.
[0022] According to another aspect of this application, an electronic device is provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the program executes the data processing method during runtime.
[0023] According to another aspect of this application, a computer program product is provided, including computer instructions that, when executed by a processor, implement the steps of the data processing method.
[0024] In this application, a resource management platform receives redemption requests from N activity platforms, resulting in M redemption requests. The activity platforms distribute redemption information for the resources to be redeemed, while the resource management platform provides the resource redemption service. N and M are positive integers. The system queries the resource platform associated with each redemption request, obtaining query results. The resource platform provides the resources to be redeemed. Based on the query results, S resource platforms are invoked to process each redemption request, providing the corresponding resources for each request. This solves the technical problem in related technologies where each activity platform in the operating system interfaces with a third-party resource platform for prize distribution, requiring a many-to-many interface and placing high performance requirements on both the activity and resource platforms. In this application, the resource management platform interfaces with multiple activity platforms and multiple resource platforms for resource (e.g., prize) redemption, avoiding direct interfaces between multiple activity platforms and multiple resource platforms as in related technologies. This reduces the concurrency of activity and resource platforms during the prize redemption process, achieving a reduction in performance requirements for both activity and resource platforms. Attached Figure Description
[0025] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0026] Figure 1 A hardware structure block diagram of a computer terminal for implementing a data processing method is shown.
[0027] Figure 2 This is a flowchart of a data processing method provided according to an embodiment of this application;
[0028] Figure 3 This is a flowchart illustrating the process of redeeming and redeeming a redemption code according to an embodiment of this application.
[0029] Figure 4 This is a flowchart illustrating the integration process between the resource management platform and prize resources, based on an embodiment of this application.
[0030] Figure 5 This is a flowchart of the generation, issuance, verification, and redemption of redemption codes according to the embodiments of this application;
[0031] Figure 6 This is a schematic diagram of a data processing system provided according to an embodiment of this application;
[0032] Figure 7 This is a schematic diagram of a data processing apparatus provided according to an embodiment of this application;
[0033] Figure 8 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0034] 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.
[0035] 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, product, or apparatus 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, products, or apparatus.
[0036] It should be noted that the data processing method and apparatus in this application can be used in the field of fintech for the redemption of prizes, and can also be used in any field other than fintech for the redemption of prizes. This application does not limit the application field of the data processing method and apparatus.
[0037] First, some nouns or terms that appear in the description of the embodiments of this application shall be interpreted as follows:
[0038] Operations System: Coordinate online internet platforms and enhance collaboration with offline branches, telephone banking, and other traditional touchpoints to build an omnichannel traffic operation model of "one-point access and full-channel response"; integrate head office and branches, internal and external products, services, and scenarios, and empower all departments, branches, and partners across the bank to acquire new customers, retain existing customers, and enhance value based on integrated online and offline user relationship management.
[0039] Task Center Platform: Based on the bank's one-stop intelligent operation concept across all internet channels, the Task Center platform connects various internet channels, providing a unified operational platform and view; it also serves as the main platform for tasks, activities, and benefits, providing unified management and storage for tasks, activities, and benefits published across various internet channels. Activities can be published to all employees / target customers, with participants able to draw or redeem prizes, attracting new users, boosting activity, and driving transactions.
[0040] Consumer voucher platform: Based on the bank's one-stop smart operation concept of the entire internet channel, the operation platform accurately distributes consumer vouchers to relevant customer groups, and distributes prizes to all employees / target customers to attract new customers and promote user activity.
[0041] Resources: Different types of prizes distributed to customers after the event to incentivize customer participation, cultivate customer usage habits, and enhance customer loyalty.
[0042] Direct coupon distribution model: Resources are directly distributed to customers. For example, coupons from relevant platforms are directly deposited into the customer's account after the customer enters their mobile phone number, and instant discounts are directly sent to the corresponding account after the customer is redirected to the corresponding mini-program.
[0043] It should be noted that the information collected in this application (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of this data all comply with relevant laws, regulations, and standards, necessary confidentiality measures have been taken, and they do not violate public order and good morals. Corresponding access points are provided for users to choose to authorize or refuse. For example, interfaces are set up between this system and relevant users or organizations, providing users with corresponding access points to choose to agree to or refuse automated decision-making results; if the user chooses to refuse, the process proceeds to the expert decision-making stage.
[0044] Example 1
[0045] According to an embodiment of this application, a method embodiment for a data processing method is also 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.
[0046] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing a data processing method is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) 102 (processor 102 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0047] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).
[0048] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the data processing method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby implementing the aforementioned data processing method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0049] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0050] The display can be, for example, a touchscreen liquid crystal display (LCD), which allows the user to interact with the user interface of the computer terminal 10 (or mobile device).
[0051] Under the aforementioned operating environment, this application provides the following: Figure 2 The data processing method shown. Figure 2 This is a flowchart of the data processing method according to Embodiment 1 of this application.
[0052] Step S201: Receive N exchange requests from activity platforms through the resource management platform to obtain M exchange requests. The activity platforms are used to issue exchange information for the resources to be exchanged, and the resource management platform is used to provide resource exchange services. N and M are positive integers.
[0053] The aforementioned resource management platform can be used to connect to multiple activity platforms and multiple resource platforms. The activity platform is used to issue redemption information (e.g., redemption codes, which can be generated by the resource management platform and issued through the activity platform). The resource platform can be used to provide the resources corresponding to the redemption information, which can be prizes, commemorative coins, or other redeemable products.
[0054] To avoid the situation where each activity platform needs to connect to a corresponding resource platform based on prize redemption information, resulting in high performance requirements for both activity platforms and resource platforms, a resource management platform can be used to avoid this situation. In this embodiment, the resource management platform can receive redemption requests from N activity platforms.
[0055] Step S202: Query the resource platform associated with each redemption request to obtain the query results. The resource platform is used to provide the resources to be redeemed.
[0056] In this embodiment, the resource platform to which the exchange information belongs can be queried based on the exchange information in each exchange request to obtain the above query results.
[0057] Step S203: Based on the query results, call S resource platforms to process each exchange request, where the resource platform is used to provide the resources corresponding to each exchange request, and S is a positive integer.
[0058] In this embodiment, the resource management platform can send the exchange request to the corresponding resource platform through its external interface based on the resource platform associated with each exchange request in the query results, and then exchange the resources.
[0059] Through the above steps, this embodiment connects multiple activity platforms and resource platforms via a resource management platform for resource redemption. This avoids direct connections between multiple activity platforms and resource platforms as in related technologies, reducing the concurrency of activity platforms and resource platforms during the prize redemption process and achieving the technical effect of reducing the performance requirements of activity platforms and resource platforms. Furthermore, it solves the technical problem in related technologies where each activity platform in the operating system connects with a third-party resource platform for prize distribution, requiring a many-to-many connection between activity platforms and third-party platforms, resulting in high performance requirements for both activity platforms and resource platforms.
[0060] The following example uses resources to be redeemed as prizes for illustration. Figure 3 This is a flowchart of the redemption process according to the embodiments of this application, such as... Figure 3 As shown, taking the task center platform and the voucher platform as examples, the resource management platform connects with partners of different types of prize resources to form a prize pool. Customers participate in activities on the task center platform and voucher platform to get the chance to draw / claim prizes. When they win a prize, they obtain a prize redemption code through the redemption code generation service in the resource management platform. Subsequently, customers can submit the redemption code information on the redemption page. After verification, the prize pool resources are redeemed and the prize is issued to the customer through the redemption code redemption and redemption service of the resource management platform.
[0061] Optionally, in the data processing method provided in this application embodiment, before receiving N redemption requests sent by activity platforms through the resource management platform and obtaining M redemption requests, the method further includes: generating a resource review request and sending the resource review request to the target resource platform, wherein the resource review request is used to request the target resource platform to review whether the resource to be generated can be created; if the target resource platform publishes resource information, determining that the resource review request has been approved, wherein the resource information is the information of the already generated resource.
[0062] The following example uses resources as prizes. The resource review request mentioned above can be used to request a review of whether the prize resources to be generated can be created. In this embodiment, before receiving redemption requests from N activity platforms through the resource management platform and obtaining M redemption requests, prize resources can be created. Specifically, a resource review request can be generated and sent to the target resource platform to review whether the required prize resources can be created. If the target resource platform approves the review, the prize resources and prize information can be published. Upon receiving the prize resource information, the target resource platform can confirm that the resource review request has been approved, and subsequently, a lottery can be held on multiple platforms for the prize resources corresponding to the published prize information.
[0063] Optionally, in the data processing method provided in this application embodiment, after sending the resource review request to the target resource platform, the method further includes: obtaining an approval event number, wherein the approval event number includes: the approval identifier of the resource to be generated; querying the approval table based on the approval event number to obtain the query result, and approving the resource to be generated based on the query result, wherein the approval table records: the approval information of all resources that need to be approved on the target resource platform.
[0064] For example, in this embodiment, the approval table can be queried based on the approval event number of the prize resource to be generated, the approval details corresponding to the approval event number can be obtained, the approval can be performed based on the approval details, and the approval result can be obtained. For example, the approval result of the prize resource to be generated can be determined based on whether the approval action in the approval details is approved or rejected.
[0065] Figure 4 This is a flowchart illustrating the integration process between the resource management platform and prize resources, as provided in the embodiments of this application. As shown, OMG_WEB represents the resource management group (corresponding to the resource management platform), and OMG_APP and the blockchain represent the corresponding resource sides (corresponding to the target resource platform). This enables the creation, review, and querying of resources within the operating system. Subsequently, the activity platform associates the prize resources created in the resource management group and distributes the prizes to customers. Figure 4 As shown, taking the creation-addition process of digital collection resources as an example, you can submit the application for review to OMG_APP (corresponding to the target resource platform). After the OMG_WEB creates the application for review, click "Process". You can query the task table (used to record the approval business involved in the approval process) by submitting the OMG_APP approval task event number. Based on the task table, you can determine whether the task has been approved. If it has been approved, you will be prompted that the task has been approved and no further processing is required. If it has not been approved, you can query the consumer voucher approval table by submitting the approval task event number (i.e., the approval event number) to get the approval details page. Review the application based on the approval details page. If the review action is "review failed", update the task table to "rejected" and update the rejection reason and the approving teller information. Copy the consumer voucher approval table to the consumer voucher approval history table. The approval rejection is successful. If the review action is approved, update the task table to "approved" and approve the teller information. Generate a resource package number (EIOP) + 8-digit date + 8-digit sequence. Call the blockchain to release the collection. After the collection is successfully released, update the resource package number and the original ID of the collection to the consumer voucher approval table, synchronize the approval table data to the historical table and the official table, initialize the collection serial number, and the approval is successful.
[0066] Optionally, in the data processing method provided in the embodiments of this application, before determining that the resource review request has been approved, the method further includes: updating the resource information to the approval form when the target resource platform publishes resource information, thereby obtaining an updated approval form; and synchronizing the updated approval form to a first data table and a second data table of the target resource platform, wherein the second data table is used to provide resource exchange services for the target resource platform, and the first data table is used to provide backup for the second data table.
[0067] In this embodiment, when prize information is published on the target resource platform, the prize information can be updated in the approval form. The updated approval information can also be used to obtain an updated approval form. Furthermore, the updated approval form can be synchronized to the first data table of the target resource platform (corresponding to...). Figure 4 The historical table in the middle) and the second data table (corresponding to) Figure 4 The first table is the official table in the database. The second table can be used to provide prize redemption services for the target resource platform, thereby improving the reliability of the prize resource redemption process.
[0068] Optionally, in the data processing method provided in this application embodiment, receiving exchange requests from N activity platforms through a resource management platform to obtain M exchange requests includes: determining the interface of each activity platform, wherein the interface of each activity platform includes: the interface of the activity platform connecting to the external network; sending the exchange request of each activity platform to the target queue of the activity platform through the interface of each activity platform, and sending the M exchange requests to the resource management platform based on the target queues of the N activity platforms, wherein the target queue of each activity platform includes: the exchange request verified by the activity platform.
[0069] In this embodiment, the interface of each activity platform can be an HTTP request interface. Redemption requests can be sent to the target queue of the activity platform through the interface of each activity platform. By reading the target queue of the activity platform through the resource management platform, M redemption requests can be obtained. It should be noted that before sending the redemption request to the target queue, the redemption request can also be verified. For example, it can be verified whether it is a second redemption, whether the redemption information is accurate, etc. If the verification is successful, the redemption request can be sent to the target queue, thus achieving the technical effect of ensuring the reliability of the redemption process.
[0070] Optionally, in the data processing method provided in this application embodiment, based on the query results, S resource platforms are invoked to process each exchange request, including: determining the resource platform associated with each exchange request based on the query results; invoking the target interface of the resource platform associated with each exchange request, sending each exchange request to the resource platform associated with the exchange request, and processing each exchange request.
[0071] In this embodiment, the target interface of the resource platform may include: the interface between the resource platform and the external network. In this embodiment, the interface between the resource management platform and the external network can be used to connect with the target interface of the resource platform based on the query results, and each exchange request can be sent to the resource platform associated with each exchange request for resource exchange. This avoids the situation in related technologies where multiple activity platforms connect with multiple resource platforms, which is difficult to connect and has high requirements for system performance.
[0072] Optionally, in the data processing method provided in this application embodiment, the redemption request includes: a redemption code. Processing each redemption request includes: verifying the redemption code and obtaining a verification result, wherein verifying the redemption code includes at least one of the following: whether the redemption code has been redeemed, whether the redemption code was redeemed by the holder of the redemption code; and issuing the resources corresponding to the redemption request if the verification result indicates that the redemption code has been verified.
[0073] The aforementioned redemption request may include a redemption code and the identity information of the redeemer (e.g., the prize winner). In this embodiment, it can be verified whether there is already a redemption record (e.g., a prize redemption record) for the redemption code in the resource platform. If there is already a redemption record, the verification result is that the verification fails. It can also be verified whether the redemption code is redeemed by the holder of the redemption code based on whether the identity information of the redeemer is consistent with the prize winner information recorded in the resource platform. If they are inconsistent, the verification result can also be that the verification fails. If the verification result indicates that the redemption code has been verified, the resources corresponding to the redemption request can be issued. For example, the instant discount corresponding to the redemption request can be issued to the account of the holder of the redemption code.
[0074] Figure 5 This is a flowchart illustrating the generation, issuance, verification, and redemption of redemption codes according to the embodiments of this application, such as... Figure 5 As shown below, the example of a company issuing a discount code to a winner through its online banking channel is as follows:
[0075] Step 1: This activity is open to all enterprise customers. Customers numbered 1 to 10 can participate in a lucky draw once a day as long as they complete a payment transaction. The probability of winning is 50%. During the activity period, the maximum number of times a customer can win a prize is 3. The activity resource inventory is 100 tickets.
[0076] Step 2: After a customer wins a prize, the system receives the customer's prize claim request and determines whether there are still prizes available. If not, it indicates that the customer has not won a prize. If so, it determines whether the submission is duplicate to prevent the customer from clicking to claim multiple redemption codes consecutively. If so, it displays an error message. Otherwise, the system automatically generates a unique redemption code sequence according to certain rules and displays it to the customer, along with the customer's information, the corresponding activity information, and the winning time, and registers it in the database.
[0077] Step 3: While displaying the redemption code, a QR code for the redemption entry point is also shown. Customers can scan the code through the corporate mobile banking client to open the redemption page, enter the redemption code, and submit.
[0078] Step 4: Verify whether the redemption code has been redeemed. Compare the customer information logged into the corporate mobile banking app with the customer information registered in Step 2 to confirm whether it is the same person who redeemed it. Read the activity information and redemption information to verify whether the customer has over-redeemed (for example, if the maximum number of times to win in the activity is three, the customer has already redeemed the redemption code for this activity three times). If the verification fails, the corresponding error message will be displayed. If the verification passes, the user will be redirected to the mini-program of the specified platform.
[0079] Step 5: The customer logs into the mini-program on the designated platform to receive the instant discount to the corresponding account. The inventory of the corresponding activity prize is reduced by 1, and the prize redemption information is registered in the database. If the transaction fails, an error is reported and a failure log is recorded. If the corresponding inventory quantity has been reduced by 1, it is updated and rolled back.
[0080] Figure 6 This is a schematic diagram of a data processing system provided according to an embodiment of this application. As shown in Figure 6, it illustrates the service processes with and without a resource management platform, facilitating a gradual transition to services using the resource management platform. For ease of description, the following section... Figure 6 Here are some explanations of the English terms in the text: F5: A hardware load balancer; SLB: Software Load Balancer; Cookie: A small text file; grayflag: Gray-scale traffic marker; ua: User Agent Identifier, used to indicate to the server which type of client the request came from; gtflag: Gateway traffic marker; gateway: Gateway; tic: Rights Management Group; ticweb: Web node of the tic group; webgray: Gray-scale node of the web; web: World Wide Web; DMZ: Network isolation zone located between the internal and external networks; CMC: Configuration Management Center; X-TAG: A gray-scale tagged traffic; NOS: Distributed Cache; ticbff: BFF node of the tic group, BFF (backend for frontend) and the access layer located between the frontend and backend; ticdsfinner: DSfinner node of the tic group, and the access layer for component services; ticdsfacs: DSfacs node of the tic group, and component services; tran Version: Transaction version or transaction version; dsf-ticcom: The ticcom node of the tic group, providing service components for public services, including three core capabilities: remote method invocation for interfaces, intelligent fault tolerance and load balancing, and automatic service registration and discovery; EIOP_TICKET_MQ: Kaflka topic related to vouchers; EIOP_TICAMR_MQ: Kaflka topic related to vouchers; EIOP_APP_PAGE: Kaflka topic related to ad slots; OMGAPP: Operations management side, including resource and activity management, etc.
[0081] When customers claim coupons, the process without a resource management platform is: access (the activity platform's HTTP interface) -> inner (activity-related verification) -> (KAKFA) (message queue) -> task -> GTCG (the interface of the third-party resource platform connecting to the external network) -> third party; the process with a resource management platform is: access -> inner -> (KAKFA) -> task -> resource management platform (ticdsfouter (routing and forwarding) -> ticdsfats (coupon search and claiming) -> GTCG (the interface of the resource management platform connecting to the external network) -> third party). The source management module integrates GTCG and calls to third parties, encapsulating them into a service. Each caller does not need to connect to the third party separately; Huixiang handles the unified connection to the third party.
[0082] 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, and 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.
[0083] Example 2
[0084] This application also provides a data processing apparatus. It should be noted that the data processing apparatus of this application can be used to execute the data processing method provided in this application. The data processing apparatus provided in this application will be described below.
[0085] According to an embodiment of this application, an apparatus for implementing the above-described data processing method is also provided, such as... Figure 7 As shown, the device includes a receiving unit 71, a query unit 72, and a first processing unit 73.
[0086] The receiving unit 71 is used to receive N exchange requests sent by the activity platform through the resource management platform, and obtain M exchange requests. The activity platform is used to issue exchange information of the resources to be exchanged, and the resource management platform is used to provide resource exchange services. N and M are positive integers.
[0087] The query unit 72 is used to query the resource platform associated with each redemption request and obtain the query results, wherein the resource platform is used to provide the resources to be redeemed;
[0088] The first processing unit 73 is used to call S resource platforms based on the query results to process each exchange request, wherein the resource platform is used to provide the resources corresponding to each exchange request, and S is a positive integer.
[0089] In the data processing apparatus provided in this application embodiment, the receiving unit 71 receives redemption requests from N activity platforms through a resource management platform, obtaining M redemption requests. The activity platforms are used to distribute redemption information for resources to be redeemed, and the resource management platform is used to provide resource redemption services. N and M are positive integers. The query unit 72 queries the resource platform associated with each redemption request to obtain query results. The resource platform is used to provide the resources to be redeemed. Based on the query results, the first processing unit 73 calls S resource platforms to process each redemption request. The resource platform is used to provide the resources corresponding to each redemption request, and S is a positive integer. This solves the technical problem in related technologies where each activity platform in the operating system interfaces with a third-party resource platform for resource distribution, requiring a many-to-many interface between the activity platform and the third-party platform, resulting in high performance requirements for both the activity platform and the resource platform. In this embodiment, by connecting multiple activity platforms and multiple resource platforms through the resource management platform for resource redemption, the direct interface between multiple activity platforms and multiple resource platforms in related technologies is avoided. This reduces the concurrency of activity platforms and resource platforms during the redemption process, achieving the technical effect of reducing the performance requirements of activity platforms and resource platforms.
[0090] Optionally, in the data processing apparatus provided in this application embodiment, the data processing apparatus further includes: a generation unit, configured to generate a resource review request and send the resource review request to the target resource platform before receiving N redemption requests sent by the activity platform through the resource management platform and obtaining M redemption requests, wherein the resource review request is used to request the target resource platform to review whether the resource to be generated can be created; and a determination unit, configured to determine that the resource review request is approved when the target resource platform publishes resource information, wherein the resource information is the information of the generated resource.
[0091] Optionally, in the data processing apparatus provided in this application embodiment, the data processing apparatus includes: an acquisition unit, configured to acquire an approval event number after sending a resource review request to the target resource platform, wherein the approval event number includes: an approval identifier of the resource to be generated; and a second processing unit, configured to query an approval table based on the approval event number, obtain a query result, and approve the resource to be generated based on the query result, wherein the approval table records: approval information of all resources that need to be approved on the target resource platform.
[0092] Optionally, in the data processing apparatus provided in this application embodiment, the data processing apparatus further includes: an update unit, used to update the resource information to the approval form before the resource review request is approved, when the target resource platform publishes resource information, to obtain an updated approval form; and a synchronization unit, used to synchronize the updated approval form to a first data table and a second data table of the target resource platform, wherein the second data table is used to provide resource exchange services for the target resource platform, and the first data table is used to provide backup for the second data table.
[0093] Optionally, in the data processing apparatus provided in this application embodiment, the receiving unit includes: a first determining subunit, used to determine the interface of each activity platform, wherein the interface of each activity platform includes: the interface of the activity platform connecting to the external network; and a reading subunit, used to send the redemption request of each activity platform to the target queue of the activity platform through the interface of each activity platform, and send M redemption requests to the resource management platform based on the target queues of N activity platforms, wherein the target queue of each activity platform includes: the redemption request verified by the activity platform.
[0094] Optionally, in the data processing apparatus provided in this application embodiment, the first processing unit includes: a second determining subunit, used to determine the resource platform associated with each exchange request based on the query results; and a processing subunit, used to call the target interface of the resource platform associated with each exchange request, send each exchange request to the resource platform associated with the exchange request, and process each exchange request.
[0095] Optionally, in the data processing apparatus provided in this application embodiment, the redemption request includes: a redemption code, and the processing subunit includes: a verification module, used to verify the redemption code and obtain a verification result, wherein verifying the redemption code includes at least one of the following: whether the redemption code has been redeemed, and whether the redemption code was redeemed by the holder of the redemption code; and a distribution module, used to distribute the resources corresponding to the redemption request when the verification result indicates that the redemption code has been verified.
[0096] It should be noted that the receiving unit 71, query unit 72, and first processing unit 73 mentioned above correspond to steps S201 to S203 in Embodiment 1. Each unit and its corresponding step implement the same instance and application scenario, but are not limited to the content disclosed in Embodiment 1. It should be noted that the above modules or units can be hardware or software components stored in memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n). The above modules can also be part of a device and run in the computer terminal 10 provided in Embodiment 1.
[0097] Example 3
[0098] Embodiments of this application may provide an electronic device. Figure 8 This is a structural block diagram of an electronic device according to an embodiment of this application. Figure 8 As shown, the electronic device may include: one or more ( Figure 8 Only one of the components is shown: processor 802, memory 804, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module, and display.
[0099] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the methods and apparatus in the embodiments of this application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby implementing the above-described methods. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0100] The processor can access information and applications stored in memory via a transmission device to execute the following steps: Receive exchange requests from N activity platforms through the resource management platform, resulting in M exchange requests. The activity platforms are used to issue exchange information for the resources to be exchanged, and the resource management platform is used to provide resource exchange services. N and M are positive integers. Query the resource platform associated with each exchange request to obtain query results. The resource platform is used to provide the resources to be exchanged. Based on the query results, call S resource platforms to process each exchange request. The resource platform is used to provide the resources corresponding to each exchange request. S is a positive integer.
[0101] The processor can also access information and applications stored in the memory via a transmission device to perform the following steps: Before receiving redemption requests from N activity platforms through the resource management platform and obtaining M redemption requests, the method further includes: generating a resource review request and sending the resource review request to the target resource platform, wherein the resource review request is used to request the target resource platform to review whether the resource to be generated can be created; if the target resource platform publishes resource information, determining that the resource review request has been approved, wherein the resource information is information about the already generated resource.
[0102] The processor can also access information and applications stored in the memory via a transmission device to perform the following steps: after sending the resource review request to the target resource platform, the processor further includes: obtaining an approval event number, wherein the approval event number includes: the approval identifier of the resource to be generated; querying the approval table based on the approval event number to obtain the query result, and approving the resource to be generated based on the query result, wherein the approval table records: the approval information of all resources that need to be approved on the target resource platform.
[0103] The processor can also access information and applications stored in the memory via a transmission device to perform the following steps: before determining that the resource review request has been approved, the steps further include: updating the approval form with the resource information when the target resource platform publishes the resource information, to obtain an updated approval form; synchronizing the updated approval form with the first data table and the second data table of the target resource platform, wherein the second data table is used to provide resource exchange services for the target resource platform, and the first data table is used to provide a backup for the second data table.
[0104] The processor can also access information and applications stored in the memory via a transmission device to perform the following steps: receiving exchange requests from N activity platforms through the resource management platform to obtain M exchange requests, including: determining the interface of each activity platform, wherein the interface of each activity platform includes: the interface of the activity platform connecting to the external network; sending the exchange request of each activity platform to the target queue of the activity platform through the interface of each activity platform, and sending the M exchange requests to the resource management platform based on the target queues of the N activity platforms, wherein the target queue of each activity platform includes: the verified exchange request of the activity platform.
[0105] The processor can also invoke information and applications stored in the memory via the transmission device to perform the following steps: based on the query results, invoke S resource platforms to process each exchange request, including: determining the resource platform associated with each exchange request based on the query results; invoking the target interface of the resource platform associated with each exchange request, sending each exchange request to the resource platform associated with the exchange request, and processing each exchange request.
[0106] The processor can also invoke information and applications stored in the memory via a transmission device to perform the following steps: the redemption request includes a redemption code; processing each redemption request includes: verifying the redemption code and obtaining a verification result, wherein verifying the redemption code includes at least one of the following: whether the redemption code has already been redeemed, whether the redemption code was redeemed by the holder of the redemption code; if the verification result indicates that the redemption code has been verified, issuing the resources corresponding to the redemption request.
[0107] By adopting the embodiments of this application, multiple activity platforms and multiple resource platforms are connected through the resource management platform for resource redemption, which avoids the direct connection between multiple activity platforms and multiple resource platforms in related technologies, reduces the concurrency of activity platforms and resource platforms during the prize redemption process, and achieves the technical effect of reducing the performance requirements of activity platforms and resource platforms.
[0108] Those skilled in the art will understand that Figure 8 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones, tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 8 This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 8 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 8 The different configurations shown.
[0109] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0110] Example 4
[0111] Embodiments of this application also provide a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the data processing method provided in Embodiment 1.
[0112] Optionally, in this embodiment, the storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.
[0113] This application also provides a computer program product, which, when executed on a data processing device, is a program adapted to perform data processing method steps.
[0114] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0115] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0116] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0117] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0118] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0119] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0120] 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, characterized in that, include: The resource management platform receives N exchange requests from activity platforms and obtains M exchange requests. The activity platforms are used to issue exchange information for resources to be exchanged, and the resource management platform is used to provide resource exchange services. N and M are positive integers. Query the resource platform associated with each of the exchange requests to obtain the query results, wherein the resource platform is used to provide the resources to be exchanged; Based on the query results, S resource platforms are invoked to process each exchange request, wherein the resource platforms are used to provide the resources corresponding to each exchange request, and S is a positive integer.
2. The data processing method according to claim 1, characterized in that, Before receiving N redemption requests from activity platforms through the resource management platform and obtaining M redemption requests, the method further includes: Generate a resource review request and send the resource review request to the target resource platform, wherein the resource review request is used to request the target resource platform to review whether the resource to be generated can be created; When the target resource platform publishes resource information, it is determined that the resource review request has been approved, wherein the resource information refers to information about the generated resources.
3. The data processing method according to claim 2, characterized in that, After sending the resource review request to the target resource platform, the process also includes: Obtain the approval event number, wherein the approval event number includes: the approval identifier of the resource to be generated; The approval table is queried based on the approval event number to obtain the query result, and the resource to be generated is approved based on the query result. The approval table records the approval information of all resources that need to be approved on the target resource platform.
4. The data processing method according to claim 3, characterized in that, Before determining whether the resource review request has been approved, the process also includes: When the resource information is published on the target resource platform, the resource information is updated to the approval form to obtain an updated approval form; The updated approval form is synchronized to the first data table and the second data table of the target resource platform, wherein the second data table is used to provide resource exchange services for the target resource platform, and the first data table is used to provide backup for the second data table.
5. The data processing method according to claim 1, characterized in that, Before receiving N redemption requests from activity platforms and obtaining M redemption requests through the resource management platform, the process also includes: The interface of each activity platform is determined, wherein the interface of each activity platform includes: the interface of the activity platform connecting to the external network; Through the interface of each activity platform, the redemption request of each activity platform is sent to the target queue of that activity platform, and based on the target queues of N activity platforms, M redemption requests are sent to the resource management platform, wherein the target queue of each activity platform includes: the redemption request verified by that activity platform.
6. The data processing method according to claim 1, characterized in that, Based on the query results, S resource platforms are invoked to process each exchange request, including: Based on the query results, determine the resource platform associated with each exchange request; Based on the resource platform associated with each exchange request, the target interface of the resource platform is called to send each exchange request to the resource platform associated with the exchange request and process each exchange request.
7. The data processing method according to claim 1, characterized in that, The redemption request includes: a redemption code. Processing each redemption request includes: The redemption code is verified to obtain a verification result, wherein verifying the redemption code includes at least one of the following: whether the redemption code has been redeemed, or whether the redemption code was redeemed by the holder of the redemption code; If the verification result indicates that the redemption code has been verified, the resources corresponding to the redemption request will be issued.
8. A data processing apparatus, characterized in that, include: The receiving unit is used to receive exchange requests sent by N activity platforms through the resource management platform, and obtain M exchange requests. The activity platform is used to issue exchange information for the resources to be exchanged, and the resource management platform is used to provide resource exchange services. N and M are positive integers. The query unit is used to query the resource platform associated with each of the exchange requests and obtain the query results, wherein the resource platform is used to provide the resources to be exchanged; The first processing unit is used to call S resource platforms based on the query results to process each exchange request, wherein the resource platforms are used to provide resources corresponding to each exchange request, and S is a positive integer.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored executable program, wherein, when the executable program is executed, it controls the device on which the computer-readable storage medium is located to perform the data processing method according to any one of claims 1 to 7.
10. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the steps of the data processing method according to any one of claims 1 to 7.
