Application prompt method, terminal device and readable storage medium

By obtaining and comparing the timestamp when a network request returns a prompt message, and outputting and storing the prompt message if it is less than the set time threshold, it solves the system crash and stuttering caused by frequent occurrence of prompt pop-up boxes, and improves the user experience.

CN118642808BActive Publication Date: 2024-11-05SHENZHEN SMARTCITY TECH DEV GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411096425.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-05
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

In the prior art, prompt pop-up boxes frequently cause system crashes and stuttering.

Method used

By obtaining the start timestamp and current timestamp in the cache pool when a network request returns a prompt message is detected, it determines whether the time difference is less than the set time threshold. If it is less than, check whether the prompt message exists for the cache pool. If it does not exist, check whether the prompt message exists for the cache pool. Then output and store it to avoid frequent output of the same prompt information.

Benefits of technology

It effectively avoids system crashes and stutters caused by frequent pop-up of prompt information, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642808B_ABST
    Figure CN118642808B_ABST
Patent Text Reader

Abstract

The present invention discloses a prompt method for an application, a terminal device and a readable storage medium, wherein the prompt method for an application comprises: when detecting that a current network request returns prompt information, obtaining the starting timestamp of the current network request in a cache pool and obtaining the current timestamp of the prompt information; determining the difference between the current timestamp and the starting timestamp; if the difference is less than or equal to a set time threshold of the current network request, determining whether the prompt information exists in the cache pool; if the prompt information does not exist in the cache pool, outputting the prompt information, storing the prompt information in the cache pool, and updating the current timestamp to the starting timestamp of the current network request in the cache pool, so as to avoid frequent output of the same prompt information, which may cause system crash and freeze.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an application prompting method, a terminal device and a readable storage medium. Background Art

[0002] A prompt pop-up box refers to a web component with a higher display level that gives prompts in web front-end development.

[0003] In existing software development, prompt pop-up boxes are a common user interaction method. When an error or exception occurs in a user operation, the system will display the corresponding error information to the user through a prompt pop-up box. However, when the error information is returned after calling the interface, users will click frequently, resulting in frequent pop-up prompt boxes, which can easily cause system crashes and freezes.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The present invention aims to solve the technical problem of system crash and freeze caused by frequent pop-up of prompt information by providing an application prompt method, terminal device and computer-readable storage medium.

[0006] To achieve the above object, an embodiment of the present invention provides a prompting method for an application program, and the prompting method for an application program includes the following steps:

[0007] When it is detected that the current network request returns prompt information, obtaining the start timestamp of the current network request in the cache pool and the current timestamp of the prompt information;

[0008] Determine the difference between the current timestamp and the start timestamp;

[0009] If the difference is less than or equal to the set time threshold of the current network request, determining whether the prompt information exists in the cache pool;

[0010] If the prompt information does not exist in the cache pool, the prompt information is output, the prompt information is stored in the cache pool, and the current timestamp is updated to the start timestamp of the current network request in the cache pool.

[0011] Optionally, if the difference is less than or equal to the set time threshold of the current network request, after the step of determining whether the cache pool has the prompt information, the method further includes:

[0012] If the prompt information exists in the cache pool, the current timestamp is updated to the start timestamp of the current network request in the cache pool.

[0013] Optionally, after the step of determining the difference between the current timestamp and the start timestamp, the step further includes:

[0014] If the difference is greater than the set time threshold of the current network request, output the prompt information;

[0015] Deleting the historical prompt information of the current network request in the cache pool;

[0016] Storing the prompt information in the cache pool;

[0017] The current time is updated to the start timestamp of the current network request in the cache pool.

[0018] Optionally, when it is detected that the current network request returns prompt information, before the step of obtaining the start timestamp of the current network request in the cache pool and the step of obtaining the current timestamp of the prompt information, the method further comprises:

[0019] Obtaining the data length of the prompt information returned by the current network request and the user reading speed corresponding to the prompt information;

[0020] Determine the display duration of the prompt information;

[0021] Determining the pre-display duration of the prompt information according to the data length and the user's reading speed;

[0022] The set time threshold is determined according to the pre-display duration and the display duration.

[0023] Optionally, the step of determining the setting time threshold according to the pre-display duration and the display duration includes:

[0024] If the pre-display duration is greater than the display duration, determining the pre-display duration as the set time threshold;

[0025] If the pre-display duration is shorter than the display duration, the display duration is determined as the set time threshold.

[0026] Optionally, the application prompt method further includes:

[0027] When detecting the prompt information returned by the current network request, obtaining the prompt information and the user's historical operations on the application;

[0028] Determining a correct execution order between the historical operations according to an operation guide of the application;

[0029] Determining the actual execution order of the historical operations according to the operation time of the historical operations;

[0030] If the actual execution order is different from the correct execution order, outputting the correct execution order;

[0031] If the actual execution order is the same as the correct execution order, a corresponding maintenance operation is performed according to the prompt information.

[0032] Optionally, the step of performing a corresponding maintenance operation according to the prompt information includes:

[0033] Identify the prompt information, and obtain the associated maintenance operation according to the identified content;

[0034] The maintenance operation is displayed on a corresponding page of the application, and the maintenance operation is performed after a preset time period.

[0035] Optionally, if the actual execution order is the same as the correct execution order, after the step of performing a corresponding maintenance operation according to the prompt information, the method further comprises:

[0036] The request address of the current network request and the prompt information are sent to a maintenance interface associated with the application.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a prompt program for an application stored in the memory and run on the processor, and when the prompt program for the application is executed by the processor, the steps of the prompt method for the application as described above are implemented.

[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a prompt program of an application is stored, and when the prompt program of the application is executed by a processor, the steps of the prompt method of the application as described above are implemented.

[0039] The present invention proposes an application prompt method, a terminal device and a computer-readable storage medium. When detecting that the current network request returns prompt information, the starting timestamp of the current network request and the current timestamp of the prompt information in the cache pool are obtained, and the difference between the current timestamp and the starting timestamp is determined. If the difference is less than or equal to the set time threshold of the current network request, it is determined whether there is prompt information in the cache pool. If there is no prompt information in the cache pool, the prompt information is output, the prompt information is stored in the cache pool, and the current timestamp is updated to the starting timestamp of the prompt information in the cache pool, so as to avoid frequent output of the same prompt information, which may cause system crashes and freezes. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1It is a flowchart of a first embodiment of a prompting method for an application program of the present invention;

[0041] Figure 2 A flowchart of a prompting method for an application of the present invention;

[0042] Figure 3 A schematic flow chart of a second embodiment of the method for prompting an application program of the present invention;

[0043] Figure 4 It is a flowchart of a third embodiment of the prompting method of an application program of the present invention;

[0044] Figure 5 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.

[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0046] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0047] In existing software development, prompt pop-up boxes are a common user interaction method. When an error or exception occurs in a user operation, the system will display the corresponding error information to the user through a prompt pop-up box. However, when the error information is returned after calling the interface, users will click frequently, resulting in frequent pop-up prompt boxes, which can easily cause system crashes and freezes.

[0048] In order to solve the above defects in the related art, the present invention proposes an application prompt method, and its main solution steps include the following:

[0049] When it is detected that the current network request returns prompt information, the start timestamp of the current network request and the current timestamp of the prompt information in the cache pool are obtained, and the difference between the current timestamp and the start timestamp is determined. If the difference is less than or equal to the set time threshold of the current network request, it is determined whether there is prompt information in the cache pool. If there is no prompt information in the cache pool, the prompt information is output, the prompt information is stored in the cache pool, and the current timestamp is updated to the start timestamp of the prompt information in the cache pool to avoid frequent output of the same prompt information, which may cause system crashes and freezes.

[0050] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0051] The present invention provides an application prompt method, which is applied to a terminal device. The terminal device can be any device that can be configured with an application, such as a mobile phone, a computer, etc. In the application, data is obtained, remote services are accessed, information is sent and received, etc. through network requests. When an error or anomaly occurs in the network request, an error prompt message is returned and output on a corresponding page, so that the user is informed of the error or anomaly in the network request and the possible cause.

[0052] Reference Figure 1 In a first embodiment of the application prompting method of the present invention, the application prompting method comprises the following steps:

[0053] Step S10: when it is detected that the current network request returns prompt information, obtaining the start timestamp of the current network request in the cache pool and the current timestamp of the prompt information;

[0054] In this embodiment, the cache pool is a pre-created cache file or cache library or cache table, which is used to store the prompt information returned each time a network request initiated in the application and the timestamp when the prompt information is returned.

[0055] Optionally, the prompt information corresponding to the field can be obtained by parsing the response data of the current network request and searching for the field corresponding to the prompt information. If the result is not empty, it is determined that the current network request returns the prompt information; if the result is empty, it is determined that the current network request returns the prompt information but is not detected.

[0056] Optionally, the receiving timestamp of the response data of the current network request may be used as the current timestamp of the prompt information.

[0057] Step S20: Determine the difference between the current timestamp and the start timestamp;

[0058] In this embodiment, the difference represents the time difference between the receipt of the prompt information of the current network request and the last receipt of the prompt information of the current network request. The difference between the current timestamp and the starting timestamp can be obtained by subtracting the starting timestamp from the current timestamp.

[0059] Step S30: If the difference is less than or equal to the set time threshold of the current network request, determine whether the prompt information exists in the cache pool;

[0060] In this embodiment, the present invention pre-sets the output of the prompt information of the current network request within a set time threshold. The prompt information can only be output once within the set time threshold. Therefore, when the difference between the current timestamp and the start timestamp of the prompt information is less than or equal to the set time threshold of the current network request, it is necessary to determine whether the prompt information exists in the buffer pool to further determine whether to output the prompt information of the current network request.

[0061] Optionally, after the step of determining the difference between the current timestamp and the starting timestamp, the step also includes: if the difference is greater than the set time threshold of the current network request, outputting a prompt message, deleting the historical prompt information of the current network request in the cache pool, storing the prompt information in the cache pool, and updating the current time to the starting timestamp of the prompt information in the cache pool.

[0062] In this embodiment, when the difference between the current timestamp and the starting timestamp of the prompt information is greater than the set time threshold, it indicates that the prompt information of the current network request has exceeded the set time threshold specified at the previous moment, and the judgment of the set time threshold at the next moment should be entered. The prompt information appears for the first time, and then the prompt information is output, all historical prompt information in the cache pool is deleted, and then the prompt information is stored in the cache pool, and the current timestamp of the prompt information is updated to the starting timestamp of the prompt information in the cache pool, so as to be used for the judgment of whether the prompt information at the next moment should be output.

[0063] Optionally, the set time threshold can be set by the developer according to different application scenarios and requirements of network requests. Or by simulating the user frequently triggering the initiation of the current network request, and recording the start timestamp of the first triggering of the current network request, until the application is delayed and stuck and the duration of the stuck exceeds the preset time, the timestamp when the application is stuck is determined, and the difference between the timestamp and the start timestamp is determined as the benchmark set time threshold, and then the set time threshold is set according to the benchmark set time threshold, and the set time threshold is greater than the benchmark set time threshold. For example, the set time threshold can be set to be 30ms greater than the benchmark set time threshold. Avoid users frequently triggering the current network request within the set time threshold, resulting in prompt messages popping up frequently, causing the system to crash and freeze, which brings an unfriendly experience to users.

[0064] Step S40: If the prompt information does not exist in the cache pool, output the prompt information, store the prompt information in the cache pool, and update the current timestamp to the start timestamp of the current network request in the cache pool.

[0065] In this embodiment, if there is no prompt information in the cache pool, it indicates that the prompt information has not been output within the set time threshold, so the prompt information is output and stored in the cache pool, so that when the prompt information returned by the current network request is detected next time, it is determined whether to output the prompt information. The present invention avoids the prompt information being output frequently at the same time, causing the system to crash and freeze, and bringing an unfriendly experience to users by setting the output of the prompt information of the current network request within the set time threshold.

[0066] Optionally, if there is prompt information in the cache pool, it indicates that the prompt information has been output within the set time threshold, and the prompt information is not output, so as to avoid prompt information being output frequently at the same time, causing system crashes and freezes, and bringing an unfriendly experience to users.

[0067] Optionally, if there is prompt information in the cache pool, the current timestamp needs to be updated to the starting timestamp of the prompt information in the cache pool, so as to determine whether to output the prompt information when it is detected next time that the current network request returns prompt information.

[0068] For example, refer to Figure 2 , Figure 2 The flowchart of the prompt method of the application of the present invention. First, when the prompt information returned by the current network request is detected, the starting timestamp of the current network request in the cache pool and the current timestamp of the prompt information are obtained, and then the difference between the current timestamp and the starting timestamp is determined; if the difference is less than or equal to the set time threshold of the current network request, it is further determined whether the prompt information exists in the cache pool. If the prompt information does not exist in the cache pool, the prompt information is output, the prompt information is stored in the cache pool, and the current timestamp is updated to the starting timestamp of the current network request in the cache pool; if the prompt information exists in the cache pool, the current timestamp is updated to the starting timestamp of the current network request in the cache pool. If the difference is greater than the set time threshold of the current network request, the prompt information is output, the historical prompt information of the current network request in the cache pool is deleted, the prompt information is stored in the cache pool, and the current time is updated to the starting timestamp of the current network request in the cache pool.

[0069] In the technical solution provided in this embodiment, when it is detected that the current network request returns prompt information, the starting timestamp of the current network request in the cache pool and the current timestamp of the prompt information are obtained, and the difference between the current timestamp and the starting timestamp is determined. If the difference is less than or equal to the set time threshold of the current network request, it is determined whether there is prompt information in the cache pool. If there is no prompt information in the cache pool, the prompt information is output, the prompt information is stored in the cache pool, and the current timestamp is updated to the starting timestamp of the prompt information in the cache pool to avoid frequent output of the same prompt information, which may cause system crashes and freezes.

[0070] Reference Figure 3 In the second embodiment, based on the first embodiment, before step S10, the steps include:

[0071] Step S50: obtaining the data length of the prompt information returned by the current network request and the user reading speed corresponding to the prompt information;

[0072] In this embodiment, the prompt information returned by the current network request can be obtained, and then the prompt information is byte parsed to determine the data length of the prompt information. The user reading speed is the average reading speed obtained by testing a large number of users in advance.

[0073] Step S60: Determine the display duration of the prompt information;

[0074] In this embodiment, the display duration of the prompt information returned by the current network request on the page can be obtained by obtaining the log generated by the application. It can be understood that after the prompt information is output on the page, the display of the prompt information is closed by the user, that is, when the user triggers the close mark of the prompt information, the display of the prompt information is closed, and the close mark can be a button, a link, etc. Therefore, the display duration of the prompt information can reflect the importance of the prompt information to the user.

[0075] Optionally, logs generated by applications corresponding to massive users can be collected to obtain display durations of prompt information returned by massive users to current network requests, and then the mode of the massive display durations can be determined, and the mode can be determined as the display duration of the prompt information.

[0076] Step S70: determining the pre-display duration of the prompt information according to the data length and the user's reading speed;

[0077] In this embodiment, the product obtained by multiplying the data length of the prompt information by the user's reading speed is determined as the pre-display duration of the prompt information.

[0078] Step S80: Determine the set time threshold according to the pre-display duration and the display duration.

[0079] In this embodiment, the pre-display duration represents the time required for the user to normally read the prompt information. The display duration is the time it takes the user to actually read the prompt information. The set time threshold can be determined based on the relationship between the pre-display duration and the display duration.

[0080] Optionally, if the pre-display duration is greater than the display duration, the pre-display duration is determined as a set time threshold; if the pre-display duration is less than the display duration, the display duration is determined as the set time threshold.

[0081] In this embodiment, if the pre-display duration is greater than the display duration, it indicates that the user will not read the prompt information completely or will read the prompt information quickly when reading the prompt information, indicating that the prompt information returned by the current network request is of low importance to the user, and the pre-display duration can be determined as the set time threshold. If the pre-display duration is less than the display duration, it indicates that the user will study the prompt information when reading the prompt information of the current network request, indicating that the prompt information returned by the current network request is of high importance to the user, and the display duration can be determined as the set time threshold. The set time threshold can be lengthened for prompt information with low importance to the user, and the set time threshold can be shortened for prompt information with high importance to the user, so that the set time threshold will not cause the user to be unable to obtain the prompt information again by triggering the current network request in a short time, resulting in the user being unable to obtain valuable prompt information in time.

[0082] Optionally, in another optional implementation, when outputting the prompt information, it can be determined whether the set time threshold is the display duration of the prompt information. If it is the display duration, the prompt information will be highlighted and output so that the user can clearly know the specific content of the prompt information.

[0083] In the technical solution provided in this embodiment, the display duration of the prompt information is determined by obtaining the data length of the prompt information returned by the current network request and the user reading speed corresponding to the prompt information. The pre-display duration of the prompt information is determined based on the data length and the user reading speed. The set time threshold is determined based on the pre-display duration and the display duration, so that the set time threshold will not cause the user to be unable to obtain the prompt information again by triggering the current network request within a short period of time, resulting in the user being unable to obtain valuable prompt information in a timely manner.

[0084] Reference Figure 4 Based on any of the above embodiments, the application prompt method further includes:

[0085] Step S100: when the prompt information returned by the current network request is detected, the prompt information and the user's historical operations on the application are obtained;

[0086] In this embodiment, the current timestamp of the prompt information may be obtained, and the range of the historical operations to be obtained may be determined according to the current timestamp.

[0087] Optionally, the hour part of the current timestamp may be obtained, and then the historical operations within the hour part may be obtained. For example, the current timestamp is 3:56:45:23ms, and the hour part is 3, so the historical operations within 3 o'clock may be obtained.

[0088] Step S200: determining the correct execution order of the historical operations according to the operation guide of the application;

[0089] Step S300: determining the actual execution order of the historical operations according to the operation time of the historical operations;

[0090] In this embodiment, the historical operations of the application and the operation time of the historical operations can be obtained through the log of the application.

[0091] Step S400: if the actual execution order is different from the correct execution order, output the correct execution order;

[0092] In this embodiment, if the actual execution sequence is different from the correct execution sequence, it indicates that the user has made an operation error, and the correct execution sequence can be output so that the user can re-operate according to the correct execution sequence to make the current network request successful.

[0093] Step S500: If the actual execution order is the same as the correct execution order, perform corresponding maintenance operations according to the prompt information.

[0094] In this embodiment, by identifying the prompt information, the associated maintenance operation is obtained according to the identified content, the maintenance operation is displayed on the corresponding page of the application, and the maintenance operation is executed after a preset period of time, so that the user is informed that the maintenance operation is about to be performed and the corresponding content is saved to avoid the loss of the corresponding content after the maintenance operation is performed.

[0095] Optionally, in another optional implementation, if the actual execution order is the same as the correct execution order, after the step of performing a corresponding maintenance operation according to the prompt information, the method further comprises:

[0096] The request address and prompt information of the current network request are sent to the maintenance interface associated with the application, so that the maintenance personnel can receive the request address and prompt information of the current network request through the maintenance interface, and then maintain the interface corresponding to the current network request according to the prompt information.

[0097] Reference Figure 5 , Figure 5 The figure is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.

[0098] like Figure 5As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), a mouse, etc., and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0099] Those skilled in the art will understand that Figure 5 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0100] like Figure 5 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a prompt program of an application program.

[0101] exist Figure 5 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the processor 1001 can be used to call the prompt program of the application stored in the memory 1005 and perform the following operations:

[0102] When it is detected that the current network request returns prompt information, obtaining the start timestamp of the current network request in the cache pool and the current timestamp of the prompt information;

[0103] Determine the difference between the current timestamp and the start timestamp;

[0104] If the difference is less than or equal to the set time threshold of the current network request, determining whether the prompt information exists in the cache pool;

[0105] If the prompt information does not exist in the cache pool, the prompt information is output, the prompt information is stored in the cache pool, and the current timestamp is updated to the start timestamp of the current network request in the cache pool.

[0106] Further, the processor 1001 may call a prompt program of an application stored in the memory 1005, and further perform the following operations:

[0107] If the prompt information exists in the cache pool, the current timestamp is updated to the start timestamp of the current network request in the cache pool.

[0108] Further, the processor 1001 may call a prompt program of an application stored in the memory 1005, and further perform the following operations:

[0109] If the difference is greater than the set time threshold of the current network request, output the prompt information;

[0110] Deleting the historical prompt information of the current network request in the cache pool;

[0111] Storing the prompt information in the cache pool;

[0112] The current time is updated to the start timestamp of the current network request in the cache pool.

[0113] Further, the processor 1001 may call a prompt program of an application stored in the memory 1005, and further perform the following operations:

[0114] Obtaining the data length of the prompt information returned by the current network request and the user reading speed corresponding to the prompt information;

[0115] Determine the display duration of the prompt information;

[0116] Determining the pre-display duration of the prompt information according to the data length and the user's reading speed;

[0117] The set time threshold is determined according to the pre-display duration and the display duration.

[0118] Further, the processor 1001 may call a prompt program of an application stored in the memory 1005, and further perform the following operations:

[0119] If the pre-display duration is greater than the display duration, determining the pre-display duration as the set time threshold;

[0120] If the pre-display duration is shorter than the display duration, the display duration is determined as the set time threshold.

[0121] Further, the processor 1001 may call a prompt program of an application stored in the memory 1005, and further perform the following operations:

[0122] When detecting the prompt information returned by the current network request, obtaining the prompt information and the user's historical operations on the application;

[0123] Determining a correct execution order between the historical operations according to an operation guide of the application;

[0124] Determining the actual execution order of the historical operations according to the operation time of the historical operations;

[0125] If the actual execution order is different from the correct execution order, outputting the correct execution order;

[0126] If the actual execution order is the same as the correct execution order, a corresponding maintenance operation is performed according to the prompt information.

[0127] Further, the processor 1001 may call a prompt program of an application stored in the memory 1005, and further perform the following operations:

[0128] Identify the prompt information, and obtain the associated maintenance operation according to the identified content;

[0129] The maintenance operation is displayed on a corresponding page of the application, and the maintenance operation is performed after a preset time period.

[0130] Further, the processor 1001 may call a prompt program of an application stored in the memory 1005, and further perform the following operations:

[0131] The request address of the current network request and the prompt information are sent to a maintenance interface associated with the application.

[0132] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a prompt program for an application stored in the memory and run on the processor, and when the prompt program for the application is executed by the processor, the steps of the prompt method for the application as described above are implemented.

[0133] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a prompt program of an application is stored, and when the prompt program of the application is executed by a processor, the steps of the prompt method of the application as described above are implemented.

[0134] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0135] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0136] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer) to execute the methods described in each embodiment of the present invention.

[0137] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for prompting an application, characterized in that: The application's prompting methods include: When it is detected that the current network request returns prompt information, obtaining the start timestamp of the current network request in the cache pool and the current timestamp of the prompt information; Determine the difference between the current timestamp and the start timestamp; If the difference is greater than the set time threshold of the current network request, output the prompt information; Deleting the historical prompt information of the current network request in the cache pool; Storing the prompt information in the cache pool; Update the current timestamp to the start timestamp of the current network request in the cache pool; If the difference is less than or equal to the set time threshold of the current network request, determining whether the prompt information exists in the cache pool; If the prompt information exists in the cache pool, updating the current timestamp to the start timestamp of the current network request in the cache pool; If the prompt information does not exist in the cache pool, the prompt information is output, the prompt information is stored in the cache pool, and the current timestamp is updated to the start timestamp of the current network request in the cache pool.

2. The method according to claim 1, characterized in that Before the step of obtaining the start timestamp of the current network request in the cache pool and the current timestamp of the prompt information when detecting that the current network request returns prompt information, the method includes: Obtaining the data length of the prompt information returned by the current network request and the user reading speed corresponding to the prompt information; Determine the display duration of the prompt information; Determining the pre-display duration of the prompt information according to the data length and the user's reading speed; The set time threshold is determined according to the pre-display duration and the display duration.

3. The method according to claim 2, characterized in that The step of determining the set time threshold according to the pre-display duration and the display duration includes: If the pre-display duration is greater than the display duration, determining the pre-display duration as the set time threshold; If the pre-display duration is shorter than the display duration, the display duration is determined as the set time threshold.

4. The method according to claim 1, characterized in that The application prompt method further includes: When detecting the prompt information returned by the current network request, obtaining the prompt information and the user's historical operations on the application; Determining a correct execution order between the historical operations according to an operation guide of the application; Determining the actual execution order of the historical operations according to the operation time of the historical operations; If the actual execution order is different from the correct execution order, outputting the correct execution order; If the actual execution order is the same as the correct execution order, a corresponding maintenance operation is performed according to the prompt information.

5. The method according to claim 4, characterized in that The step of performing a corresponding maintenance operation according to the prompt information includes: Identify the prompt information, and obtain the associated maintenance operation according to the identified content; The maintenance operation is displayed on a corresponding page of the application, and the maintenance operation is performed after a preset time period.

6. The method according to claim 4, characterized in that If the actual execution sequence is the same as the correct execution sequence, after the step of performing the corresponding maintenance operation according to the prompt information, the method includes: The request address of the current network request and the prompt information are sent to a maintenance interface associated with the application.

7. A terminal device, characterized in that: The terminal device comprises: a memory, a processor, and a prompt program of the terminal device stored in the memory and executable on the processor. When the prompt program of the terminal device is executed by the processor, the steps of the prompt method of the application program as described in any one of claims 1 to 6 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a prompt program of a terminal device, and when the prompt program of the terminal device is executed by a processor, the steps of the prompt method of the application program according to any one of claims 1 to 6 are implemented.