Disclosure of Invention
In order to solve the problem caused by long time delay in acquiring the task parameters of the application program, embodiments of the present application provide a task parameter processing method, a terminal, and a storage medium.
In a first aspect, an embodiment of the present application provides a task parameter processing method, where the method includes:
after a task object set is obtained, a task parameter set corresponding to the task object set is requested to be obtained from a third-party server, the task object set comprises an object identifier of at least one task object of an application program, and the task parameter set comprises task parameters of the at least one task object;
caching the acquired task parameter set into a terminal memory;
and searching a target task parameter from a terminal memory after detecting a task trigger event aiming at the target task object, and executing a task aiming at the target task object by using the searched target task parameter, wherein the target task parameter is the task parameter of the target task object.
According to the method provided by the embodiment of the application, the target task parameters are obtained from the third-party server in advance to the time before the task aiming at the target task object is triggered. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
Optionally, after detecting a task trigger event for the target task object, if the target task parameter is not found from the terminal memory, the target task parameter may be requested to be obtained from the third-party server, the target task parameter obtained from the third-party server is cached in the terminal memory, and the task for the target task object is executed by using the target task parameter obtained from the third-party server.
According to the method provided by the embodiment of the application, if the target task parameter cannot be acquired from the terminal memory, the target task parameter is acquired from the third-party server, and the acquired target task parameter is cached in the terminal memory, so that the target task parameter can be successfully acquired from the terminal memory after a task trigger event for the target task object is detected next time, and the time delay for acquiring the target task parameter at the next time is reduced.
On the basis of any method embodiment, after the task object set is obtained, the task parameters of the task objects of the application program can be searched from the terminal memory; and if the effective task parameters of the task object of the application program are not found from the terminal memory, requesting to acquire a task parameter set corresponding to the task object set from a third-party server.
The valid task parameters refer to task parameters within the validity period. In practical application, the validity period of the task parameter can be maintained by setting a timer, and whether the task parameter is valid can be judged by comparing the task parameter with the task object version number carried in the task parameter.
The method provided by the embodiment of the application comprises the steps of judging whether effective task parameters of task objects of application programs are cached in a terminal memory or not before a third-party server requests to acquire the task parameter sets, requesting to acquire the task parameter sets corresponding to the task object sets from the third-party server under the condition that the effective task parameters are not cached in the terminal memory, and not requesting to acquire the task parameter sets corresponding to the task object sets from the third-party server if the effective task parameters are cached in the terminal memory, so that occupation of communication resources caused by frequent access to the third-party server is avoided.
On this basis, the implementation manner of caching the acquired task parameter set in the terminal memory may include: and caching the task parameter set into a terminal memory to replace the cached task parameter set and task parameters in the terminal memory.
As described above, before requesting to acquire a task parameter set from the third-party server, it is first determined whether valid task parameters of a task object of an application program are cached in the terminal memory. If a plurality of task parameter sets and task parameters are cached in the terminal memory, the efficiency of searching the effective task parameters in the terminal memory is reduced. According to the method provided by the embodiment of the application, the cached task parameter set and the task parameters in the memory of the terminal are replaced by the acquired task parameter set, and the searching efficiency of the effective task parameters can be improved. In addition, the precondition that the task parameter set is requested to be obtained from the third-party server is that no effective task parameter exists in the terminal memory, and under the condition, the aim of saving the memory space can be achieved by timely cleaning the ineffective task parameter.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the task parameter set acquisition module is used for requesting to acquire a task parameter set corresponding to a task object set from a third-party server after acquiring the task object set, wherein the task object set comprises an object identifier of at least one task object of an application program, and the task parameter set comprises task parameters of the at least one task object;
the task parameter set caching module is used for caching the acquired task parameter set into a terminal memory;
and the target task execution module is used for searching a target task parameter from the terminal memory after detecting a task trigger event aiming at the target task object, and executing a task aiming at the target task object by using the searched target task parameter, wherein at least one task object comprises the target task object, and the target task parameter is the task parameter of the target task object.
The mobile terminal provided by the embodiment of the application is used for acquiring the target task parameters from the third-party server in advance before triggering the task aiming at the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
Optionally, the target task execution module is further configured to: after a task trigger event aiming at the target task object is detected, if the target task parameter is not found from the terminal memory, the target task parameter is requested to be obtained from the third-party server; caching the target task parameters acquired from the third-party server to the terminal memory; and executing the task aiming at the target task object by using the target task parameters acquired from the third-party server.
According to the mobile terminal provided by the embodiment of the application, if the target task parameter cannot be acquired from the terminal memory, the target task parameter is acquired from the third-party server, and the acquired target task parameter is cached in the terminal memory, so that the target task parameter can be successfully acquired from the terminal memory after a task trigger event for the target task object is detected next time, and the time delay of acquiring the target task parameter at the next time is reduced.
On the basis of any of the above embodiments of the mobile terminal, the task parameter set acquisition module is configured to: after acquiring a task object set, searching task parameters of task objects of the application program from the terminal memory; and if the effective task parameters of the task object of the application program are not found from the terminal memory, requesting to acquire a task parameter set corresponding to the task object set from a third-party server.
The mobile terminal provided in the embodiment of the application judges whether effective task parameters of task objects of an application program are cached in a terminal memory before a third-party server requests to acquire a task parameter set, requests to acquire the task parameter set corresponding to the task object set from the third-party server under the condition that the effective task parameters are not cached in the terminal memory, and does not request to acquire the task parameter set corresponding to the task object set from the third-party server if the effective task parameters are cached in the terminal memory, so that occupation of communication resources caused by frequent access to the third-party server is avoided.
On this basis, the task parameter set caching module is configured to: and caching the task parameter set into the terminal memory to replace the cached task parameter set and task parameters in the terminal memory.
As described above, before requesting to acquire a task parameter set from the third-party server, it is first determined whether valid task parameters of a task object of an application program are cached in the terminal memory. If a plurality of task parameter sets and task parameters are cached in the terminal memory, the efficiency of searching the effective task parameters in the terminal memory is reduced. According to the mobile terminal provided by the embodiment of the application, the cached task parameter set and task parameters in the terminal memory are replaced by the acquired task parameter set, so that the searching efficiency of effective task parameters can be improved. In addition, the precondition that the task parameter set is requested to be obtained from the third-party server is that no effective task parameter exists in the terminal memory, and under the condition, the aim of saving the memory space can be achieved by timely cleaning the ineffective task parameter.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor and a memory;
the memory is used for storing a program for executing any of the above method embodiments;
the processor is configured to execute programs stored in the memory.
The mobile terminal provided by the embodiment of the application is used for acquiring the target task parameters from the third-party server in advance before triggering the task aiming at the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a program for implementing any of the above-described method embodiments.
The program stored in the computer-readable storage medium provided by the embodiment of the application advances the acquisition of the target task parameters from the third-party server to before the triggering of the task for the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In some of the flows described in the specification and claims of the present application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that the flows may include more or less operations, and that the operations may be performed sequentially or in parallel.
An embodiment of the present application provides a task parameter processing method, which is applied to a mobile terminal, and as shown in fig. 1, the method provided by the embodiment of the present application includes the following operations:
step 101, after an application program obtains a task object set, requesting to obtain a task parameter set corresponding to the task object set from a third-party server, where the task object set includes an object identifier of at least one task object of the application program, and the task parameter set includes task parameters of the at least one task object.
The task object set can be, but is not limited to, an object identification list of task objects, and the task parameter set can be, but is not limited to, a task parameter list.
The execution time for requesting to acquire the task parameter set corresponding to the task object set from the third-party server is not specifically limited, and only by way of example, after the task object set is acquired, the application program may invoke the task interface, and then, the task interface is invoked to trigger the request for acquiring the task parameter set corresponding to the task object set from the third-party server.
In practical application, an application program may send an acquisition request message to a third-party server, where the acquisition request message carries a task object set.
And step 102, caching the acquired task parameter set to a terminal memory by the application program.
The method for caching the task parameter set in the terminal memory is not limited, one possible implementation mode comprises the step of still storing the task parameters in the task parameter set by using the structure of the data set, and the other possible implementation mode comprises the step of caching each task parameter in the task parameter set by using an independent data structure.
This step is performed in the case of acquiring the task parameter set, and if the task parameter set is not acquired, a possible implementation manner includes: requesting to acquire the task parameter set from the third-party server again until a request time threshold is reached or a task trigger event aiming at the target task object is detected, wherein another possible implementation mode comprises the following steps: no attempt is made to request the set of task parameters from the third party server.
Step 103, after detecting a task trigger event for the target task object, the application program searches for a target task parameter from a terminal memory, and executes a task for the target task object by using the searched target task parameter, wherein the at least one task object includes the target task object, and the target task parameter is a task parameter of the target task object.
According to the method provided by the embodiment of the application, the target task parameters are obtained from the third-party server in advance to the time before the task aiming at the target task object is triggered. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
The inventor finds, through creative work in implementing the present invention, that a considerable proportion of task execution errors are caused by a touch event triggered on a task interface by a mobile terminal user (for example, clicking a "return" touch button on the task interface, clicking a task trigger button on the task interface again, and the like, which are collectively referred to as a target touch event in the embodiments of the present invention) in a process of waiting for obtaining target task parameters. Therefore, the method provided by the embodiment of the invention is beneficial to reducing the time delay for acquiring the target task parameter by requesting to acquire the task parameter in advance, thereby avoiding the task execution error to a certain extent and reducing the possibility of the task execution error.
Optionally, after detecting a task trigger event for the target task object, if the target task parameter is not found from the terminal memory, the target task parameter may be requested to be obtained from the third-party server, the target task parameter obtained from the third-party server is cached in the terminal memory, and the task for the target task object is executed by using the target task parameter obtained from the third-party server.
According to the method provided by the embodiment of the application, if the target task parameter cannot be acquired from the terminal memory, the target task parameter is acquired from the third-party server, and the acquired target task parameter is cached in the terminal memory, so that the target task parameter can be successfully acquired from the terminal memory after a task trigger event for the target task object is detected next time, and the time delay for acquiring the target task parameter at the next time is reduced.
Therefore, the task parameter set can be cached in the terminal memory, and a single task parameter can also be cached. Then, no matter the task parameter set including the target task parameter is cached in the terminal memory or the target task parameter is cached separately, in the step 103, the target task parameter can be successfully found from the terminal memory.
On the basis of any method embodiment, after the task object set is obtained, the task parameters of the task objects of the application program can be searched from the terminal memory; and if the effective task parameters of the task object of the application program are not found from the terminal memory, requesting to acquire a task parameter set corresponding to the task object set from a third-party server.
The valid task parameters refer to task parameters within the validity period. In practical application, the validity period of the task parameter can be maintained by setting a timer, and whether the task parameter is valid can be judged by comparing the task parameter with the task object version number carried in the task parameter.
Correspondingly, if the application program finds the task parameter in the terminal memory, whether the task parameter is the task parameter of the task object of the application program can be judged through the application program identifier carried in the task parameter, and whether the task parameter is valid can also be judged through at least one of the following modes: judging whether a timer corresponding to the task parameter (or a task parameter set where the task parameter is located) is overtime, if not, the task parameter is not invalid; and matching the task object version number carried in the task parameter with the version number corresponding to the task object set, wherein if the matching is successful, the task parameter is valid.
Correspondingly, in the program running process, if the task object is determined to be updated, the timer of the relevant task parameter cached in the terminal memory is set to be overtime.
The method provided by the embodiment of the application comprises the steps of judging whether effective task parameters of task objects of application programs are cached in a terminal memory or not before a third-party server requests to acquire the task parameter sets, requesting to acquire the task parameter sets corresponding to the task object sets from the third-party server under the condition that the effective task parameters are not cached in the terminal memory, and not requesting to acquire the task parameter sets corresponding to the task object sets from the third-party server if the effective task parameters are cached in the terminal memory, so that occupation of communication resources caused by frequent access to the third-party server is avoided.
On this basis, the implementation manner of caching the acquired task parameter set in the terminal memory may include: and caching the task parameter set into a terminal memory to replace the cached task parameter set and task parameters in the terminal memory.
As described above, before requesting to acquire a task parameter set from the third-party server, it is first determined whether valid task parameters of a task object of an application program are cached in the terminal memory. If a plurality of task parameter sets and task parameters are cached in the terminal memory, the efficiency of searching the effective task parameters in the terminal memory is reduced. According to the method provided by the embodiment of the application, the cached task parameter set and the task parameters in the memory of the terminal are replaced by the acquired task parameter set, and the searching efficiency of the effective task parameters can be improved. In addition, the precondition that the task parameter set is requested to be obtained from the third-party server is that no effective task parameter exists in the terminal memory, and under the condition, the aim of saving the memory space can be achieved by timely cleaning the ineffective task parameter.
The method provided by the embodiment of the invention is explained below by taking a specific application scenario as an example.
An application program (hereinafter referred to as IOS APP) running in the apple operating system provides virtual commodity transactions. The method comprises the steps that a mobile terminal user clicks a control triggering a virtual commodity transaction interface (namely a task interface), an IOS APP acquires a virtual commodity identification LIST (ID LIST), on one hand, the virtual commodity transaction interface is called, virtual commodities (task objects) indicated in the virtual commodity identification LIST are displayed on the virtual commodity transaction interface, on the other hand, the IOS APP searches commodity information (task parameters) of virtual commodities in a terminal memory, if valid commodity information is found, the commodity information LIST does not need to be pulled in advance, if valid commodity information is not found, connection is established with an IAP (in-App Purchase ) server, and a commodity information LIST corresponding to the virtual commodity identification LIST is requested to be acquired from the IAP server. And if the commodity information list is acquired from the IAP server, caching the acquired commodity information list into a terminal memory.
The mobile terminal user selects a target virtual commodity (target task object) on the virtual commodity transaction interface and triggers a payment process for the target virtual commodity (task for the target task object). Responding to the trigger of the payment process aiming at the target virtual commodity, searching the commodity information of the target virtual commodity in a terminal memory by the IOS APP, if the commodity information of the target virtual commodity is not searched, requesting to acquire the commodity information of the target virtual commodity from the IAP server, and continuously executing the payment process of the target virtual commodity by using the searched or acquired commodity information.
Based on the same inventive concept as the method, an embodiment of the present application provides a mobile terminal, as shown in fig. 2, including:
a task parameter set obtaining module 201, configured to request, after obtaining a task object set, a third-party server to obtain a task parameter set corresponding to the task object set, where the task object set includes an object identifier of at least one task object of an application program, and the task parameter set includes task parameters of the at least one task object;
a task parameter set caching module 202, configured to cache the obtained task parameter set in a terminal memory;
the target task execution module 203 is configured to, after detecting a task trigger event for the target task object, search a target task parameter from the terminal memory, and execute a task for the target task object by using the searched target task parameter, where at least one task object includes the target task object, and the target task parameter is a task parameter of the target task object.
The mobile terminal provided by the embodiment of the application is used for acquiring the target task parameters from the third-party server in advance before triggering the task aiming at the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
Optionally, the target task execution module is further configured to: after a task trigger event aiming at the target task object is detected, if the target task parameter is not found from the terminal memory, the target task parameter is requested to be obtained from the third-party server; caching the target task parameters acquired from the third-party server to the terminal memory; and executing the task aiming at the target task object by using the target task parameters acquired from the third-party server.
According to the mobile terminal provided by the embodiment of the application, if the target task parameter cannot be acquired from the terminal memory, the target task parameter is acquired from the third-party server, and the acquired target task parameter is cached in the terminal memory, so that the target task parameter can be successfully acquired from the terminal memory after a task trigger event for the target task object is detected next time, and the time delay of acquiring the target task parameter at the next time is reduced.
On the basis of any of the above embodiments of the mobile terminal, the task parameter set acquisition module is configured to: after acquiring a task object set, searching task parameters of task objects of the application program from the terminal memory; and if the effective task parameters of the task object of the application program are not found from the terminal memory, requesting to acquire a task parameter set corresponding to the task object set from a third-party server.
The mobile terminal provided in the embodiment of the application judges whether effective task parameters of task objects of an application program are cached in a terminal memory before a third-party server requests to acquire a task parameter set, requests to acquire the task parameter set corresponding to the task object set from the third-party server under the condition that the effective task parameters are not cached in the terminal memory, and does not request to acquire the task parameter set corresponding to the task object set from the third-party server if the effective task parameters are cached in the terminal memory, so that occupation of communication resources caused by frequent access to the third-party server is avoided.
On this basis, the task parameter set caching module is configured to: and caching the task parameter set into the terminal memory to replace the cached task parameter set and task parameters in the terminal memory.
As described above, before requesting to acquire a task parameter set from the third-party server, it is first determined whether valid task parameters of a task object of an application program are cached in the terminal memory. If a plurality of task parameter sets and task parameters are cached in the terminal memory, the efficiency of searching the effective task parameters in the terminal memory is reduced. According to the mobile terminal provided by the embodiment of the application, the cached task parameter set and task parameters in the terminal memory are replaced by the acquired task parameter set, so that the searching efficiency of effective task parameters can be improved. In addition, the precondition that the task parameter set is requested to be obtained from the third-party server is that no effective task parameter exists in the terminal memory, and under the condition, the aim of saving the memory space can be achieved by timely cleaning the ineffective task parameter.
The mobile terminal in the above embodiments may include a smart phone, a palm computer, a tablet computer, a wearable device with a display screen, a vehicle-mounted computer, a smart sound box, and the like.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the module of the mobile terminal described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Based on the same inventive concept as the method, the embodiment of the application provides a mobile terminal, which comprises a processor and a memory;
the memory is used for storing a program for executing any of the above method embodiments;
the processor is configured to execute programs stored in the memory.
The mobile terminal provided by the embodiment of the application is used for acquiring the target task parameters from the third-party server in advance before triggering the task aiming at the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
As shown in fig. 3, the mobile terminal provided in the embodiment of the present application includes not only a processor and a memory, but also an input device (e.g., a touch screen, a camera, a microphone, etc.), an output device (e.g., a display screen, a speaker, etc.), a communication module, and a power supply module.
The memory, the input device, the output device, the communication module and the power supply module are connected with the processor through a serial port, a bus or a USB interface. Wherein, for a single processor mobile terminal, the processor is a CPU (Central processing Unit); for a dual-processor mobile terminal, a processor comprises a main processor and a slave processor, the main processor executes an application program to realize the method provided by the embodiment of the invention, and if the communication with the outside is needed, the slave processor controls a communication module to realize the method in a matching way; for a terminal device including a GPU (graphics processor) and a CPU, the processor refers to the GPU and the CPU, and the method provided by the embodiment of the present application is implemented by the cooperation of the GPU and the CPU or by the CPU alone.
Wherein, the memory of the mobile terminal may include but is not limited to: flash (Flash) memory, RAM (random access memory), ROM (read only memory), etc. The RAM is mainly used for storing programs and data when the terminal device runs, and programs to be executed or data to be processed must be loaded into the RAM first. The ROM is mainly used to check the configuration of the operating system of the terminal device and to provide the most basic input/output (I/O) programs. Flash memory is a long-lived non-volatile (maintaining stored data information in the event of a power failure) memory, and data is deleted not in individual bytes, but in fixed blocks. Since the Flash memory can still store data when power is off, it is usually used to store setting information, such as setting information of a user on a mobile phone.
It should be noted that different mobile terminals (single-processor smart phone, dual-processor smart phone, smart wearable device, tablet computer, etc.) may include more or less hardware structures than the terminal device shown in fig. 3, but it is within the scope of the present disclosure as long as the terminal device includes a memory and a processor and can implement the functions of the above method embodiments.
Based on the same inventive concept as the method, embodiments of the present application provide a computer-readable storage medium storing a program that implements any of the above-described method embodiments.
The program stored in the computer-readable storage medium provided by the embodiment of the application advances the acquisition of the target task parameters from the third-party server to before the triggering of the task for the target task object. Specifically, after the task object set is obtained, a task parameter set corresponding to the task object set may be requested to be obtained from a third-party server. After the task object set is obtained, the application program can call a task interface to display the task objects indicated in the task object set, and the mobile terminal user selects the target task object from the task interface so as to trigger the task aiming at the target task object. As can be seen, the target task object is a task object indicated in the task object set, and then the task parameter set corresponding to the task object set includes the target task parameter, and if the task parameter set is obtained and cached in the terminal memory, the target task parameter can be found from the terminal memory after the task trigger event for the target task object is detected. The task parameters are requested to be acquired in advance, so that the acquisition delay of the target task parameters is reduced, the task execution delay is reduced, and the success rate of task execution is improved.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
The embodiments described above are only a part of the embodiments of the present invention, and not all of them. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.