CN113191792B - Task processing method, device, electronic equipment, storage medium and program product - Google Patents

Task processing method, device, electronic equipment, storage medium and program product Download PDF

Info

Publication number
CN113191792B
CN113191792B CN202110352838.7A CN202110352838A CN113191792B CN 113191792 B CN113191792 B CN 113191792B CN 202110352838 A CN202110352838 A CN 202110352838A CN 113191792 B CN113191792 B CN 113191792B
Authority
CN
China
Prior art keywords
task
identification information
currently associated
user account
center
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110352838.7A
Other languages
Chinese (zh)
Other versions
CN113191792A (en
Inventor
邵帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110352838.7A priority Critical patent/CN113191792B/en
Publication of CN113191792A publication Critical patent/CN113191792A/en
Application granted granted Critical
Publication of CN113191792B publication Critical patent/CN113191792B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0226Incentive systems for frequent usage, e.g. frequent flyer miles programs or point systems

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a method, an apparatus, an electronic device, a storage medium and a program product for processing a task, wherein the method comprises: receiving a task trigger instruction of a terminal; acquiring the identification information of the currently associated task from a task identification database according to the identification information of the user account in the task trigger instruction; acquiring the task state of the current associated task from a task center according to the identification information of the current associated task; when the task state is completed, acquiring the identification information and the task content of the next task from a task center; and storing the identification information of the next task into a task identification database, updating the currently associated task into the next task, and transmitting the task content of the next task to the terminal. According to the method and the device, the task identification database stores the identification information of the currently associated task, the task center stores the related information of each task, the user is prevented from frequently picking up and completing the same task, the operation steps of the user are reduced, and the task processing data volume of the product is reduced.

Description

Task processing method, device, electronic equipment, storage medium and program product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a task processing method, apparatus, electronic device, storage medium, and program product.
Background
With the rapid development of computer technology, there is a strong competition between the same types of products (e.g., applications). Many products provide tasks to users during a particular holiday, and users may receive corresponding rewards by completing a specified task.
In the related technology, the product can provide a series of tasks for the user, and the user can obtain corresponding rewards after completing each task in turn. However, each time the user enters the task interface, the user starts to get the task from the first task in a series of tasks, so that the user frequently gets and completes the same task, the operation steps of the user are increased, and the task processing quantity of the product is increased.
Disclosure of Invention
The present disclosure provides a task processing method, apparatus, electronic device, storage medium, and program product, so as to at least solve the problem in the related art that users frequently pick up and complete the same task, increase the operation steps of the users, and increase the task processing number of the product. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, there is provided a method for processing a task, applied to a server, the method including: receiving a task trigger instruction from a terminal, wherein the task trigger instruction comprises identification information of a user account; acquiring the identification information of the task currently associated with the user account from a task identification database according to the identification information of the user account; acquiring the task state of the current associated task from a task center according to the identification information of the current associated task; when the task state is completed, acquiring the identification information and the task content of the next task of the currently associated task from the task center; and storing the identification information of the next task into the task identification database, updating the currently associated task into the next task, and transmitting the task content of the next task to the terminal.
Optionally, after the task state of the currently associated task is obtained from the task center according to the identification information of the currently associated task, the method further includes: when the task state is incomplete, acquiring task content of the currently associated task from the task center; and transmitting the task content of the currently associated task to the terminal.
Optionally, the task center stores identification information of a plurality of tasks arranged in sequence; the step of obtaining the identification information of the task currently associated with the user account from a task identification database according to the identification information of the user account comprises the following steps: when the user account accesses the task interface of the terminal for the first time, the identification information of the first task is read from the identification information of a plurality of tasks sequentially arranged in the task center; and storing the identification information of the first task into the task identification database, and taking the identification information of the first task as the identification information of the task currently associated with the user account.
Optionally, the acquiring, according to the identification information of the user account, the identification information of the task currently associated with the user account from a task identification database includes: and when the user account accesses the task interface of the terminal again, taking the unique identification information in the task identification database as the identification information of the task currently associated with the user account.
Optionally, the task center stores the positions of a plurality of tasks which are sequentially arranged; when the task center has a replaced task, the position comprises a position before replacement in a plurality of tasks which are arranged in sequence before the replaced task is replaced; in the case that the task center does not have a replaced task, the position includes an original position of the non-replaced task among the plurality of tasks arranged in sequence.
Optionally, the acquiring, from the task center, identification information and task content of a task next to the currently associated task includes: if the currently associated task is replaced, acquiring the pre-replacement position of the currently associated task from the task center according to the identification information of the currently associated task; and taking the identification information and the task content of the task corresponding to the next position of the position before replacement as the identification information and the task content of the next task.
Optionally, the acquiring, from the task center, identification information and task content of a task next to the currently associated task includes: if the currently associated task is not replaced, acquiring the original position of the currently associated task from the task center according to the identification information of the currently associated task; and taking the identification information and task content of the task corresponding to the next position of the original position as the identification information and task content of the next task.
According to a second aspect of embodiments of the present disclosure, there is provided a processing apparatus for a task, applied to a server, the apparatus including: the instruction receiving unit is configured to execute and receive a task trigger instruction from the terminal, wherein the task trigger instruction comprises identification information of a user account; an identification acquisition unit configured to perform acquisition of identification information of a task currently associated with the user account from a task identification database according to the identification information of the user account; a state acquisition unit configured to perform acquisition of a task state of the currently associated task from a task center according to the identification information of the currently associated task; a content acquisition unit configured to acquire, when the task state is completed, identification information of a task next to the currently associated task and task content from the task center; a task updating unit configured to perform storing of the identification information of the next task into the task identification database, and update the currently associated task as the next task; and the content transmission unit is configured to perform transmission of task content of the next task to the terminal.
Optionally, the content obtaining unit is further configured to perform obtaining, when the task state is incomplete, task content of the current associated task from the task center after the state obtaining unit obtains the task state of the current associated task from the task center according to the identification information of the current associated task; the content transmission unit is further configured to perform transmission of task content of the currently associated task to the terminal.
Optionally, the task center stores identification information of a plurality of tasks arranged in sequence; the identification acquisition unit is configured to perform reading identification information of a first task from identification information of a plurality of tasks sequentially arranged in the task center when the user account accesses the task interface of the terminal for the first time; and storing the identification information of the first task into the task identification database, and taking the identification information of the first task as the identification information of the task currently associated with the user account.
Optionally, the identifier obtaining unit is configured to execute, when the user account accesses the task interface of the terminal again, the unique identifier information in the task identifier database as the identifier information of the task currently associated with the user account.
Optionally, the task center stores the positions of a plurality of tasks which are sequentially arranged; when the task center has a replaced task, the position comprises a position before replacement in a plurality of tasks which are arranged in sequence before the replaced task is replaced; in the case that the task center does not have a replaced task, the position includes an original position of the non-replaced task among the plurality of tasks arranged in sequence.
Optionally, the content obtaining unit is configured to obtain, from the task center, the pre-replacement position of the currently associated task according to the identification information of the currently associated task if the currently associated task is replaced; and taking the identification information and the task content of the task corresponding to the next position of the position before replacement as the identification information and the task content of the next task.
Optionally, the content obtaining unit is configured to obtain, from the task center, the original position of the current associated task according to the identification information of the current associated task if the current associated task is not replaced; and taking the identification information and task content of the task corresponding to the next position of the original position as the identification information and task content of the next task.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of processing tasks according to the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the processing method of the task according to the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of processing tasks according to the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
In the task processing scheme provided by the embodiment of the disclosure, a task identification database and a task center may be provided, wherein the task identification database may store identification information of a task currently associated with a user account, and the task center may store related information of a series of tasks provided by a product for the user account, such as identification information, task content, task state, and the like. After the user account enters a task page on the terminal, the terminal generates and transmits a task trigger instruction to the server. The server can acquire the identification information of the task currently associated with the user account from the task identification database according to the identification information of the user account in the task trigger instruction. And the server acquires the task state of the current associated task from the task center according to the identification information of the current associated task. If the task state is completed, acquiring the identification information and the task content of the next task from the task center, storing the identification information of the next task into a task identification database, updating the currently associated task into the next task, and transmitting the task content of the next task to the terminal. The user account in the embodiment of the disclosure can acquire the identification information of the currently associated task from the task identification database no matter entering the task interface for the first time or entering the task interface again, and further acquire the task state of the currently associated task from the task center. If the task status is completed, the relevant information of the next task can be acquired from the task center. The user account may perform related operations for the next task to complete the next task. According to the embodiment of the disclosure, the task identification database stores the identification information of the currently associated task and the task center stores the related information of each task, so that the user is prevented from frequently picking up and completing the same task, the operation steps of the user are reduced, and the task processing quantity of products is also reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a flowchart illustrating steps of a method of processing a task according to an exemplary embodiment.
FIG. 2 is a flow diagram illustrating a scenario for a task's acquisition, according to an example embodiment.
FIG. 3 is a block diagram of a task processing device, according to an example embodiment.
FIG. 4 is a block diagram of an electronic device for processing a task, according to an example embodiment.
FIG. 5 is a block diagram of an electronic device for processing tasks, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a flowchart illustrating steps of a method for processing a task according to an exemplary embodiment, and as shown in fig. 1, the method for processing a task may be applied to a server, and the method for processing a task may specifically include the following steps.
In step S11, a task trigger instruction from the terminal is received.
In the embodiment of the disclosure, a user account on a terminal enters a task interface on the terminal, and the terminal responds to the entering operation of the user account to generate a task trigger instruction. The task trigger may include identification information for the user account. The server receives the task trigger instruction from the terminal and can analyze the task trigger instruction to obtain the identification information of the user account.
In step S12, identification information of a task currently associated with the user account is acquired from the task identification database according to the identification information of the user account.
In embodiments of the present disclosure, the task identification database may be provided in the server or in another device communicatively connected to the server. The task identification database may store identification information of the task currently associated with the user account. In practical application, a plurality of user accounts may share a task identification database, where the task identification database may store identification information of each user account, identification information of a task currently associated with each user account, and a correspondence between the identification information of each user account and the identification information of the task currently associated with each user account. Or each user account may correspond to a respective task identification database, where each task identification database may store identification information of a task currently associated with the respective user account. The identification information of the user account is used for uniquely determining a user account, the identification information of the task is used for uniquely determining a task, the identification information of the user account or the identification information of the task may be numbers, letters, symbols, etc., and the content, format, length, etc. of the identification information of the user account or the identification information of the task are not particularly limited in the embodiments of the present disclosure.
If a plurality of task identification databases exist, the server can select a task identification database corresponding to the user account from the plurality of task identification databases according to the identification information of the user account, and then acquire the identification information of the task currently associated with the user account from the selected task identification database. If a task identification database exists, the server can acquire the identification information of the task currently associated with the user account from the task identification database according to the identification information of the user account.
In step S13, the task state of the currently associated task is acquired from the task center according to the identification information of the currently associated task.
In the embodiment of the disclosure, the preset task center may be set in the server, or may be set in another device communicatively connected to the server. A task center may have stored therein task states for a series of tasks. In practical application, a plurality of user accounts may share a task center, where identification information of each task, task content of each task, task status of each task, and the like may be stored in the task center, where the task status of each task may be understood as a task status of each task corresponding to a user account associated therewith. When there are multiple user accounts associated with a task, the task state of the task includes the task states of the multiple user accounts associated therewith.
In step S14, when the task state is completed, identification information of the next task of the currently associated task and task content are acquired from the task center.
In embodiments of the present disclosure, the task state may be completed or incomplete. When the task state is completed, indicating that the user account has executed related operations for the task; and when the task state is incomplete, indicating that the user account does not execute related operation for the task. And if the task state of the currently associated task is completed, acquiring the identification information and the task content of the next task from the task center. In practical application, if the task state of the currently associated task is completed and the currently associated task is not the last task in a series of tasks stored in the task center, the identification information and the task content of the next task can be acquired from the task center. If the task state of the currently associated task is completed and the currently associated task is the last task in a series of tasks stored in the task center, prompt information indicating that the tasks are completed completely can be generated and the prompt information is returned to the terminal.
In step S15, the identification information of the next task is stored in the task identification database, the currently associated task is updated to be the next task, and the task content of the next task is transmitted to the terminal.
In an embodiment of the present disclosure, the identification information of the next task is stored in the task identification database, and the currently associated task is updated to be the next task. The updated identification information in the task identification database is used as the identification information of the task currently associated with the user account. And transmitting the task content of the next task to the terminal, wherein the user account on the terminal can execute corresponding operation aiming at the task content of the next task so as to complete the next task. For example, the identification information field of the task currently associated with the account u1 in the task identification database stores the identification information of the task t1, the server acquires the identification information and the task content of the next task t2 of the task t1 from the task center, and the server stores the identification information of the task t2 in the identification information field of the task currently associated with the account u1 in the task identification database, that is, the task currently associated with the account u1 is updated from the task t1 to the task t2.
In the task processing scheme provided by the embodiment of the disclosure, a task identification database and a task center may be provided, wherein the task identification database may store identification information of a task currently associated with a user account, and the task center may store related information of a series of tasks provided by a product for the user account, such as identification information, task content, task state, and the like. After the user account enters a task page on the terminal, the terminal generates and transmits a task trigger instruction to the server. The server can acquire the identification information of the task currently associated with the user account from the task identification database according to the identification information of the user account in the task trigger instruction. And the server acquires the task state of the current associated task from the task center according to the identification information of the current associated task. If the task state is completed, acquiring the identification information and the task content of the next task from the task center, storing the identification information of the next task into a task identification database, updating the currently associated task into the next task, and transmitting the task content of the next task to the terminal. The user account in the embodiment of the disclosure can acquire the identification information of the currently associated task from the task identification database no matter entering the task interface for the first time or entering the task interface again, and further acquire the task state of the currently associated task from the task center. If the task status is completed, the relevant information of the next task can be acquired from the task center. The user account may perform related operations for the next task to complete the next task. According to the embodiment of the disclosure, the task identification database stores the identification information of the currently associated task and the task center stores the related information of each task, so that the user is prevented from frequently picking up and completing the same task, the operation steps of the user are reduced, and the task processing quantity of products is also reduced.
In an exemplary embodiment of the present disclosure, after acquiring the task status of the currently associated task from the task center according to the identification information of the currently associated task, when the task status is incomplete, the server may acquire the task content of the currently associated task from the task center, and transmit the task content of the currently associated task to the terminal, so that the user account performs a related operation on the terminal with respect to the task content of the currently associated task. That is, if the user account does not complete the relevant operations for the currently associated task, the user account may continue to perform the relevant operations for the currently associated task. According to the embodiment of the disclosure, whether the user account completes the currently associated task is marked through the task state of the task center, when the user account does not complete the currently associated task, the user account is allowed to continue to complete the currently associated task, other tasks associated with the user account are avoided, operation steps of the user account associated with other tasks are reduced, and efficiency of the user account for completing the task is improved.
In an exemplary embodiment of the present disclosure, the user account may access the task interface of the terminal for the first time, and the user account may access the task interface of the terminal again. When the identification information of the task currently associated with the user account is acquired from the task identification database, whether the user account accesses the task interface for the first time or accesses the task interface again can be judged. If the user account accesses the task interface for the first time, which means that the user account gets the task for the first time, a first task of the plurality of tasks which are sequentially arranged and stored in the task center can be used as a task which is currently associated with the user account, the identification information of the first task is read out from the identification information of the plurality of tasks which are sequentially arranged in the task center, the identification information of the first task is stored in the task identification database, and the identification information of the first task is used as the identification information of the task which is currently associated with the user account. For example, the task center stores identification information of the tasks t1, t2, and t3 arranged in order. If the user account accesses the task interface for the first time, taking the task t1 as the task currently associated with the user account, and storing the identification information of the task t1 into a task identification database. If the user account revisits the task interface, which indicates that the user account has taken the task, the unique task identification information in the task identification database can be used as the identification information of the currently associated task. According to the embodiment of the disclosure, the task center stores a plurality of tasks which are sequentially arranged, a first task of the task center is defaulted to be a task currently associated with the user account according to the condition that the user account first retrieves the tasks, and meanwhile, identification information of the first task is stored in the task identification database, so that the user account sequentially retrieves the tasks according to the arrangement sequence of the plurality of tasks in the task center and completes the tasks. Aiming at the situation that the user account has picked up the task, the identification information of the currently associated task does not need to be acquired from the task center, the identification information of the currently associated task can be read from the task identification database, and the data quantity of the identification reading request aiming at the task center is reduced.
In one exemplary embodiment of the present disclosure, the task center may store not only related information of a plurality of tasks arranged in sequence, such as identification information, task content, task status, and the like. The task center may also store the locations of a plurality of tasks arranged in sequence. In the case where there is a task to be replaced in the task center, the positions of the plurality of tasks include the position before replacement in the plurality of tasks arranged in order before the task to be replaced. For example, at a certain time, the task center includes three tasks, i.e., a task t1, a task t2, and a task t3 in this order. At another moment, the task t1 is replaced by a task t4, and the replaced task center comprises three tasks, namely a task t4, a task t2 and a task t3 in sequence. Wherein task t1 is a replaced task, and the task center may store a pre-replacement position "first bit" of task t1 before being replaced. In the case where there is no replaced task in the task center, the positions of the plurality of tasks include original positions of the non-replaced task in the plurality of tasks arranged in sequence. For example, the task center includes three tasks, i.e., a task t1, a task t2, and a task t3 in this order. If none of the three tasks is replaced, the task center stores the original positions "first", "second", and "third" of the three tasks.
When the identification information and the task content of the next task of the currently associated task are acquired from the task center, the identification information and the task content of the next task can be acquired according to the situation that whether the currently associated task is replaced in the task center or not. If the currently associated task is replaced at the task center, the pre-replacement position of the currently associated task can be obtained from the task center according to the identification information of the currently associated task. It is thus understood that the task center stores not only the pre-replacement position of the replaced task but also the correspondence between the identification information of the replaced task and the pre-replacement position. Further, the identification information and task content of the task corresponding to the next position of the position before replacement are used as the identification information and task content of the next task. For example, the currently associated task is task t1, and task t1 is replaced with task t4. If the position before the replacement of the task t1 is "first bit", the task t2 of "second bit" next to "first bit" may be regarded as the next task. If the currently associated task is not replaced in the task center, the original position of the currently associated task can be obtained from the task center according to the identification information of the currently associated task, and then the identification information of the task corresponding to the next position of the original position and the task content are used as the identification information and the task content of the next task. For example, if the currently associated task is the task t2 and the task t2 is not replaced and the original position of the task t2 is the "second bit", the next task t3 of the "third bit" of the "second bit" may be taken as the next task.
According to the embodiment of the disclosure, the task of the task center can be replaced, and if the task currently associated with a certain user account is the replaced task in the task center and the task state of the currently associated task is completed, the task identification and the task content of the next task can be obtained according to the position of the currently associated task before replacement in the task center. If the task currently associated with a certain user account is not replaced in the task center and the task state of the task currently associated is completed, the task identification and the task content of the next task can be acquired according to the original position of the task currently associated in the task center. If the task currently associated with a certain user account is a task replaced in the task center and the task state of the task currently associated is incomplete, the task after the task currently associated is replaced can be updated to the task currently associated. For example, task t1 currently associated with the user account is the replaced task, and task t1 is replaced with task t4. If the task state of task t1 is incomplete, task t4 may be updated to the currently associated task of the user account. Specifically, the identification information of the task t4 may be stored in a task identification database, and the task content of the task t4 may be sent to the terminal. If the task currently associated with a certain user account is not replaced in the task center and the task state of the task currently associated is incomplete, the task content of the task currently associated can be sent to the terminal, and the task currently associated can be continuously completed by the user account. When the task currently associated with the user account is replaced, if the task is associated with the user account according to the related technology, the user account can be associated with the task t2 after completing the replaced task t1 and after completing the replaced task t4. The embodiment of the disclosure stores the position information (the position before replacement and the original position) of the task in the task center, and can associate the task t2 with the user account according to the position before replacement of the task t1 after the user account completes the task t 1to be replaced, so that the task t4 does not need to be associated with the user account, and the problem that the user account is invalid to complete the task to be replaced due to the fact that the task is replaced is avoided.
Based on the above description of the embodiment of the method for processing a task, a task retrieval scheme is described below. As shown in fig. 2, the acquisition scheme of the task involves a terminal and a server. The user account u1 is logged in to the terminal, the terminal is in communication connection with the server, and the server is provided with a task storage database (i.e. a task identification database) and a task center database (i.e. a task center). The task storage database stores identification information of each user account and identification information of a currently-acquired task of each user account. The task center database stores identification information, task state, task content, position and the like of the tasks t1, t2 and t 3.
When the user account u1 enters an active page on the terminal, the server reads the identification information of the task t1 currently acquired by the user account u1 from the task storage database, and then the server reads the task state of the user account u1 for the task t1 from the task center database according to the identification information of the task t 1. If the task state of the task t1 is incomplete, the user account u1 does not need to pick up the next task, the server acquires the task content of the task t1 from the task center database, and the task content of the task t1 is returned to the account u1. If the task state of the task t1 is completed, the server acquires the identification information and the task content of the next task t2 of the task t1 from the task center database, stores the identification information of the task t2 into the task storage database, and updates the task t1 currently acquired by the user account u1 in the task storage database into the task t2. And, the task content and the identification information of the task t2 are returned to the user account u1.
It should be noted that, if the user account u2 receives the task for the first time after the task t1 is adjusted to the task t4, the user account u2 receives the task t4, and the task t1 is not visible to the user account u 2.
FIG. 3 is a block diagram of a task processing device, according to an example embodiment. The device can be applied to a server, and particularly can comprise the following modules.
An instruction receiving unit 31 configured to perform receiving a task trigger instruction from a terminal, the task trigger instruction including identification information of a user account;
An identification acquisition unit 32 configured to perform acquisition of identification information of a task currently associated with the user account from a task identification database according to the identification information of the user account;
A state acquisition unit 33 configured to perform acquisition of a task state of the currently associated task from a task center according to the identification information of the currently associated task;
A content acquisition unit 34 configured to acquire, when the task state is completed, identification information of a task next to the currently associated task and task content from the task center;
a task updating unit 35 configured to perform storing of the identification information of the next task into the task identification database, and update the currently associated task as the next task;
a content transmission unit 36 configured to perform transmission of task content of the next task to the terminal.
In an exemplary embodiment of the present disclosure, the content obtaining unit 34 is further configured to perform obtaining, when the task status is incomplete, task content of the currently associated task from a task center after the status obtaining unit 33 obtains the task status of the currently associated task from the task center according to the identification information of the currently associated task;
The content transmission unit 36 is further configured to perform a transmission of task content of the currently associated task to the terminal.
In one exemplary embodiment of the present disclosure, the task center stores identification information of a plurality of tasks arranged in sequence;
The identification acquisition unit 32 is configured to perform reading out identification information of a first task from identification information of a plurality of tasks sequentially arranged in the task center when the user account accesses the task interface of the terminal for the first time; and storing the identification information of the first task into the task identification database, and taking the identification information of the first task as the identification information of the task currently associated with the user account.
In an exemplary embodiment of the present disclosure, the identifier obtaining unit 32 is configured to perform, when the user account accesses the task interface of the terminal again, unique identifier information in the task identifier database as identifier information of a task currently associated with the user account.
In an exemplary embodiment of the present disclosure, the task center stores positions of a plurality of tasks arranged in sequence; when the task center has a replaced task, the position comprises a position before replacement in a plurality of tasks which are arranged in sequence before the replaced task is replaced; in the case that the task center does not have a replaced task, the position includes an original position of the non-replaced task among the plurality of tasks arranged in sequence.
In an exemplary embodiment of the present disclosure, the content obtaining unit 34 is configured to obtain the pre-replacement position of the currently associated task from the task center according to the identification information of the currently associated task if the currently associated task is replaced; and taking the identification information and the task content of the task corresponding to the next position of the position before replacement as the identification information and the task content of the next task.
In an exemplary embodiment of the present disclosure, the content obtaining unit 34 is configured to obtain the original position of the currently associated task from the task center according to the identification information of the currently associated task if the currently associated task is not replaced; and taking the identification information and task content of the task corresponding to the next position of the original position as the identification information and task content of the next task.
The specific manner in which the individual units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
Fig. 4 is a block diagram of an electronic device 400 for processing a task, according to an example embodiment. For example, electronic device 400 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 4, an electronic device 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the electronic device 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the processing methods for the tasks described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the electronic device 400. Examples of such data include instructions for any application or method operating on electronic device 400, contact data, phonebook data, messages, images, video, and the like. The memory 404 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 406 provides power to the various components of the electronic device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 400.
The multimedia component 408 includes a screen between the electronic device 400 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. When the electronic device 400 is in an operational mode, such as a shooting mode or a video mode, the front-facing camera and/or the rear-facing camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 further includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 414 includes one or more sensors for providing status assessment of various aspects of the electronic device 400. For example, the sensor assembly 414 may detect an on/off state of the electronic device 400, a relative positioning of the components, such as a display and keypad of the electronic device 400, the sensor assembly 414 may also detect a change in position of the electronic device 400 or a component of the electronic device 400, the presence or absence of a user's contact with the electronic device 400, an orientation or acceleration/deceleration of the electronic device 400, and a change in temperature of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communication between the electronic device 400 and other devices, either wired or wireless. The electronic device 400 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G,3G,4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the processing methods of the tasks described above.
In an exemplary embodiment, a computer readable storage medium is also provided, such as memory 404, including instructions executable by processor 420 of electronic device 400 to perform the processing method of the tasks described above. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, which comprises a computer program that is executed by the processor 420 to perform the above-described task processing method. Alternatively, the computer program may be stored in a storage medium of the electronic device 400, which may be a non-transitory computer readable storage medium, such as ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Fig. 5 is a block diagram illustrating an electronic device 500 for processing tasks, according to an example embodiment. For example, electronic device 500 may be provided as a server. Referring to fig. 5, electronic device 500 includes a processing component 522 that further includes one or more processors and memory resources represented by memory 532 for storing instructions, such as applications, executable by processing component 522. The application programs stored in the memory 532 may include one or more modules each corresponding to a set of instructions. Further, the processing component 522 is configured to execute instructions to perform the processing methods of the tasks described above.
The electronic device 500 may also include a power component 526 configured to perform power management of the electronic device 500, a wired or wireless network interface 550 configured to connect the electronic device 500 to a network, and an input output (I/O) interface 558. The electronic device 500 may operate based on an operating system stored in the memory 532, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. A method for processing a task, the method being applied to a server, the method comprising:
Receiving a task trigger instruction from a terminal, wherein the task trigger instruction comprises identification information of a user account;
acquiring the identification information of the task currently associated with the user account from a task identification database according to the identification information of the user account;
Acquiring the task state of the current associated task from a task center according to the identification information of the current associated task;
When the task state is completed, acquiring the identification information and the task content of the next task of the currently associated task from the task center;
Storing the identification information of the next task into the task identification database, updating the currently associated task into the next task, and transmitting the task content of the next task to the terminal;
When the task state is incomplete, acquiring task content of the currently associated task from the task center;
And transmitting the task content of the currently associated task to the terminal.
2. The method according to claim 1, wherein identification information of a plurality of tasks arranged in sequence is stored in the task center;
The step of obtaining the identification information of the task currently associated with the user account from a task identification database according to the identification information of the user account comprises the following steps:
When the user account accesses the task interface of the terminal for the first time, the identification information of the first task is read from the identification information of a plurality of tasks sequentially arranged in the task center;
and storing the identification information of the first task into the task identification database, and taking the identification information of the first task as the identification information of the task currently associated with the user account.
3. The method of claim 1, wherein the obtaining, from a task identification database, identification information of a task currently associated with the user account according to the identification information of the user account, comprises:
and when the user account accesses the task interface of the terminal again, taking the unique identification information in the task identification database as the identification information of the task currently associated with the user account.
4. The method of claim 1, wherein the task center stores locations of a plurality of tasks arranged in sequence; when the task center has a replaced task, the position comprises a position before replacement in a plurality of tasks which are arranged in sequence before the replaced task is replaced; in the case that the task center does not have a replaced task, the position includes an original position of the non-replaced task among the plurality of tasks arranged in sequence.
5. The method of claim 4, wherein the obtaining, from the task center, identification information and task content of a task next to the currently associated task, comprises:
If the currently associated task is replaced, acquiring the pre-replacement position of the currently associated task from the task center according to the identification information of the currently associated task;
And taking the identification information and the task content of the task corresponding to the next position of the position before replacement as the identification information and the task content of the next task.
6. The method of claim 4, wherein the obtaining, from the task center, identification information and task content of a task next to the currently associated task, comprises:
If the currently associated task is not replaced, acquiring the original position of the currently associated task from the task center according to the identification information of the currently associated task;
And taking the identification information and task content of the task corresponding to the next position of the original position as the identification information and task content of the next task.
7. A processing apparatus for tasks, applied to a server, the apparatus comprising:
The instruction receiving unit is configured to execute and receive a task trigger instruction from the terminal, wherein the task trigger instruction comprises identification information of a user account;
An identification acquisition unit configured to perform acquisition of identification information of a task currently associated with the user account from a task identification database according to the identification information of the user account;
a state acquisition unit configured to perform acquisition of a task state of the currently associated task from a task center according to the identification information of the currently associated task;
A content acquisition unit configured to acquire, when the task state is completed, identification information of a task next to the currently associated task and task content from the task center;
A task updating unit configured to perform storing of the identification information of the next task into the task identification database, and update the currently associated task as the next task;
A content transmission unit configured to perform transmission of task content of the next task to the terminal;
the content acquisition unit is further configured to perform task content of the current associated task from the task center when the task state is incomplete after the state acquisition unit acquires the task state of the current associated task from the task center according to the identification information of the current associated task;
the content transmission unit is further configured to perform transmission of task content of the currently associated task to the terminal.
8. The apparatus according to claim 7, wherein identification information of a plurality of tasks arranged in sequence is stored in the task center;
The identification acquisition unit is configured to perform reading identification information of a first task from identification information of a plurality of tasks sequentially arranged in the task center when the user account accesses the task interface of the terminal for the first time; and storing the identification information of the first task into the task identification database, and taking the identification information of the first task as the identification information of the task currently associated with the user account.
9. The apparatus according to claim 7, wherein the identification acquisition unit is configured to perform, when the user account accesses the task interface of the terminal again, unique identification information in the task identification database as identification information of a task currently associated with the user account.
10. The apparatus of claim 7, wherein the task center stores locations of a plurality of tasks arranged in sequence; when the task center has a replaced task, the position comprises a position before replacement in a plurality of tasks which are arranged in sequence before the replaced task is replaced; in the case that the task center does not have a replaced task, the position includes an original position of the non-replaced task among the plurality of tasks arranged in sequence.
11. The apparatus according to claim 10, wherein the content acquisition unit is configured to perform acquisition of the pre-replacement position of the currently associated task from the task center based on identification information of the currently associated task if the currently associated task is replaced; and taking the identification information and the task content of the task corresponding to the next position of the position before replacement as the identification information and the task content of the next task.
12. The apparatus according to claim 10, wherein the content obtaining unit is configured to obtain the original position of the currently associated task from the task center according to identification information of the currently associated task if the currently associated task is not replaced; and taking the identification information and task content of the task corresponding to the next position of the original position as the identification information and task content of the next task.
13. An electronic device, comprising:
A processor;
A memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the method of processing tasks as claimed in any of claims 1 to 6.
14. A computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of processing tasks of any of claims 1 to 6.
15. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method of processing tasks according to any of claims 1 to 6.
CN202110352838.7A 2021-03-31 2021-03-31 Task processing method, device, electronic equipment, storage medium and program product Active CN113191792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110352838.7A CN113191792B (en) 2021-03-31 2021-03-31 Task processing method, device, electronic equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110352838.7A CN113191792B (en) 2021-03-31 2021-03-31 Task processing method, device, electronic equipment, storage medium and program product

Publications (2)

Publication Number Publication Date
CN113191792A CN113191792A (en) 2021-07-30
CN113191792B true CN113191792B (en) 2024-04-30

Family

ID=76974323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110352838.7A Active CN113191792B (en) 2021-03-31 2021-03-31 Task processing method, device, electronic equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN113191792B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101443A (en) * 2016-07-28 2016-11-09 乐视控股(北京)有限公司 A kind of processing method and processing device of Pending tasks
CN106569779A (en) * 2015-10-12 2017-04-19 北京京东尚科信息技术有限公司 Task execution method preventing repeated execution and device
CN106598395A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Method and device for executing task
CN106874079A (en) * 2016-06-08 2017-06-20 阿里巴巴集团控股有限公司 A kind of method and device of tasks carrying
CN108259548A (en) * 2017-04-10 2018-07-06 平安科技(深圳)有限公司 A kind of task processing method and Task Processing Unit
CN109345098A (en) * 2018-09-20 2019-02-15 武汉斗鱼网络科技有限公司 A kind of task recommendation method, apparatus, server and storage medium
CN109408286A (en) * 2018-09-17 2019-03-01 北京京东金融科技控股有限公司 Data processing method, device, system, computer readable storage medium
CN112132626A (en) * 2020-09-28 2020-12-25 北京达佳互联信息技术有限公司 Task processing method and device
CN112286672A (en) * 2020-12-30 2021-01-29 南京智闪萤科技有限公司 Method, computing device, and computer storage medium for scheduling tasks

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569779A (en) * 2015-10-12 2017-04-19 北京京东尚科信息技术有限公司 Task execution method preventing repeated execution and device
CN106874079A (en) * 2016-06-08 2017-06-20 阿里巴巴集团控股有限公司 A kind of method and device of tasks carrying
CN106101443A (en) * 2016-07-28 2016-11-09 乐视控股(北京)有限公司 A kind of processing method and processing device of Pending tasks
CN106598395A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Method and device for executing task
CN108259548A (en) * 2017-04-10 2018-07-06 平安科技(深圳)有限公司 A kind of task processing method and Task Processing Unit
CN109408286A (en) * 2018-09-17 2019-03-01 北京京东金融科技控股有限公司 Data processing method, device, system, computer readable storage medium
CN109345098A (en) * 2018-09-20 2019-02-15 武汉斗鱼网络科技有限公司 A kind of task recommendation method, apparatus, server and storage medium
CN112132626A (en) * 2020-09-28 2020-12-25 北京达佳互联信息技术有限公司 Task processing method and device
CN112286672A (en) * 2020-12-30 2021-01-29 南京智闪萤科技有限公司 Method, computing device, and computer storage medium for scheduling tasks

Also Published As

Publication number Publication date
CN113191792A (en) 2021-07-30

Similar Documents

Publication Publication Date Title
CN112003893B (en) Resource downloading method and device
EP3041204A1 (en) Method for prompting calling request and device for the same
US20220391446A1 (en) Method and device for data sharing
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN110852163A (en) Binding method and device
CN106506808B (en) Method and device for prompting communication message
CN110213062B (en) Method and device for processing message
CN108012258B (en) Data traffic management method and device for virtual SIM card, terminal and server
CN113031837A (en) Content sharing method and device, storage medium, terminal and server
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN112862349B (en) Data processing method, device and equipment based on ABS service data
CN113191792B (en) Task processing method, device, electronic equipment, storage medium and program product
CN112769677B (en) Data synchronization method, apparatus, electronic device, storage medium, and program product
CN112333233B (en) Event information reporting method and device, electronic equipment and storage medium
CN106155696B (en) Method and device for deleting information
CN110489155B (en) Data file management method, device, electronic equipment and medium
CN109246322B (en) Information processing method and system
CN107257384B (en) Service state monitoring method and device
CN112182027B (en) Information query method, device, electronic equipment and storage medium
CN111241097B (en) Method for processing object, device for processing object and storage medium
CN114422811B (en) Method, device, equipment and storage medium for task allocation and task template generation
CN112201236B (en) Terminal awakening method and device and computer readable storage medium
CN107992333B (en) Theme acquisition method and device
CN106162580B (en) Multimedia message synchronization method and device
CN116567091A (en) Access processing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant