Business processing method and device, equipment and storage medium

By receiving and processing user requests in the business system, judging task completion conditions, and controlling object distribution in multiple threads, the problem of low business processing reliability in the lottery activities is solved, and the rational distribution of objects and user experience is achieved.

CN118963947APending Publication Date: 2024-11-15CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411033153.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the business system, the independence of multiple lottery activities leads to the simultaneous request of business processing, resulting in complex scenarios of lottery activities and confusing object distribution, and low reliability of business processing.

Method used

By receiving service processing requests from the user terminal, determining the configuration information of target activities and target tasks, obtaining user task progress information, judging task completion conditions, and controlling the issuance of objects in multiple threads, determining task processing based on the number of issued and to be issued Result, including creation of issuance orders, delayed creation of issuance orders, and failed creation of orders.

Benefits of technology

It improves the reliability of business processing, ensures the reasonable distribution of objects, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963947A_ABST
    Figure CN118963947A_ABST
Patent Text Reader

Abstract

The invention provides a business processing method and device, equipment and a storage medium. Relates to the technical field of computers. The method comprises the following steps: receiving a service processing request sent by a user terminal, wherein the service processing request comprises an identifier of a target activity, a target task and a user identifier; according to the target activity and the target task, target configuration information corresponding to the business processing request is determined, and the target configuration information comprises a task completion condition and an object number of the target task; obtaining task progress information corresponding to the user identifier, and judging whether the target task meets a task completion condition or not according to the task progress information; if yes, determining a current thread corresponding to the service processing request in a plurality of threads; and through the current thread, obtaining the issued quantity and the first to-be-issued quantity of the objects, and determining a task processing result according to the object quantity, the issued quantity and the first to-be-issued quantity. According to the method provided by the invention, the service processing reliability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a business processing method, device, equipment and storage medium. Background Art

[0002] In the business system, a lucky draw activity can be launched. Users can complete the tasks corresponding to the lucky draw activity through the user terminal. After meeting the task conditions, they can participate in the lucky draw on the activity interface.

[0003] In the prior art, multiple lottery activities can be launched in a business system, and each lottery activity has its corresponding lottery program. However, the multiple lottery programs are independent of each other. For any lottery activity, multiple users can send business processing requests at the same time. A large number of business processing requests are sent at the same time, which makes the lottery activity scenario complicated and the distribution of lottery objects chaotic, resulting in low reliability of business processing. Summary of the invention

[0004] The present application provides a business processing method, apparatus, device and storage medium to solve the problem of low reliability of business processing.

[0005] In a first aspect, the present application provides a business processing method, including:

[0006] receiving a service processing request sent by a user terminal, the service processing request being used to request to collect an object, the service processing request including an identifier of a target activity, a target task, and a user identifier, the target task being any one of at least one task corresponding to the target activity;

[0007] Determine, according to the target activity and the target task, target configuration information corresponding to the business processing request, wherein the target configuration information includes a task completion condition and a number of objects of the target task;

[0008] Acquire task progress information corresponding to the user identifier, and determine whether the target task satisfies the task completion condition according to the task progress information, where the task completion condition includes at least one task and a task condition corresponding to each task;

[0009] If yes, determining a current thread corresponding to the business processing request among multiple threads;

[0010] Through the current thread, the issued quantity and the first to-be-issued quantity of the object are obtained, and the task processing result is determined according to the object quantity, the issued quantity and the first to-be-issued quantity, wherein the task processing result includes: creating an object issuance order, failure to create an issuance order and delaying the creation of an issuance order.

[0011] In a possible design, determining the task processing result according to the number of objects, the number of issued objects, and the first number to be issued includes:

[0012] Determine the sum of the issued quantity and the first to-be-issued quantity as the first quantity;

[0013] If the first quantity is greater than or equal to the number of objects, determining the task processing result according to the first quantity to be issued;

[0014] If the first quantity is less than the number of objects, the first to-be-issued quantity is increased by a preset quantity to obtain a second to-be-issued quantity, and the task processing result is determined according to the number of objects, the issued quantity and the second to-be-issued quantity.

[0015] In a possible design, determining the task processing result according to the first to-be-issued quantity includes:

[0016] If the first quantity to be issued is equal to zero, the task processing result is that the issuance order creation fails, and the issuance order creation failure is used to indicate that the object has been issued;

[0017] If the first quantity to be distributed is greater than zero, the task processing result is the delayed creation of the distribution order, and the delayed creation of the distribution order is used to indicate that there are prizes to be distributed, and the business processing request is attempted to be sent later.

[0018] In a possible design, determining the task processing result according to the number of objects, the number of issued objects, and the second number to be issued includes:

[0019] Determine the sum of the issued quantity and the second to-be-issued quantity as the second quantity;

[0020] If the second quantity is greater than the object quantity, the second to-be-released quantity is reduced by a preset quantity to obtain a third to-be-released quantity, and the task processing result is determined as the delayed creation and release order;

[0021] If the second quantity is less than or equal to the object quantity, the task processing result is determined as the create object issuing order, where the create object issuing order is used to instruct issuing the object to the target terminal.

[0022] In a possible design, judging whether the target task satisfies the task completion condition according to the task progress information includes:

[0023] Determining the task condition corresponding to the target task as the target task condition;

[0024] According to the task progress information and the target task condition, it is determined whether the target task satisfies the task completion condition.

[0025] In a possible design, judging whether the target task satisfies the task completion condition according to the task progress information and the target task condition includes:

[0026] Generate a task judgment program corresponding to the target task condition;

[0027] The task progress information is judged and processed according to the task judgment program to determine whether the target task meets the task completion condition.

[0028] In a possible design, determining target configuration information corresponding to the business processing request according to the target activity and the target task includes:

[0029] Acquire a configuration information table, wherein the configuration information table includes identifiers of multiple activities, at least one task corresponding to each activity, and configuration information corresponding to each task;

[0030] Determining at least one task corresponding to the target activity according to the identifier of the target activity;

[0031] According to the target task, the target configuration information is determined in the configuration information corresponding to each task.

[0032] In a possible design, obtaining the issued quantity and the first to-be-issued quantity of the object includes:

[0033] Determine whether request current limiting is triggered;

[0034] If not, a spin lock is acquired, and the issued quantity and the first to-be-issued quantity are acquired in a cache through the spin lock.

[0035] In a second aspect, the present application provides a service processing device, including a receiving module, a first determining module, a judging module, a second determining module, an acquiring module and a third determining module:

[0036] The receiving module is used to receive a business processing request sent by a user terminal, the business processing request is used to request to collect an object, the business processing request includes an identifier of a target activity, a target task and a user identifier, and the target task is any one of at least one task corresponding to the target activity;

[0037] The first determination module is used to determine the target configuration information corresponding to the business processing request according to the target activity and the target task, wherein the target configuration information includes the task completion condition and the number of objects of the target task;

[0038] The judgment module is used to obtain task progress information corresponding to the user identifier, and judge whether the target task meets the task completion condition according to the task progress information, where the task completion condition includes at least one task and the task condition corresponding to each task;

[0039] The second determination module is used to, if yes, determine the current thread corresponding to the business processing request among multiple threads;

[0040] The acquisition module is used to acquire the issued quantity and the first to-be-issued quantity of the object through the current thread;

[0041] The third determination module is used to determine the task processing result according to the object quantity, the issued quantity and the first to-be-issued quantity, and the task processing result includes: creating an object issuance order, failure to create an issuance order and delaying the creation of an issuance order.

[0042] In a possible design, the third determining module is specifically used to:

[0043] Determine the sum of the issued quantity and the first to-be-issued quantity as the first quantity;

[0044] If the first quantity is greater than or equal to the number of objects, determining the task processing result according to the first quantity to be issued;

[0045] If the first quantity is less than the number of objects, the first to-be-issued quantity is increased by a preset quantity to obtain a second to-be-issued quantity, and the task processing result is determined according to the number of objects, the issued quantity and the second to-be-issued quantity.

[0046] In a possible design, the third determining module is specifically used to:

[0047] If the first quantity to be issued is equal to zero, the task processing result is that the issuance order creation fails, and the issuance order creation failure is used to indicate that the object has been issued;

[0048] If the first quantity to be distributed is greater than zero, the task processing result is the delayed creation of the distribution order, and the delayed creation of the distribution order is used to indicate that there are prizes to be distributed, and the business processing request is attempted to be sent later.

[0049] In a possible design, the third determining module is specifically used to:

[0050] Determine the sum of the issued quantity and the second to-be-issued quantity as the second quantity;

[0051] If the second quantity is greater than the object quantity, the second to-be-released quantity is reduced by a preset quantity to obtain a third to-be-released quantity, and the task processing result is determined as the delayed creation and release order;

[0052] If the second quantity is less than or equal to the object quantity, the task processing result is determined as the create object issuing order, where the create object issuing order is used to instruct issuing the object to the target terminal.

[0053] In a possible design, the judgment module is specifically used to:

[0054] Determining the task condition corresponding to the target task as the target task condition;

[0055] According to the task progress information and the target task condition, it is determined whether the target task satisfies the task completion condition.

[0056] In a possible design, the judgment module is specifically used to:

[0057] Generate a task judgment program corresponding to the target task condition;

[0058] The task progress information is judged and processed according to the task judgment program to determine whether the target task meets the task completion condition.

[0059] In a possible design, the first determining module is specifically configured to:

[0060] Acquire a configuration information table, wherein the configuration information table includes identifiers of multiple activities, at least one task corresponding to each activity, and configuration information corresponding to each task;

[0061] Determining at least one task corresponding to the target activity according to the identifier of the target activity;

[0062] According to the target task, the target configuration information is determined in the configuration information corresponding to each task.

[0063] In a possible design, the acquisition module is specifically used for:

[0064] Determine whether request current limiting is triggered;

[0065] If not, a spin lock is acquired, and the issued quantity and the first to-be-issued quantity are acquired in a cache through the spin lock.

[0066] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor and a memory; the memory stores computer execution instructions; the at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the business processing method described in the first aspect and various possible designs of the first aspect.

[0067] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the business processing method described in the first aspect and various possible designs of the first aspect is implemented.

[0068] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the business processing method described in the first aspect and various possible designs of the first aspect.

[0069] The business processing method, apparatus, equipment and storage medium provided in the present application can determine the target activity, target task and user identification corresponding to the business processing request, determine the task completion conditions and object quantity corresponding to the target task based on the target activity and target task, and after obtaining the task progress information corresponding to the user identification, control the issuance of objects based on the object quantity, issued quantity and first to-be-issued quantity of the objects when the task progress information meets the task completion conditions, thereby improving the reliability of business processing. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0071] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application;

[0072] Figure 2 A flowchart of a business processing method provided in an embodiment of the present application;

[0073] Figure 3 A schematic diagram of an activity interface in a business system provided in an embodiment of the present application;

[0074] Figure 4 A flowchart of another business processing method provided in an embodiment of the present application;

[0075] Figure 5 A schematic diagram of the architecture of a business processing method provided in an embodiment of the present application;

[0076] Figure 6A schematic diagram of the structure of a service processing device provided in an embodiment of the present application;

[0077] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0078] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0079] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0080] It should be noted that the collection, storage, use, processing, transmission, provision and disclosure of financial data or user data and other information involved in the technical solution of this application are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals. The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation portals for users to choose to authorize or refuse.

[0081] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 , including a user terminal 101 and a server 102.

[0082] The user terminal 101 may be a smart phone, a tablet computer, a smart watch, a desktop computer, a smart wearable device, etc. The user may access the business system through the user terminal 101. The business system may include multiple lottery activities, each lottery activity may correspond to at least one task. After satisfying the task conditions of any task, the user may participate in the lottery activity in the activity interface of the lottery activity. The user may click the lottery button in the activity interface, and the user terminal 101 may generate a business processing request, request to claim the object corresponding to the lottery activity through the business processing request, and send the business processing request to the server 102.

[0083] The server 102 may receive a business processing request, which may include an identifier of a target activity, a target task, and a user identifier. The server 102 may store task progress information corresponding to the user identifier. The server 102 may determine target configuration information corresponding to the business processing request based on the target activity and the target task, which may include a task completion condition and the number of objects of the target task, and determine whether the target task meets the task completion condition based on the task progress information.

[0084] If so, the server 102 can determine the current thread corresponding to the business processing request in multiple threads, obtain the issued quantity and the first to-be-issued quantity of the object through the current thread, and determine the task processing result based on the object quantity, the issued quantity and the first to-be-issued quantity.

[0085] In the prior art, multiple lottery activities can be launched in a business system, and each lottery activity has its corresponding lottery program. However, the multiple lottery programs are independent of each other. For any lottery activity, multiple users can send business processing requests at the same time. A large number of business processing requests are sent at the same time, which makes the lottery activity scenario complicated and the distribution of lottery objects chaotic, resulting in low reliability of business processing.

[0086] The method provided in the embodiment of the present application can determine the target activity, target task and user identifier corresponding to the business processing request, and determine the task completion conditions and object quantity corresponding to the target task based on the target activity and target task. When the task progress information corresponding to the user identifier meets the task completion conditions, the issuance of objects is controlled based on the object quantity, issued quantity and first to-be-issued quantity of the objects, thereby improving the reliability of business processing.

[0087] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0088] Figure 2 A flowchart of a business processing method provided in an embodiment of the present application. Figure 2 , the method may include:

[0089] S201: Receive a service processing request sent by a user terminal.

[0090] The execution subject of the embodiment of the present application may be a server, or a business processing device arranged in the server. The business processing device may be implemented by software, or by a combination of software and hardware.

[0091] The business processing request may be used to request to collect an object, and the business processing request may include an identifier of a target activity and a target task, wherein the target task may be any one of at least one task corresponding to the target activity.

[0092] The object may be a prize corresponding to the target activity, and the user may see the prize corresponding to each activity on the activity interface of the user terminal.

[0093] Figure 3 This is a schematic diagram of the activity interface in the business system provided in the embodiment of the present application. Figure 3 , including subject area, object area and task area.

[0094] The theme area can include the activity copy, the corresponding gameplay effects, activity rules, and my prizes. The gameplay effects can include Gachapon lucky draw, slot machine lucky draw, shake lucky draw, golden egg lucky draw, etc. The object area can display the current prizes corresponding to the activity, such as Figure 3 As shown, the prizes for this period may include Prize 1, Prize 2 and Prize 3.

[0095] The task area may include a task list, and the task list may include at least one task identifier (such as Figure 3 Task 1, Task 2 and Task 3 are shown), as well as the task status corresponding to each task. The task status can be to be completed, to receive the reward and to have received the reward.

[0096] Users can complete the tasks corresponding to the activity in the task area. After completing a task, they can click on the gameplay effects in the theme area to draw a prize. After drawing an object, the task status corresponding to the task is updated to Go to Claim the Prize. Users can click to Go to Claim the Prize. The user terminal can generate a business processing request. After receiving the object corresponding to the business processing request, the task status can be updated to Prize Received.

[0097] S202: Determine target configuration information corresponding to the business processing request according to the target activity and the target task.

[0098] The target configuration information can be determined in the following manner: obtain a configuration information table, which includes identifiers of multiple activities, at least one task corresponding to each activity, and configuration information corresponding to each task; based on the identifier of the target activity, determine at least one task corresponding to the target activity; based on the target task, determine the target configuration information in the configuration information corresponding to each task.

[0099] For example, assuming that the configuration information table can be as shown in Table 1, there are 3 activities in the configuration information table, namely Activity 1, Activity 2 and Activity 3, Activity 1 can include 2 tasks, namely Task 11 and Task 12, Activity 2 can include 3 tasks, namely Task 21, Task 22 and Task 23, Activity 3 can include 2 tasks, namely Task 31 and Task 32, and the configuration information corresponding to each task can be as shown in Table 1.

[0100] Table 1

[0101]

[0102] The target configuration information may include the task completion conditions and the number of objects of the target task. The task completion conditions may include at least one task and the task conditions corresponding to each task.

[0103] For example, the task conditions can be to consume x yuan during the event, increase personal assets by x yuan during the event, etc.

[0104] S203: Obtain task progress information corresponding to the user identifier, and determine whether the target task meets the task completion condition based on the task progress information.

[0105] The task progress information corresponding to each user ID may be stored in the cache of the server, and the task progress information corresponding to the user ID may be obtained in the cache.

[0106] Whether the target task meets the task completion condition can be judged in the following manner: the task condition corresponding to the target task is determined as the target task condition; and whether the target task meets the task completion condition is judged based on the task progress information and the target task condition.

[0107] For example, suppose there are three tasks, namely task 1, task 2 and task 3, and suppose task 1 corresponds to task condition 1, task 2 corresponds to task condition 2, and task 1 corresponds to task condition 1. Assuming that the target task is task 2, task condition 2 can be determined as the target task condition.

[0108] If so, step S204 may be executed; if not, it may be prompted that the task condition is not met.

[0109] S204: If yes, then determine the current thread corresponding to the business processing request among multiple threads.

[0110] Threads can be managed and scheduled through thread pools and task queues. The thread pool can include multiple threads, and business processing requests can be processed concurrently through multiple threads.

[0111] The task queue can store the current business processing request. When a thread has processed the previous business processing request, it can obtain the business processing request in the front row of the queue in the task queue and process the business processing request. The thread that obtains the current business processing request can be determined as the current thread.

[0112] For example, suppose that before the current moment, the task queue includes business processing request 1 and business processing request 2. Suppose that business processing request 3 is received, then the task queue includes business processing request 1, business processing request 2 and business processing request 3. Suppose there are 3 threads, namely thread 1, thread 2 and thread 3. Suppose at moment 1, thread 1 finishes processing the previous business processing request 4 and obtains business processing request 1 in the task queue; at moment 2, thread 2 finishes processing the previous business processing request 5 and obtains business processing request 2 in the task queue; at moment 3, thread 3 finishes processing the previous business processing request 6 and obtains business processing request 3 in the task queue, that is, thread 3 is the current thread. Among them, moment 1 is earlier than moment 2, and moment 2 is earlier than moment 3.

[0113] S205. Obtain the issued quantity and the first to-be-issued quantity of the object through the current thread.

[0114] The issued quantity and the first to-be-issued quantity can be stored in the Redis cache. In the initial state, the issued quantity is 0 and the to-be-issued quantity is 0.

[0115] If a thread has issued an object, the issued quantity can be updated. If a thread is issuing an object, the pending issued quantity can be updated.

[0116] Furthermore, it can be determined whether request current limiting is triggered; if not, a spin lock is acquired, and the issued quantity and the first to-be-issued quantity are acquired in the cache through the spin lock; if so, a prompt is given to try to send the business processing request again later.

[0117] Spinlock is a synchronization mechanism used in multi-threaded programming. It is mainly used to protect shared resources and prevent multiple threads from accessing them at the same time, which may cause data inconsistency.

[0118] S206: Determine the task processing result according to the number of objects, the number of issued objects, and the first number to be issued.

[0119] The task processing results may include: creation of an object release order, failure to create a release order, and delayed creation of a release order.

[0120] Among them, creating an object distribution order can be used to indicate the distribution of an object to a target terminal, failure to create a distribution order can be used to indicate that the object has been distributed, and delaying the creation of a distribution order can be used to indicate that there are prizes to be distributed, and the business processing request will be tried again later.

[0121] The business processing method provided in the embodiment of the present application can determine the target activity, target task and user identifier corresponding to the business processing request, and determine the task completion conditions and the number of objects corresponding to the target task based on the target activity and target task. When the task progress information corresponding to the user identifier meets the task completion conditions, the issuance of objects is controlled based on the number of objects, the number of issued objects and the first number to be issued, which can improve the reliability of business processing and thereby improve the user experience.

[0122] Figure 4 A flowchart of another business processing method provided in an embodiment of the present application. Figure 4 , the method may include:

[0123] S401: Receive a service processing request sent by a user terminal.

[0124] The execution process of S401 can refer to the execution process of S201, which will not be repeated here.

[0125] S402: Obtain a configuration information table.

[0126] The configuration information table can be obtained in the database. When the task conditions or prizes of the lottery activity change, the lottery activity can be updated by updating the configuration information table.

[0127] S403: Determine at least one task corresponding to the target activity according to the identifier of the target activity.

[0128] For example, assuming that the configuration information table can be as shown in Table 1, there are 3 activities, namely Activity 1, Activity 2 and Activity 3. Assuming that the target activity is identified as Activity 1, it can be determined that the target activity corresponds to 2 tasks, namely Task 11 and Task 12.

[0129] S404: According to the target task, determine the target configuration information in the configuration information corresponding to each task.

[0130] For example, assuming that the target activity is activity 1, assuming that activity 1 has two tasks, namely task 11 and task 12, and assuming that the configuration information corresponding to each task can be as shown in Table 1. Assuming that the task type is task 11, the target configuration information can be determined to be configuration information 11.

[0131] S405: Obtain task progress information corresponding to the user identifier.

[0132] The execution process of S405 can refer to the execution process of S203, which will not be repeated here.

[0133] S406: Determine the task condition corresponding to the target task as the target task condition.

[0134] For example, assuming that the target task is task 1, and assuming that task 1 corresponds to task condition 1, task condition 1 is determined as the target task condition.

[0135] S407: Determine whether the target task meets the task completion conditions based on the task progress information and the target task conditions.

[0136] Furthermore, a task judgment program corresponding to the target task condition may be generated; the task progress information may be judged and processed according to the task judgment program to determine whether the target task satisfies the task completion condition.

[0137] The task judgment program may include a fixed program and a replacement program.

[0138] Furthermore, an initial judgment program may be obtained, which may include a fixed program and a program to be replaced; a replacement program is generated according to target task conditions, and the program to be replaced is replaced with the replacement program to obtain a task judgment program.

[0139] For example, assuming that the target task condition is to complete three transactions within the activity period, the replacement program can be to determine whether the three transactions have been completed.

[0140] S408: If yes, then determine the current thread corresponding to the business processing request among multiple threads.

[0141] S409. Obtain the issued quantity and the first to-be-issued quantity of the object through the current thread.

[0142] The execution process of S408-S409 can refer to the execution process of S204-S205, which will not be repeated here.

[0143] S410: Determine the sum of the issued quantity and the first to-be-issued quantity as the first quantity.

[0144] For example, assuming that the number of issued items in the cache is 3 and the first number to be issued is 1, it can be determined that the first number is 4.

[0145] S411: If the first quantity is greater than or equal to the number of objects, determine the task processing result according to the first quantity to be issued.

[0146] If the first quantity is greater than or equal to the number of objects, and the first to-be-issued quantity is equal to zero, the issued quantity has reached the number of objects, and the current thread cannot issue objects.

[0147] If the first number is greater than or equal to the number of objects, and the first number to be issued is greater than zero, there are other threads issuing objects, and there may be other threads that have successfully issued objects, so the current thread may not have objects to issue; or other threads have failed to issue objects, so there may be objects that can be issued.

[0148] Furthermore, if the first quantity to be released is equal to zero, the task processing result is failure to create the release order; if the first quantity to be released is greater than zero, the task processing result is delayed creation of the release order.

[0149] For example, assuming that the first quantity is 4, assuming that the object quantity is 4, that is, the first quantity is equal to the object quantity, assuming that the first quantity to be issued is 3, and there is a quantity being issued, then the task processing result is to delay the creation of the issuance order.

[0150] For example, assuming that the first quantity is 4, assuming that the number of objects is 4, that is, the first quantity is equal to the number of objects, assuming that the first quantity to be issued is 0, and all objects have been issued, the task processing result is that the issuance order creation fails.

[0151] S412: If the first quantity is less than the number of objects, the first quantity to be issued is increased by a preset quantity to obtain a second quantity to be issued.

[0152] If the first quantity is less than the number of objects, there are unissued objects.

[0153] The preset number may be the number of objects being issued by the current thread, for example, the preset number may be 1.

[0154] For example, assuming that the first quantity is 4, assuming that the object quantity is 5, assuming that the first waiting quantity is 1, and the preset quantity is 1, it can be determined that the second waiting quantity is 2.

[0155] S413: Determine the task processing result according to the number of objects, the number of issued objects, and the second number to be issued.

[0156] Furthermore, the sum of the issued quantity and the second to-be-issued quantity can be determined as the second quantity; if the second quantity is greater than the object quantity, the second to-be-issued quantity is reduced by a preset quantity to obtain a third to-be-issued quantity, and the task processing result is determined as delaying the creation of a release order; if the second quantity is less than or equal to the object quantity, the task processing result is determined as creating an object release order.

[0157] If the second quantity is greater than the number of objects, it means that other threads and the current thread are issuing objects, which increases the second number to be issued by the preset number. To avoid issuing too many objects, the issuance order is created later and the preset number increased by the current thread is subtracted from the second number to be issued.

[0158] For example, assuming that the first quantity is 4, assuming that the number of objects is 5, the first to-be-sent quantity is 0, assuming that the current thread is thread 1, assuming that thread 1 and thread 2 both increase the first to-be-sent quantity by a preset quantity, assuming that the preset quantity is 1, then the second to-be-sent quantity is 2, and it can be determined that the second quantity is 6, then the second to-be-sent quantity is reduced by the preset quantity, and the third to-be-sent quantity is 1, and the task processing result is determined as delayed creation of a release order.

[0159] If the second quantity is less than the object quantity, there are objects that can be released, and an object release order can be created.

[0160] For example, assuming that the first quantity is 4, assuming that the number of objects is 5, the first to-be-sent quantity is 0, assuming that the current thread is thread 1, assuming that thread 1 increases the first to-be-sent quantity by a preset quantity, assuming that the preset quantity is 1, then the second to-be-sent quantity is 1, and it can be determined that the second quantity is 5, then the task processing result is determined as creating an object issuance order.

[0161] The business processing method provided in the embodiment of the present application can determine the target activity, target task and task progress information corresponding to the business processing request, determine the task completion conditions and object quantity corresponding to the target task based on the target activity and target task, and when the task progress information meets the task completion conditions, control the issuance of objects based on the object quantity, issued quantity and first to-be-issued quantity of the objects, thereby improving the reliability of business processing.

[0162] Figure 5 This is a schematic diagram of the architecture of a business processing method provided in an embodiment of the present application. Figure 5 , a business processing request can be received, and the business processing request includes the identifier of the target activity, the target task and the user identifier. A configuration information table can be obtained, and the target configuration information corresponding to the target activity and the target task can be determined in the configuration information table. The target configuration information can include the task completion condition and the number of objects of the target task. The task progress information corresponding to the user identifier can be obtained, and according to the task progress information, it can be determined whether the target task meets the task completion condition. If so, the current thread corresponding to the business processing request can be determined in multiple threads.

[0163] The issued quantity and the first to-be-issued quantity of the object can be obtained through the current thread. The sum of the issued quantity and the first to-be-issued quantity is determined as the first quantity. If the first quantity is greater than or equal to the number of objects, and the first to-be-issued quantity is equal to zero, the task processing result is that the issuance order creation fails; if the first quantity is greater than or equal to the number of objects, and the first to-be-issued quantity is greater than zero, the task processing result is that the issuance order creation is delayed.

[0164] If the first quantity is less than the number of objects, the first quantity to be issued is increased by a preset quantity to obtain a second quantity to be issued. The sum of the issued quantity and the second quantity to be issued is determined as the second quantity; if the second quantity is greater than the number of objects, the second quantity to be issued is reduced by a preset quantity to obtain a third quantity to be issued, and the task processing result is determined as delayed creation of a release order; if the second quantity is less than or equal to the number of objects, the task processing result is determined as creation of an object release order.

[0165] Figure 6 A schematic diagram of the structure of a service processing device provided in an embodiment of the present application. Figure 6 The service processing device may include a receiving module 11, a first determining module 12, a judging module 13, a second determining module 14, an acquiring module 15 and a third determining module 16:

[0166] The receiving module 11 is used to receive a business processing request sent by a user terminal, the business processing request is used to request to collect an object, the business processing request includes an identifier of a target activity, a target task and a user identifier, and the target task is any one of at least one task corresponding to the target activity;

[0167] The first determination module 12 is used to determine the target configuration information corresponding to the business processing request according to the target activity and the target task, the target configuration information including the task completion condition and the number of objects of the target task;

[0168] The judgment module 13 is used to obtain the task progress information corresponding to the user identifier, and judge whether the target task meets the task completion condition according to the task progress information, and the task completion condition includes at least one task and the task condition corresponding to each task;

[0169] The second determination module 14 is used to, if yes, determine the current thread corresponding to the business processing request among multiple threads;

[0170] The acquisition module 15 is used to acquire the issued quantity and the first to-be-issued quantity of the object through the current thread;

[0171] The third determination module 16 is used to determine the task processing result according to the object quantity, the issued quantity and the first to-be-issued quantity, and the task processing result includes: creating an object issuing order, failure to create an issuing order and delaying the creation of an issuing order.

[0172] The business processing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0173] In a possible design, the third determining module 16 is specifically configured to:

[0174] The sum of the issued quantity and the first quantity to be issued is determined as the first quantity;

[0175] If the first quantity is greater than or equal to the number of objects, determining the task processing result according to the first quantity to be issued;

[0176] If the first quantity is less than the number of objects, the first quantity to be issued is increased by a preset quantity to obtain a second quantity to be issued, and the task processing result is determined according to the number of objects, the issued quantity and the second quantity to be issued.

[0177] In a possible design, the third determining module 16 is specifically configured to:

[0178] If the first quantity to be released is equal to zero, the task processing result is that the release order creation failed, and the release order creation failure is used to indicate that the object has been released;

[0179] If the first quantity to be distributed is greater than zero, the task processing result is to delay the creation of the distribution order. Delaying the creation of the distribution order is used to indicate that there are prizes to be distributed, and the business processing request will be tried again later.

[0180] In a possible design, the third determining module 16 is specifically configured to:

[0181] The sum of the issued quantity and the second quantity to be issued is determined as the second quantity;

[0182] If the second quantity is greater than the object quantity, the second quantity to be issued is reduced by a preset quantity to obtain a third quantity to be issued, and the task processing result is determined as delayed creation of the issuance order;

[0183] If the second quantity is less than or equal to the object quantity, the task processing result is determined as creating an object distribution order, where the creating object distribution order is used to instruct distribution of the object to the target terminal.

[0184] In a possible design, the determination module 13 is specifically used for:

[0185] Determine the task conditions corresponding to the target task as the target task conditions;

[0186] Based on the task progress information and target task conditions, determine whether the target task meets the task completion conditions.

[0187] In a possible design, the determination module 13 is specifically used for:

[0188] Generate a task judgment program corresponding to the target task conditions;

[0189] The task progress information is judged and processed according to the task judgment program to determine whether the target task meets the task completion conditions.

[0190] In a possible design, the first determining module 12 is specifically configured to:

[0191] Obtaining a configuration information table, the configuration information table including identifiers of multiple activities, at least one task corresponding to each activity, and configuration information corresponding to each task;

[0192] Determining at least one task corresponding to the target activity according to the identifier of the target activity;

[0193] According to the target task, the target configuration information is determined in the configuration information corresponding to each task.

[0194] In a possible design, the acquisition module 15 is specifically used for:

[0195] Determine whether request current limiting is triggered;

[0196] If not, acquire the spin lock, and obtain the issued quantity and the first to-be-issued quantity in the cache through the spin lock.

[0197] The business processing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0198] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 The electronic device 20 may include a processor 21 and a memory 22. Exemplarily, the processor 21 and the memory 22 are interconnected via a bus 23.

[0199] The memory 22 stores computer executable instructions;

[0200] The processor 21 executes the computer execution instructions stored in the memory 22, so that the processor 21 executes the service processing method shown in the above method embodiment.

[0201] Accordingly, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the business processing method of the above method embodiment.

[0202] Accordingly, an embodiment of the present application may also provide a computer program product, including a computer program, which, when executed by a processor, can implement the business processing method shown in the above method embodiment.

[0203] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0204] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 processes in the flowchart and / or block diagram. 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.

[0205] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate 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 A function specified in one or more boxes.

[0206] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0207] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0208] The memory may include non-permanent storage 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.

[0209] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape 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 temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0210] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0211] The above are only 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 modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A business processing method, characterized in that: include: receiving a service processing request sent by a user terminal, the service processing request being used to request to collect an object, the service processing request including an identifier of a target activity, a target task, and a user identifier, the target task being any one of at least one task corresponding to the target activity; Determine, according to the target activity and the target task, target configuration information corresponding to the business processing request, wherein the target configuration information includes a task completion condition and a number of objects of the target task; Acquire task progress information corresponding to the user identifier, and determine whether the target task satisfies the task completion condition according to the task progress information, where the task completion condition includes at least one task and a task condition corresponding to each task; If yes, determining a current thread corresponding to the business processing request among multiple threads; Through the current thread, the issued quantity and the first to-be-issued quantity of the object are obtained, and the task processing result is determined according to the object quantity, the issued quantity and the first to-be-issued quantity, wherein the task processing result includes: creating an object issuance order, failure to create an issuance order and delaying the creation of an issuance order.

2. The method according to claim 1, characterized in that Determining the task processing result according to the number of objects, the number of issued objects, and the first number to be issued includes: Determine the sum of the issued quantity and the first to-be-issued quantity as the first quantity; If the first quantity is greater than or equal to the number of objects, determining the task processing result according to the first quantity to be issued; If the first quantity is less than the number of objects, the first to-be-issued quantity is increased by a preset quantity to obtain a second to-be-issued quantity, and the task processing result is determined according to the number of objects, the issued quantity and the second to-be-issued quantity.

3. The method according to claim 2, characterized in that Determining the task processing result according to the first to-be-issued quantity includes: If the first quantity to be issued is equal to zero, the task processing result is that the issuance order creation fails, and the issuance order creation failure is used to indicate that the object has been issued; If the first quantity to be distributed is greater than zero, the task processing result is the delayed creation of the distribution order, and the delayed creation of the distribution order is used to indicate that there are prizes to be distributed, and the business processing request is attempted to be sent later.

4. The method according to claim 2, characterized in that: Determining the task processing result according to the number of objects, the number of issued objects, and the second number to be issued includes: Determine the sum of the issued quantity and the second to-be-issued quantity as the second quantity; If the second quantity is greater than the object quantity, the second to-be-released quantity is reduced by a preset quantity to obtain a third to-be-released quantity, and the task processing result is determined as the delayed creation and release order; If the second quantity is less than or equal to the object quantity, the task processing result is determined as the create object issuing order, where the create object issuing order is used to instruct issuing the object to the target terminal.

5. The method according to any one of claims 1 to 4, characterized in that: Judging whether the target task meets the task completion condition according to the task progress information includes: Determining the task condition corresponding to the target task as the target task condition; According to the task progress information and the target task condition, it is determined whether the target task satisfies the task completion condition.

6. The method according to claim 5, characterized in that Judging whether the target task satisfies the task completion condition according to the task progress information and the target task condition includes: Generate a task judgment program corresponding to the target task condition; The task progress information is judged and processed according to the task judgment program to determine whether the target task meets the task completion condition.

7. The method according to any one of claims 1 to 6, characterized in that: Determining target configuration information corresponding to the business processing request according to the target activity and the target task includes: Acquire a configuration information table, wherein the configuration information table includes identifiers of multiple activities, at least one task corresponding to each activity, and configuration information corresponding to each task; Determining at least one task corresponding to the target activity according to the identifier of the target activity; According to the target task, the target configuration information is determined in the configuration information corresponding to each task.

8. The method according to any one of claims 1 to 7, characterized in that: Obtaining the issued quantity and the first to-be-issued quantity of the object, including: Determine whether request current limiting is triggered; If not, a spin lock is acquired, and the issued quantity and the first to-be-issued quantity are acquired in a cache through the spin lock.

9. A service processing device, characterized in that: It includes a receiving module, a first determining module, a judging module, a second determining module, an acquiring module and a third determining module: The receiving module is used to receive a business processing request sent by a user terminal, the business processing request is used to request to collect an object, the business processing request includes an identifier of a target activity, a target task and a user identifier, and the target task is any one of at least one task corresponding to the target activity; The first determination module is used to determine the target configuration information corresponding to the business processing request according to the target activity and the target task, wherein the target configuration information includes the task completion condition and the number of objects of the target task; The judgment module is used to obtain task progress information corresponding to the user identifier, and judge whether the target task meets the task completion condition according to the task progress information, where the task completion condition includes at least one task and the task condition corresponding to each task; The second determination module is used to, if yes, determine the current thread corresponding to the business processing request among multiple threads; The acquisition module is used to acquire the issued quantity and the first to-be-issued quantity of the object through the current thread; The third determination module is used to determine the task processing result according to the object quantity, the issued quantity and the first to-be-issued quantity, and the task processing result includes: creating an object issuance order, failure to create an issuance order and delaying the creation of an issuance order.

10. An electronic device, characterized in that: include: Memory and processor, The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the business processing method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the business processing method according to any one of claims 1 to 8 when executed by a processor.

12. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the service processing method according to any one of claims 1 to 8 is implemented.