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

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

Info

Publication number
CN113191792A
CN113191792A CN202110352838.7A CN202110352838A CN113191792A CN 113191792 A CN113191792 A CN 113191792A CN 202110352838 A CN202110352838 A CN 202110352838A CN 113191792 A CN113191792 A CN 113191792A
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.)
Granted
Application number
CN202110352838.7A
Other languages
Chinese (zh)
Other versions
CN113191792B (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

Images

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 disclosure relates to a task processing method, a task processing device, an electronic device, a storage medium and a program product, wherein the method comprises the following steps: receiving a task triggering instruction of a terminal; acquiring identification information of a currently associated task from a task identification database according to the identification information of the user account in the task triggering instruction; acquiring a 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 the 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 task processing method and device, the task identification database is used for storing identification information of the currently associated task, and the task center is used for storing relevant information of each task, so that the user is prevented from frequently getting and completing the same task, the operation steps of the user are reduced, and the task processing data volume of a product is reduced.

Description

Task processing method and 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 method and an apparatus for processing a task, an electronic device, a storage medium, and a program product.
Background
With the rapid development of computer technology, the competition among products (such as application programs) of the same type is intense. Many products provide a user with a task during a particular holiday, and the user can receive a corresponding reward by completing the specified task.
In the related art, a product can provide a series of tasks for a user, and the user can obtain corresponding rewards after completing each task in sequence. However, each time a user enters the task interface, the user gets the task from the first task in the series of tasks, which causes the user to frequently get and complete the same task, increases the operation steps of the user, and also increases the task processing quantity of the product.
Disclosure of Invention
The present disclosure provides a task processing method, apparatus, electronic device, storage medium, and program product, to at least solve the problem in the related art that a user frequently picks up and completes the same task, increasing the operation steps of the user, and increasing the number of task processes of the product. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for processing a task, which is applied to a server, the method including: receiving a task triggering instruction from a terminal, wherein the task triggering instruction comprises identification information of a user account; acquiring 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; 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 identification information and task content of a task next to the currently associated task from the task center; and storing the identification information of the next task in the task identification database, updating the currently associated task to be 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 acquired from a task center according to the identification information of the currently associated task, the method further includes: when the task state is unfinished, acquiring the task content of the currently associated task from the task center; and transmitting the task content of the current associated task to the terminal.
Optionally, the task center stores identification information of a plurality of tasks arranged in sequence; the acquiring, 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 includes: when the user account accesses a task interface of the terminal for the first time, reading identification information of a first task from identification information of a plurality of tasks sequentially arranged in the task center; and storing the identification information of the first task to the task identification database, and using the identification information of the first task as the identification information of the task currently associated with the user account.
Optionally, 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 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 arranged in sequence; when the task center has the replaced task, the position comprises a position before replacement in the plurality of tasks which are sequentially arranged before the replaced task is replaced; and in the case that the replaced task does not exist in the task center, the position comprises the original position of the task which is not replaced in the plurality of tasks which are sequentially arranged.
Optionally, the acquiring, from the task center, the identification information and the task content of the 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, the identification information and the task content of the 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 the task content of the task corresponding to the next position of the original position as the identification information and the task content of the next task.
According to a second aspect of the 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 receiving of a task triggering instruction from a terminal, wherein the task triggering instruction comprises identification information of a user account; the identification acquisition unit is configured to execute the step of 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; the state acquisition unit is configured to execute the task state of the current associated task from a task center according to the identification information of the current associated task; a content obtaining unit configured to obtain, when the task state is completed, identification information and task content of a task next to the currently associated task from the task center; the task updating unit is configured to store the identification information of the next task into the task identification database and update the currently associated task to be the next task; and the content transmission unit is configured to execute the task content of the next task and transmit the task content to the terminal.
Optionally, the content obtaining unit is further configured to execute, after the status obtaining unit obtains the task status of the currently associated task from a task center according to the identification information of the currently associated task, obtaining task content of the currently associated task from the task center when the task status is incomplete; the content transmission unit is further configured to execute 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 read 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 a task interface of the terminal for the first time; and storing the identification information of the first task to the task identification database, and using the identification information of the first task as the identification information of the task currently associated with the user account.
Optionally, the identification obtaining unit is configured to execute, when the user account accesses the task interface of the terminal again, taking unique identification information in the task identification database as identification information of a task currently associated with the user account.
Optionally, the task center stores the positions of a plurality of tasks arranged in sequence; when the task center has the replaced task, the position comprises a position before replacement in the plurality of tasks which are sequentially arranged before the replaced task is replaced; and in the case that the replaced task does not exist in the task center, the position comprises the original position of the task which is not replaced in the plurality of tasks which are sequentially arranged.
Optionally, the content obtaining unit is configured to, if the currently associated task is replaced, obtain 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 content obtaining unit is configured to, if the currently associated task is not replaced, obtain the original location 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 original position as the identification information and the task content of the next task.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement a method of processing a task as described in the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the processing method of the task as described in 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 the tasks of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the task processing scheme provided by the embodiment of the disclosure may include a task identifier database and a task center, where the task identifier database may store identifier 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 identifier information, task content, and task status. After the user account enters a task page on the terminal, the terminal generates and transmits a task triggering instruction to the server. The server can obtain 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 triggering 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. And if the task state is finished, 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. Whether the user account enters the task interface for the first time or enters the task interface again, the identification information of the currently associated task can be obtained from the task identification database, and then the task state of the currently associated task is obtained from the task center. If the task state is completed, the related information of the next task can be acquired from the task center. The user account may perform the relevant operations for the next task to complete the next task. According to the embodiment of the disclosure, the task identification database is used for storing the identification information of the currently associated task, and the task center is used for storing the relevant information of each task, so that the user is prevented from frequently getting and completing the same task, the operation steps of the user are reduced, and the task processing quantity of the product 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 present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting 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 task picking scheme in accordance with an exemplary embodiment.
FIG. 3 is a block diagram illustrating a processing device of a task according to an example embodiment.
FIG. 4 is a block diagram illustrating a task processing electronic device in accordance with an exemplary embodiment.
FIG. 5 is a block diagram illustrating an electronic device for processing tasks in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in 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 above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating steps of a processing method of a task according to an exemplary embodiment, where as illustrated in fig. 1, the processing method of the task may be applied to a server, and the processing method of the task may specifically include the following steps.
In step S11, a task trigger instruction is received from the terminal.
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 and generates a task triggering instruction. The task trigger instruction may include identification information for the user account. The server receives the task triggering instruction from the terminal, and can analyze the task triggering instruction to obtain the identification information of the user account.
In step S12, the identification information of the task currently associated with the user account is obtained from the task identification database according to the identification information of the user account.
In the embodiment of the present disclosure, the task identification database may be disposed in the server, or may be disposed in another device communicatively connected to the server. The task identification database may store identification information of a task currently associated with the user account. In practical application, a plurality of user accounts may share one task identification database, and at this time, 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 may be stored in the task identification database. Or, each user account may correspond to a respective task identifier database, and at this time, the identifier information of the task currently associated with the respective user account may be stored in each task identifier database. The identification information of the user account is used to uniquely determine a user account, the identification information of the task is used to uniquely determine a task, and the identification information of the user account or the identification information of the task may be numbers, letters, symbols, and the like.
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 present disclosure, the preset task center may be disposed in the server, or may be disposed in other devices communicatively connected to the server. The task center may store task states for a series of tasks. In practical applications, a plurality of user accounts may share one task center, and in this case, the task center may store identification information of each task, task content of each task, task status of each task, and the like, where the task status of each task may be understood as the task status of each task corresponding to the user account associated therewith. When a plurality of user accounts are associated with a task, the task state of the task comprises the task states of the user accounts associated with the task.
In step S14, when the task state is completed, the identification information and task content of the task next to the currently associated task 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 performed the related operation aiming at the task; when the task state is not completed, the user account is indicated that the related operation aiming at the task is not completed. And if the task state of the current associated task is finished, 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 all tasks are completed can be generated and 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 the next task, and the task content of the next task is transmitted to the terminal.
In the embodiment of the 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. And the identification information in the updated 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 task t2 next to 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 to the task t2 from the task t 1.
The task processing scheme provided by the embodiment of the disclosure may include a task identifier database and a task center, where the task identifier database may store identifier 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 identifier information, task content, and task status. After the user account enters a task page on the terminal, the terminal generates and transmits a task triggering instruction to the server. The server can obtain 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 triggering 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. And if the task state is finished, 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. Whether the user account enters the task interface for the first time or enters the task interface again, the identification information of the currently associated task can be obtained from the task identification database, and then the task state of the currently associated task is obtained from the task center. If the task state is completed, the related information of the next task can be acquired from the task center. The user account may perform the relevant operations for the next task to complete the next task. According to the embodiment of the disclosure, the task identification database is used for storing the identification information of the currently associated task, and the task center is used for storing the relevant information of each task, so that the user is prevented from frequently getting and completing the same task, the operation steps of the user are reduced, and the task processing quantity of the product is also reduced.
In an exemplary embodiment of the disclosure, after acquiring the task state of the currently associated task from the task center according to the identification information of the currently associated task, when the task state 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 for the task content of the currently associated task. That is, if the user account does not complete the correlation operation for the currently associated task, the user account may continue to perform the correlation operation for the currently associated task. According to the embodiment of the disclosure, whether the user account completes the current associated task is marked through the task state of the task center, and when the user account does not complete the current associated task, the user account is allowed to continue to complete the current associated task, so that the user account is prevented from associating other tasks, the operation steps of associating other tasks with the user account are reduced, and the efficiency of completing the task by the user account 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 also 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 indicates that the user account receives the task for the first time, the first task of the multiple tasks stored in the task center and arranged in sequence can be used as the task currently associated with the user account, the identification information of the first task is read from the identification information of the multiple tasks arranged in sequence 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 currently associated with the user account. For example, the task center stores identification information of tasks t1, t2, and t3 arranged in order. If the user account accesses the task interface for the first time, the task t1 is taken as the task currently associated with the user account, and the identification information of the task t1 is stored in the task identification database. If the user account accesses the task interface again, which indicates that the user account has picked up the task, the unique identification information of the task in the task identification database can be used as the identification information of the currently associated task. According to the task center of the embodiment of the disclosure, a plurality of tasks which are sequentially arranged are stored, and for the condition that the user account initially receives the tasks, the first task of the task center is defaulted as the task which is currently associated with the user account, and meanwhile, the identification information of the first task is stored in the task identification database, so that the user account sequentially receives the tasks according to the arrangement sequence of the plurality of tasks in the task center and completes the tasks. Aiming at the condition that the user account already receives the task, the identification information of the currently associated task is not required to be acquired from the task center, and can be read from the task identification database, so that the data volume of the identification reading request aiming at the task center is reduced.
In an 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 positions of a plurality of tasks arranged in sequence. When there is a replaced task in the task center, the positions of the plurality of tasks include positions before replacement in the plurality of tasks arranged in sequence before the replaced task is replaced. For example, at a certain time, three tasks are included in the task center, which are task t1, task t2, and task t3 in this order. At another time, task t1 is replaced by task t4, and the task center after replacement contains three tasks, which are task t4, task t2 and task t3 in sequence. Where task t1 is a replaced task, the task center may store task t1 as the "first bit" before replacement. When the task center does not have the replaced task, the positions of the tasks include original positions of the task which is not replaced in the tasks which are sequentially arranged. For example, the task center includes three tasks, which are task t1, task t2, and task t 3. If none of the three tasks is replaced, the task center stores the original positions "first bit", "second bit", and "third bit" 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 two situations that whether the currently associated task is replaced in the task center. If the task currently associated is replaced in the task center, the pre-replacement position of the task currently associated can be acquired from the task center according to the identification information of the task currently associated. As can be seen from this, 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. And further, the identification information and the task content of the task corresponding to the position next to the position before replacement are used as the identification information and the task content of the next task. For example, the currently associated task is task t1, and task t1 is replaced with task t 4. If the pre-replacement position of task t1 is "first", task t2 next to "first" and "second" can 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 and the task content of the task corresponding to the next position of the original position are used as the identification information and the task content of the next task. For example, if the currently associated task is task t2, task t2 is not replaced, and the original position of task t2 is "second bit", task t3 next to "second bit" and "third bit" may be used as the next task.
The embodiment of the disclosure can replace the task of the task center, 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 identifier and the task content of the next task can be acquired 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 currently associated task is completed, the task identifier and the task content of the next task can be acquired according to the original position of the currently associated task in the task center. If the task currently associated with a certain user account is a replaced task in the task center and the task state of the currently associated task is incomplete, the task after the replacement of the currently associated task can be updated to the currently associated task. For example, task t1, with which the user account is currently associated, is a replaced task, and task t1 is replaced with task t 4. If the task status of task t1 is not complete, 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 currently associated task is incomplete, the task content of the currently associated task can be sent to the terminal, and the user account continues to complete the currently associated task. When the task currently associated with the user account is replaced, if the task is associated with the user account according to the related art, the user account can associate the task t2 after completing the replaced task t1 and after completing the replaced task t 4. 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 after the user account completes the replaced task t1, the embodiment of the disclosure can associate the task t2 with the user account according to the position before replacement of the task t1, and does not need to associate the task t4 with the user account, thereby avoiding the problem that the user account is invalid for the completion of the replaced task due to the task being replaced.
Based on the above-mentioned related description about the embodiment of the processing method of a task, a task picking scheme is described below. As shown in fig. 2, the pick-up scheme for this task involves a terminal and a server. The user account u1 logs in the terminal, the terminal is in communication connection with the server, and the server is provided with a task storage database (namely a task identification database) and a task center database (namely a task center). The task storage database stores identification information of each user account and identification information of a task currently taken by each user account. The task center database stores identification information, task states, task contents, positions 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 out the identification information of the task t1 currently taken by the user account u1 from the task storage database, and then the server reads out 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 take the next task, the server obtains the task content of the task t1 from the task center database, and returns the task content of the task t1 to the account u 1. 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 drawn by the user account u1 in the task storage database into the task t 2. And returns the task content and identification information of task t2 to user account u 1.
Note that if user account u2 picked up the task for the first time after task t1 adjusted to task t4, user account u2 picked up task t4 and task t1 was not visible to user account u 2.
FIG. 3 is a block diagram illustrating a processing device of a task according to an example embodiment. The device can be applied to a server, and particularly comprises the following modules.
An instruction receiving unit 31 configured to execute receiving a task triggering instruction from a terminal, where the task triggering instruction includes identification information of a user account;
the identification obtaining unit 32 is configured to obtain 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 obtaining unit 33 configured to obtain a task state of the currently associated task from a task center according to the identification information of the currently associated task;
a content obtaining unit 34 configured to obtain, when the task state is completed, identification information and task content of a task next to the currently associated task from the task center;
a task updating unit 35 configured to store the identification information of the next task in the task identification database, and update the currently associated task as the next task;
a content transmission unit 36 configured to perform transmission of the 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, after the status obtaining unit 33 obtains the task status of the currently associated task from a task center according to the identification information of the currently associated task, obtaining task content of the currently associated task from the task center when the task status is incomplete;
the content transmission unit 36 is further configured to perform transmitting the task content of the currently associated task to the terminal.
In an exemplary embodiment of the present disclosure, the task center stores therein identification information of a plurality of tasks arranged in order;
the identification obtaining unit 32 is configured to read 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 to the task identification database, and using 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 identification obtaining unit 32 is configured to perform, when the user account accesses the task interface of the terminal again, taking unique identification information in the task identification database as identification 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 the replaced task, the position comprises a position before replacement in the plurality of tasks which are sequentially arranged before the replaced task is replaced; and in the case that the replaced task does not exist in the task center, the position comprises the original position of the task which is not replaced in the plurality of tasks which are sequentially arranged.
In an exemplary embodiment of the 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 disclosure, the content obtaining unit 34 is configured to obtain the original location 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 the task content of the task corresponding to the next position of the original position as the identification information and the task content of the next task.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
FIG. 4 is a block diagram illustrating a task processing electronic device 400, according to an example embodiment. For example, the electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, 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 interface for input/output (I/O) 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 method of 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 can 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 the electronic device 400, contact data, phonebook data, messages, images, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile 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 disks.
The power supply component 406 provides power to the various components of the electronic device 400. 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 electronic device 400.
The multimedia component 408 comprises a screen providing an output interface between the electronic device 400 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 400 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
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 further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also 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 keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the electronic device 400. For example, the sensor assembly 414 may detect an open/closed state of the electronic device 400, the relative positioning of components, such as a display and keypad of the electronic device 400, the sensor assembly 414 may also detect a change in the position of the electronic device 400 or a component of the electronic device 400, the presence or absence of user contact with the electronic device 400, orientation or acceleration/deceleration of the electronic device 400, and a change in the temperature of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and other devices. The electronic device 400 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an 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, micro-controllers, microprocessors or other electronic components for performing the processing methods of the tasks described above.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the electronic device 400 to perform the processing method of the above-described tasks is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
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 processing method of the above-described task. 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 a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
FIG. 5 is a block diagram illustrating an electronic device 500 for processing tasks in accordance with an example embodiment. For example, the 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, that are executable by processing component 522. The application programs stored in memory 532 may include one or more modules that each correspond to a set of instructions. Further, the processing component 522 is configured to execute instructions to perform the processing method of the above-described task.
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 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 variations, 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A task processing method is applied to a server, and the method comprises the following steps:
receiving a task triggering instruction from a terminal, wherein the task triggering instruction comprises identification information of a user account;
acquiring 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;
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 identification information and task content of a task next to the currently associated task from the task center;
and storing the identification information of the next task in the task identification database, updating the currently associated task to be the next task, and transmitting the task content of the next task to the terminal.
2. The method according to claim 1, wherein after the acquiring the task status of the currently associated task from the task center according to the identification information of the currently associated task, the method further comprises:
when the task state is unfinished, acquiring the task content of the currently associated task from the task center;
and transmitting the task content of the current associated task to the terminal.
3. The method according to claim 1, wherein identification information of a plurality of tasks arranged in order is stored in the task center;
the acquiring, 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 includes:
when the user account accesses a task interface of the terminal for the first time, reading identification information of a first task from identification information of a plurality of tasks sequentially arranged in the task center;
and storing the identification information of the first task to the task identification database, and using the identification information of the first task as the identification information of the task currently associated with the user account.
4. The method according to claim 1, wherein the obtaining 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:
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.
5. The method of claim 1, wherein the task center stores the locations of a plurality of tasks in a sequential arrangement; when the task center has the replaced task, the position comprises a position before replacement in the plurality of tasks which are sequentially arranged before the replaced task is replaced; and in the case that the replaced task does not exist in the task center, the position comprises the original position of the task which is not replaced in the plurality of tasks which are sequentially arranged.
6. The method of claim 5, wherein the obtaining identification information and task content of a task next to the currently associated task from the task center 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.
7. An apparatus for processing a task, applied to a server, the apparatus comprising:
the instruction receiving unit is configured to execute receiving of a task triggering instruction from a terminal, wherein the task triggering instruction comprises identification information of a user account;
the identification acquisition unit is configured to execute the step of 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;
the state acquisition unit is configured to execute the task state of the current associated task from a task center according to the identification information of the current associated task;
a content obtaining unit configured to obtain, when the task state is completed, identification information and task content of a task next to the currently associated task from the task center;
the task updating unit is configured to store the identification information of the next task into the task identification database and update the currently associated task to be the next task;
and the content transmission unit is configured to execute the task content of the next task and transmit the task content to the terminal.
8. 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 a method of processing the task of any of claims 1 to 6.
9. A computer-readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of processing a task as claimed in any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the processing method of the task of any one of claims 1 to 6 when executed by a processor.
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 true CN113191792A (en) 2021-07-30
CN113191792B 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
CN113191792B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
CN108334651B (en) Method, device and storage medium for collecting user side data to realize preset requirements
EP3041204A1 (en) Method for prompting calling request and device for the same
CN113382270B (en) Virtual resource processing method and device, electronic equipment and storage medium
CN112416219B (en) Target object processing method, device and system, electronic equipment and storage medium
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN111343481B (en) Data sharing method and device, electronic equipment and storage medium
CN106506808B (en) Method and device for prompting communication message
CN106878654B (en) Video communication method and device
CN106933111B (en) Method and device for controlling equipment
CN113031837B (en) Content sharing method and device, storage medium, terminal and server
CN108012258B (en) Data traffic management method and device for virtual SIM card, terminal and server
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN107885464B (en) Data storage method, device and computer readable storage medium
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN108009676B (en) Pet route planning method and device
CN107846481B (en) Account management method and device
CN106155696B (en) Method and device for deleting information
CN112862349B (en) Data processing method, device and equipment based on ABS service data
CN112769677B (en) Data synchronization method, apparatus, electronic device, storage medium, and program product
CN113191792B (en) Task processing method, device, electronic equipment, storage medium and program product
CN109246322B (en) Information processing method and system
CN107257384B (en) Service state monitoring method and device
CN111049732A (en) Push message display method and device, electronic equipment and medium
CN112182027B (en) Information query method, device, electronic equipment and storage medium
CN111241097B (en) Method for processing object, device for processing object and storage medium

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