CN-122022820-A - Service execution method and device, storage medium and electronic equipment
Abstract
The embodiment of the specification discloses a service execution method, which divides all tasks corresponding to a target service into two types of tasks, for the target first type task, when receiving a completion message of the target first type task triggered and sent by a user terminal due to the operation of a target user, provides resources corresponding to the target first type task for the target user, and for the target second type task, monitors the user state of the target user, and when the user state meets the completion condition corresponding to the target second type task, provides the resources corresponding to the target second type task for the target user, and can judge whether the target user completes the corresponding task in different modes, thereby efficiently and flexibly realizing the execution flow of each task in various complex services.
Inventors
- ZHANG LEI
- LIN FEI
- YU JIACHENG
- ZHANG TENG
Assignees
- 支付宝(杭州)数字服务技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260130
Claims (12)
- 1. A method of service execution, the method comprising: receiving a task acquisition request corresponding to a target service sent by a user terminal of a target user; Selecting at least one target first type task from the first type tasks preset for the target service, determining the user type of the target user according to the user identification of the target user, and selecting at least one target second type task matched with the user type of the target user from the second type tasks preset for the target service according to the user type of the target user; Adding the target first type task and the target second type task to a task list of the target user, and returning task information corresponding to each task added in the task list to the user terminal; Aiming at the target first type task, when receiving a completion message corresponding to the target first type task, which is triggered and sent by the user terminal in response to the operation of the target user based on the task information of the target first type task, providing resources corresponding to the target first type task for the target user; And aiming at the target second class task, monitoring the user state of the target user, and providing the resource corresponding to the target second class task for the target user when the user state of the target user is monitored to meet the completion condition corresponding to the target second class task.
- 2. The method according to claim 1, selecting at least one target second class task matching the user type of the target user, comprising in particular: Determining the times of the target user completing the second type task in a designated time period aiming at each second type task matched with the user type of the target user, and determining the second type task as a candidate second type task if the times of the target user completing the second type task in the designated time period does not reach a completion times threshold configured for the second type task in advance; at least one target second-class task is selected from the candidate second-class tasks.
- 3. The method of claim 1, after adding the target first type of task and the target second type of task to the task list of the target user, the method further comprising: And sending the completion condition corresponding to the target first-class task to a user terminal of the target user, so that the user terminal locally monitors whether the target user performs the operation matched with the completion condition or not, and when the target user is monitored to perform the operation matched with the completion condition, the completion message corresponding to the target first-class task is triggered to be sent.
- 4. The method of claim 1, further comprising, prior to providing the target user with the resources corresponding to the target first type of task: Determining that the target first type task is added into a task list of the target user according to the task identification of the target first type task and the user identification of the target user carried in the completion message, and/or, Determining that the time interval from the last completion of the target first type task by the target user to the current moment is not less than a preset time interval according to the task identification of the target first type task and the user identification of the target user carried in the completion message, and/or, And determining that the times of completing the target first-class task by the target user in a designated time period does not reach a completion times threshold configured for the target first-class task in advance according to the task identifier of the target first-class task and the user identifier of the target user carried in the completion message.
- 5. The method of claim 2, wherein providing the resource corresponding to the second type of task to the target user specifically comprises: Verifying whether the current user type of the target user is matched with the target second-class task or not, and/or whether the number of times the target user completes the target second-class task in a designated time period does not reach a completion number threshold configured for the target second-class task in advance; and if the verification is passed, providing the resources corresponding to the target second class task for the target user.
- 6. The method of any one of claims 1 to 5, wherein the target service includes a second service to be executed; the method further comprises the steps of: And executing the second service to be executed for the target user when receiving an execution request corresponding to the second service to be executed, which is sent by the user terminal, wherein the execution request is sent by the user terminal when attribute data of a target service card selected by the target user in a service card pool of the target user meets execution conditions of the second service to be executed, and the target service card comprises a virtual service card of the target user and a copy selected by the target user in obtained copies of virtual service cards of other users.
- 7. The method of any one of claims 1 to 5, wherein the target service includes a first service to be executed; the method further comprises the steps of: And when the attribute data of the virtual service cards of the other users obtained by the target user are matched with answer information corresponding to the pre-issued puzzle information, providing preset resources corresponding to the first service to be executed for the shared users.
- 8. The method of any one of claims 1-5, wherein the target service comprises a set card activity service; the method further comprises the steps of: And when the target user obtains the card of the specified type, providing the resource corresponding to the integrated card activity service for the target user.
- 9. A service execution apparatus, the apparatus comprising: The receiving module is used for receiving a task acquisition request corresponding to a target service sent by a user terminal of a target user; The system comprises a target service setting module, a selection module and a control module, wherein the target service setting module is used for setting a target service in advance, and is used for selecting at least one target first type task in each first type task set in advance for the target service; The return module is used for adding the target first-class task and the target second-class task to a task list of the target user, and returning task information corresponding to each task added in the task list to the user terminal; The first execution module is used for providing resources corresponding to the target first type task for the target user when receiving a completion message corresponding to the target first type task, which is triggered and sent by the user terminal in response to the operation of the target user based on the task information of the target first type task; The second execution module is used for monitoring the user state of the target user aiming at the target second type task, and providing the resource corresponding to the target second type task for the target user when the user state of the target user is monitored to meet the completion condition corresponding to the target second type task.
- 10. A computer readable storage medium storing a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-8.
- 11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any of the preceding claims 1-8 when the program is executed.
- 12. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-8.
Description
Service execution method and device, storage medium and electronic equipment Technical Field The present disclosure relates to the field of computer technologies, and in particular, to a service execution method, a device, a storage medium, and an electronic apparatus. Background With the development of the age, service providers have been able to provide users with a wide variety of services that can directly provide users with money or coupons and other resources. However, as the demands of people continue to increase, more and more businesses become more complex to increase interest, multiple tasks may exist in a business, and users need to complete the tasks to gradually obtain the resources corresponding to the business. Therefore, how to efficiently and flexibly implement the execution flow of the complex service is a problem to be solved. Disclosure of Invention The embodiment of the specification provides a service execution method, a device, a storage medium and an electronic device, so as to partially solve the problems in the prior art. The embodiment of the specification adopts the following technical scheme: The service execution method provided by the specification comprises the following steps: receiving a task acquisition request corresponding to a target service sent by a user terminal of a target user; Selecting at least one target first type task from the first type tasks preset for the target service, determining the user type of the target user according to the user identification of the target user, and selecting at least one target second type task matched with the user type of the target user from the second type tasks preset for the target service according to the user type of the target user; Adding the target first type task and the target second type task to a task list of the target user, and returning task information corresponding to each task added in the task list to the user terminal; Aiming at the target first type task, when receiving a completion message corresponding to the target first type task, which is triggered and sent by the user terminal in response to the operation of the target user based on the task information of the target first type task, providing resources corresponding to the target first type task for the target user; And aiming at the target second class task, monitoring the user state of the target user, and providing the resource corresponding to the target second class task for the target user when the user state of the target user is monitored to meet the completion condition corresponding to the target second class task. The service execution device provided in the present specification, the device includes: The receiving module is used for receiving a task acquisition request corresponding to a target service sent by a user terminal of a target user; The system comprises a target service setting module, a selection module and a control module, wherein the target service setting module is used for setting a target service in advance, and is used for selecting at least one target first type task in each first type task set in advance for the target service; The return module is used for adding the target first-class task and the target second-class task to a task list of the target user, and returning task information corresponding to each task added in the task list to the user terminal; The first execution module is used for providing resources corresponding to the target first type task for the target user when receiving a completion message corresponding to the target first type task, which is triggered and sent by the user terminal in response to the operation of the target user based on the task information of the target first type task; The second execution module is used for monitoring the user state of the target user aiming at the target second type task, and providing the resource corresponding to the target second type task for the target user when the user state of the target user is monitored to meet the completion condition corresponding to the target second type task. A computer-readable storage medium is provided in the present specification, the storage medium storing a computer program that, when executed by a processor, implements the above-described service execution method. The electronic device provided by the specification comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the service execution method when executing the program. A computer program product is provided in the present specification, where the computer program product includes a computer program, and the computer program when executed by a processor implements the service execution method described above. The above-mentioned at least one technical scheme that this description embodiment adopted can reach following beneficial effect: the embodiment of the specificati