A task processing method and device

By storing the mapping relationship between device identifiers and task parameters on the server side, the problem of the server being unable to determine the completion of open-type tasks is solved, thereby achieving universality of page redirection protocols and improving user experience.

CN113886047BActive Publication Date: 2025-12-09BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111165861.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2025-12-09
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

The server cannot determine whether an open task has been completed, especially when the page redirection protocol does not support carrying task parameters.

Method used

The server receives and stores the mapping relationship between device identifiers and task parameters, and determines whether the target task has been completed by receiving the device identifier in the application open message.

Benefits of technology

This technology enables the server to accurately determine whether a target task has been completed even when the page redirection protocol does not support carrying task parameters, thereby improving the versatility of the page redirection protocol and enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886047B_ABST
    Figure CN113886047B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a task processing method and device, and relates to the technical field of computers, and solves the problem that a server cannot determine whether an open type task is completed. The specific scheme comprises the following steps: the server receives a task message, the task message comprising a device identifier and a task parameter of a target task, the target task being a task of opening a second application in a first application, and storing a mapping relationship between the device identifier and the task parameter. Then, if an application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is obtained in the mapping relationship, the server determines that the target task is completed, and the application opening message is used to indicate that the second application is opened in the first application.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, and particularly relates to a task processing method and device. BACKGROUND

[0002] An opening type task refers to a task of starting other applications in an application. When a user performs an opening type task in an application on a terminal device, there is a problem that a server cannot determine whether the opening type task is completed. SUMMARY

[0003] The present disclosure provides a task processing method and device, and solves the problem that a server cannot determine whether an opening type task is completed.

[0004] The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of the present disclosure, a task processing method is provided, and the method is applied to a server. The method comprises the following steps:

[0006] receiving a task message, wherein the task message comprises a device identifier and a task parameter of a target task, and the target task is a task of opening a second application in a first application;

[0007] storing a mapping relationship between the device identifier and the task parameter;

[0008] if an application opening message is received and a task parameter corresponding to a device identifier included in the application opening message is acquired in the mapping relationship, it is determined that the target task is completed, and the application opening message is used to indicate that the second application is opened in the first application.

[0009] Optionally, if the application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is acquired in the mapping relationship, the target task is determined to be completed, and the method comprises the following steps:

[0010] if the application opening message is received, the task parameter corresponding to the device identifier included in the application opening message is acquired in the mapping relationship, and a task identifier included in the task parameter is used to indicate the target task and an account identifier included in the task parameter is used to indicate a login account of the first application, it is determined that the target task is completed.

[0011] Optionally, the task processing method provided by the present disclosure further comprises the following steps:

[0012] if the application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is not acquired in the mapping relationship, it is determined that the target task is not completed.

[0013] Optionally, the task parameter comprises a current progress and a total progress of the target task, and the method further comprises:

[0014] If the application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is acquired from the mapping relationship, and the current progress and the total progress included in the task parameter are the same, it is determined that the target task is completed.

[0015] Optionally, the method further comprises:

[0016] If the application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is acquired from the mapping relationship, and the current progress included in the task parameter is less than the total progress included in the task parameter, it is determined that the target task is not completed.

[0017] Optionally, the method further comprises:

[0018] The feedback message is sent, the feedback message is used for indicating that the mapping relationship has been stored, and the application opening message is sent in response to the feedback message.

[0019] According to a second aspect of the present disclosure, a task processing method applied to a terminal device is provided. The method comprises:

[0020] In response to a selection operation on a target task, a task parameter of the target task and a device identifier of the terminal device are acquired, the target task being a task of opening a second application in a first application;

[0021] A task message is sent, the task message comprising the device identifier and the task parameter;

[0022] The second application is started, and an application opening message is sent, the application opening message comprising the device identifier, the application opening message being used for indicating that the second application is opened in the first application.

[0023] Optionally, the method further comprises:

[0024] In response to the selection operation on the target task, a target protocol is acquired, the target protocol being used for starting the second application;

[0025] The starting of the second application comprises:

[0026] The second application is started through the target protocol.

[0027] Optionally, after the task message is sent, the method further comprises:

[0028] receiving a feedback message, the feedback message being used to indicate that a mapping relationship between the device identifier and the task parameter has been stored;

[0029] The starting the second application comprises:

[0030] starting the second application in response to the feedback message.

[0031] Optionally, the starting the second application comprises:

[0032] if the second application is installed, starting the second application;

[0033] if the second application is not installed, downloading and installing the second application, and starting the second application.

[0034] Optionally, the task parameter comprises a task identifier and an account identifier, the task identifier being used to indicate the target task, and the account identifier being used to indicate a login account of the first application.

[0035] Optionally, the task parameter further comprises a current progress and a total progress of the target task.

[0036] According to a third aspect of the present disclosure, a task processing apparatus is provided, applied to a server, comprising:

[0037] a receiving module configured to receive a task message, the task message comprising a device identifier and a task parameter of a target task, the target task being a task of opening a second application in a first application;

[0038] a storing module configured to store a mapping relationship between the device identifier and the task parameter received by the receiving module;

[0039] a determining module configured to determine that the target task is completed if an application opening message is received and a task parameter corresponding to a device identifier included in the application opening message is obtained from the mapping relationship stored in the storing module, the application opening message being used to indicate that the second application is opened in the first application.

[0040] Optionally, the determining module is specifically configured to:

[0041] if the application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is obtained from the mapping relationship, and a task identifier included in the task parameter is used to indicate the target task and an account identifier included in the task parameter is used to indicate a login account of the first application, then it is determined that the target task is completed.

[0042] Optionally, the determining module is further configured to determine that the target task is not completed if the application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is not acquired in the mapping relationship.

[0043] Optionally, the task parameter includes a current progress and a total progress of the target task, and the determining module is specifically configured to perform:

[0044] If the application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is acquired in the mapping relationship, and the current progress and the total progress included in the task parameter are the same, it is determined that the target task is completed.

[0045] Optionally, the determining module is further configured to determine that the target task is not completed if the application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is acquired in the mapping relationship, and the current progress included in the task parameter is less than the total progress included in the task parameter.

[0046] Optionally, the task processing apparatus further includes a sending module.

[0047] The sending module is configured to send a feedback message, the feedback message being used to indicate that the mapping relationship has been stored, and the application opening message being sent in response to the feedback message.

[0048] According to a fourth aspect of the present disclosure, a task processing apparatus applied to a terminal device is provided, including:

[0049] The obtaining module is configured to obtain a task parameter of a target task and a device identifier of the terminal device in response to a selection operation on the target task, the target task being a task of opening a second application in a first application.

[0050] The sending module is configured to send a task message, the task message including the device identifier and the task parameter obtained by the obtaining module.

[0051] The starting module is configured to start the second application.

[0052] The sending module is further configured to send an application opening message, the device identifier being included in the application opening message, and the application opening message being used to indicate that the second application is opened in the first application.

[0053] Optionally, the obtaining module is further configured to obtain a target protocol in response to the selection operation on the target task, the target protocol being used to start the second application.

[0054] The starting module is specifically configured to start the second application through the target protocol.

[0055] Optionally, the task processing apparatus further comprises a receiving module.

[0056] The receiving module is configured to receive a feedback message, the feedback message being used to indicate that a mapping relationship between the device identifier and the task parameter has been stored.

[0057] The starting module is specifically configured to start the second application in response to the feedback message.

[0058] Optionally, the starting module is specifically configured to perform:

[0059] If the second application is installed, the second application is started.

[0060] If the second application is not installed, the second application is downloaded and installed, and the second application is started.

[0061] Optionally, the task parameter comprises a task identifier and an account identifier, the task identifier being used to indicate the target task, and the account identifier being used to indicate a login account of the first application.

[0062] Optionally, the task parameter further comprises a current progress and a total progress of the target task.

[0063] According to a fifth aspect of the present disclosure, a server is provided, the server comprising:

[0064] a processor;

[0065] a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the optional task processing methods in the first aspect.

[0066] According to a sixth aspect of the present disclosure, a terminal device is provided, the terminal device comprising:

[0067] a processor;

[0068] a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the optional task processing methods in the second aspect.

[0069] According to a seventh aspect of the present disclosure, a computer-readable storage medium is provided, the computer-readable storage medium storing instructions, when the instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute any of the optional task processing methods in the first aspect.

[0070] According to an eighth aspect of the present disclosure, a computer-readable storage medium is provided, and the computer-readable storage medium has instructions stored thereon, which, when executed by a processor of a terminal device, enable the terminal device to perform any of the optional task processing methods of the second aspect.

[0071] According to a ninth aspect of the present disclosure, a computer program product is provided, and the computer program product contains instructions which, when run on a computer, cause the computer to perform any of the optional task processing methods of the first aspect.

[0072] According to a tenth aspect of the present disclosure, a computer program product is provided, and the computer program product contains instructions which, when run on a computer, cause the computer to perform any of the optional task processing methods of the second aspect.

[0073] The present disclosure provides at least the following beneficial effects: the server receives a task message including a device identifier and a task parameter of a target task, the target task is a task of opening a second application in a first application, and stores a mapping relationship between the device identifier and the task parameter. Then, if the server receives an application opening message and obtains the task parameter corresponding to the device identifier included in the application opening message in the mapping relationship, the server determines that the target task is completed.

[0074] In this way, after the server receives the application opening message, the server can determine whether the target task is completed according to the device identifier included in the application opening message and the stored mapping relationship. Since the server determines whether the target task is completed without relying on the application 1 transmitting the task parameter to the application 2 through the page jump protocol, and the application 2 transmitting the task parameter to the server after successfully opening, even if the page jump protocol does not support carrying the task parameter, the server can still determine whether the target task is completed, realizing the separation of the page jump protocol and the task parameter, and improving the universality of the page jump protocol.

[0075] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0076] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure, and do not constitute an undue limitation on the present disclosure.

[0077] Figure 1 is a flowchart of a user performing an opening type task provided by related technologies.

[0078] Figure 2 is a schematic diagram of a task processing system according to an exemplary embodiment.

[0079] Figure 3 is a flow chart of a task processing method according to an example embodiment.

[0080] Figure 4 is a flow chart of another task processing method according to an example embodiment.

[0081] Figure 5 is a schematic diagram of a task list page of a mobile phone according to an example embodiment.

[0082] Figure 6 is a flow chart of another task processing method according to an example embodiment.

[0083] Figure 7 is a logic structure block diagram of a task processing apparatus according to an example embodiment.

[0084] Figure 8 is a logic structure block diagram of another task processing apparatus according to an example embodiment.

[0085] Figure 9 is a structure block diagram of a terminal device according to an example embodiment.

[0086] Figure 10 is a structure block diagram of a server according to an example embodiment. DETAILED DESCRIPTION

[0087] In order for those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings.

[0088] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation described in the following example embodiments does not represent all implementations consistent with the present disclosure. Rather, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0089] First, the application scenario of the embodiments of the present disclosure is briefly introduced.

[0090] The task processing method provided by the embodiments of the present disclosure can be applied to the scenario in which a user performs an open-type task on a terminal device. The open-type task refers to a task of opening other applications in an application.

[0091] Figure 1 A flowchart illustrating the process of users performing open-type tasks for related technologies. For example... Figure 1 As shown, the terminal device can display an "open" task (which is a task to open application 2) on the task list page of application 1, and display a launch control in the associated location of the open task. When the user interacts with the launch control, the terminal device responds to the user's action, obtains the task parameters of the open task, and obtains the page redirection protocol used to launch application 2, carrying the task parameters in the page redirection protocol. Then, the terminal device launches application 2 through the page redirection protocol. At this time, if application 2 is installed on the terminal device, after the terminal device redirects from the task list page of application 1 to the page of application 2, application 2 can obtain the task parameters from the page redirection protocol and send the task parameters to the server. The server determines whether the open task is completed based on the received task parameters. However, if the page redirection protocol does not support carrying task parameters, application 2 cannot obtain the task parameters, thus preventing the server from determining whether the open task is completed.

[0092] If application 2 is not installed on the terminal device, it will be downloaded and installed first. Then, when the user interacts with the launch control on the task list page again, the terminal device will respond to the user's action by performing the above steps so that the server can determine whether the open-type task is completed. Because the user needs to open the task list page twice and interact with the launch control twice before the task can be determined as completed when application 2 is not installed on the terminal device, the process of executing open-type tasks on the terminal device is not smooth, resulting in a poor user experience.

[0093] To address the aforementioned technical problems, this disclosure provides a task processing method. A server receives a task message including a device identifier and task parameters for a target task, where the target task is opening a second application within a first application. The server stores a mapping relationship between the device identifier and the task parameters. Subsequently, if the server receives an application open message and retrieves the task parameters corresponding to the device identifier included in the application open message from the mapping relationship, the server determines that the target task is complete. Thus, after receiving an application open message, the server can determine whether the target task is complete based on the device identifier included in the application open message and the stored mapping relationship. Since the server's determination of target task completion does not rely on application 1 transmitting task parameters to application 2 via a page redirection protocol, and application 2 transmitting the task parameters to the server after successful opening, the server can determine whether the target task is complete even if the page redirection protocol does not support carrying task parameters. This achieves separation of the page redirection protocol and task parameters, improving the versatility of the page redirection protocol.

[0094] Next, the implementation environment of the embodiments of this disclosure will be described.

[0095] Figure 2 is a schematic diagram of a task processing system according to an exemplary embodiment. The task processing method provided by the embodiments of the present disclosure can be applied to the task processing system. As shown in the figure, the task processing system can include a terminal device 21 and a server 22. The terminal device 21 communicates with the server 22 through wired communication or wireless communication. Figure 2

[0096] The terminal device 21 is configured to, in a scenario where a user performs a target task, in response to a selection operation of the user on a target task of a first application, acquire a task parameter of the target task and a device identifier of the terminal device, and send a task message including the device identifier and the task parameter to the server 22. The terminal device 21 is further configured to start a second application, and send an application opening message to the server 22, the application opening message including the device identifier.

[0097] In some embodiments, the terminal device 21 can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) \ virtual reality (VR) device, etc. The specific form of the terminal device 21 is not specially limited in the embodiments of the present disclosure.

[0098] The server 22 is configured to receive the task message sent by the terminal device 21, the task message including the device identifier and the task parameter of the target task, and store a mapping relationship between the device identifier and the task parameter. The server 22 is further configured to, if the application opening message sent by the terminal device 21 is received and the task parameter corresponding to the device identifier included in the application opening message is acquired in the mapping relationship, determine that the target task is completed.

[0099] Optionally, the server 22 can include a first server and a second server, the first server being a server corresponding to the first application, and the second server being a server corresponding to the second application. The first server and the second server can be the same server, or can be different servers. Figure 1 For example, the first server and the second server are different servers.

[0100] ​In this case, the terminal device 21 is configured to send a task message to the first server. The first server is configured to receive the task message sent by the terminal device 21, and store a mapping relationship between the device identifier and the task parameter. When the second application is started, the terminal device 21 is configured to send an application opening message to the second server. The second server is configured to receive the application opening message sent by the terminal device 21, and send the application opening message to the first server. If the first server receives the application opening message, and obtains the task parameter corresponding to the device identifier included in the application opening message in the mapping relationship, it is determined that the target task is completed.

[0101] After introducing the application scenario and implementation environment of the embodiments of the present disclosure, the task processing method provided by the embodiments of the present disclosure is described in detail.

[0102] Figure 3 is a flowchart of a task processing method according to an exemplary embodiment, as shown in Figure 3 , the method can include steps 301-303.

[0103] 301. The server receives a task message.

[0104] The task message includes a device identifier and a task parameter of a target task. The target task is a task of opening a second application in a first application. The task parameter includes an account identifier and a task identifier. The task identifier is used to indicate the target task, and the account identifier is used to indicate a login account of the first application.

[0105] It can be understood that the above-mentioned device identifier is used to uniquely identify the terminal device. The above-mentioned task identifier can be the name of the target task, which can be a textual description of the target task. The above-mentioned account identifier can be the account number, nickname, etc. of the login account of the first application.

[0106] Optionally, in addition to the task identifier and the account identifier, the above-mentioned task parameter can also include an identifier of a virtual resource and a progress identifier of the target task. The virtual resource refers to a virtual resource that the login account should obtain after the target task is completed. The virtual resource can be virtual currency, virtual coupons, etc. The progress identifier is used to identify the progress of the target task, and can be used to identify the total progress and the current progress of the target task.

[0107] 302. The server stores a mapping relationship between the device identifier and the task parameter.

[0108] 303. If the server receives an application opening message, and obtains the task parameter corresponding to the device identifier included in the application opening message in the mapping relationship, it is determined that the target task is completed.

[0109] The application opening message is used to indicate that the second application is opened in the first application.

[0110] Optionally, in the embodiments of the present disclosure, the server can receive task messages from different terminal devices, and store a mapping relationship between the device identity and the task parameter in each received task message. Then, if the server receives an application opening message from a terminal device, and obtains the task parameter corresponding to the device identity included in the application opening message in the mapping relationship, the task parameter includes the task identity indicating the target task, and the account identity indicating the login account of the first application, the server can determine that the target task is completed. It can be seen that, after the server receives the application opening message, and obtains the task parameter corresponding to the device identity in the application opening message in the mapping relationship, the server can determine that the target task is completed when the task identity included in the task parameter matches the target task, and the account identity included in the task parameter matches the login account of the first application, so that the server determines whether the target task is completed according to the application opening message and the mapping relationship.

[0111] If the server receives the application opening message, and does not obtain the task parameter corresponding to the device identity included in the application opening message in the mapping relationship, the server determines that the target task is not completed. It can be seen that, the server determines that the target task is not completed according to the device identity included in the application opening message and the stored mapping relationship, without relying on the page jump protocol to carry the task parameter.

[0112] Optionally, in the embodiments of the present disclosure, in the case that the task parameter includes the task identity, the account identity, the current progress and the total progress of the target task, if the server receives the application opening message, and obtains the task parameter corresponding to the device identity included in the application opening message in the mapping relationship, the current progress and the total progress included in the task parameter are the same, the server determines that the target task is completed. In this way, in the case that the task parameter includes the current progress and the total progress of the target task, after the server receives the application opening message, and obtains the task parameter corresponding to the device identity in the application opening message in the mapping relationship, the server can determine that the target task is completed when the current progress is equal to the total progress, so that the server determines whether the target task is completed.

[0113] If the server receives the application opening message, and obtains the task parameter corresponding to the device identity included in the application opening message in the mapping relationship, the current progress included in the task parameter is less than the total progress included in the task parameter, the server determines that the target task is not completed. It can be seen that, after the server receives the application opening message, and obtains the task parameter in the mapping relationship, the server can determine that the target task is not completed when the current progress is less than the total progress, so that the server determines whether the target task is completed.

[0114] It should be noted that in the embodiments of the present disclosure, after the server stores the mapping relationship between the device identifier and the task parameter in step 302, the server sends a feedback message to the corresponding terminal device, the feedback message is used to prompt that the server has stored the mapping relationship, and the terminal device sends the application opening message in response to the feedback message. In this way, the terminal device sends the application opening message to the server only after receiving the feedback message sent by the server, which can ensure that the server receives the application opening message only after storing the mapping relationship, so as to determine whether the target task is completed according to the mapping relationship, thereby avoiding the problem that the server receives the application opening message before storing the mapping relationship and misjudges that the target task is not completed.

[0115] The technical solutions provided by the above embodiments at least have the following beneficial effects: After the server receives the application opening message, the server can determine whether the target task is completed according to the device identifier included in the application opening message and the stored mapping relationship. Since the server determines whether the target task is completed without relying on the application 1 transmitting the task parameter to the application 2 through the page jump protocol, and the application 2 transmits the task parameter to the server after being successfully opened, even if the page jump protocol does not support carrying the task parameter, the server can also determine whether the target task is completed, which realizes the separation of the page jump protocol and the task parameter and improves the universality of the page jump protocol.

[0116] Figure 4 is a flowchart of a task processing method according to an example embodiment, as shown in Figure 4 The method can include the following steps 401-403.

[0117] 401、The terminal device acquires the task parameter of the target task and the device identifier of the terminal device in response to a selection operation of the target task.

[0118] The target task is a task of opening a second application in a first application.

[0119] The terminal device can display the target task on a task list page of the first application, and display a start control at an associated position of the target task. When a user operates the start control, the terminal device acquires the task parameter of the target task and the device identifier of the terminal device in response to a touch operation of the user on the start control. The touch operation can be a click operation (such as a single click operation, a double click operation, or a continuous click operation of a preset number of times), a long press operation, or a sliding operation, etc.

[0120] Optionally, the task parameter can include a task identifier and an account identifier, the task identifier is used to indicate the target task, and the account identifier is used to indicate a login account of the first application. Further, the task parameter can further include a current progress and a total progress of the target task.

[0121] For example, suppose the terminal device is a mobile phone, and the first application and the second application are application 1 and application 2 installed on the mobile phone, respectively. Figure 5 The image shows the task list page for application 1 displayed on the phone. This task list page includes two "open" tasks and a corresponding launch control for each task. The two "open" tasks are named "Open Application 2" and "Open Application 3." The user receives a coupon worth 50 yuan after opening application 2 three times, while the user receives virtual currency worth 1 yuan after opening application 3 once.

[0122] When a user interacts with the launch control for a task named "Open App 2" for the first time, the phone responds to the user's interaction with the launch control, obtains the task parameters, and the phone's device identifier. Task parameters may include: a task identifier (task name: Open App 2), an account identifier (account name: the account used to log in to App 1), a virtual resource (a 50 yuan virtual coupon), and a progress identifier indicating that the task has a total progress of 3 attempts and is currently at progress 1.

[0123] 402. The terminal device sends a task message, which includes the device identifier and task parameters.

[0124] After obtaining the task parameters of the target task and the device identifier of the terminal device, the terminal device can send a task message carrying the device identifier and task parameters to the server, so that the server can store the mapping relationship between the device identifier and the task parameters after receiving the task message.

[0125] 403. The terminal device launches the second application and sends an application open message.

[0126] The application open message includes a device identifier and is used to indicate that the second application has been opened in the first application.

[0127] It is understandable that, in the specific implementation, when the terminal device jumps from the page of the first application to the page of the second application, it indicates that the second application has been successfully launched.

[0128] In response to the user's selection of the target task of the first application in step 401 above, the terminal device can also launch the second application.

[0129] Optionally, in the embodiments of the present disclosure, the terminal device can acquire the target protocol in response to the selection operation of the target task by the user. The target protocol is used to start the second application. Then, the process of starting the second application by the terminal device can be that the terminal device starts the second application through the target protocol. It can be understood that the target protocol can be a page jump protocol, for example, the page jump protocol can be a schema protocol. It can be seen that in the embodiments of the present disclosure, the target protocol, that is, the page jump protocol, is only used to invoke the second application, and does not need to carry the task parameter.

[0130] The technical solutions provided by the above embodiments at least have the following beneficial effects: the terminal device acquires the task parameter of the target task and the device identifier of the terminal device in response to the selection operation of the target task by the user on the first application, sends the task message to the server, and starts the second application and sends the application opening message to the server. In this way, the terminal device sends the task parameter of the target task and the device identifier of the terminal device to the server, so as to facilitate the server to store the mapping relationship between the device identifier and the task parameter, and after the terminal device starts the second application, the terminal device sends the application opening message to the server, so that the server can determine whether the target task is completed based on the device identifier in the application opening message and the stored mapping relationship. Since it is not necessary to rely on the transmission of the task parameter to the second application to determine whether the target task is completed, the server can determine whether the target task is completed even if the page jump protocol used to start the second application does not support carrying the task parameter, the separation of the page jump protocol and the task parameter is realized, and the universality of the page jump protocol is improved.

[0131] Optionally, in the embodiments of the present disclosure, the terminal device can also receive the feedback message sent by the server, and the feedback message is used to indicate that the server has stored the mapping relationship between the device identifier and the task parameter. In this case, the terminal device starts the second application, which can specifically include that the terminal device starts the second application in response to the feedback message. In this way, the terminal device sends the application opening message to the server only after receiving the feedback message sent by the server, so as to ensure that the server receives the application opening message only after storing the mapping relationship, thereby being able to determine whether the target task is completed according to the mapping relationship, and avoiding the problem that the server receives the application opening message before storing the mapping relationship and thus misjudges that the target task is not completed.

[0132] Optionally, in the embodiments of the present disclosure, in the case of starting the second application, if the terminal device has installed the second application, the terminal device directly starts the second application. If the terminal device has not installed the second application, the terminal device downloads and installs the second application and starts the second application.

[0133] In the embodiments of the present disclosure, the following several ways can be used to download, install and start the second application.

[0134] In a manner 1, if the terminal device does not install the second application, the terminal device can display a prompt message for prompting a user to go to an application store to download the second application. After the user opens the application store of the terminal device and downloads the second application in the application store, the terminal device downloads and installs the second application in response to a download operation of the user. After the second application is installed, the user can perform an opening operation on the second application. The terminal device starts the second application in response to the opening operation of the user.

[0135] In a manner 2, if the terminal device does not install the second application, the terminal device can call a page jump protocol for starting the application store and start the application store through the page jump protocol. After the terminal device jumps from a page of the first application to a page of the application store, the user can download the second application in the application store. The terminal device downloads and installs the second application in response to a download operation of the user. After the second application is installed, the user can perform an opening operation on the second application. The terminal device starts the second application in response to the opening operation of the user.

[0136] The technical solutions provided by the above embodiments at least have the following beneficial effects: Since the reporting of the task parameter does not depend on the page jump protocol for starting the second application, in the case that the terminal device does not install the second application, the terminal device can directly start the second application after downloading and installing the second application, and send an application opening message including the device identifier of the terminal device to the server after the starting is successful, so that the server judges whether the target task is completed. Compared with the prior art in which the terminal device downloads and installs the second application, and then the user enters the task list page of the first application again and opens the target task to start the second application, the operation of the user is simplified, the user experience is improved, and the fluency of the terminal device in executing the target task is improved.

[0137] Figure 6 is a flowchart of a task processing method according to an exemplary embodiment, as shown in Figure 6 The method can include the following steps 601-612.

[0138] 601, the terminal device acquires the task parameter of the target task and the device identifier of the terminal device in response to a selection operation on the target task of the first application.

[0139] 602, the terminal device sends a task message to the first server, and the task message includes the task parameter and the device identifier.

[0140] 603, the first server receives the task message sent by the terminal device.

[0141] 604, the first server stores the mapping relationship between the device identifier and the task parameter.

[0142] 605、The first server sends a feedback message to the terminal device.

[0143] 606、The terminal device receives the feedback message sent by the first server.

[0144] 607、The terminal device starts a second application in response to the feedback message.

[0145] 608、The terminal device sends an application opening message to the second server.

[0146] 609、The second server receives the application opening message sent by the terminal device.

[0147] 610、The second server sends the application opening message to the first server.

[0148] 611、If the first server receives the application opening message and obtains the task parameter corresponding to the device identifier included in the application opening message in the mapping relationship, it is determined that the target task is completed.

[0149] 612、If the first server receives the application opening message and does not obtain the task parameter corresponding to the device identifier included in the application opening message in the mapping relationship, it is determined that the target task is not completed.

[0150] The technical scheme provided by the above embodiment at least brings the following beneficial effects: the terminal device responds to the selection operation of the user on the target task of the first application, obtains the task parameter of the target task and the device identifier of the terminal device, sends a task message to the server, and starts a second application, and sends an application opening message to the server. In this way, the terminal device transmits the task parameter of the target task and the device identifier of the terminal device to the server to facilitate the server to store the mapping relationship between the device identifier and the task parameter, and after the terminal device starts the second application, the server can determine whether the target task is completed based on the device identifier in the application opening message and the stored mapping relationship. Since it is not necessary to rely on transmitting the task parameter to the second application to determine whether the target task is completed, the server can determine whether the target task is completed even if the page jump protocol used to start the second application does not support carrying the task parameter, which realizes the separation of the page jump protocol and the task parameter and improves the universality of the page jump protocol.

[0151] Figure 7 is a logical structure block diagram of a task processing apparatus according to an exemplary embodiment. Referring to Figure 7 The task processing apparatus is applied to a server, and the task processing apparatus comprises a receiving module 71, a storage module 72, and a determination module 73.

[0152] The receiving module 71 is configured to perform receiving a task message, the task message comprising a device identifier and a task parameter of a target task, the target task being a task of opening a second application in a first application;

[0153] The storage module 72 is configured to perform storing a mapping relationship between the device identifier and the task parameter received by the receiving module 71;

[0154] The determining module 73 is configured to perform determining that the target task is completed if an application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is obtained in the mapping relationship stored in the storage module 72, the application opening message being used to indicate that the second application is opened in the first application.

[0155] Optionally, the determining module 73 is specifically configured to perform determining that the target task is completed if the application opening message is received, the task parameter corresponding to the device identifier included in the application opening message is obtained in the mapping relationship, and the task identifier included in the task parameter is used to indicate the target task and the account identifier included in the task parameter is used to indicate a login account of the first application.

[0156] Optionally, the determining module 73 is further configured to perform determining that the target task is not completed if the application opening message is received and the task parameter corresponding to the device identifier included in the application opening message is not obtained in the mapping relationship.

[0157] Optionally, the task parameter comprises a current progress and a total progress of the target task, and the determining module 73 is specifically configured to perform determining that the target task is completed if the application opening message is received, the task parameter corresponding to the device identifier included in the application opening message is obtained in the mapping relationship, and the current progress and the total progress included in the task parameter are the same.

[0158] Optionally, the determining module 73 is further configured to perform determining that the target task is not completed if the application opening message is received, the task parameter corresponding to the device identifier included in the application opening message is obtained in the mapping relationship, and the current progress included in the task parameter is less than the total progress included in the task parameter.

[0159] Optionally, as shown in Figure 7 The task processing apparatus further comprises a sending module 74;

[0160] The sending module 74 is configured to perform sending a feedback message, the feedback message being used to indicate that the mapping relationship has been stored, and the application opening message being sent in response to the feedback message.

[0161] Figure 8 Fig. 1 is a logical structure diagram of a task processing apparatus according to an exemplary embodiment. Referring to Fig. 1, the task processing apparatus is applied to a terminal device, and the task processing apparatus comprises an obtaining module 81, a sending module 82, and a starting module 83. Figure 8

[0162] The obtaining module 81 is configured to obtain a task parameter of a target task and a device identifier of the terminal device in response to a selection operation on the target task, the target task being a task of opening a second application in a first application.

[0163] The sending module 82 is configured to send a task message, the task message comprising the device identifier and the task parameter obtained by the obtaining module.

[0164] The starting module 83 is configured to start the second application.

[0165] The sending module 82 is further configured to send an application opening message, the application opening message comprising the device identifier, the application opening message being used to indicate that the second application is opened in the first application.

[0166] Optionally, the obtaining module 81 is further configured to obtain a target protocol in response to the selection operation on the target task, the target protocol being used to start the second application.

[0167] The starting module 82 is specifically configured to start the second application through the target protocol.

[0168] Optionally, as shown in Fig. 2, the task processing apparatus further comprises a receiving module 84. Figure 8

[0169] The receiving module 84 is configured to receive a feedback message, the feedback message being used to indicate that a mapping relationship between the device identifier and the task parameter is stored.

[0170] The starting module 83 is specifically configured to start the second application in response to the feedback message.

[0171] Optionally, the starting module 83 is specifically configured to:

[0172] if the second application is installed, start the second application;

[0173] if the second application is not installed, download and install the second application, and start the second application.

[0174] ​​Optionally, the task parameter comprises a task identifier and an account identifier, the task identifier is used to indicate the target task, and the account identifier is used to indicate a login account of the first application.

[0175] Optionally, the task parameter further comprises a current progress and a total progress of the target task.

[0176] Figure 9 Fig. 1 is a structural block diagram of a terminal device according to an exemplary embodiment, which can be a task processing apparatus, such as a smartphone, a tablet computer, a notebook computer or a desktop computer.

[0177] The task processing apparatus can comprise at least one processor 91, a communication bus 92, a memory 93 and at least one communication interface 94.

[0178] The processor 91 can be a central processing unit (CPU), a micro-processing unit, or one or more integrated circuits for controlling program execution of the present disclosure.

[0179] The communication bus 92 can comprise a path for transmitting information between the above-mentioned components.

[0180] The communication interface 94 can use any transceiver-like device for communicating with other devices or communication networks, such as a server, an Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.

[0181] The memory 93 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and that can be accessed by a computer, but not limited to. The memory can exist independently, connected to the processing unit through a bus. The memory can also be integrated with the processing unit.

[0182] The memory 93 is configured to store application codes for implementing the solutions of the present disclosure, and the processor 91 is configured to execute the application codes stored in the memory 93.

[0183] In specific implementations, as an example, the processor 91 can include one or more CPUs, such as the CPU0 and the CPU1 in FIG. 1. Figure 9

[0184] In specific implementations, as an example, the task processing apparatus can include multiple processors, such as the processor 91 and the processor 95 in FIG. 1. Each of the processors can be a single-CPU processor or a multi-CPU processor. The processor herein can refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions). Figure 9

[0185] In specific implementations, as an example, the task processing apparatus can further include an input device 96 and an output device 97. The input device 96 is in communication with the processor 91 and can accept user input in various ways. For example, the input device 96 can be a mouse, a keyboard, a touch screen device, a sensor device, or the like. The output device 97 is in communication with the processor 91 and can display information in various ways. For example, the output device 97 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, or the like.

[0186] Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation on the terminal device, and can include more or fewer components than those shown in the figure, or combine certain components, or adopt a different arrangement of components. Figure 9

[0187] Figure 10 FIG. 1 is a structural block diagram of a server according to an example embodiment, which can be a task processing apparatus. The server can have great differences due to different configurations or performances, and can include one or more processors 101 and one or more memories 102. The memory 102 stores at least one instruction, which is loaded and executed by the processor 101 to implement the task processing method provided by each of the above-mentioned method embodiments. Of course, the server can also have a wired or wireless network interface, a keyboard, and an input and output interface, etc., so as to perform input and output, and can include other components for implementing device functions, which are not described herein. ​​​

[0188] The present disclosure also provides a computer readable storage medium including instructions stored thereon, which, when executed by a processor of a computer, enable the computer to perform the task processing method provided by the above-mentioned embodiments. For example, the computer readable storage medium can be a memory 93 including instructions, which can be executed by the processor 91 of the terminal device to complete the above-mentioned method. For another example, the computer readable storage medium can be a memory 102 including instructions, which can be executed by the processor 101 of the server to complete the above-mentioned method. Alternatively, the computer readable storage medium can be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium can be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0189] The present disclosure also provides a computer program product including instructions, which, when run on a computer, enable the computer device to perform the task processing method provided by the above-mentioned embodiments.

[0190] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure following the general principles thereof and including such departures from the present disclosure that come within known

[0191] It should be understood that the present disclosure is not limited to the precise structures herein described and illustrated in the drawings, and that various modifications and changes can be made without departing from its scope. The scope of the present disclosure is limited only by the claims that follow.

Claims

1. A task processing method applied to a server, characterized in that, The method comprises: receiving a task message sent by a first application, the task message comprising a device identifier and task parameters of a target task, the target task being a task of opening a second application in the first application, the task parameters comprising a current progress and a total progress of the target task; storing a mapping relationship between the device identifier and the task parameters; if an application opening message sent by the second application is received, and task parameters corresponding to a device identifier included in the application opening message are obtained in the mapping relationship, and the current progress and the total progress included in the task parameters are the same, determining that the target task is completed, the application opening message being used to indicate that the second application is opened in the first application.

2. The task processing method according to claim 1, characterized by, The method further comprises: if the application opening message is received, and the task parameters corresponding to the device identifier included in the application opening message are obtained in the mapping relationship, and a task identifier included in the task parameters is used to indicate the target task, and an account identifier included in the task parameters is used to indicate a login account of the first application, determining that the target task is completed.

3. The task processing method according to claim 1 or 2, characterized by, The method further comprises: if the application opening message is received, and the task parameters corresponding to the device identifier included in the application opening message are not obtained in the mapping relationship, determining that the target task is not completed.

4. The task processing method of claim 1, wherein, The method further comprises: if the application opening message is received, and the task parameters corresponding to the device identifier included in the application opening message are obtained in the mapping relationship, and the current progress included in the task parameters is less than the total progress included in the task parameters, determining that the target task is not completed.

5. The task processing method according to claim 1 or 2, characterized by, The method further comprises: sending a feedback message, the feedback message being used to indicate that the mapping relationship has been stored, and the application opening message being sent in response to the feedback message.

6. A task processing method applied to a terminal device, comprising: The method comprises: in response to a selection operation on a target task, obtaining task parameters of the target task and a device identifier of a terminal device, the target task being a task of opening a second application in a first application, the task parameters comprising a current progress and a total progress of the target task; sending a task message through the first application, the task message comprising the device identifier and the task parameters; starting the second application, and sending an application opening message, the application opening message comprising the device identifier, the application opening message being used to indicate that the second application is opened in the first application, so that a server determines that the target task is completed in a case where the current progress and the total progress included in the task parameters are the same.

7. The task processing method according to claim 6, wherein The method further comprises: in response to the selection operation on the target task, obtaining a target protocol, the target protocol being used to start the second application; The starting of the second application comprises: starting the second application through the target protocol.

8. The task processing method according to claim 6 or 7, characterized by, After the sending of the task message, the method further comprises: receive a feedback message, the feedback message being used to indicate that the mapping relationship between the device identifier and the task parameter has been stored; the starting the second application comprises: starting the second application in response to the feedback message.

9. The task processing method according to claim 6 or 7, characterized by, the starting the second application comprises: if the second application is installed, starting the second application; if the second application is not installed, downloading and installing the second application, and starting the second application.

10. The task processing method according to claim 6 or 7, characterized by, the task parameter comprises a task identifier and an account identifier, the task identifier being used to indicate the target task, and the account identifier being used to indicate a login account of the first application.

11. A task processing apparatus applied to a server, characterized in that, comprise: a receiving module configured to receive a task message sent by a first application, the task message comprising a device identifier and a task parameter of a target task, the target task being a task of opening a second application in the first application, and the task parameter comprising a current progress and a total progress of the target task; a storing module configured to store a mapping relationship between the device identifier received by the receiving module and the task parameter; a determining module configured to determine that the target task is completed if an application opening message sent by the second application is received, and a task parameter corresponding to a device identifier included in the application opening message is acquired in the mapping relationship, and the current progress and the total progress included in the task parameter are the same, the application opening message being used to indicate that the second application is opened in the first application.

12. The task processing apparatus according to claim 11, wherein the determining module is specifically configured to: if the application opening message is received, and the task parameter corresponding to the device identifier included in the application opening message is acquired in the mapping relationship, and a task identifier included in the task parameter is used to indicate the target task, and an account identifier included in the task parameter is used to indicate a login account of the first application, it is determined that the target task is completed.

13. The task processing apparatus according to claim 11 or 12, wherein the determining module is further configured to determine that the target task is not completed if the application opening message is received, and the task parameter corresponding to the device identifier included in the application opening message is not acquired in the mapping relationship.

14. The task processing apparatus according to claim 11, wherein the determining module is further configured to determine that the target task is not completed if the application opening message is received, and the task parameter corresponding to the device identifier included in the application opening message is acquired in the mapping relationship, and the current progress included in the task parameter is less than the total progress included in the task parameter.

15. The task processing apparatus according to claim 11 or 12, characterized by the task processing apparatus further comprises a sending module; the sending module is configured to send a feedback message, the feedback message being used to indicate that the mapping relationship has been stored, and the application opening message is sent in response to the feedback message.

16. A task processing apparatus applied to a terminal device, characterized by comprising: comprise: An obtaining module configured to obtain a task parameter of a target task and a device identifier of a terminal device in response to a selection operation on the target task, the target task being a task of opening a second application in a first application, the task parameter including a current progress and a total progress of the target task; A sending module configured to send a task message through the first application, the task message including the device identifier and the task parameter obtained by the obtaining module; A starting module configured to start the second application; The sending module is further configured to send an application opening message through the second application, the application opening message including the device identifier, the application opening message being used to indicate that the second application is opened in the first application, so that the server determines that the target task is completed in a case where the current progress and the total progress included in the task parameter are the same.

17. The task processing apparatus of claim 16, wherein The obtaining module is further configured to obtain a target protocol in response to the selection operation on the target task, the target protocol being used to start the second application; The starting module is specifically configured to start the second application through the target protocol.

18. The task processing apparatus according to claim 16 or 17, characterized by The task processing apparatus further includes a receiving module; The receiving module is configured to receive a feedback message, the feedback message being used to indicate that a mapping relationship between the device identifier and the task parameter is stored; The starting module is specifically configured to start the second application in response to the feedback message.

19. The task processing apparatus according to claim 16 or 17, characterized by The starting module is specifically configured to: if the second application is installed, start the second application; if the second application is not installed, download and install the second application, and start the second application.

20. The task processing apparatus according to claim 16 or 17, characterized by The task parameter includes a task identifier and an account identifier, the task identifier being used to indicate the target task, and the account identifier being used to indicate a login account of the first application.

21. A server, characterized by comprise: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the task processing method of any one of claims 1-5.

22. A terminal device, comprising: comprise: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the task processing method of any one of claims 6-10.

23. A computer-readable storage medium having stored thereon instructions, the instructions comprising, When the instructions in the computer-readable storage medium are executed by the processor of the server, the server is enabled to perform the task processing method of any one of claims 1-5.

24. A computer-readable storage medium having stored thereon instructions, the instructions comprising, When the instructions in the computer-readable storage medium are executed by the processor of the terminal device, the terminal device is enabled to perform the task processing method of any one of claims 6-10.

25. A computer program product, characterised in that, The computer program product comprises instructions which, when executed on a server, cause the server to perform the task processing method of any one of claims 1-5; or, when executed on a terminal device, cause the terminal device to perform the task processing method of any one of claims 6-10.

Citation Information

Patent Citations

  • Application interaction method, interaction method and device

    CN108139952A

  • Resource data processing method, device, equipment and readable storage medium

    CN110430252A