CN113238868A - Task processing method, device, server, equipment, system and storage medium - Google Patents

Task processing method, device, server, equipment, system and storage medium Download PDF

Info

Publication number
CN113238868A
CN113238868A CN202110576985.2A CN202110576985A CN113238868A CN 113238868 A CN113238868 A CN 113238868A CN 202110576985 A CN202110576985 A CN 202110576985A CN 113238868 A CN113238868 A CN 113238868A
Authority
CN
China
Prior art keywords
task
target
server
information
target task
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
CN202110576985.2A
Other languages
Chinese (zh)
Other versions
CN113238868B (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 CN202110576985.2A priority Critical patent/CN113238868B/en
Publication of CN113238868A publication Critical patent/CN113238868A/en
Application granted granted Critical
Publication of CN113238868B publication Critical patent/CN113238868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a task processing method, device, server, device, system, and storage medium, and relates to data processing technology acquisition, so as to at least solve the problems of complex management and data redundancy in executing multiple tasks within a certain period in the related art. The task processing method comprises the following steps: receiving a task getting request sent by electronic equipment; the task getting request comprises a user identifier and a task identifier; acquiring task information of a target task corresponding to a user identifier and a task identifier, wherein the task information of the target task comprises task completion times; sending task information of a target task to the electronic equipment; under the condition that the electronic equipment is determined to successfully execute the target task according to the task information, updating the task completion times of the target task; and repeatedly executing the steps until the task completion times of the target task reach a threshold value, and determining that the target task is completely executed, wherein the threshold value is a positive integer greater than 1.

Description

Task processing method, device, server, equipment, system and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method, an apparatus, a server, a device, a system, and a storage medium for processing a task.
Background
Current internet companies often launch a variety of user-interactive activities, including mission activities, where each time a mission is completed, a corresponding reward is received. In the related art, each task in the task database can be completed only once, and the reward can be received after the task is completed. For a certain type of tasks needing to be completed once a day, task copies of users every day need to be created, the users can only complete the current task copies, and the task names and the configuration in the task information are the same. For example, for a task that is completed 7 times in 7 days (1 time per day), 7 tasks with the same content need to be configured.
In the related art, a method for completing one task for multiple times by creating multiple identical tasks is not only complex to manage, but also has data redundancy.
Disclosure of Invention
The present disclosure provides a task processing method, apparatus, server, device, system, and storage medium, to at least solve the problems of complex management and data redundancy in the related art. 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 task processing method for a server, including: receiving a task getting request sent by electronic equipment; the task getting request comprises a user identifier and a task identifier; acquiring task information of a target task corresponding to a user identifier and a task identifier, wherein the task information of the target task comprises task completion times; the task completion times are used for representing the times that the target task has been repeatedly executed; sending task information of a target task to the electronic equipment; under the condition that the electronic equipment is determined to successfully execute the target task according to the task information, updating the task completion times of the target task; and when the task completion times of the target task reach a threshold value, determining that the target task is completed, wherein the threshold value is a positive integer greater than 1.
In one possible implementation, determining that the electronic device successfully performs the target task according to the task information includes: receiving state information of a target task reported by electronic equipment; and under the condition that the state information reported by the electronic equipment is matched with the task information acquired by the server, determining that the electronic equipment successfully executes the target task.
In one possible implementation, the task information acquired by the server further includes a task validity period; the state information reported by the electronic equipment comprises a task validity period and task completion times; under the condition that the state information reported by the electronic equipment is matched with the task information acquired by the server, determining that the target task is completed comprises the following steps: and determining that the electronic equipment successfully executes the target task under the condition that the task validity period reported by the electronic equipment is the same as the task validity period acquired by the server and the task completion times reported by the electronic equipment are the same as the task completion times acquired by the server.
In one possible implementation, sending task information of a target task to an electronic device includes: encrypting the task information of the target task by using an asymmetric encryption method to obtain target encryption task information; and sending the target encryption task information to the electronic equipment.
In a possible implementation manner, after the step of receiving the status information of the target task reported by the electronic device according to the reported status information, the method further includes: and decrypting the reported state information of the target task to obtain the reported state information.
In one possible implementation, the task processing method further includes: sending the updated task completion times of the target task to the electronic equipment; and the updated task completion times of the target task are used for indicating the electronic equipment to determine resource change information of the account corresponding to the user identification in the target task.
In one possible implementation, the task processing method further includes: sending the updated task completion times of the target task and the task validity period obtained by the server to the electronic equipment; the updated task completion times of the target task and the task validity period obtained by the server are used for indicating the electronic equipment to determine resource change information of an account corresponding to the user identifier in the target task.
In one possible embodiment, the task information of the target task further includes at least one of a user identification, a task identification, and a task creation time.
According to a second aspect of the embodiments of the present disclosure, there is provided a task processing method for an electronic device, including: responding to a task starting instruction, and sending a task getting request to a server; the task getting request comprises a user identifier and a task identifier; the user identification and the task identification are used for indicating the server to acquire task information of the target task, and the task information of the target task comprises task completion times; receiving task information of a target task sent by a server; processing the target task according to the task information of the target task; reporting the state information of the target task to a server; the reported state information is used for indicating the task completion times of the server to update the target task.
In one possible embodiment, reporting the state information of the target task to the server includes: encrypting the state information of the target task to be reported by using an asymmetric encryption method to obtain target encryption state information; and sending the target encryption state information to the server.
In one possible implementation, the task processing method further includes: receiving task completion times after a target task is updated and sent by a server; and determining resource change information of the account corresponding to the user identification in the target task according to the updated task completion times of the target task.
In one possible implementation, determining resource change information of an account corresponding to a user identifier in a target task according to an updated task completion number of the target task includes: under the condition that the updated task completion times of the target task are greater than the task completion times received before the target task is processed, obtaining the completion state information of the target task; and determining resource change information of the account corresponding to the user identification in the target task according to the completion state information of the target task.
In a possible implementation manner, the task information of the target task acquired by the server further includes a task validity period, and the task processing method further includes: receiving the task completion times after the target task is updated and the task validity period obtained by the server, wherein the task completion times are sent by the server; and determining resource change information of the account corresponding to the user identification in the target task according to the updated task completion times of the target task and the task validity period acquired by the server.
In one possible implementation manner, determining resource change information of an account corresponding to a user identifier in a target task according to the updated task completion times of the target task and the task validity period acquired by the server includes: under the condition that the task validity period received before the target task is processed is the same as the task validity period received after the target task is processed, and the updated task completion times of the target task are greater than the task completion times received before the target task is processed, the completion state information of the target task is obtained; and determining resource change information of the account corresponding to the user identification in the target task according to the completion state information of the target task.
According to a third aspect of the embodiments of the present disclosure, there is provided a task processing apparatus for a server, including: the receiving module is configured to execute task getting request sent by the receiving electronic equipment; the task getting request comprises a user identifier and a task identifier; the acquisition module is configured to execute task information of a target task corresponding to the user identifier and the task identifier, wherein the task information of the target task comprises task completion times; the task completion times are used for representing the times that the target task has been repeatedly executed; a transmission module configured to perform transmission of task information of a target task to an electronic device; the updating module is configured to update the task completion times of the target task under the condition that the electronic equipment is determined to successfully execute the target task according to the task information; and the determining module is configured to determine that the target task is completely executed when the task completion times of the target task reach a threshold value, and the threshold value is a positive integer greater than 1.
In one possible implementation, the update module is specifically configured to: receiving state information of a target task reported by electronic equipment; and under the condition that the state information reported by the electronic equipment is matched with the task information acquired by the server, determining that the electronic equipment successfully executes the target task.
In one possible implementation, the task information acquired by the server further includes a task validity period; the state information reported by the electronic equipment comprises a task validity period and task completion times; the update module is specifically configured to: and determining that the electronic equipment successfully executes the target task under the condition that the task validity period reported by the electronic equipment is the same as the task validity period acquired by the server and the task completion times reported by the electronic equipment are the same as the task completion times acquired by the server.
In one possible implementation, the sending module includes: the encryption unit is configured to encrypt the task information of the target task by using an asymmetric encryption method to obtain target encryption task information; a transmitting unit configured to perform transmitting the target encryption task information to the electronic device.
In one possible embodiment, the task processing device further includes: and the decryption module is configured to decrypt the reported state information of the target task to obtain the reported state information.
In one possible implementation, the sending module is further configured to execute sending the updated task completion times of the target task to the electronic device; and the updated task completion times of the target task are used for indicating the electronic equipment to determine resource change information of the account corresponding to the user identification in the target task.
In one possible implementation, the task processing method further includes: the sending module is also configured to execute the updated task completion times of the target task sent to the electronic equipment and the task validity period obtained by the server; the updated task completion times of the target task and the task validity period obtained by the server are used for indicating the electronic equipment to determine resource change information of an account corresponding to the user identifier in the target task.
In one possible embodiment, the task information of the target task further includes at least one of a user identification, a task identification, and a task creation time.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a task processing apparatus for an electronic device, including: the sending module is configured to execute sending of a task getting request to the server in response to the task starting instruction; the task getting request comprises a user identifier and a task identifier; the user identification and the task identification are used for indicating the server to acquire task information of the target task, and the task information of the target task comprises task completion times; the receiving module is configured to execute task information of the target task sent by the receiving server; a processing module configured to execute a task information processing target task according to the target task; the reporting module is configured to report the state information of the target task to the server; the reported state information is used for indicating the task completion times of the server to update the target task.
In one possible embodiment, the reporting module includes: the encryption unit is configured to encrypt the state information of the target task to be reported by using an asymmetric encryption method to obtain target encryption state information; a transmission unit configured to perform transmission of the target encryption state information to the server.
In one possible embodiment, the task processing device further includes: the receiving module is also configured to execute the task completion times after the target task sent by the receiving server is updated; and the first determining module is configured to execute the resource change information of the account corresponding to the user identifier in the target task according to the updated task completion times of the target task.
In one possible implementation, the first determining module is specifically configured to: under the condition that the updated task completion times of the target task are greater than the task completion times received before the target task is processed, obtaining the completion state information of the target task; and determining resource change information of the account corresponding to the user identification in the target task according to the completion state information of the target task.
In one possible embodiment, the task processing device further includes: the receiving module is also configured to execute the task completion times after the target task sent by the receiving server is updated and the task validity period obtained by the server; and the second determining module is configured to determine resource change information of the account corresponding to the user identifier in the target task according to the updated task completion times of the target task and the task validity period acquired by the server.
In one possible implementation, the second determining module is specifically configured to perform: acquiring completion state information of the target task under the condition that the task validity period received before the target task is processed is the same as the task validity period received after the target task is processed, and the updated task completion times of the target task are greater than the task completion times received before the target task is processed; and determining resource change information of the account corresponding to the user identification in the target task according to the completion state information of the target task.
According to a fifth aspect of embodiments of the present disclosure, there is provided a server, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the task processing method as in any one of the first aspect.
According to a sixth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the task processing method as in any one of the second aspect.
According to a seventh aspect of embodiments of the present disclosure, there is provided a task processing system including: a server for executing the task processing method of any one of the first aspect; and the electronic equipment is used for executing the task processing method of any one of the second aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a readable storage medium having stored thereon instructions that, when executed by a processor of a server, enable the server to perform the task processing method as in any one of the first aspects.
According to a ninth aspect of embodiments of the present disclosure, there is provided a readable storage medium having stored thereon instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the task processing method as in any one of the second aspects.
According to a tenth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer instructions which, when run on a server, cause the server to perform the method of task processing as in any one of the first aspect.
According to an eleventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the task processing method as in any one of the second aspects.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the task completion times are configured for the task activities, and the current completion times are accumulated when a user completes one task, so that the purpose that one task is created and can be executed for multiple times is realized, the problem that multiple tasks can be completed only by creating multiple same tasks is solved, the maintenance cost for creating multiple tasks and configuring is saved, the task management and the service expansion are facilitated, and the data redundancy is avoided.
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 schematic diagram of an implementation environment shown in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of task processing in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating yet another method of task processing in accordance with an illustrative embodiment;
FIG. 4 is a schematic diagram illustrating information interaction of a method for task processing, according to an example embodiment;
FIG. 5 is a flowchart illustrating yet another method of task processing in accordance with an illustrative embodiment;
FIG. 6 is a flowchart illustrating yet another method of task processing in accordance with an illustrative embodiment;
FIG. 7 is a flowchart illustrating yet another method of task processing in accordance with an illustrative embodiment;
FIG. 8 is a flowchart illustrating yet another method of task processing in accordance with an illustrative embodiment;
FIG. 9 is a block diagram illustrating a task processing device according to an exemplary embodiment;
FIG. 10 is a block diagram illustrating yet another task processing device in accordance with an illustrative embodiment;
FIG. 11 is a block diagram illustrating a server in accordance with an exemplary embodiment;
FIG. 12 is a block diagram illustrating an electronic device 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.
Before describing the task processing method provided by the present disclosure in detail, the application scenario and implementation environment related to the present disclosure are briefly described.
First, a brief description is given of an application scenario to which the present disclosure relates.
Currently, internet companies often launch various activities that interact with users, such as task activities, and a user can receive a corresponding reward each time the user completes a task. In the prior art, for a certain type of tasks that need to be completed once a day, the technical scheme adopted is to create a task copy of a user every day, the user can only complete the task copy of the day, the following task names, task configurations and the like are all the same, for example, for a task activity with a period of 7 days, 7 task activities with the same content are configured. However, by creating a plurality of tasks having the same content and executing the tasks a plurality of times within the same task implementation period, not only management is complicated, but also redundancy occurs.
In order to solve the problems, the present disclosure provides a task processing method, a task processing device, a server, a device, a system, and a storage medium, wherein task completion times are configured for task activities, and the current completion times are accumulated every time a user completes a task, so that the purpose of creating a task and executing the task for multiple times is achieved, thereby solving the problem that multiple tasks can be completed only by creating multiple identical tasks, facilitating task management and service expansion, and avoiding data redundancy.
The following briefly introduces an implementation environment (implementation architecture) related to the present disclosure, as shown in fig. 1, which illustrates a schematic diagram of an implementation environment to which the present disclosure is applicable. The implementation environment may include a server 110 and an electronic device 120, and the electronic device 120 may establish a connection with the server 110 through a network (wired network or wireless network).
The electronic device 120 is a device used by a user. The user completes the task activity using the electronic device 120 and receives the reward. The electronic device 120 may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a desktop computer, a portable computer, a vehicle-mounted terminal, a wearable device, and the like, which is not limited in this disclosure.
Wherein the server 110 is used to manage task activities. In some embodiments, the server 110 may be a single server, or may be a server cluster composed of multiple servers, which is not limited in this disclosure.
For the sake of understanding, the task processing method provided by the present disclosure is specifically described below with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating a task processing method according to an exemplary embodiment, and as shown in fig. 2, an execution subject of the task processing method is a server, including S201-S205.
In S201, a task pick-up request sent by the electronic device is received.
The task getting request comprises a user identifier and a task identifier.
In one example, the user identification may be a task ID of the user in the task activity. The task identification may be a task ID of the task activity. And the user identification and the task identification in the task getting request are used for indicating the server to determine the corresponding task obtaining.
In S202, task information of a target task corresponding to the user identifier and the task identifier is obtained, where the task information of the target task includes task completion times.
Wherein the task completion times are used to characterize the number of times the target task has been repeatedly executed.
It should be noted that, the initial value of the task completion number is 0, the target is considered to be successfully executed by the electronic device once, and the task completion number is accumulated once. For example, the initial value of the task completion number is 0, the task completion number is updated to 1 after the electronic device successfully executes the target task for the first time, the task completion number is updated to 2 after the electronic device successfully executes the target task for the second time, and so on, and the task completion number is updated to n after the electronic device successfully executes the target task for the nth time.
Optionally, the task information of the target task may include at least one of a user identification, a task identification, and a task creation time. By setting the target task information to further comprise at least one of the user identification, the task identification and the task creation time, the accuracy of confirming the target task by the electronic equipment and the server can be improved, and the accuracy of executing the task is further improved.
It should be noted that the user identifiers (including but not limited to user equipment identifiers, user personal identifiers, etc.) referred to in this disclosure are all information authorized by the user or sufficiently authorized by each party.
Illustratively, the task creation time is the time of creation of the target task. The task identification is used to determine the target task. It will be appreciated that each task identity is capable of identifying a unique target task.
In one example, the user identifier and the task identifier in the task information correspond to the user identifier and the task identifier in the task getting request, and the server determines the task activity according to the corresponding relation between the task getting request and the task information.
In another example, the task completion times are configured for the task information, and the task completion times are accumulated after the user completes one task, so that one task copy can be processed by the user for multiple times, for the task with a long period, only one task copy needs to be created, the task activity management and the service expansion are facilitated, and the data redundancy is avoided.
In S203, task information of the target task is transmitted to the electronic device.
And the server sends the task of the target task to the electronic equipment so that the electronic equipment can process the target task according to the task information.
In S204, the task completion times of the target task are updated when it is determined that the electronic device successfully executes the target task according to the task information.
In an example, after the electronic device processes the target task according to the task information, the electronic device may report processing result information of the target task to the server, so that the server determines whether the target task is completed according to the reported processing result information, and updates the task completion times of the target task when the target task is determined to be completed.
In S205, when the number of task completion times of the target task reaches the threshold value, it is determined that the target task is completely executed.
Wherein the threshold is a positive integer greater than 1.
In one example, the threshold corresponds to a task identification. The server obtains a threshold value of the task completion times of the target task under the condition of receiving the first task getting request. By setting the threshold value for the task completion times, the times of successful execution of the target task can be determined, that is, when the target task needs to be repeatedly executed for multiple times, the target task can be ensured to be executed for multiple times by only setting the threshold value as the times of repeated execution of the target task.
Illustratively, the threshold is 7, that is, after the target task is successfully executed 7 times by the electronic device, the task completion time is updated to 7, and at this time, the target task is executed completely.
The technical scheme provided by the embodiment at least has the following beneficial effects: the task completion times are configured for the task activities, and the current completion times are accumulated when a user completes one task, so that the purpose that one task is created and can be executed for multiple times is realized, the problem that multiple tasks can be completed only by creating multiple same tasks is solved, the maintenance cost for creating multiple tasks and configuring is saved, the task management and the service expansion are facilitated, and the data redundancy is avoided.
Fig. 3 is a flowchart illustrating a task processing method according to an exemplary embodiment, and as shown in fig. 3, an execution subject of the task processing method is an electronic device, including S301 to S304.
In S301, in response to a task start instruction, a task pickup request is transmitted to the server.
The task getting request comprises a user identifier and a task identifier; the user identifier and the task identifier are used for indicating the server to acquire task information of the target task, and the task information of the target task comprises task completion times.
Optionally, the task information of the target task further includes at least one of a user identification, a task identification, and a task creation time.
In one example, the user identifier and the task identifier in the task getting request correspond to the user identifier and the task identifier in the task information of the target task, and the server determines the task activity according to the corresponding relation between the task getting request and the task information.
In one example, the user identification may be a task ID of the user in the task activity. The task identification may be a task ID of the task activity.
In S302, the task information of the target task transmitted by the server is received.
In S303, the target task is processed according to the task information of the target task.
In one example, the task information of the target task may include a Uniform Resource Locator (URL) of the target task. And the user jumps to the landing page of the target task through the electronic URL so as to process the target task.
In S304, the status information of the target task is reported to the server.
And the reported state information is used for indicating the task completion times of the server updating the target task.
In one example, the state information reported by the electronic device includes processing result information of the target task, the server determines whether the target task is completed according to the processing result information of the target task, and updates the task completion times of the target task after determining that the target task is completed.
The technical scheme provided by the embodiment at least has the following beneficial effects: the electronic equipment sends a task getting request to the server to indicate the server to acquire task information of the target task. And then receiving the task information of the target task sent by the server, and processing the target task according to the task information of the target task. After the target task is processed, the electronic equipment reports the state information of the target task to the server, so that the server updates the task completion times of the target task according to the reported state information. The method has the advantages that the state information reported by the electronic equipment indicates the server to update the task completion times of the target task, so that the task completion times are accumulated after a user completes one task, one task is created, the purpose of completing multiple tasks is achieved, the problem that multiple tasks can be completed only by creating multiple same tasks is solved, the maintenance cost for creating multiple tasks and configuring is saved, the management of task activities and the expansion of services are facilitated, and data redundancy is avoided.
FIG. 4 is a flowchart illustrating a task processing method according to an exemplary embodiment, including S401-S409.
In S401, the electronic device sends a task getting request to the server in response to the task start instruction.
The task getting request comprises a user identifier and a task identifier; the user identifier and the task identifier are used for indicating the server to acquire task information of the target task, and the task information of the target task comprises task completion times.
For example, the task start instruction may be an instruction for a user to trigger generation of a task control. And the user activates a task starting instruction by clicking a task control displayed by the electronic equipment so that the electronic equipment can send a task getting request to the server.
The electronic device may be configured with a touch display screen. After the user logs in the application program corresponding to the task activity by using the user identifier (for example, the user ID), the task start instruction may be activated by directly touching the task control displayed on the display screen.
The electronic device may also be configured with a display screen and a mouse device. After the user logs in the application program corresponding to the task activity by using the user identifier (for example, the user ID may be used), the user may click a task control displayed on the display screen by using a mouse to activate a task start instruction.
For example, the task start instruction may be an instruction for the electronic device to automatically trigger the generation of the task control. For example, the user may set a timed trigger task control, that is, a task start instruction is automatically activated at a set time, so that the electronic device sends a task pick-up request to the server.
In S402, the server receives a task pick-up request sent by the electronic device.
The task getting request comprises a user identifier and a task identifier.
Alternatively, in a case where the task pickup request is a first pickup request of the target task, the server initializes task information of the target task.
In one example, the task information of the initialization target task may be the number of initialization task completions, that is, the set number of task completions is 0. By initializing the number of task completion times to 0 when the target task is first picked up, the number of times that the user completes the task activity is conveniently monitored. Further, by setting the task information initialized when the task is first received, the task information of the user is initialized once, and the task can be completed for many times without initializing the task information of the user for many times.
In S403, task information of the target task corresponding to the user identifier and the task identifier is obtained, where the task information of the target task includes task completion times.
Wherein the task completion times are used to characterize the number of times the target task has been repeatedly executed.
Optionally, the task information of the target task acquired by the server further includes a task validity period. The state information reported by the electronic equipment comprises a task validity period and task completion times; under the condition that the state information reported by the electronic equipment is matched with the task information acquired by the server, determining that the electronic equipment successfully executes the target task, wherein the method comprises the following steps: and determining that the electronic equipment successfully executes the target task under the condition that the task validity period reported by the electronic equipment is the same as the task validity period acquired by the server and the task completion times reported by the electronic equipment are the same as the task completion times acquired by the server.
The task validity period is configured for the task activity, the target task is determined to be successfully executed by the electronic equipment under the condition that the task validity period reported by the electronic equipment is the same as the task validity period acquired by the server and the task completion times reported by the electronic equipment are the same as the task completion times acquired by the server, whether the target task is successfully executed by the electronic equipment within the task validity period can be judged, the timeliness of the target task being successfully executed is guaranteed, the task activity validity processed by the user is verified through the task validity period, the task completion times of the target task are updated when the task activity processed by the user is a valid task activity, and the data security is further guaranteed.
In one example, where the task pick-up request is a first pick-up request of a target task, the server initializes a task validity period. By initializing the task validity period when the task is first received, the task validity period can be dynamically set.
For example, the task validity period may be end time information of the task activity. For example, the end time information for a task activity may be 3/8/2021/23: 59. By configuring the task finite period for the task information, the task activity can be controlled to be executed in a preset period, and the completion times of the task can be controlled.
Optionally, the task information of the target task acquired by the server further includes a task period.
For example, the task period may be an executable period of the task, for example, the executable period of the task may be 7 days, and the user may complete multiple tasks within 7 days, for example, 7 tasks may be completed within 7 days, and 7 tasks may be completed all within any one day within 7 days, or may be completed multiple times within 7 days. The executable period of the task can be 1 day/7 days, the task can be completed once per day within 7 days, and the task of the current day is not completed or fails on the current day. The executable period of the task may also be such that multiple tasks may be completed per day within 7 days.
Alternatively, the task validity period may be determined according to the task creation time and the task period.
In S404, the server transmits task information of the target task to the electronic device.
Optionally, sending task information of the target task to the electronic device includes: encrypting the task information of the target task by using an asymmetric encryption method to obtain target encryption task information; and sending the target encryption task information to the electronic equipment.
When the electronic equipment receives task activities, the task information of the target task is encrypted and then sent to the electronic equipment, hackers or people can be effectively intercepted to maliciously brush task activity interface behaviors, multiple users of the equipment complete tasks, the tasks can be guaranteed to be effectively completed only once, and accordingly correctness of task data is guaranteed.
It can be understood that, when task information is encrypted by using an asymmetric encryption mode, the key needs to be changed periodically to ensure the security of data.
Alternatively, when encrypting the task information of the target task using the asymmetric encryption method, the validity period of the target encrypted task information may be set. The task state information reported by the electronic equipment in the valid period can be processed only by setting the valid period of the target encryption task information. For example, the validity period of the target encryption task information is set to be 1 day, after the user receives the task activity, the task state information cannot be reported within 1 day, and the received task activity is invalid.
In S405, the task information of the target task transmitted by the server is received.
Optionally, the task information of the target task received by the electronic device includes a task completion number. By setting the number of times of receiving the task by the electronic equipment, whether the target task is effectively completed or not can be verified after the resource change information of the account corresponding to the user identification in the target task is determined, so that the correctness of the resource change information in the target task is ensured.
Optionally, the task information of the target task received by the electronic device includes a task completion time and a task validity period. By setting the task completion times and the receiving task validity period of the electronic equipment, when the server receives the processing result information of the target task reported by the electronic equipment, whether the processing result information reported by the electronic equipment corresponds to the previously received target task can be verified, and if so, the task activity completed by the user at this time is an effective task activity. By verifying whether the task activities completed by the user are valid task activities and updating the task activities of the target task only when the task activities completed by the user are valid task activities, the validity of the completion of the target task can be ensured.
In S406, the target task is processed according to the task information of the target task.
In one example, a jump to a task activity page may be implemented by launching a task processing instruction.
Illustratively, a user can touch the task processing control, jump to a corresponding task activity page, and then process the task activity.
In S407, the electronic device reports the state information of the target task to the server. The reported state information is used for indicating the task completion times of the server to update the target task.
Optionally, reporting the state information of the target task to the server includes: encrypting the state information of the target task to be reported by using an asymmetric encryption method to obtain target encryption state information; and sending the target encryption state information to the server.
In one example, when the electronic device encrypts the state information of the target task to be reported, the key used by the electronic device corresponds to the key used by the server when encrypting the task information to be sent to the electronic device. By setting the electronic equipment and the server to encrypt by using the corresponding secret key, hackers and malicious interface brushing behaviors can be effectively intercepted, a plurality of pieces of equipment of a user can complete tasks, and the tasks can be guaranteed to be effectively completed only once.
Alternatively, the electronic device may set a validity period of the target encryption state information when encrypting the task information of the target task using the asymmetric encryption method.
In S408, in a case where it is determined that the electronic device successfully executes the target task according to the task information, the task completion number of the target task is updated.
And in S409, when the task completion times of the target task reach the threshold value, the target task is determined to be completed.
Wherein the threshold is a positive integer greater than 1.
Optionally, the threshold is a number of times to be executed of the target task.
Optionally, after the step of sending the task information of the target task to the electronic device by the server, the electronic device executes the target task according to the task information. And after the electronic equipment completes the target task, reporting the state information of the target task to the server. And the server receives the state information of the target task reported by the electronic equipment, and determines that the electronic equipment successfully executes the target task under the condition that the state information reported by the electronic equipment is matched with the task information acquired by the server. Whether the electronic equipment successfully executes the target task is determined through the state information reported by the service, and the task completion times are updated under the condition that the target task is determined to be successfully executed, so that the task completion times can be ensured to be updated under the condition that the target task is successfully executed, and the accuracy of data is further ensured. By setting that the task completion times are updated under the condition that the state information reported after the electronic equipment processes the task is matched with the task information received before the electronic equipment processes the task, the task successfully executed by the electronic equipment can be determined to be the target task received at this time, and the accuracy of updating the task completion times is further ensured.
Optionally, the server decrypts the reported status information of the target task to obtain the reported status information. By encrypting the state information of the target task, hackers and malicious task interface behaviors can be effectively intercepted.
In one example, the task information obtained by the server includes the number of task completions. The state information reported by the electronic equipment comprises a processing result of the electronic equipment on the target task, and under the condition that the processing result of the electronic equipment on the target task is processed, the server determines that the target task is completed and updates the task completion of the target task.
In one example, the task information obtained by the server includes the number of task completions and the validity period of the task. The state information reported by the electronic equipment comprises a task validity period and task completion times. Under the condition that the task validity period reported by the electronic equipment is the same as the task validity period acquired by the server and the task completion times reported by the electronic equipment are the same as the task completion times acquired by the server, the task activity corresponding to the state information reported by the electronic equipment is a target task which is previously picked up by the electronic equipment from the server, namely, the state information reported by the electronic equipment is valid, otherwise, the state information reported by the electronic equipment is invalid, and if the state information reported by the electronic equipment is invalid, the state information reported by the electronic equipment is ignored. At this time, when the processing result of the target task by the electronic device is processed, it is determined that the target task is completed. The correctness of data can be improved by setting the state information reported by the electronic equipment to comprise the task validity period and the task completion times.
Optionally, the task processing method further includes: the server sends the updated task completion times of the target task to the electronic device. And the updated task completion times of the target task are used for indicating the electronic equipment to determine resource change information of the account corresponding to the user identification in the target task. The updated task completion times of the target task are sent to the electronic equipment, so that the electronic equipment can determine whether to change the resource change information of the account in the target task according to the updated task completion times, the resource information of the user account can be updated only when the user effectively completes the task, and the accuracy of data is further ensured.
Optionally, with reference to fig. 3, as shown in fig. 5, the task processing method further includes: S305-S306. The execution subject of S305-S306 is an electronic device.
In S305, the updated task completion count of the target task transmitted by the server is received.
It can be understood that, after the server updates the task completion times of the target task, the updated task completion times are sent to the electronic device, so that the electronic device determines whether the user effectively completes the task.
In S306, according to the updated task completion times of the target task, resource change information of the account corresponding to the user identifier in the target task is determined.
The resource change information of the account is determined according to the updated task completion times, so that the resource information of the user account can be updated only when the user effectively completes the task, and the accuracy of data is further ensured.
Optionally, in conjunction with fig. 5, as shown in fig. 6, S306 includes S306a-S306 d.
At S306a, it is determined whether the updated task completion count of the target task is greater than the task completion count received before the target task is processed, and if yes, S306b is executed, and if no, S306d is executed.
In one example, completion status information for the target task is used to characterize the target task as being in a completed state.
For example, when the updated task completion count of the target task is greater than the task completion count received before the target task is processed, it is determined that the target task is in a completed state.
In S306b, completion status information of the target task is acquired.
For example, the completion status information of the target task may be a completion status action corresponding to a task activity shown on the electronic device.
In S306c, resource change information of the account corresponding to the user identifier in the target task is determined according to the completion status information of the target task.
For example, when the completion status action is displayed on the electronic device of the user, the task activity processed by the user at this time is determined to be valid. Further, the user may receive a reward for completing the task activity through the completion status information, for example, the reward may be a resource that can be used in an application corresponding to the task activity. And after the user receives the reward of the task activity, the account of the user performs change on the resource information in the target task.
In S306d, the target task is determined to be in an incomplete state.
For example, the resource change information may be displayed on the electronic device by an animation method, so that the user can conveniently view the resource change information.
In another example, the task pick-up request further includes a task pick-up number. And after the electronic equipment receives the task information of the target task sent by the server, updating the task obtaining times. Further, after the electronic device receives the updated task completion times of the target task sent by the server, whether the updated task pickup times are the same as the updated task completion times is judged, and after the updated task pickup times are determined to be the same as the updated task completion times, it is determined that the user has effectively completed the target task, and further the resource information of the account is changed.
Optionally, the task processing method further includes: and the server sends the updated task completion times of the target task and the task validity period acquired by the server to the electronic equipment. The updated task completion times of the target task and the task validity period obtained by the server are used for indicating the electronic equipment to determine resource change information of an account corresponding to the user identifier in the target task. The updated task completion times of the target task and the task validity period obtained by the server are sent to the electronic equipment by the server, so that the electronic equipment can determine whether the target task is effectively completed according to the updated task completion times and judge whether the task activities completed by the user are completed within the validity period according to the task validity period obtained by the server, and therefore the accuracy of resource information updating is improved.
Optionally, with reference to fig. 3, as shown in fig. 7, the task processing method further includes: S307-S308. The execution subjects of S307 to S308 are electronic devices.
In S307, the updated task completion times of the target task sent by the server and the task validity period obtained by the server are received.
In S308, according to the updated task completion times of the target task and the task validity period obtained by the server, resource change information of the account corresponding to the user identifier in the target task is determined.
The electronic equipment can determine whether the target task is effectively completed according to the updated task completion times, and judge whether the task activities completed by the user are completed within the valid period according to the task valid period acquired by the server, so that the accuracy of resource information updating can be improved.
Optionally, in conjunction with fig. 7, as shown in fig. 8, S308 includes S308a-S308 d.
At S308a, it is determined whether the task validity period received before the processing target task is the same as the task validity period received after the processing target task and whether the updated number of task completions of the target task is greater than the number of task completions received before the processing target task, and if yes, S308b is executed, and if no, S308d is executed.
In one example, if the determination result is yes, the task validity period received before the processing target task is the same as the task validity period received after the processing target task, and the updated task completion number of the target task is greater than the task completion number received before the processing target task.
In S308b, completion status information of the target task is acquired.
For example, the completion status information of the target task may be a completion status action corresponding to a task activity shown on the electronic device.
In S308c, resource change information of the account corresponding to the user identifier in the target task is determined according to the completion status information of the target task.
In S308d, the target task is determined to be in an incomplete state.
By comparing the updated task completion times with the task completion when the task is picked up, whether the user effectively completes the target task can be determined, and whether the task completion information received by the user corresponds to the task activity picked up before can be determined by comparing the task validity period received after the task is processed with the task validity period received when the task is picked up, so that the accuracy of the resource change information data is improved.
According to the task processing method provided by the disclosure, the electronic equipment responds to a task starting instruction and sends a task getting request to the server, and the server receives the task getting request sent by the electronic equipment and task information of a target task corresponding to the task getting request. The server sends the task information of the target task to the electronic equipment, and the electronic equipment processes the target task according to the received task information of the target task. After the electronic equipment processes the target task, the state information of the target task is reported to the server, the server determines whether the target task is completed according to the reported state information, and the task completion times of the target task are updated under the condition that the target task is completed. The server updates the completion times of the target task instead of the completion state of the target task under the condition that the target task is completed, so that a user can complete multiple tasks within a task period under the condition that only one task copy is created, the problem that multiple identical tasks can be completed within the task period is solved, maintenance cost for creating multiple tasks and configuring is saved, task management is facilitated, and data redundancy is avoided.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a method. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the disclosure also provides a task processing device.
Fig. 9 is a block diagram illustrating a task processing device according to an exemplary embodiment, and the task processing device 900 may be applied to a server in the above embodiments. Referring to fig. 9, the apparatus includes a receiving module 901, an obtaining module 902, a sending module 903, an updating module 904, and a determining module 905.
The receiving module 901 is configured to execute receiving a task getting request sent by an electronic device; the task pick-up request comprises a user identification and a task identification. For example, as shown in fig. 2, the receiving module 901 is configured to execute S201.
The obtaining module 902 is configured to perform obtaining task information of a target task corresponding to a user identifier and a task identifier, where the task information of the target task includes a task completion time. For example, as shown in fig. 2, the obtaining module 902 is configured to execute S202.
The sending module 903 is configured to execute sending task information of a target task to an electronic device. For example, as shown in fig. 2, the sending module 903 is configured to execute S203.
The update module 904 is configured to update the task completion times of the target task if it is determined that the electronic device successfully performs the target task according to the task information. For example, as shown in fig. 2, the update module 904 is configured to perform S204.
The determining module 905 is configured to determine that the target task is completely executed when the number of task completion times of the target task reaches a threshold, where the threshold is a positive integer greater than 1. For example, as shown in fig. 2, the determining module 905 is configured to execute S205.
Optionally, the task processing device further includes: and the initialization module is configured to initialize the task information of the target task under the condition that the task getting request is the first getting request of the target task.
Optionally, the updating module 904 is specifically configured to: receiving state information of a target task reported by electronic equipment; and under the condition that the state information reported by the electronic equipment is matched with the task information acquired by the server, determining that the electronic equipment successfully executes the target task.
Optionally, the task information acquired by the server further includes a task validity period; the state information reported by the electronic equipment comprises a task validity period and task completion times; the update module 904 is specifically configured to: and determining that the electronic equipment successfully executes the target task under the condition that the task validity period reported by the electronic equipment is the same as the task validity period acquired by the server and the task completion times reported by the electronic equipment are the same as the task completion times acquired by the server.
Optionally, the sending module 903 includes: the encryption unit is configured to encrypt the task information of the target task by using an asymmetric encryption method to obtain target encryption task information; a transmitting unit configured to perform transmitting the target encryption task information to the electronic device.
Optionally, the task processing device further includes: and the decryption module is configured to decrypt the reported state information of the target task to obtain the reported state information.
Optionally, the sending module 903 is further configured to execute sending the updated task completion times of the target task to the electronic device; and the updated task completion times of the target task are used for indicating the electronic equipment to determine resource change information of the account corresponding to the user identification in the target task.
Optionally, the sending module 903 is further configured to execute sending the updated task completion times of the target task and the task validity period obtained by the server to the electronic device; the updated task completion times of the target task and the task validity period obtained by the server are used for indicating the electronic equipment to determine resource change information of an account corresponding to the user identifier in the target task.
Optionally, the task information of the target task further includes at least one of a user identification, a task identification, and a task creation time.
Fig. 10 is a block diagram illustrating a task processing device according to an exemplary embodiment, and the task processing device 1000 may be applied to an electronic apparatus in the above-described embodiments. Referring to fig. 10, the apparatus includes a sending module 1001, a receiving module 1002, a processing module 1003, and a reporting module 1004.
The sending module 1001 is configured to execute sending a task getting request to a server in response to a task starting instruction; the task getting request comprises a user identifier and a task identifier; the user identifier and the task identifier are used for indicating the server to acquire task information of the target task, and the task information of the target task comprises task completion times. For example, as shown in fig. 3, the sending module 1001 is configured to execute S301.
The receiving module 1002 is configured to execute task information of a target task transmitted by a receiving server. For example, as shown in fig. 3, the receiving module 1002 is configured to execute S302.
The processing module 1003 is configured to execute processing of the target task according to the task information of the target task. For example, as shown in fig. 3, the processing module 1003 is configured to execute S303.
The reporting module 1004 is configured to perform reporting of the status information of the target task to the server; the reported state information is used for indicating the task completion times of the server to update the target task. For example, as shown in fig. 3, the reporting module 1004 is configured to execute S304.
Optionally, the reporting module 1004 includes: the encryption unit is configured to encrypt the state information of the target task to be reported by using an asymmetric encryption method to obtain target encryption state information; a transmission unit configured to perform transmission of the target encryption state information to the server.
Optionally, the task processing device further includes: the receiving module 1002 is further configured to execute the task completion times after the target task sent by the receiving server is updated; and the first determining module is configured to execute the resource change information of the account corresponding to the user identifier in the target task according to the updated task completion times of the target task. For example, as shown in FIG. 5, the receiving module 1002 is configured to perform S305-S306.
Optionally, the first determining module is specifically configured to: under the condition that the updated task completion times of the target task are greater than the task completion times received before the target task is processed, obtaining the completion state information of the target task; and determining resource change information of the account corresponding to the user identification in the target task according to the completion state information of the target task. For example, as shown in FIG. 6, the first determination module may be used to perform S306a-S306 d.
Optionally, the task processing device further includes: the receiving module 1002 is further configured to execute receiving the task completion times after the target task is updated and sent by the server and the task validity period acquired by the server; and the second determining module is configured to determine resource change information of the account corresponding to the user identifier in the target task according to the updated task completion times of the target task and the task validity period acquired by the server. For example, as shown in fig. 7, the receiving module 1002 may be configured to perform S307-S308.
Optionally, the second determining module is specifically configured to perform: acquiring completion state information of the target task under the condition that the task validity period received before the target task is processed is the same as the task validity period received after the target task is processed, and the updated task completion times of the target task are greater than the task completion times received before the target task is processed; and determining resource change information of the account corresponding to the user identification in the target task according to the completion state information of the target task. For example, as shown in FIG. 8, the second determination module may be used to perform S308a-S308 d.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 11 is a block diagram illustrating a server 1100 according to an example embodiment, where the server 1100 may vary greatly in configuration or performance, and may include one or more processors 1101 and one or more memories 1102. The memory 1102 stores therein at least one instruction, and the at least one instruction is loaded and executed by the processor 1101 to implement the task processing methods provided by the above-mentioned method embodiments, for example, S201 to S205. Of course, the server 1100 may also include other components for implementing the functions of the device, which are not described herein.
Fig. 12 is a schematic structural diagram of an electronic device 1200 shown according to an example embodiment. The electronic device 1200 may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a desktop computer, a portable computer, a vehicle-mounted terminal, a wearable device, and the like. As shown in fig. 12, the electronic device 1200 includes, but is not limited to, a processor 1201, a memory 1202, a display 1203, an input unit 1204, an output unit 1205, a network unit 1206, an interface unit 1207, a radio unit 1208, sensors 1209, a power source 1210, and the like.
It should be noted that the structure of the electronic device 1200 shown in fig. 12 is not a limitation of the electronic device 1200, and the electronic device 1200 may include more or less components than those shown in fig. 12, or combine some components, or be arranged differently, as will be understood by those skilled in the art.
In the embodiment of the present disclosure, the display 1203 is configured to respond to a trigger operation of a user on a task to be executed, and display task information corresponding to a task activity when it is determined that the user has a trigger task activity.
And the processor 1201 is used for executing the task to be executed when the user triggers the task to be executed.
It should be noted that the electronic device 1200 can implement each process implemented by the electronic device in the foregoing method embodiments, and can achieve the same technical effect, and for avoiding repetition, detailed descriptions are not repeated here.
The processor 1201 is a control center of the electronic apparatus 1200, connects various parts of the entire electronic apparatus 1200 using various interfaces and lines, and performs various functions of the electronic apparatus 1200 and processes data by operating or executing software programs and/or modules stored in the memory 1202 and calling data stored in the memory 1202, thereby monitoring the electronic apparatus 1200 as a whole. The processor 1201 may include one or more processing units. In one embodiment, the processor 1201 may integrate an application processor that handles primarily operating systems, user pages, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1201.
The memory 1202 may be used to store software programs as well as various data. The memory 1202 may mainly include a storage program area and a storage data area, wherein the storage program area stores an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook) created according to the use of the cellular phone, and the like. Further, the memory 1202 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The display 1203 is used to display information entered by the user or task activities provided to the user. The Display 1203 may include a Display panel, which may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The input unit 1204 may be for receiving an audio or video signal. The input Unit 1204 may include an image processor (GPU) that processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode, and a microphone. The processed image frames may be displayed on a display 1203. The image frames processed by the image processor may be stored in the memory 1202 (or other storage medium) or transmitted via the radio frequency unit 1208 or the network unit 1206. The microphone may receive sound and be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1208 in case of the phone call mode.
The input unit 1204 may be a user input unit operable to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus 1200. Specifically, the user input unit includes a touch panel and other input devices. The touch panel, also referred to as a touch screen, may collect touch operations by a user (e.g., operations by a user on or near the touch panel using a finger, a stylus, or any other suitable object or attachment). The touch panel may include two components, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1201, and receives and executes commands sent by the processor 1201. In addition, the touch panel may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit may further include other input devices, and specifically, the other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operation rod, which are not described herein again.
Further, the touch panel may be overlaid on the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 1201 to determine the type of touch time, and then the processor 1201 provides a corresponding data output on the display panel according to the type of the touch event. The touch panel and the display panel may be used as two independent components to implement the input and output functions of the electronic device 1200, or the touch panel and the display panel may be integrated to implement the input and output functions of the electronic device 1200, which is not limited herein.
The output unit 1205 may be an audio output unit, and may convert audio data received by the radio frequency unit 1208 or the network unit 1206 or stored in the memory 1202 into an audio signal and output sound. Also, the audio output unit may also provide audio output related to a specific function performed by the electronic apparatus 1200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit comprises a loudspeaker, a buzzer, a receiver and the like.
Electronic device 1200 provides a user with wireless, broadband internet access, such as assisting the user in emailing, browsing web pages, and accessing streaming media, through network element 1206.
The interface unit 1207 is an interface for connecting an external device to the electronic apparatus 1200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1207 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 1200 or may be used to transmit data between devices external to the electronic apparatus 1200.
The radio frequency unit 1208 may be configured to receive and transmit signals in the process of receiving and transmitting information or performing a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1201; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1208 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1208 may also communicate with a network and other devices through a wireless communication system.
The sensors 1209 may include at least one of light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and/or the backlight when the electronic device 1200 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (e.g., horizontal screen switching, related games, magnetometer posture calibration), and identify related functions of vibration (e.g., pedometer, tapping); sensor 00 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and will not be described in detail herein.
A power supply 1210 (e.g., a battery) may be used to power the various components, and in one embodiment, the power supply 1210 may be logically coupled to the processor 1201 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the electronic device 1200 further includes some functional modules (e.g., a camera) not shown, which are not described herein again.
In an exemplary embodiment, the embodiment of the present disclosure further provides a task processing system, which includes a server executed to complete the task processing method in S201 to S205 described above, and an electronic device executed to complete the task processing method in S301 to S308 described above.
In an exemplary embodiment, the disclosed embodiment also provides a computer-readable storage medium including instructions, for example, the memory 1202 including instructions, which are executable by the processor 1201 of the electronic device 1200 to perform the task processing method in S301 to S38 described above. Alternatively, the memory 1102 includes instructions executable by the processor 1101 of the server 1100 to perform the task processing method in S201-S205 described above.
Alternatively, the computer-readable storage medium may be a non-transitory computer-readable storage medium, which may be, for example, a Read-Only Memory (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, the disclosed embodiments also provide a computer program product comprising one or more instructions executable by the processor 1201 of the electronic device 1200 to perform the task processing method in S301-S308 described above, or executable by the processor 1101 of the server 1100 to perform the task processing method in S201-S205 described above.
It should be noted that the instructions in the computer-readable storage medium or one or more instructions in the computer program product are executed by the processor 1201 of the electronic device 1200 to implement the processes of the task processing method embodiment, and the technical effects same as those of the task processing methods S301 to S308 can be achieved, and are not repeated here to avoid repetition. The instructions in the computer-readable storage medium or one or more instructions in the computer program product are executed by the processor 1101 of the server 1100 to implement the processes of the task processing method embodiment, and the same technical effects as those of the task processing methods S201 to S205 can be achieved, and are not described herein again to avoid repetition.
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 for a server is characterized by comprising the following steps:
receiving a task getting request sent by electronic equipment; the task getting request comprises a user identifier and a task identifier;
acquiring task information of a target task corresponding to the user identification and the task identification, wherein the task information of the target task comprises task completion times; the task completion times are used for representing the times that the target task has been repeatedly executed;
sending task information of the target task to the electronic equipment;
under the condition that the electronic equipment is determined to successfully execute the target task according to the task information, updating the task completion times of the target task;
and when the task completion times of the target task reach a threshold value, determining that the target task is completed, wherein the threshold value is a positive integer greater than 1.
2. The task processing method of claim 1, wherein the determining that the electronic device successfully executes the target task according to the task information comprises:
receiving the state information of the target task reported by the electronic equipment;
and determining that the electronic equipment successfully executes the target task under the condition that the state information reported by the electronic equipment is matched with the task information acquired by the server.
3. The task processing method according to claim 2, wherein the task information acquired by the server further includes a task validity period; the state information reported by the electronic equipment comprises a task validity period and task completion times; determining that the electronic device successfully executes the target task under the condition that the state information reported by the electronic device is matched with the task information acquired by the server, wherein the determining comprises:
and determining that the target task is successfully executed by the electronic equipment under the condition that the task validity period reported by the electronic equipment is the same as the task validity period acquired by the server and the task completion times reported by the electronic equipment are the same as the task completion times acquired by the server.
4. A task processing method for an electronic device, comprising:
responding to a task starting instruction, and sending a task getting request to a server; the task getting request comprises a user identifier and a task identifier; the user identification and the task identification are used for indicating the server to acquire task information of a target task, and the task information of the target task comprises task completion times;
receiving task information of the target task sent by the server;
processing the target task according to the task information of the target task;
reporting the state information of the target task to the server; and the reported state information is used for indicating the server to update the task completion times of the target task.
5. A task processing apparatus for a server, comprising:
the receiving module is configured to execute task getting request sent by the receiving electronic equipment; the task getting request comprises a user identifier and a task identifier;
the acquisition module is configured to execute task information of a target task corresponding to the user identifier and the task identifier, wherein the task information of the target task comprises task completion times; the task completion times are used for representing the times that the target task has been repeatedly executed;
a sending module configured to execute sending task information of the target task to the electronic device;
the updating module is configured to update the task completion times of the target task under the condition that the electronic equipment is determined to successfully execute the target task according to the task information;
the determining module is configured to determine that the target task is completely executed when the number of task completion times of the target task reaches a threshold value, and the threshold value is a positive integer greater than 1.
6. A task processing apparatus for an electronic device, comprising:
the sending module is configured to execute sending of a task getting request to the server in response to the task starting instruction; the task getting request comprises a user identifier and a task identifier; the user identification and the task identification are used for indicating the server to acquire task information of a target task, and the task information of the target task comprises task completion times;
a receiving module configured to perform receiving task information of the target task sent by the server;
a processing module configured to perform processing of the target task according to task information of the target task;
the reporting module is configured to report the state information of the target task to the server; and the reported state information is used for indicating the server to update the task completion times of the target task.
7. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the task processing method of any one of claims 1 to 3.
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 the task processing method of claim 4.
9. A task processing system, comprising:
a server for executing the task processing method according to any one of claims 1 to 3;
an electronic device for performing the task processing method of claim 4.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions in the computer-readable storage medium, when executed by a processor of a server, enable the server to perform the task processing method according to any one of claims 1 to 3; or
The instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the task processing method of claim 4.
CN202110576985.2A 2021-05-26 2021-05-26 Task processing method, device, server, equipment, system and storage medium Active CN113238868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110576985.2A CN113238868B (en) 2021-05-26 2021-05-26 Task processing method, device, server, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110576985.2A CN113238868B (en) 2021-05-26 2021-05-26 Task processing method, device, server, equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN113238868A true CN113238868A (en) 2021-08-10
CN113238868B CN113238868B (en) 2024-01-30

Family

ID=77138889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110576985.2A Active CN113238868B (en) 2021-05-26 2021-05-26 Task processing method, device, server, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN113238868B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301970A (en) * 2021-12-21 2022-04-08 北京达佳互联信息技术有限公司 Service calling method and device, electronic equipment and storage medium
CN114885013A (en) * 2022-05-06 2022-08-09 北京达佳互联信息技术有限公司 Method and device for reporting package information, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228349A (en) * 2017-12-26 2018-06-29 北京市商汤科技开发有限公司 For handling the method for task, system and storage medium
CN109878533A (en) * 2018-12-29 2019-06-14 百度在线网络技术(北京)有限公司 Monitoring method, automatic Pilot control unit and the storage medium of processing unit
US20190215364A1 (en) * 2016-10-25 2019-07-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data processing method, storage medium, and electronic device
CN111026926A (en) * 2019-12-17 2020-04-17 腾讯音乐娱乐科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN111045562A (en) * 2019-11-25 2020-04-21 腾讯科技(深圳)有限公司 Interface display method, device, equipment and readable storage medium
CN112422998A (en) * 2020-10-26 2021-02-26 网易(杭州)网络有限公司 Live broadcast interaction method and device based on cloud game and electronic equipment
CN112733206A (en) * 2021-01-21 2021-04-30 深圳市轱辘车联数据技术有限公司 Resource allocation method, device, server and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190215364A1 (en) * 2016-10-25 2019-07-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data processing method, storage medium, and electronic device
CN108228349A (en) * 2017-12-26 2018-06-29 北京市商汤科技开发有限公司 For handling the method for task, system and storage medium
CN109878533A (en) * 2018-12-29 2019-06-14 百度在线网络技术(北京)有限公司 Monitoring method, automatic Pilot control unit and the storage medium of processing unit
CN111045562A (en) * 2019-11-25 2020-04-21 腾讯科技(深圳)有限公司 Interface display method, device, equipment and readable storage medium
CN111026926A (en) * 2019-12-17 2020-04-17 腾讯音乐娱乐科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN112422998A (en) * 2020-10-26 2021-02-26 网易(杭州)网络有限公司 Live broadcast interaction method and device based on cloud game and electronic equipment
CN112733206A (en) * 2021-01-21 2021-04-30 深圳市轱辘车联数据技术有限公司 Resource allocation method, device, server and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301970A (en) * 2021-12-21 2022-04-08 北京达佳互联信息技术有限公司 Service calling method and device, electronic equipment and storage medium
CN114301970B (en) * 2021-12-21 2023-10-17 北京达佳互联信息技术有限公司 Service calling method, device, electronic equipment and storage medium
CN114885013A (en) * 2022-05-06 2022-08-09 北京达佳互联信息技术有限公司 Method and device for reporting package information, electronic equipment and storage medium
CN114885013B (en) * 2022-05-06 2024-03-12 北京达佳互联信息技术有限公司 Method and device for reporting package information, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113238868B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
US20210336780A1 (en) Key updating method, apparatus, and system
CN110166439B (en) Equipment sharing method, terminal, router and server
CN109905380B (en) Node control method and related device in distributed system
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN110719319B (en) Resource sharing method, device, terminal equipment and storage medium
CN111124706A (en) Application program sharing method and electronic equipment
CN113238868B (en) Task processing method, device, server, equipment, system and storage medium
CN107765954B (en) Application icon updating method, mobile terminal and server
CN111597540B (en) Login method of application program, electronic device and readable storage medium
CN108009031B (en) Application program control method and mobile terminal
CN116541865A (en) Password input method, device, equipment and storage medium based on data security
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN110445746B (en) Cookie obtaining method and device and storage equipment
CN111159738B (en) Authority configuration method, application login method and device
CN107835297B (en) Information updating method, mobile terminal and computer readable storage medium
CN111209031B (en) Data acquisition method, device, terminal equipment and storage medium
CN107577933B (en) Application login method and device, computer equipment and computer readable storage medium
CN109525666A (en) A kind of data back up method and mobile terminal
CN110032422B (en) Application management method, terminal equipment and computer readable storage medium
CN109451011B (en) Information storage method based on block chain and mobile terminal
CN108880787B (en) Information key processing method and related equipment
CN108737341B (en) Service processing method, terminal and server
CN111343618B (en) Display method and electronic equipment
CN110855550B (en) Communication method, electronic device, and storage medium
CN109246290B (en) Authority management method and mobile terminal

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