CN113238868B - 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
CN113238868B
CN113238868B CN202110576985.2A CN202110576985A CN113238868B CN 113238868 B CN113238868 B CN 113238868B CN 202110576985 A CN202110576985 A CN 202110576985A CN 113238868 B CN113238868 B CN 113238868B
Authority
CN
China
Prior art keywords
task
target
information
server
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.)
Active
Application number
CN202110576985.2A
Other languages
Chinese (zh)
Other versions
CN113238868A (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

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 disclosure relates to a task processing method, a device, a server, equipment, a system and a storage medium, which relate to data processing technology acquisition and at least solve the problems of complex management and data redundancy when tasks are executed for a plurality of times in a certain period in the related technology. The task processing method comprises the following steps: receiving a task acquisition request sent by electronic equipment; the task retrieval 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 the task completion times; task information of a target task is sent to the electronic equipment; under the condition that the electronic equipment successfully executes 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 completed, 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 disclosure relates to the technical field of data processing, and in particular relates to a task processing method, a device, a server, equipment, a system and a storage medium.
Background
Currently, internet companies often offer various activities that interact with users, including task activities, and each time a task is completed, a corresponding reward may be drawn. In the related art, each task in the task database can only be completed once, and rewards can be obtained after the task is completed. For a certain type of task which needs to be completed once a day, a task copy of each day of the user needs to be created, the user can only complete the current task copy, and the task names and the configuration in the task information are the same. For example, for a task that is completed 7 times (completed 1 time per day) within 7 days, 7 tasks with the same content need to be configured.
In the related art, a method for realizing that one task is completed multiple times by creating multiple identical tasks is complex to manage, and data redundancy can occur.
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 present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a task processing method, for a server, including: receiving a task acquisition request sent by electronic equipment; the task retrieval 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 the task completion times; the task completion times are used for representing the times that the target task has been repeatedly executed; task information of a target task is sent to the electronic equipment; under the condition that the electronic equipment successfully executes the target task according to the task information, updating the task completion times of the target task; when the task completion times of the target task reach a threshold, determining that the target task is completed, wherein the threshold is a positive integer greater than 1.
In one possible implementation manner, determining that the electronic device successfully executes 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 manner, the task information acquired by the server further comprises 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 under the condition that the valid period of the task reported by the electronic equipment is the same as the valid period of the task acquired by the server, and the completion times of the task reported by the electronic equipment are the same as the completion times of the task acquired by the server, determining that the electronic equipment successfully executes the target task.
In one possible implementation, sending task information of a target task to an electronic device includes: encrypting task information of the target task by using an asymmetric encryption method to obtain target encrypted task information; and sending the target encryption task information to the electronic equipment.
In one 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: decrypting the reported state information of the target task to obtain the reported state information.
In one possible implementation manner, the task processing method further includes: the updated task completion times of the target task are sent to the electronic equipment; 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 identifier in the target task.
In one possible implementation manner, the task processing method further includes: the updated task completion times of the target task and the task validity period acquired by the server are sent to the electronic equipment; the updated task completion times of the target task and the task validity period acquired by the server are used for indicating the electronic equipment to determine resource change information of the account corresponding to the user identifier in the target task.
In one possible implementation, 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 an embodiment 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 acquisition request to a server; the task retrieval 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 the task completion times; receiving task information of a target task sent by a server; processing a target task according to task information of the target task; reporting state information of a target task to a server; the reported state information is used for indicating the task completion times of the target task updated by the server.
In one possible implementation manner, 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 manner, the task processing method further includes: receiving the task completion times after updating the target task, which are sent by the server; and determining 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 manner, determining resource change information of an account corresponding to the user identifier in the target task according to the updated task completion times of the target task includes: acquiring completion state information of the target task under the condition that the updated task completion times of the target task are larger than the task completion times received before the target task is processed; and determining resource change information of the account corresponding to the user identifier in the target task according to the completion state information of the target task.
In one 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 updated task completion times of the target tasks sent by the server and the task validity period acquired by the server; and determining 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 manner, determining resource change information of an 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 includes: when the valid period of the task received before the target task is processed is the same as the valid period of the task received after the target task is processed, and the updated task completion times of the target task are larger than the task completion times received before the target task is processed, the completion state information of the target task is acquired; and determining resource change information of the account corresponding to the user identifier 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 device for a server, including: the receiving module is configured to execute a task acquisition request sent by the receiving electronic equipment; the task retrieval request comprises a user identifier and a task identifier; the acquisition module is configured to execute and acquire task information of a target task corresponding to the user identifier and the task identifier, wherein the task information of the target task comprises the task completion times; the task completion times are used for representing the times that the target task has been repeatedly executed; the sending module is configured to execute task information of sending a target task to the electronic equipment; 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 finished when the task completion times of the target task reach a threshold value, wherein 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 manner, the task information acquired by the server further comprises 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 under the condition that the valid period of the task reported by the electronic equipment is the same as the valid period of the task acquired by the server, and the completion times of the task reported by the electronic equipment are the same as the completion times of the task acquired by the server, determining that the electronic equipment successfully executes the target task.
In one possible implementation, the sending module includes: the encryption unit is configured to encrypt task information of a target task by using an asymmetric encryption method to obtain target encrypted task information; and a transmitting unit configured to perform transmission of the target encryption task information to the electronic device.
In one possible implementation manner, the task processing device further includes: and the decryption module is configured to perform decryption on the reported state information of the target task so as to obtain the reported state information.
In one possible implementation, the sending module is further configured to perform the updated task completion times of sending the target task to the electronic device; 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 identifier in the target task.
In one possible implementation manner, the task processing method further includes: the sending module is further configured to execute the updated task completion times of the target task and the task validity period acquired by the server; the updated task completion times of the target task and the task validity period acquired by the server are used for indicating the electronic equipment to determine resource change information of the account corresponding to the user identifier in the target task.
In one possible implementation, 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 embodiments of the present disclosure, there is provided a task processing device for an electronic apparatus, including: a sending module configured to perform sending a task retrieval request to a server in response to a task start instruction; the task retrieval 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 the task completion times; the receiving module is configured to execute task information of a target task sent by the receiving server; a processing module configured to execute a task processing target task according to task information of the target task; the reporting module is configured to execute reporting of the state information of the target task to the server; the reported state information is used for indicating the task completion times of the target task updated by the server.
In one possible implementation, 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 encrypted state information; and a transmission unit configured to perform transmission of the target encryption status information to the server.
In one possible implementation manner, the task processing device further includes: the receiving module is further configured to execute the task completion times after the target task is updated, which are sent by the receiving server; the first determining module is configured to execute the resource changing 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: acquiring completion state information of the target task under the condition that the updated task completion times of the target task are larger than the task completion times received before the target task is processed; and determining resource change information of the account corresponding to the user identifier in the target task according to the completion state information of the target task.
In one possible implementation manner, the task processing device further includes: the receiving module is further configured to execute the task completion times after the target task is updated and the task validity period acquired by the server; the second determining module is configured to execute the resource changing 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 a target task when the valid period of the task received before the target task is processed is the same as the valid period of the task 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 identifier 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 comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the task processing method as in any of the first aspects.
According to a sixth aspect of embodiments of the present disclosure, there is provided an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the task processing method as in any of the second aspects.
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 according to any one of the first aspects; an electronic device configured to execute the task processing method according to any one of the second aspects.
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 instructions stored thereon, which when executed by a processor of an electronic device, enable the electronic device to perform the task processing method as in any 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 task processing method as in any of the first aspects.
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 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 every time the user completes a task, so that the purpose of creating one task and executing the task for multiple times is realized, the problem that multiple times can be completed only by creating multiple identical tasks is solved, the creation of multiple tasks and the maintenance cost of configuration are avoided, the task management and the service expansion are facilitated, and the occurrence of 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 disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an implementation environment, shown in accordance with an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of task processing according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating yet another task processing method according to an exemplary embodiment;
FIG. 4 is a schematic illustration of information interaction of a task processing method, according to an example embodiment;
FIG. 5 is a flowchart illustrating yet another task processing method according to an exemplary embodiment;
FIG. 6 is a flowchart illustrating yet another task processing method according to an example embodiment;
FIG. 7 is a flowchart illustrating yet another task processing method according to an exemplary embodiment;
FIG. 8 is a flowchart illustrating yet another task processing method according to an exemplary embodiment;
FIG. 9 is a block diagram of a task processing device shown in accordance with an exemplary embodiment;
FIG. 10 is a block diagram of yet another task processing device, shown in accordance with an exemplary embodiment;
FIG. 11 is a block diagram of a server shown in accordance with an exemplary embodiment;
fig. 12 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Before describing the task processing method provided by the present disclosure in detail, a brief description is first provided of an application scenario and an implementation environment related to the present disclosure.
First, an application scenario related to the present disclosure will be briefly described.
At present, internet companies often promote various activities that interact with users, such as task activities, and users can receive a corresponding reward every time they do a task. In the prior art, for a certain type of task needing to be completed once a day, the adopted technical scheme is to create a task copy of each day of the user, the user can only complete the task copy of the same day, the task names, task configuration and the like below are the same, for example, for a task activity with a period of 7 days, 7 task activities with the same content are configured. However, creating a plurality of tasks with the same content and executing a plurality of tasks within the task implementation period is complicated to manage, and redundancy occurs.
In view of the above problems, the present disclosure provides a task processing method, apparatus, server, device, system, and storage medium, by configuring the task completion times for task activities, accumulating the current completion times each time a user completes a task, thereby achieving the purpose of creating one task and performing multiple times, thereby solving the problem that multiple times of tasks can be completed only by creating multiple identical tasks, facilitating task management and expansion of services, and avoiding occurrence of data redundancy.
The following presents a simplified description of an implementation environment (implementation architecture) to which the present disclosure relates, as shown in fig. 1, which shows a schematic diagram of one implementation environment to which the present disclosure applies. A server 110 and an electronic device 120 may be included in the implementation environment, where the electronic device 120 may establish a connection with the server 110 over a network (wired or wireless).
Wherein 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, etc., which is not limited in this disclosure.
Wherein the server 110 is configured to manage task activities. In some embodiments, the server 110 may be a server, or may be a server cluster formed by a plurality of servers, which is not limited in this disclosure.
For ease of understanding, the task processing method provided in 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 retrieval request transmitted by an electronic device is received.
Wherein the task retrieval request includes a user identification and a task identification.
In one example, the user identification may be a task ID of the user in the task campaign. The task identity may be a task ID of the task activity. The user identification and the task identification in the task acquisition request are used for indicating the server to determine the corresponding task acquisition.
In S202, task information of a target task corresponding to the user identification and the task identification is acquired, and the task information of the target task includes the number of task completions.
Wherein the number of task completions is used to characterize the number of times the target task has been repeatedly performed.
The initial value of the task completion times is 0, and the target considers that the task is successfully executed once by the electronic device, and the task completion times are accumulated once. For example, the initial value of the task completion times is 0, the task completion times are updated to 1 after the electronic device successfully executes the target task for the first time, the task completion times are updated to 2 after the electronic device successfully executes the target task for the second time, and so on, and the task completion times are 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 a user identifier, a task identifier and a task creation time, the accuracy of the electronic equipment and the server for confirming the target task can be improved, and further the accuracy of task execution is provided.
It should be noted that, the user identifier (including, but not limited to, a user equipment identifier, a user personal identifier, etc.) related to the disclosure is information authorized by the user or sufficiently authorized by each party.
Illustratively, the time of task creation is the time of the target task creation at the time of task creation. The task identification is used to determine a target task. It will be appreciated that each task identity is capable of determining a unique target task.
In one example, the user identification and the task identification in the task information correspond to the user identification and the task identification in the task retrieval request, and the server determines the task activity according to the correspondence between the task retrieval request and the task information.
In another example, task completion times are configured for task information, and the task completion times are accumulated after a user completes a task, so that one task copy can be processed by the user for multiple times, and for tasks with longer periods, only one task copy is needed to be created, thereby facilitating management of task activities and expansion of services, and avoiding occurrence of data redundancy.
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, in the 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.
In one example, after the electronic device processes the target task according to the task information, processing result information of the target task may be reported 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 if it is determined that the target task is completed.
In S205, when the number of task completion times of the target task reaches the threshold, it is determined that the target task is completed.
Wherein the threshold is a positive integer greater than 1.
In one example, the threshold corresponds to a task identity. And under the condition that the server receives the first task acquisition request, acquiring a threshold value of the task completion times of the target task. The number of times that the target task is allowed to be successfully executed can be determined by setting the threshold value of the number of times that the task is allowed to be completed, namely, when the target task needs to be repeatedly executed for a plurality of times, the target task can be ensured to be executed for a plurality of times by setting the threshold value as the number of times that the target task needs to be repeatedly executed.
For example, the threshold is 7, i.e., the number of task completions is updated to 7 after the target task is successfully executed 7 times by the electronic device, at which time the target task is completed.
The technical scheme provided by the embodiment at least brings the following beneficial effects: the task completion times are configured for the task activities, and the current completion times are accumulated every time the user completes a task, so that the purpose of creating one task and executing the task for multiple times is realized, the problem that multiple times can be completed only by creating multiple identical tasks is solved, the creation of multiple tasks and the maintenance cost of configuration are avoided, the task management and the service expansion are facilitated, and the occurrence of 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-S304.
In S301, a task retrieval request is transmitted to a server in response to a task start instruction.
The task retrieval 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 the 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 identification and the task identification in the task retrieval request correspond to the user identification and the task identification in the task information of the target task, and the server determines the task activity according to the correspondence between the task retrieval request and the task information.
In one example, the user identification may be a task ID of the user in the task campaign. The task identity may be a task ID of the task activity.
In S302, task information of a target task transmitted from a 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 location system (uniform resource locator, URL) of the target task. The user jumps to the landing page of the target task through the electronic URL so as to process the target task.
In S304, status information of the target task is reported to the server.
The reported state information is used for indicating the task completion times of the target task updated by the server.
In one example, the status information reported by the electronic device includes processing result information of the target task, and 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 brings the following beneficial effects: the electronic device sends a task acquisition request to the server to instruct the server to acquire task information of the target task. And then receiving 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 electronic equipment reports the state information to indicate 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 aim of completing multiple tasks is fulfilled, the problem that multiple tasks can be completed only by creating multiple identical tasks is solved, the maintenance cost of creating multiple tasks and configuration is avoided, the management of task activities and the expansion of services are facilitated, and the occurrence of 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 transmits a task retrieval request to the server in response to the task start instruction.
The task retrieval 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 the task completion times.
By way of example, the task initiation instruction may be an instruction that the user triggers the 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 sends a task acquisition request to the server.
The electronic device may be configured with a touch display screen. After a user logs in an application program corresponding to the task activity by using a user identifier (for example, the user ID), a task control can be displayed on a direct touch display screen, and a task starting instruction can be activated.
The electronic device may also configure a display screen and a mouse device. After the user logs in the application program corresponding to the task activity by using the user identification (for example, the user ID), the user can click a task control displayed on the display screen through a mouse to activate a task starting instruction.
By way of example, the task initiation instruction may be an instruction that the electronic device automatically triggers the generation of a task control. For example, it may be that the user sets a timed trigger task control, i.e. a task start instruction is automatically activated at a set moment, so that the electronic device sends a task retrieval request to the server.
In S402, the server receives a task retrieval request transmitted by the electronic device.
Wherein the task retrieval request includes a user identification and a task identification.
Optionally, in a case where the task retrieval request is a first retrieval 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 times the initialization task is completed, that is, the number of times the task is set to be 0 times. The number of times of completing the task is initialized to be 0 when the target task is first picked up, so that the number of times of completing the task activity of a user can be conveniently monitored. Furthermore, by initializing the task information when the task is first acquired, the task information of the user is initialized once, and multiple tasks can be completed without initializing the task information of the user for multiple times.
In S403, task information of a target task corresponding to the user identification and the task identification is acquired, the task information of the target task including the number of task completions.
Wherein the number of task completions is used to characterize the number of times the target task has been repeatedly performed.
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 comprises the following steps: and under the condition that the valid period of the task reported by the electronic equipment is the same as the valid period of the task acquired by the server, and the completion times of the task reported by the electronic equipment are the same as the completion times of the task acquired by the server, determining that the electronic equipment successfully executes the target task.
By configuring the task validity period for the task activity, and further 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 electronic equipment is determined to successfully execute the target task, whether the electronic equipment successfully executes the target task within the task validity period can be judged, so that timeliness of successful execution of the target task is ensured, the task activity validity processed by a user is verified through the task validity period, and therefore, when the task activity processed by the user is the valid task activity, the task completion times of the target task are updated, and further the safety of data is ensured.
In one example, the server initializes a task validity period in the event that the task get request is the first get request of a target task. By initializing the period of validity of the task when the task is first picked up, dynamic setting of the period of validity of the task can be achieved.
By way of example, the task validity period may be end time information of the task activity. For example, the end time information for the task campaign may be 2021, 3, 8, 23:59. The task information is configured with the limited period of the task, so that 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.
By way of example, a task cycle may be an executable cycle of a task, for example, the executable cycle of a task may be 7 days, a user may complete a task multiple times within 7 days, such as 7 tasks within 7 days, all of the 7 tasks may be completed within any one of the 7 days, or multiple times within 7 days. The executable period of the task can be 1 day/7 days, the task can be completed once every day within 7 days, and the task of the same day is incomplete or fails in the same day. The executable cycle of the task may also be that multiple tasks may be completed per day within 7 days.
Alternatively, the task validity period may be determined from 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 task information of the target task by using an asymmetric encryption method to obtain target encrypted task information; and sending the target encryption task information to the electronic equipment.
By encrypting the task information of the target task and sending the task information to the electronic device when the electronic device gets the task activity, the task activity interface behaviors of hackers or someone maliciously brushing the task can be effectively intercepted, the task can be completed for multiple devices of users, the task can be effectively completed only once, and the accuracy of task data is further guaranteed.
It can be appreciated that the task information is encrypted using an asymmetric encryption scheme, and the key needs to be changed periodically to ensure the security of the data.
Alternatively, when task information of a target task is encrypted using an asymmetric encryption method, the validity period of the target encrypted task information may be set. By setting the validity period of the target encryption task information, only the task state information reported by the electronic equipment in the validity period can be processed. For example, the validity period of the target encrypted task information is set to be 1 day, and after the user obtains the task activity, the task activity obtained by the user fails to report the task state information within 1 day.
In S405, task information of a target task transmitted from a 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 task completion received by the electronic device, whether the target task is effectively completed or not can be verified in the process of determining the resource change information of the account corresponding to the user identifier in the target task, 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 number and a task validity period. By setting the task completion times and the task valid 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 target task which is acquired before can be verified, and if so, the task activity which is completed by the user at the time is effective. By verifying whether the task activity completed by the user is a valid task activity and updating the task activity of the target task only when the task activity completed by the user is a valid task activity, 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, the jumping of the task activity page may be accomplished by initiating a task processing instruction.
By way of example, the user can touch the task processing control to jump to the corresponding task activity page, and further 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 target task updated by the server.
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, the electronic device uses a key that corresponds to a key used by the server when encrypting the status information of the target task to be reported, and the key is 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 keys, the behaviors of hackers and malicious interfaces can be effectively intercepted, tasks can be completed for multiple user equipment, and the tasks can be ensured to be completed only once effectively.
Alternatively, the electronic device may set the validity period of the target encryption status information when encrypting the task information of the target task using the asymmetric encryption method.
In S408, in the 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 when the task completion times of the target task reach the threshold value in S409, determining that the target task is completed.
Wherein the threshold is a positive integer greater than 1.
Optionally, the threshold is a number of times the target task is to be executed.
Optionally, after the step of sending the task information of the target task to the electronic device, the electronic device performs the target task according to the task information. And after the electronic equipment executes the target task, reporting the state information of the target task to the server. 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. The state information reported by the service is used for determining whether the target task is successfully executed by the electronic equipment or not, and updating the task completion times under the condition that the target task is successfully executed is determined, so that the task completion times under the condition that the target task is successfully executed can be ensured, and the accuracy of data is further ensured. The task completion times are updated only when the state information reported after the electronic equipment processes the task is matched with the task information acquired before the processing task, so that the task successfully executed by the electronic equipment can be determined to be the target task acquired at the time, and further the accuracy of the task completion times is ensured.
Optionally, the server decrypts the reported state information of the target task to obtain the reported state information. By encrypting the state information of the target task, the behaviors of hackers and malicious task interface brushing can be effectively intercepted.
In one example, the task information acquired by the server includes a 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 the server determines that the target task is completed and updates the task of the target task to be completed when the processing result of the electronic equipment on the target task is processed.
In one example, the task information acquired by the server includes a number of task completions and a task validity period. The status information reported by the electronic equipment comprises a task validity period and task completion times. When the validity period of the task reported by the electronic equipment is the same as the validity period of the task acquired by the server, and the completion times of the task reported by the electronic equipment are the same as the completion times of the task acquired by the server, the task activity corresponding to the state information reported by the electronic equipment is the target task which is acquired from the server before the electronic equipment, 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 of the electronic equipment is invalid, the reported state information is ignored. At this time, if the processing result of the electronic device on the target task is processed, it is determined that the target task is completed. The accuracy of the data can be improved by setting the state information reported by the electronic equipment to comprise the valid period of the task and the completion times of the task.
Optionally, the task processing method further includes: and the server sends the updated task completion times of the target task to the electronic equipment. 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 identifier 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, and the resource information of the user account can be updated only under the condition that the user effectively completes the task, so that the accuracy of data is guaranteed.
Optionally, in conjunction with 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 number of task completion times after the target task update sent 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, the resource change information of the account corresponding to the user identifier in the target task is determined.
The updated task completion times are used for determining the resource change information of the account, so that the user can be ensured to update the resource information of the user account under the condition that the user is effectively completed with the task, and the accuracy of the data is further ensured.
Optionally, as shown in fig. 6 in conjunction with fig. 5, S306 includes S306a-S306d.
In S306a, it is determined whether or not the number of task completion times after updating of the target task is greater than the number of task completion times received before processing of the target task, 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 information of a completed status.
In an exemplary case where the updated task completion number of the target task is greater than the task completion number received before the target task is processed, the target task is determined to be 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 dynamic effect corresponding to the task activity shown on the electronic device.
In S306c, according to the completion status information of the target task, the resource change information of the account corresponding to the user identifier in the target task is determined.
Illustratively, when the completion status activity is displayed on the user's electronic device, the user's task activity at this time is determined to be valid. Further, the user may receive rewards for completing the task activity via the completion status information, e.g., rewards may be capable of being used in the application to which the task activity corresponds. After the user gets the rewards of the task activities, the account of the user executes the change in the resource information in the target task.
In S306d, the target task is determined to be in an unfinished state.
The resource change information can be displayed on the electronic device through an active effect method, so that a user can conveniently check the resource change information.
In another example, the task retrieval request further includes a task retrieval number. And after the electronic equipment receives the task information of the target task sent by the server, updating the task acquisition times. Further, after the electronic device receives the updated task completion times of the target tasks sent by the server, judging whether the updated task acquisition times are the same as the updated task completion times, and after the updated task acquisition times are the same as the updated task completion times, determining that the user has effectively completed the target tasks, and then changing the resource information of the account.
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 acquired by the server are used for indicating the electronic equipment to determine resource change information of the account corresponding to the user identifier in the target task. The updated task completion times of the target task and the task validity period acquired by the server are sent to the electronic equipment through 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 acquired by the server, thereby improving the accuracy of resource information updating.
Optionally, in conjunction with fig. 3, as shown in fig. 7, the task processing method further includes: S307-S308. The execution subject of S307-S308 is an electronic device.
In S307, the updated task completion times of the target task and the task validity period acquired by the server are received.
In S308, according to the updated task completion times of the target task and the task validity period acquired 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, judge whether the task activities completed by the user are completed within the effective period according to the task effective period acquired by the server, and improve the accuracy of resource information updating.
Optionally, as shown in fig. 8 in conjunction with fig. 7, S308 includes S308a-S308d.
In S308a, it is determined whether the valid period of the task received before the processing target task is the same as the valid period of the task received after the processing target task, and whether the number of task completion times after the update of the target task is greater than the number of task completion times received before the processing target task, if yes, S308b is executed, and if no, S308d is executed.
In one example, if the determination result is yes, the valid period of the task received before the target task is processed is the same as the valid period of the task received after the target task is processed, and the number of task completion times after the update of the target task is greater than the number of task completion times received before the target task is processed.
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 dynamic effect corresponding to the task activity shown on the electronic device.
In S308c, according to the completion status information of the target task, the resource change information of the account corresponding to the user identifier in the target task is determined.
In S308d, the target task is determined to be in an unfinished state.
By comparing the updated task completion times with the task completion time when the task is taken, whether the user effectively completes the target task can be determined, and by comparing the task validity period received after the task is processed with the task validity period received when the task is taken, whether the user receives the task completion information corresponding to the task activity taken before can be determined, so that the accuracy of the resource change information data is improved.
Based on the task processing method provided by the disclosure, the electronic equipment responds to the task starting instruction, a task acquisition request is sent to the server, the task acquisition request sent by the electronic equipment is received by the server, and task information of a target task corresponding to the task acquisition request is received by the server. And 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, reporting the state information of the target task to a server, and determining whether the target task is completed or not by the server according to the reported state information and updating the task completion times of the target task under the condition that the target task is determined to be completed. The server updates the completion times of the target tasks instead of updating the completion state of the target tasks under the condition that the target tasks are completed, so that a user can complete multiple tasks in a task period under the condition that only one task copy is created, the problem that multiple tasks can be completed only by creating multiple same tasks in the task period is solved, the maintenance cost of creating multiple tasks and configuration is saved, task management is facilitated, and data redundancy is avoided.
The foregoing description of the solution provided in the embodiments of the present application has been mainly presented in terms of a method. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform 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 implemented as hardware or computer software driven 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 of a task processing device 900 according to an exemplary embodiment, which can be applied to the server in the above-described embodiment. Referring to fig. 9, the apparatus includes a receiving module 901, an acquiring module 902, a transmitting module 903, an updating module 904, and a determining module 905.
The receiving module 901 is configured to perform receiving a task retrieval request sent by the electronic device; the task retrieval request includes a user identification and a task identification. For example, as shown in fig. 2, the receiving module 901 is configured to execute S201.
The acquisition module 902 is configured to perform acquisition of task information of a target task corresponding to a user identification and a task identification, the task information of the target task including a task completion number. For example, as shown in fig. 2, the acquisition module 902 is configured to perform S202.
The sending module 903 is configured to perform sending task information of a target task to an electronic device. For example, as shown in fig. 2, the transmitting module 903 is configured to execute S203.
The update module 904 is configured to perform updating the number of task completions for the target task if it is determined that the electronic device successfully performed the target task based on the task information. For example, as shown in fig. 2, the update module 904 is configured to execute S204.
The determining module 905 is configured to determine that the target task is 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 determination module 905 is used to perform S205.
Optionally, the task processing device further includes: and an initialization module configured to execute task information of the target task in the case where the task retrieval request is a first retrieval request of the target task.
Optionally, the update 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 under the condition that the valid period of the task reported by the electronic equipment is the same as the valid period of the task acquired by the server, and the completion times of the task reported by the electronic equipment are the same as the completion times of the task acquired by the server, determining that the electronic equipment successfully executes the target task.
Optionally, the sending module 903 includes: the encryption unit is configured to encrypt task information of a target task by using an asymmetric encryption method to obtain target encrypted task information; and a transmitting unit configured to perform transmission of the target encryption task information to the electronic device.
Optionally, the task processing device further includes: and the decryption module is configured to perform decryption on the reported state information of the target task so as to obtain the reported state information.
Optionally, the sending module 903 is further configured to perform sending the updated task completion number of the target task to the electronic device; 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 identifier in the target task.
Optionally, the sending module 903 is further configured to perform sending, to the electronic device, the updated task completion times of the target task and the task validity period acquired by the server; the updated task completion times of the target task and the task validity period acquired by the server are used for indicating the electronic equipment to determine resource change information of the 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 of a task processing device 1000 according to an exemplary embodiment, which can be applied to the electronic apparatus in the above-described embodiment. Referring to fig. 10, the apparatus includes a transmitting module 1001, a receiving module 1002, a processing module 1003, and a reporting module 1004.
The sending module 1001 is configured to perform sending a task get request to a server in response to a task start instruction; the task retrieval 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 the task completion times. For example, as shown in fig. 3, the transmission module 1001 is configured to execute S301.
The receiving module 1002 is configured to receive task information of a target task transmitted by a 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 a processing target task according to 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 status information of the target task to the server; the reported state information is used for indicating the task completion times of the target task updated by the server. 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 encrypted state information; and a transmission unit configured to perform transmission of the target encryption status 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 is updated, which is sent by the receiving server; the first determining module is configured to execute the resource changing 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: acquiring completion state information of the target task under the condition that the updated task completion times of the target task are larger than the task completion times received before the target task is processed; and determining resource change information of the account corresponding to the user identifier in the target task according to the completion state information of the target task. For example, as shown in FIG. 6, a first determination module may be used to perform S306a-S306d.
Optionally, the task processing device further includes: the receiving module 1002 is further configured to execute the task completion times after the target task is updated and the task validity period acquired by the server; the second determining module is configured to execute the resource changing 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 a target task when the valid period of the task received before the target task is processed is the same as the valid period of the task 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 identifier in the target task according to the completion state information of the target task. For example, as shown in FIG. 8, a second determination module may be used to perform S308a-S308d.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 11 is a block diagram illustrating a structure of a server 1100, where the server 1100 may vary widely in configuration or performance and may include one or more processors 1101 and one or more memories 1102, according to an example embodiment. The memory 1102 stores at least one instruction, which is loaded and executed by the processor 1101 to implement the task processing methods provided in the above-mentioned respective method embodiments, for example, S201-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 diagram of a structure of an electronic device 1200 shown according to an example embodiment. The electronic device 1200 may be a cell phone, tablet computer, notebook computer, palm top computer, desktop computer, portable computer, vehicle mounted terminal, wearable device, etc. 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 frequency unit 1208, a sensor 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 limited to the electronic device 1200, and the electronic device 1200 may include more or less components than those shown in fig. 12, or may combine some components, or may be arranged differently, as will be appreciated 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.
The processor 1201 is configured to execute a task to be executed when a 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 above method embodiment, and can achieve the same technical effects, and detailed descriptions thereof are omitted to avoid repetition.
The processor 1201 is a control center of the electronic device 1200, connects various parts of the entire electronic device 1200 using various interfaces and lines, and performs various functions of the electronic device 1200 and processes data by running or executing software programs and/or modules stored in the memory 1202, and calling data stored in the memory 1202, thereby performing overall monitoring of the electronic device 1200. The processor 1201 may include one or more processing units. In one embodiment, the processor 1201 may integrate an application processor that primarily handles operating systems, user pages, applications, and the like, with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1201.
Memory 1202 may be used to store software programs and various data. The memory 1202 may mainly include a storage program area storing an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (e.g., audio data, phonebook) created according to the use of the handset, etc. In addition, 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 (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 (Graphics Processing Unit, GPU) that processes image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode, and a microphone. The processed image frames may be displayed on the display 1203. The image frames processed by the image processor may be stored in memory 1202 (or other storage medium) or transmitted via radio frequency unit 1208 or network unit 1206. The microphone may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that may be transmitted to the mobile communication base station via the radio frequency unit 1208 in the case of a telephone 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 device 1200. Specifically, the user input unit includes a touch panel and other input devices. A touch panel, also known as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.). The touch panel may include two components, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 resistive, capacitive, infrared, and surface acoustic wave. The processing touch panel, the user input unit may further include other input devices, specifically, other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein.
Further, the touch panel may be overlaid on the display panel, and when the touch panel detects a touch operation thereon or thereabout, the touch panel is transmitted to the processor 1201 to determine a type of touch time, and then the processor 1201 provides a corresponding data output on the display panel according to the type of 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 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 that 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 (e.g., call signal reception sound, message reception sound, etc.) related to a particular function performed by the electronic device 1200. The audio output unit includes a speaker, a buzzer, a receiver, and the like.
The electronic device 1200 provides wireless broadband internet access to users via the network element 1206, such as helping users to email, browse web pages, and access streaming media, etc.
The interface unit 1207 is an interface to which an external device is connected to the electronic apparatus 1200. For example, the external devices may include a wired or wireless headset port, an external power (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 to 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 used for receiving and transmitting signals during the information receiving and transmitting process, specifically, after receiving downlink data from the base station, processing the downlink data for the processor 1201; and, the uplink data is transmitted to the base station. Typically, the 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 networks and other devices via a wireless communication system.
The sensor 1209 may include at least one of a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel according to the brightness of ambient light, and the proximity sensor can turn off the display panel and/or the backlight when the electronic device 1200 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as transverse screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 00 may further 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., which are not described 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 connected to the processor 1201 through a power management system to perform functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 1200 further includes some functional modules (e.g., a camera) that are not shown, and will not be described herein.
In an exemplary embodiment, the disclosed embodiment also provides a task processing system including a server that executes to complete the task processing method in S201-S205 described above, and an electronic device that executes to complete the task processing method in S301-S308 described above.
In an exemplary embodiment, the disclosed embodiments also provide a computer-readable storage medium, e.g., memory 1202, comprising instructions executable by processor 1201 of electronic device 1200 to perform the task processing methods in S301-S38 described above. Alternatively, the memory 1102 including 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, for example, a Read-Only Memory (ROM), a random access Memory (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, when 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, the respective processes of the task processing method embodiments described above are implemented, and the technical effects similar to those of the task processing methods S301 to S308 can be achieved, so that repetition is avoided, and further description is omitted here. The instructions in the computer readable storage medium or the one or more instructions in the computer program product implement the respective processes of the task processing method embodiments when executed by the processor 1101 of the server 1100, and achieve the same technical effects as those of the task processing methods S201 to S205, so that repetition is avoided and redundant description is omitted herein.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (23)

1. A task processing method for a server, comprising:
receiving a task acquisition request sent by electronic equipment; the task acquisition 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;
transmitting task information of the target task to the electronic equipment;
receiving state information of the target task reported by the electronic equipment; the state information reported by the electronic equipment comprises a task valid period and task completion times; the task information acquired by the server also comprises a task validity period;
determining that the electronic device successfully executes the target task under the condition that the valid period of the task reported by the electronic device is the same as the valid period of the task acquired by the server and the completion times of the task reported by the electronic device are the same as the completion times of the task acquired by the server;
Under the condition that the electronic equipment successfully executes 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 according to claim 1, wherein the 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 encrypted task information;
and sending the target encryption task information to the electronic equipment.
3. The task processing method according to claim 2, further comprising, after the step of receiving the status information of the target task reported by the electronic device:
decrypting the reported state information of the target task to obtain the reported state information.
4. A task processing method according to any one of claims 1 to 3, characterized in that the task processing method further comprises:
the updated task completion times of the target task are sent to the electronic equipment;
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 identifier in the target task.
5. A task processing method according to any one of claims 1 to 3, characterized in that the task processing method further comprises:
the updated task completion times of the target task and the task validity period acquired by the server are sent to the electronic equipment;
the updated task completion times of the target task and the task validity period acquired by the server are used for indicating the electronic equipment to determine resource change information of the account corresponding to the user identifier in the target task.
6. A task processing method for an electronic device, comprising:
responding to a task starting instruction, and sending a task acquisition request to a server; the task acquisition 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 and task validity periods;
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; the reported state information is used for indicating the task completion times of the target task updated by the server;
receiving the updated task completion times of the target task and the valid period of the task acquired by the server, wherein the updated task completion times of the target task and the valid period of the task are transmitted by the server;
acquiring completion state information of the target task under the condition that the valid period of the task received before processing the target task is the same as the valid period of the task received after processing the target task and the updated task completion times of the target task are larger than the task completion times received before processing the target task;
and determining resource change information of the account corresponding to the user identifier in the target task according to the completion state information of the target task.
7. The task processing method according to claim 6, wherein the reporting the status 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.
8. The task processing method according to claim 6 or 7, characterized in that the task processing method further comprises:
receiving the task completion times after the target task is updated, which are sent by the server;
and determining 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.
9. The method for processing tasks according to claim 8, wherein determining 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 includes:
acquiring completion state information of the target task under the condition that the updated task completion times of the target task are larger than the task completion times received before the target task is processed;
and determining resource change information of the account corresponding to the user identifier in the target task according to the completion state information of the target task.
10. A task processing device for a server, comprising:
the receiving module is configured to execute a task acquisition request sent by the receiving electronic equipment; the task acquisition request comprises a user identifier and a task identifier;
The acquisition module is configured to execute and acquire 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 perform sending task information of the target task to the electronic device;
the updating module is configured to receive the state information of the target task reported by the electronic equipment; the state information reported by the electronic equipment comprises a task valid period and task completion times; the task information acquired by the server also comprises a task validity period;
the updating module is configured to determine that the electronic device successfully executes the target task when the valid period of the task reported by the electronic device is the same as the valid period of the task acquired by the server and the number of task completion times reported by the electronic device is the same as the number of task completion times acquired by the server;
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 executed when the task completion times of the target task reach a threshold value, wherein the threshold value is a positive integer greater than 1.
11. The task processing device according to claim 10, wherein the transmission 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 encrypted task information;
and the sending unit is configured to send the target encryption task information to the electronic equipment.
12. The task processing device according to claim 11, characterized in that the task processing device further comprises:
and the decryption module is configured to perform decryption on the reported state information of the target task so as to obtain the reported state information.
13. Task processing device according to any of the claims 10-12, characterized in that,
the sending module is further configured to execute the updated task completion times of sending the target task to the electronic device;
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 identifier in the target task.
14. Task processing device according to any of the claims 10-12, characterized in that,
the sending module is further configured to perform the updated task completion times of the target task and the task validity period acquired by the server, which are sent to the electronic device;
the updated task completion times of the target task and the task validity period acquired by the server are used for indicating the electronic equipment to determine resource change information of the account corresponding to the user identifier in the target task.
15. A task processing device for an electronic apparatus, comprising:
a sending module configured to perform sending a task retrieval request to a server in response to a task start instruction; the task acquisition 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 and task validity periods;
the receiving module is configured to execute task information of the target task sent by the server;
a processing module configured to execute 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; the reported state information is used for indicating the task completion times of the target task updated by the server;
the receiving module is further configured to receive the updated task completion times of the target task and the task validity period acquired by the server;
the second determining module is configured to acquire the completion state information of the target task when the valid period of the task received before the target task is processed is the same as the valid period of the task received after the target task is processed and the updated task completion times of the target task are larger than the task completion times received before the target task is processed;
the second determining module is further configured to determine resource change information of the account corresponding to the user identifier in the target task according to the completion state information of the target task.
16. The task processing device of claim 15, wherein 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 encrypted state information;
And a transmitting unit configured to perform transmission of the target encryption status information to the server.
17. A task processing device according to claim 15 or 16, characterized in that the task processing device further comprises:
the receiving module is further configured to execute task completion times after receiving the target task update sent by the server;
the first determining module is configured to execute the resource changing information of the account corresponding to the user identifier in the target task according to the updated task completion times of the target task.
18. The task processing device of claim 17, wherein the first determination module is specifically configured to:
acquiring completion state information of the target task under the condition that the updated task completion times of the target task are larger than the task completion times received before the target task is processed;
and determining resource change information of the account corresponding to the user identifier in the target task according to the completion state information of the target task.
19. 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 5.
20. 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 any one of claims 6 to 9.
21. A task processing system, comprising:
a server for performing the task processing method according to any one of claims 1 to 5;
electronic device for performing the task processing method according to any of claims 6 to 9.
22. A computer readable storage medium having instructions stored thereon, which when executed by a processor of a server, enable the server to perform the task processing method of any one of claims 1 to 5; or (b)
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 any one of claims 6 to 9.
23. A computer program product comprising computer instructions which, when run on a server, cause the server to perform the task processing method of any one of claims 1 to 5; or (b)
The computer instructions, when run on an electronic device, cause the electronic device to perform the task processing method of any one of claims 6 to 9.
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 CN113238868A (en) 2021-08-10
CN113238868B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301970B (en) * 2021-12-21 2023-10-17 北京达佳互联信息技术有限公司 Service calling method, device, electronic equipment and storage medium
CN114625511A (en) * 2022-03-21 2022-06-14 北京有竹居网络技术有限公司 Test task scheduling method and related equipment thereof
CN114885013B (en) * 2022-05-06 2024-03-12 北京达佳互联信息技术有限公司 Method and device for reporting package information, electronic equipment and storage medium

Citations (6)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657251A (en) * 2016-10-25 2017-05-10 广东欧珀移动通信有限公司 Data synchronizing method and apparatus

Patent Citations (6)

* 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
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

Also Published As

Publication number Publication date
CN113238868A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
CN113238868B (en) Task processing method, device, server, equipment, system and storage medium
CN111143005B (en) Application sharing method, electronic equipment and computer readable storage medium
CN109462885B (en) Network slice registration method and terminal
CN111598573B (en) Equipment fingerprint verification method and device
CN110719319B (en) Resource sharing method, device, terminal equipment and storage medium
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN111049510B (en) Touch key, control method and electronic equipment
CN111124569B (en) Application sharing method, electronic device and computer readable storage medium
CN111615198B (en) Resource determining method, resource indicating method, terminal and network side equipment
CN111124706A (en) Application program sharing method and electronic equipment
CN110445746B (en) Cookie obtaining method and device and storage equipment
CN107765954B (en) Application icon updating method, mobile terminal and server
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN108009031B (en) Application program control method and mobile terminal
CN111399819B (en) Data generation method, device, electronic equipment and storage medium
CN109729582B (en) Information interaction method and device and computer readable storage medium
CN112130949B (en) Prompt resource display method and device and computer readable storage medium
CN111159738B (en) Authority configuration method, application login method and device
CN110929238B (en) Information processing method and device
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium
CN113542206B (en) Image processing method, device and computer readable storage medium
CN111343618B (en) Display method and electronic equipment
CN111459323B (en) Control method, electronic device and medium
CN111475141B (en) Method and device for generating list and electronic equipment
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