CN113094131A - Prompt resource display method, device, terminal, server and storage medium - Google Patents

Prompt resource display method, device, terminal, server and storage medium Download PDF

Info

Publication number
CN113094131A
CN113094131A CN202110352775.5A CN202110352775A CN113094131A CN 113094131 A CN113094131 A CN 113094131A CN 202110352775 A CN202110352775 A CN 202110352775A CN 113094131 A CN113094131 A CN 113094131A
Authority
CN
China
Prior art keywords
resource
prompt
server
prompt resource
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110352775.5A
Other languages
Chinese (zh)
Inventor
任志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110352775.5A priority Critical patent/CN113094131A/en
Publication of CN113094131A publication Critical patent/CN113094131A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/453Help systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The disclosure relates to a display method, a display device, a terminal, a server and a storage medium of prompt resources, and relates to the technical field of internet, wherein the method comprises the following steps: under the condition that the long connection communication is established between the target application and the server, acquiring data of a first prompt resource from the server; determining that the first prompt resource corresponds to a first service function in the target application, and the acquired data has data of the target prompt resource; and displaying the target prompt resource. According to the method and the device, the technical problem that the prompt resource to be displayed at the terminal is delayed to update is solved, and particularly whether the prompt resource to be displayed exists cannot be determined accurately and reasonably, so that the prompt resource to be displayed can be determined accurately and reasonably.

Description

Prompt resource display method, device, terminal, server and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method, an apparatus, a terminal, a server, and a storage medium for displaying a prompt resource.
Background
Currently, the terminal may periodically query the server for the prompt resource to be displayed. Specifically, the terminal sends a prompt resource acquisition request to the server, that is, requests to acquire a prompt resource corresponding to a certain application, and after receiving the prompt resource acquisition request message, the server returns a prompt resource of a preset size to the terminal under the condition that it is determined that the prompt resource of the preset size needs to be displayed.
However, the prompt resource displayed by the terminal in a certain time interval may not be in accordance with the actual situation. For example, the terminal does not receive the prompt resource sent by the terminal at the first time (i.e., the terminal does not need to display the prompt resource), and the server already determines that the prompt resource with the preset size needs to be displayed by the terminal at the second time (i.e., a certain time after the first time), because the terminal does not send the prompt resource acquisition request to the server at the second time, the terminal still uses the query result at the first time as a reference for whether the prompt resource is displayed, i.e., the terminal does not display the prompt resource at the second time, thus possibly causing a delay in updating the prompt resource, i.e., failing to accurately and reasonably determine whether the prompt resource needs to be displayed, and further affecting the efficiency of the user for acquiring the related data.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a terminal, a server, and a storage medium for displaying a prompt resource, which solve the technical problem that updating of the prompt resource to be displayed at the terminal is delayed, and specifically, whether the prompt resource to be displayed exists cannot be accurately and reasonably determined.
The technical scheme of the embodiment of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for displaying a prompt resource is provided. The method can comprise the following steps: under the condition that long connection communication is established between a target application and a server, acquiring data of a first prompt resource from the server, wherein the data of the first prompt resource is sent under the condition that the server determines that a newly added first prompt resource exists; determining that the first prompt resource corresponds to a first service function in the target application, and the acquired data contains data of the target prompt resource, wherein the target prompt resource is the first prompt resource which is not stored in the terminal; and displaying the target prompt resource.
Optionally, the method for displaying the prompt resource further includes: acquiring configuration information of prompt resources corresponding to each service function in the target application; analyzing each acquired configuration information to determine a numerical range corresponding to each service function; the determining that the first prompt resource corresponds to the first service function in the target application specifically includes: determining that the value of the first prompt resource is located in the value range corresponding to the first service function; and determining that the first prompt resource corresponds to a first service function in the target application.
Optionally, the obtaining configuration information of the prompt resource corresponding to each service function in the target application specifically includes: sending a configuration information acquisition request to the server under the condition that long connection communication is established between the target application and the server, wherein the configuration information acquisition request is used for requesting to acquire configuration information of a prompt resource corresponding to each service function in the target application; and receiving configuration information of the prompt resource corresponding to each service function from the server.
Optionally, the obtained data includes a total amount of the first prompt resource, and the data with the target prompt resource in the obtained data specifically includes: determining that the total number of the first prompt resources is greater than the number of the stored and displayed first prompt resources; determining that data exists for the target hint resource.
Optionally, the number of the target prompt resources is multiple, and the displaying the target prompt resources specifically includes: when the resource processing mode corresponding to the first service function is determined to be aggregation processing, aggregating a plurality of target prompt resources received within a preset time length, and displaying the aggregated target prompt resources; and when the resource processing mode corresponding to the first service function is determined to be discrete processing, displaying each target prompt resource respectively.
Optionally, the method for displaying the prompt resource further includes: and if the numerical value of the first prompt resource is positioned outside the numerical value range corresponding to each business function, deleting the data of the first prompt resource or setting the data of the first prompt resource as invalid.
Optionally, the method for displaying the prompt resource further includes: monitoring a long connection communication state with the server; when the long connection communication state is changed from disconnection to reconnection, sending a prompt resource acquisition request to the server, wherein the prompt resource acquisition request is used for requesting to acquire data of prompt resources corresponding to each service function in the target application; and receiving the data of the prompt resource corresponding to each service function sent by the server.
According to a second aspect of the embodiments of the present disclosure, a method for displaying a prompt resource is provided. The method can comprise the following steps: determining that a newly added first prompt resource exists under the condition that the long connection communication is established between the target application and the server; and sending the data of the first prompt resource to the terminal.
Optionally, the method for displaying the prompt resource may further include receiving a configuration information acquisition request sent by the terminal, where the configuration information acquisition request is used to request to acquire configuration information of the prompt resource corresponding to each service function in the target application; and sending the configuration information of the prompt resource corresponding to each service function to the terminal.
Optionally, the method for displaying the prompt resource may further include receiving a prompt resource acquisition request sent by the terminal, where the prompt resource acquisition request is used to request to acquire data of the prompt resource corresponding to each service function in the target application;
and sending the data of the prompt resource corresponding to each service function to the terminal.
According to a third aspect of the embodiments of the present disclosure, a display device for prompting a resource is provided. The apparatus may include: the device comprises an acquisition module, a determination module and a display module; the acquisition module is configured to acquire data of a first prompt resource from a server under the condition that long connection communication is established between a target application and the server, wherein the data of the first prompt resource is sent under the condition that the server determines that a newly added first prompt resource exists; the determining module is configured to determine that the first prompt resource corresponds to a first service function in the target application, and data of a target prompt resource exists in the acquired data, where the target prompt resource is the first prompt resource that is not stored in the terminal; the display module is configured to display the target prompt resource.
Optionally, the apparatus further comprises a parsing module; the acquisition module is also configured to acquire configuration information of a prompt resource corresponding to each service function in the target application; the analysis module is configured to analyze each acquired configuration information to determine a numerical range corresponding to each service function; the determining module is specifically configured to determine that the numerical value of the first prompt resource is located in a numerical range corresponding to the first service function; the determining module is specifically further configured to determine that the first prompt resource corresponds to a first service function in the target application.
Optionally, the apparatus further comprises a sending module and a receiving module; the sending module is configured to send a configuration information acquisition request to the server under the condition that long connection communication is established between the target application and the server, wherein the configuration information acquisition request is used for requesting to acquire configuration information of a prompt resource corresponding to each service function in the target application; the receiving module is configured to receive configuration information of the prompt resource corresponding to each service function from the server.
Optionally, the obtained data includes a total amount of the first prompt resource; the determining module is specifically configured to determine that the total number of the first prompt resources is greater than the number of the stored and displayed first prompt resources; the determining module is further specifically configured to determine that data of the target prompt resource exists.
Optionally, the number of the target prompt resources is multiple; the display module is specifically configured to aggregate a plurality of target prompt resources received within a preset time length and display the aggregated target prompt resources when it is determined that the resource processing mode corresponding to the first service function is aggregation processing; the display module is specifically configured to display each target prompt resource when it is determined that the resource processing mode corresponding to the first service function is discrete processing.
Optionally, the determining module is further configured to delete the data of the first prompt resource or set the data of the first prompt resource as invalid if the numerical value of the first prompt resource is outside the numerical value range corresponding to each service function.
Optionally, the apparatus further comprises a monitoring module configured to monitor a long connection communication status with the server; the sending module is configured to send a prompt resource acquisition request to the server when the long connection communication state is changed from disconnection to reconnection, wherein the prompt resource acquisition request is used for requesting to acquire data of a prompt resource corresponding to each service function in the target application; the receiving module is configured to receive the data of the prompt resource corresponding to each service function sent by the server.
According to a fourth aspect of the embodiments of the present disclosure, a display device for prompting a resource is provided. The apparatus may include: a determining module and a sending module; the determining module is configured to determine that a newly added first prompt resource exists under the condition that the long connection communication between the target application and the server is determined to be established; the sending module is configured to send the data of the first prompt resource to the terminal.
Optionally, the apparatus further comprises a receiving module; the receiving module is configured to receive a configuration information acquisition request sent by the terminal, where the configuration information acquisition request is used to request to acquire configuration information of a prompt resource corresponding to each service function in the target application; the sending module is further configured to send configuration information of the prompt resource corresponding to each service function to the terminal.
Optionally, the receiving module is configured to receive a prompt resource acquisition request sent by the terminal, where the prompt resource acquisition request is used to request to acquire data of a prompt resource corresponding to each service function in the target application; the sending module is further configured to send data of the prompt resource corresponding to each service function to the terminal.
According to a fifth aspect of embodiments of the present disclosure, there is provided a terminal, which may include: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any one of the above-described first aspect of the display method for optionally prompting a resource.
According to a sixth aspect of embodiments of the present disclosure, there is provided a server, which may include: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any one of the above-mentioned display methods of the second aspect for optionally prompting a resource.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which instructions are stored, and when the instructions in the computer-readable storage medium are executed by a display device for prompting a resource, the display device for prompting the resource is enabled to execute any one of the display methods for optionally prompting the resource in the first aspect or any one of the display methods for optionally prompting the resource in the second aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer program product, which comprises computer instructions, when the computer instructions are run on a display device prompting a resource, cause the display device prompting the resource to execute the display method of any one of the first aspect optionally prompting the resource, or execute the display method of any one of the second aspect optionally prompting the resource.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
based on any one of the above aspects, in the present disclosure, in a case where a terminal (specifically, a target application) has established long connection communication with a server, the terminal may acquire data of a first prompt resource sent by the server; then, when the first prompt resource is determined to be the prompt resource under the first service function in the target application and the data of the first prompt resource comprises the data of the target prompt resource which is not stored by the terminal, the target prompt resource is displayed. In the embodiment of the disclosure, the terminal does not need to actively request the server for obtaining the prompt resource to be displayed, but when the server determines that the newly added prompt resource (i.e., the first prompt resource) exists, the data of the first prompt resource is actively issued to the terminal, and the terminal determines and displays the part (i.e., the target prompt resource) of the first prompt resource which is not stored in the terminal, so that the prompt resource to be displayed can be accurately and reasonably determined, the prompt resource to be displayed in the terminal and the prompt resource to be displayed in the server are consistent, and the update efficiency of the prompt resource is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram illustrating a display system for a hint resource provided by an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method for displaying a hint resource provided by an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating a page included in an application provided by an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a method for displaying a hint resource provided by an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating a method for displaying a hint resource provided by an embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating a method for displaying a hint resource provided by an embodiment of the present disclosure;
FIG. 7 is a flowchart illustrating a method for displaying a hint resource provided by an embodiment of the present disclosure;
FIG. 8 is a flowchart illustrating a method for displaying a hint resource provided by an embodiment of the present disclosure;
FIG. 9 is a flowchart illustrating a method for displaying a hint resource provided by an embodiment of the present disclosure;
FIG. 10 is a flowchart illustrating a method for displaying a hint resource provided by an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram illustrating a display device for prompting a resource according to an embodiment of the present disclosure;
FIG. 12 is a schematic structural diagram of a display device for prompting resources according to an embodiment of the present disclosure;
fig. 13 is a schematic structural diagram illustrating a display device for prompting a resource according to an embodiment of the present disclosure;
fig. 14 is a schematic structural diagram illustrating a display device for prompting a resource according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, and/or components.
The data to which the present disclosure relates may be data that is authorized by a user or sufficiently authorized by parties.
As described in the background art, in the prior art, a prompt resource displayed by a terminal may not conform to an actual situation (that is, a prompt resource to be displayed in a server), specifically, an update delay of the prompt resource at the terminal is delayed, and the terminal cannot accurately and reasonably determine whether the prompt resource to be displayed exists, which affects efficiency of a user in acquiring related data, specifically, data of the prompt resource.
Based on this, the embodiment of the present disclosure provides a method for displaying a prompt resource, where a terminal (specifically, a target application) may acquire data of a first prompt resource sent by a server when the terminal has established long connection communication with the server; then, when the first prompt resource is determined to be the prompt resource under the first service function in the target application and the data of the first prompt resource comprises the data of the target prompt resource which is not stored by the terminal, the target prompt resource is displayed. In the embodiment of the disclosure, the terminal does not need to actively request the server for obtaining the prompt resource to be displayed, but when the server determines that the newly added prompt resource (i.e., the first prompt resource) exists, the data of the first prompt resource is actively issued to the terminal, and the terminal determines and displays the part (i.e., the target prompt resource) of the first prompt resource which is not stored in the terminal, so that the prompt resource to be displayed can be accurately and reasonably determined, the prompt resource to be displayed in the terminal and the prompt resource to be displayed in the server are consistent, and the update efficiency of the prompt resource is improved.
The method, the device, the terminal, the server and the storage medium for displaying the prompt resource provided by the embodiment of the disclosure are applied to a scene that the terminal displays the prompt resource. When the server determines that the newly added prompt resource exists, the newly added prompt resource can be displayed according to the method provided by the embodiment of the disclosure.
The following describes an exemplary display method of a prompt resource provided by the embodiments of the present disclosure with reference to the accompanying drawings:
fig. 1 is a schematic view of a display system for prompting resources according to an embodiment of the present disclosure, as shown in fig. 1, the display system for prompting resources may include a terminal 101 and a server 102, and the terminal 101 may establish a connection with the server 102 through a wired network or a wireless network.
The terminal 101 may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR), a Virtual Reality (VR) device, and other devices that can install and use a content community application (e.g., a fast hand), and the specific form of the terminal 101 is not particularly limited in this disclosure. The system can be used for man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment and the like.
Specifically, the terminal 101 may obtain data of a first prompt resource from the server 102 when it is determined that the long connection communication has been established between the target application and the server 102, and display the target prompt resource when it is determined that the first prompt resource corresponds to the first service function in the target application and the obtained data includes data of the target prompt resource.
As shown in fig. 2, when the method for displaying the cued resource is applied to the terminal 101, the method for displaying the cued resource may include S101 to S103.
S101, under the condition that long connection communication is established between the target application and the server, the terminal acquires data of a first prompt resource from the server.
And the data of the first prompt resource is sent when the server determines that the first prompt resource is newly added.
It should be understood that the terminal may monitor the data of the prompt resource from the server to obtain the data of the first prompt resource.
Specifically, the terminal may send a long connection establishment request message to the server, where the long connection establishment request message includes an identifier of the target application, and is used to request establishment of long connection communication with the server; and, the terminal may receive the long connection setup response message sent by the server, i.e., notify the terminal that the long connection communication has been successfully established, so that the terminal may determine that the terminal (specifically, the application) and the server have established the long connection communication.
Optionally, the establishing process of the long connection communication may be completed based on a java socket, or may be completed by adopting an open source framework such as mina, netty, and the like.
It is understood that the server may send the data of the first prompt resource to the terminal if it is determined that the newly added first prompt resource exists, so that the terminal may receive (i.e., acquire) the data of the first prompt resource.
S102, the terminal determines that the first prompt resource corresponds to a first service function in the target application, and the target prompt resource exists in the acquired data.
The target prompt resource is the first prompt resource which is not stored in the terminal.
It should be understood that the target application may include a plurality of service functions, one service function may correspond to a plurality of prompt resources, and the correspondence between the first prompt resource and the first service function in the target application indicates that the first prompt resource is a prompt resource under the first service function. The existence of the target prompt resource in the acquired data indicates that the acquired data contains data which is not stored (or not stored) in the terminal.
S103, displaying the target prompt resource by the terminal.
With reference to the description of the foregoing embodiment, it should be understood that when it is determined that the first prompt resource is a prompt resource under the first service function, and when data that is not stored in the terminal exists in the acquired data, it may be determined that the target prompt resource is displayed.
In an implementation manner, the one service function may be a page in the target application, and one page may include a plurality of elements, one element corresponds to one hint resource, and the element is used to represent a specific position where the hint resource is displayed in the page.
Optionally, the terminal may display a specific number of the target prompt resource in an element (hereinafter referred to as a target element) corresponding to the target prompt resource on a page (hereinafter referred to as a first page) corresponding to the first service function; the terminal can also display a red dot (hereinafter referred to as a red dot) in the target element on the first page; the specific number of target alert resources and the red dot can alert the user to the presence of data for target alert resources that are not displayed (or unread).
Exemplarily, fig. 3 is a schematic diagram of a first page provided by the embodiment of the present disclosure, as shown in fig. 3, the first page (specifically, a dotted line portion in fig. 3) includes 7 elements, namely, an avatar, a user nickname, a user ID, a dynamic state, a message, a private letter, and an attention. And a dot is arranged on the 'message' element in the first page, the dot is the red dot, and the prompt resource corresponding to the 'message' element is the target prompt resource.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as known from S101 to S104, in the case that the terminal (specifically, the target application) has established long connection communication with the server, the terminal may obtain data of the first prompt resource sent by the server; then, when the first prompt resource is determined to be the prompt resource under the first service function in the target application and the data of the first prompt resource comprises the data of the target prompt resource which is not stored by the terminal, the target prompt resource is displayed. In the embodiment of the disclosure, the terminal does not need to actively request the server for obtaining the prompt resource to be displayed, but when the server determines that the newly added prompt resource (i.e., the first prompt resource) exists, the data of the first prompt resource is actively issued to the terminal, and the terminal determines and displays the part (i.e., the target prompt resource) of the first prompt resource which is not stored in the terminal, so that the prompt resource to be displayed can be accurately and reasonably determined, the prompt resource to be displayed in the terminal and the prompt resource to be displayed in the server are consistent, and the update efficiency of the prompt resource is improved.
With reference to fig. 2, as shown in fig. 4, the method for displaying a prompt resource provided by the embodiment of the present disclosure may further include S104-S105.
S104, the terminal obtains configuration information of the prompt resource corresponding to each service function in the target application.
It should be noted that, the terminal may obtain the configuration information of the prompt resource corresponding to each service function before the long connection communication is established with the server, or may obtain the configuration information of the prompt resource corresponding to each service function after the long connection communication is determined to have been established with the server, which is not limited in this disclosure. For convenience of explanation, S104 in fig. 3 is exemplified after S101 described above (i.e., after the terminal establishes long-connection communication with the server).
And S105, the terminal analyzes each acquired configuration information to determine a numerical range corresponding to each service function.
It should be understood that each kind of configuration information is configuration information of the prompt resource corresponding to each service function in the target application. In one implementation, the terminal may parse each type of configuration information into a value range corresponding to each service function based on a range data structure provided in an open source java library (e.g., Guava).
As shown in fig. 4, in an implementation manner of the embodiment of the present disclosure, the determining that the first prompt resource corresponds to the first service function in the target application specifically may include: S1021-S1022.
S1021, the terminal determines that the numerical value of the first prompt resource is located in the numerical value range corresponding to the first service function.
It should be understood that the data of the first prompt resource includes a numerical value of the first prompt resource, and after the terminal acquires the data of the first prompt resource, it may be determined whether the numerical value of the first prompt resource is located in a numerical range corresponding to the first service function.
Illustratively, assuming that the value of the first prompt resource is 50 and the value range corresponding to the first service function is [0,99], the terminal determines that the value of the first prompt resource is in the value range corresponding to the first function.
S1022, the terminal determines that the first prompt resource corresponds to the first service function in the target application.
It is understood that in the case that it is determined that the value of the first prompt resource is located in the value range corresponding to the first service function, the terminal may determine that the first prompt resource corresponds to the first service function.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as known from S104 to S105 and S1021 to S1022, the terminal may obtain and analyze configuration information of the prompt resource corresponding to each service function in the target application, so as to determine a numerical range corresponding to each service function; the terminal may determine whether the value of the first prompt resource is in the value range corresponding to the first service function, and determine that the first prompt resource corresponds to the first service function when determining that the value of the first prompt resource is in the value range corresponding to the first service function. In the embodiment of the disclosure, the terminal may determine whether the first prompt resource corresponds to the first service function by determining whether the value of the first prompt resource is in a numerical range corresponding to the first service function, so as to accurately and reasonably determine the prompt resource corresponding to the target application (specifically, one service function in the target application, for example, the first service function), and improve accuracy of resource display.
With reference to fig. 4 and as shown in fig. 5, in an implementation manner of the embodiment of the present disclosure, the obtaining configuration information of a prompt resource corresponding to each service function in a target application specifically includes S1041-S1042.
S1041, under the condition that the long connection communication is established between the target application and the server, the terminal sends a configuration information acquisition request to the server.
The configuration information acquisition request is used for requesting to acquire configuration information of prompt resources corresponding to each service function in the target application.
Specifically, the configuration information obtaining request may include an identifier of the target application, and when the server receives the configuration information obtaining request, the server may determine, based on the identifier of the target application, configuration information of a prompt resource corresponding to each service function in the target application, and send the configuration information of the prompt resource corresponding to each service function to the terminal.
Alternatively, the configuration information obtaining request may be a hypertext transfer protocol (HTTP) request message.
S1042, the terminal receives configuration information of the prompt resource corresponding to each service function from the server.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as known from S1041-S1042, in the case that long connection communication has been established between the target application and the server, the terminal may send a configuration information acquisition request to the server, that is, request to acquire configuration information of a prompt resource corresponding to each service function in the target application, and receive, from the server, configuration information of a prompt resource corresponding to each service function in the target application. In the embodiment of the disclosure, the terminal may receive configuration information of the prompt resource corresponding to each service function in the target application, which is sent by the server, so that the acquisition efficiency of the configuration information can be improved, and it can be further determined more quickly whether the first prompt resource corresponds to the first service function.
With reference to fig. 2, as shown in fig. 6, in an implementation manner of the embodiment of the present disclosure, the acquiring data includes data of a target prompt resource, which specifically includes S1023 to S1024.
And S1023, the terminal determines that the total quantity of the first prompting resources is larger than the quantity of the stored and displayed first prompting resources.
It can be understood that the obtained data is data of a first prompt resource received by the terminal from the server, where the obtained data may include the total amount of the first prompt resource, that is, the total amount of the first prompt resource sent by the server to the terminal at present; the terminal stores the number of the stored and displayed first prompting resources, and the number of the stored and displayed first prompting resources can be understood as the number of the first prompting resources which have been read by the user.
In one case, when the terminal determines that the total amount of the first prompt resources is greater than the amount of the stored and displayed first prompt resources, it is indicated that the total amount of the first prompt resources acquired by the terminal is greater than the amount of the first prompt resources that have been read by the user, that is, the first prompt resources that are not read by the user (or that the terminal does not store and is shown) exist, that is, the target prompt resources are present, so that the terminal can determine that the data of the target prompt resources exist.
In another case, when the terminal determines that the total amount of the first prompt resources is less than or equal to the amount of the stored and displayed first prompt resources, it indicates that there is no data of the target prompt resource in the acquired data, and the terminal does not need to display the target prompt resource.
And S1024, the terminal determines that the data of the target prompt resource exists.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as seen from S1023 to S1024, the terminal may determine whether the total amount of the first prompting resource is greater than the amount of the first prompting resource that is already stored and displayed by the terminal, and determine that the data of the target prompting resource exists in the acquired data when the total amount of the first prompting resource is greater than the amount of the first prompting resource that is already stored and displayed by the terminal. In the embodiment of the disclosure, the terminal may determine whether the data of the target prompt resource exists in the acquired data (that is, the data of the first prompt resource) through the total amount of the first prompt resource included in the first prompt resource and the amount of the first prompt resource which has been stored and displayed in the terminal, and may conveniently and quickly determine whether the data of the target prompt resource exists in the data of the first prompt resource, so as to improve the accuracy of resource display.
With reference to fig. 2, as shown in fig. 7, in an implementation manner of the embodiment of the present disclosure, the number of the target prompt resources is multiple, and the display target prompt resources specifically include S1031 to S1032.
And S1031, when the resource processing mode corresponding to the first service function is determined to be aggregation processing, the terminal aggregates the multiple target prompt resources received within the preset time length and displays the aggregated target prompt resources.
Specifically, the resource processing mode corresponding to the first service function includes aggregation processing and discrete processing, where the aggregation processing may be understood as processing a plurality of target prompt resources together, and the discrete processing is processing a plurality of target prompt resources respectively.
It should be understood that the plurality of target prompt resources received within the preset time duration may be understood as at least two target prompt resources received within the preset time duration, and displaying the aggregated target prompt resources is to uniformly (or once) display the at least two target prompt resources.
Optionally, when it is determined that the resource processing manner corresponding to the first service function is aggregation processing and the terminal receives other prompt resources to be displayed corresponding to the first service within the preset time period, the terminal may further aggregate the multiple target prompt resources with the other prompt resources and display the aggregated prompt resources.
S1032, when the resource processing mode corresponding to the first service function is determined to be discrete processing, the terminal respectively displays each target prompt resource.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from S1031 to S1032, when it is determined that the resource processing manner corresponding to the first service function is aggregation processing, the terminal may aggregate a plurality of target prompt resources received within a preset time period, and display the aggregated target prompt resources; and when the resource processing mode is determined to be discrete processing, displaying each target prompt resource respectively. In the embodiment of the disclosure, the terminal may determine to display the aggregated target prompt resources or respectively display each target prompt resource by determining the resource processing mode corresponding to the first service function, so that the resource processing effectiveness can be improved, and the diversified prompt resource display requirements of the user can be met.
Optionally, the method for displaying the prompt resource provided by the embodiment of the present disclosure may further include step a.
And step A, if the numerical value of the first prompt resource is outside the numerical value range corresponding to each service function, the terminal deletes the data of the first prompt resource or sets the data of the first prompt resource as invalid.
In connection with the above description of the embodiments, it should be understood that the target service includes a plurality of service functions, one service function corresponding to one numerical range. When the value of the first prompt resource is located outside the value range corresponding to each of the plurality of service functions, it is indicated that the first prompt resource is not a prompt resource belonging to the target service or does not correspond to any of the plurality of service functions, so that the terminal may delete the data of the first prompt resource or set the data of the first prompt resource as invalid.
It can be understood that the data of the first prompt resource is set to be invalid, that is, an invalid identifier is added to the data of the first prompt resource, and the invalid identifier may represent that the data of the first prompt resource is invalid data, and may discard the data of the first prompt resource.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: step a shows that, if the value of the first prompt resource is outside the value range corresponding to each service function, it indicates that the first prompt resource does not belong to the target service, specifically does not correspond to any service function corresponding to the target service, so that the terminal may delete the data of the first prompt resource or set the data of the first prompt resource as invalid, which may prompt the efficiency of data processing, and may further improve the display efficiency of the target prompt resource.
With reference to fig. 2, as shown in fig. 8, the method for displaying a prompt resource provided by the embodiment of the present disclosure may further include S106-S108.
And S106, monitoring the long connection communication state between the terminal and the server.
It should be understood that this S106 is performed after the terminal determines that long connection communication has been established with the server.
For convenience of description, in fig. 8, S106 is taken as an example after S103, that is, the long connection communication state with the server is monitored after the terminal displays the target prompt resource.
S107, when the long connection communication state is changed from disconnection to reconnection, the terminal sends a prompting resource acquisition request to the server.
The prompt resource acquisition request is used for requesting to acquire data of prompt resources corresponding to each service function in the target application.
It will be appreciated that the alert resource request message may include an identification of the target application. The reconnection is at least 2 nd long connection communication between the terminal and the server, that is, the process of establishing the long connection communication between the terminal and the server for the first time, which is not described in S101 above. When the long connection communication state is disconnected, the server can still send the data of the prompt resource, but the terminal cannot receive the data of the prompt resource. In order to ensure the consistency of data, when the connection state between the terminal and the server is changed from disconnection to reconnection, the terminal sends the prompt resource acquisition request to the server, that is, acquires all the prompt resource data corresponding to the target application (specifically, each service function) stored in the server.
And S108, the terminal receives the data of the prompt resource corresponding to each service function sent by the server.
Optionally, when the target application is started, or when the use state of the target application is changed from a background response to a foreground response, the prompt resource acquisition request may also be sent to the server, so as to acquire the data of the prompt resource corresponding to each service function in the target application, so as to prevent the loss of the related data.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: it can be known from S106 to S108 that the terminal may monitor a long connection communication state with the server, and when the long connection communication state is changed from disconnection to reconnection, data of related prompt resources stored in the terminal may be different from data of related prompt resources stored in the server, so that the terminal needs to send a prompt resource acquisition request message to the server, that is, requests to acquire data of prompt resources corresponding to each service function in the target service, and thus, the consistency of the prompt resources that need to be displayed in the terminal and the server can be ensured, and the accuracy of resource display is improved.
As shown in fig. 9, when the method for displaying a cued resource is applied to the server 102 in fig. 1, the method for displaying a cued resource provided by the embodiment of the present disclosure may include S201-S202.
S201, under the condition that the long connection communication is established between the target application and the server, the server determines that the newly added first prompt resource exists.
It should be understood that the process of establishing the long connection communication between the target application and the server may be referred to the description in S101 above, and is not described herein again.
In one implementation, the server may determine whether there is a new first prompt resource through the number of the first prompt resources stored therein and the current total number of the first prompt resources, and specifically, when the current total number of the first prompt resources is greater than the number of the first prompt resources stored in the server, the server determines that there is a new first prompt resource.
S202, the server sends the data of the first prompt resource to the terminal.
It should be understood that the data of the first prompt resource sent by the server to the terminal is all the current first prompt resources, and the data of the first prompt resource may include the current total number of the first prompt resources, that is, the total number of the first prompt resources in S1023 above.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from S201-S202, in the case where it is determined that long connection communication has been established between the target application and the server, the server determines that there is a newly added first prompt resource, and then the server transmits data of the first prompt resource to the terminal. In the embodiment of the disclosure, since the terminal (specifically, the target application) has already established long connection communication with the server, the server can actively send the data of the first prompt resource to the terminal when determining that the newly added first prompt resource exists, so that the situation that the data of the first prompt resource at the terminal is not updated timely can be avoided, and the accuracy of displaying the prompt resource to be displayed (namely, the target prompt resource) by the terminal is further improved.
Optionally, the method for displaying the prompt resource provided by the embodiment of the present disclosure may further include steps B to C.
And step B, the server receives a configuration information acquisition request sent by the terminal.
The configuration information acquisition request is used for requesting to acquire configuration information of prompt resources corresponding to each service function in the target application.
And step C, the server sends the configuration information of the prompt resource corresponding to each service function to the terminal.
It should be noted that, for the explanation of steps B to C, reference may be made to the descriptions in S1041 to S1042, and details are not described herein again.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from steps B to C, the server may receive a configuration information acquisition request sent by the terminal, that is, request to acquire configuration information of a prompt resource corresponding to each service function in the target application, and send the configuration information of the prompt resource corresponding to each service function to the terminal, so that the acquisition efficiency of the configuration information can be improved, and the terminal can further determine whether the first prompt resource corresponds to the first service function more quickly.
Optionally, the method for displaying the prompt resource provided by the embodiment of the present disclosure may further include steps D to E.
And D, the server receives a prompt resource acquisition request sent by the terminal.
The prompt resource acquisition request is used for requesting to acquire data of prompt resources corresponding to each service function in the target application.
And E, the server sends the data of the prompt resource corresponding to each service function to the terminal.
It should be noted that, for the explanation of steps D to E, reference may be made to the descriptions in S107 to S108, and details are not described here.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from steps D to E, the server may receive a prompt resource acquisition request sent by the terminal, that is, request to acquire data of a prompt resource corresponding to each service function in the target application, and send the data of the prompt resource corresponding to each service function to the terminal, so that consistency between the terminal and the prompt resource to be displayed in the server can be ensured, and resource display accuracy of the resource to be displayed at the terminal can be improved.
As shown in fig. 10, when the display method of the cued resource is based on the interactive process of the terminal and the server, the display method of the cued resource may include S301 to S313.
S301, under the condition that the long connection communication is established between the target application and the server, the terminal monitors data of the prompt resource from the server.
S302, under the condition that the long connection communication is established between the target application and the server, the server determines that the newly added first prompt resource exists.
S303, the server sends the data of the first prompt resource to the terminal.
S304, the terminal receives data of the first prompt resource from the server.
S305, under the condition that long connection communication is established between the target application and the server, the terminal sends a configuration information acquisition request to the server.
It should be noted that the terminal may execute S304 first and then execute S305, may execute S305 first and then execute S304, and may also execute S304 and S305 simultaneously, and the embodiment of the present disclosure does not specifically limit the execution sequence of S304 and S305.
S306, the server receives the configuration information acquisition request sent by the terminal.
S307, the server sends the configuration information of the prompt resource corresponding to each service function in the target application to the terminal.
S308, the terminal receives configuration information of the prompt resource corresponding to each service function from the server.
S309, the terminal analyzes each acquired configuration information to determine a numerical range corresponding to each service function.
S310, the terminal determines that the numerical value of the first prompt resource is located in the numerical value range corresponding to the first service function.
S311, the terminal determines that the first prompt resource corresponds to the first service function in the target application.
S312, the terminal determines that the received data contains data of the target prompt resource.
S313, the terminal displays the target prompt resource.
It should be understood that the explanations in S301 to S313 may refer to the descriptions in the above embodiments, and are not repeated herein.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as seen from S301 to S313, in the case that it is determined that the long connection communication has been established between the target application and the server, the terminal may monitor the data of the alert resource from the server, and the server may send the data of the first alert resource to the terminal in the case that it is determined that the newly added first alert resource exists, so that the terminal may receive the data of the first alert resource; and, in the case that the long connection communication has been established between the target application and the server, the terminal may send a configuration information acquisition request to the server, that is, request to acquire configuration information of a prompt resource corresponding to each service function in the target application, so that, when receiving the configuration information of the prompt resource corresponding to each service function, the terminal may parse each configuration information, determine a numerical range corresponding to each service, and, in the case that it is determined that the numerical value of the first prompt resource is located in the numerical range corresponding to the first service function, determine that the first prompt resource corresponds to the first service in the target application, and display the target prompt resource when it is determined that data of the target prompt resource (i.e., the first prompt resource that is not stored in the terminal) exists in the received data (i.e., the data of the first prompt resource). In the embodiment of the disclosure, the terminal does not need to actively request the server for obtaining the prompt resource to be displayed, but when the server determines that the newly added prompt resource (i.e., the first prompt resource) exists, the data of the first prompt resource is actively issued to the terminal, and the terminal determines and displays the part (i.e., the target prompt resource) of the first prompt resource which is not stored in the terminal, so that the prompt resource to be displayed can be accurately and reasonably determined, the prompt resource to be displayed in the terminal and the prompt resource to be displayed in the server are consistent, and the update efficiency of the prompt resource is improved.
It is understood that, in practical implementation, the terminal/server according to the embodiments of the present disclosure may include one or more hardware structures and/or software modules for implementing the display method of the corresponding prompt resource, and these hardware structures and/or software modules may constitute a terminal/server. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for implementing the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Based on such understanding, the embodiment of the present disclosure further provides a display device for prompting resources, and fig. 11 illustrates a schematic structural diagram of the display device for prompting resources provided by the embodiment of the present disclosure. As shown in fig. 11, the display device 20 for prompting resources may include: an acquisition module 201, a determination module 202 and a display module 203.
The obtaining module 201 is configured to, in a case where it is determined that long connection communication has been established between a target application and a server, obtain data of a first prompt resource from the server, where the data of the first prompt resource is sent in a case where the server determines that there is a newly added first prompt resource.
The determining module 202 is configured to determine that the first prompt resource corresponds to a first service function in the target application, and there is data of a target prompt resource in the acquired data, where the target prompt resource is the first prompt resource that is not stored in the terminal.
A display module 203 configured to display the target prompt resource.
Optionally, the display device 20 for prompting resources may further include a parsing module 204.
The obtaining module 201 is further configured to obtain configuration information of a prompt resource corresponding to each service function in the target application.
The parsing module 204 is configured to parse the acquired each type of configuration information to determine a numerical range corresponding to each service function.
The determining module 202 is specifically configured to determine that the numerical value of the first prompt resource is located in the numerical range corresponding to the first service function.
The determining module 202 is further specifically configured to determine that the first prompt resource corresponds to a first service function in the target application.
Optionally, the display device 20 for prompting resource may further include a sending module 205 and a receiving module 206.
A sending module 205, configured to send, to the server, a configuration information obtaining request for requesting to obtain configuration information of the prompt resource corresponding to each service function in the target application, when long connection communication has been established between the target application and the server.
The receiving module 206 is configured to receive configuration information of the prompt resource corresponding to each service function from the server.
Optionally, the obtained data includes a total amount of the first prompt resource.
The determining module 202 is specifically configured to determine that the total number of the first prompt resources is greater than the number of the stored and displayed first prompt resources.
The determining module 202 is further specifically configured to determine that data of the target prompt resource exists.
Optionally, the number of the target prompting resources is multiple.
The display module 203 is specifically configured to, when it is determined that the resource processing manner corresponding to the first service function is aggregation processing, aggregate a plurality of target prompt resources received within a preset time period, and display the aggregated target prompt resources.
The display module 203 is specifically configured to display each target prompt resource when it is determined that the resource processing mode corresponding to the first service function is discrete processing.
Optionally, the determining module 202 is further configured to delete the data of the first prompt resource or set the data of the first prompt resource as invalid if the numerical value of the first prompt resource is outside the numerical value range corresponding to each service function.
Optionally, the display device 20 for prompting resource may further include a monitoring module 207.
A monitoring module 207 configured to monitor a long connection communication status with the server.
A sending module 205, configured to send a prompt resource obtaining request to the server, where the long connection communication state is changed from disconnection to reconnection, where the prompt resource obtaining request is used to request to obtain data of a prompt resource corresponding to each service function in the target application.
The receiving module 206 is configured to receive the data of the prompt resource corresponding to each service function sent by the server.
As described above, the embodiments of the present disclosure may perform the division of the functional modules on the display device of the prompt resource according to the above method example. The integrated module can be realized in a hardware form, and can also be realized in a software functional module form. In addition, it should be further noted that the division of the modules in the embodiments of the present disclosure is schematic, and is only a logic function division, and there may be another division manner in actual implementation. For example, the functional blocks may be divided for the respective functions, or two or more functions may be integrated into one processing block.
Regarding the display device for prompting resources in the foregoing embodiments, the specific manner in which each module performs operations and the beneficial effects thereof have been described in detail in the foregoing method embodiments, and are not described herein again.
Fig. 12 is a schematic structural diagram of another display device for prompting resources provided by the present disclosure. As shown in fig. 12, the display device 30 of cued resources may include at least one processor 301 and a memory 303 for storing processor-executable instructions. Wherein the processor 301 is configured to execute the instructions in the memory 303 to implement the display method of the cued resource in the above-described embodiments.
In addition, the display device 30 for prompting resources may further include a communication bus 302 and at least one communication interface 304.
The processor 301 may be a Central Processing Unit (CPU), a micro-processing unit, an ASIC, or one or more integrated circuits for controlling the execution of programs according to the present disclosure.
The communication bus 302 may include a path that conveys information between the aforementioned components.
The communication interface 304 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), etc.
The memory 303 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may 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, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
The memory 303 is used for storing instructions for executing the disclosed solution, and is controlled to be executed by the processor 301. The processor 301 is configured to execute instructions stored in the memory 303 to implement the functions of the disclosed method.
In particular implementations, processor 301 may include one or more CPUs such as CPU0 and CPU1 in fig. 12 for one embodiment.
In one implementation, the display device 30 for prompting resources may include a plurality of processors, such as the processor 301 and the processor 307 in fig. 12, as an example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, the display apparatus 30 for prompting resources may further include an output device 305 and an input device 306, as an embodiment. The output device 305 is in communication with the processor 301 and may display information in a variety of ways. For example, the output device 305 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device 306 is in communication with the processor 301 and can accept user input in a variety of ways. For example, the input device 306 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
It will be appreciated by those skilled in the art that the configuration shown in fig. 12 does not constitute a limitation of the display device 30 prompting resources, and may include more or fewer components than those shown, or some components in combination, or in a different arrangement of components.
The embodiment of the present disclosure also provides a display device for prompting resources correspondingly, and fig. 13 shows a schematic structural diagram of the display device for prompting resources provided by the embodiment of the present disclosure. As shown in fig. 13, the display device 40 for prompting resources may include: a determination module 401 and a sending module 402.
The determining module 401 is configured to determine that the newly added first prompt resource exists in a case where it is determined that the long connection communication between the target application and the server has been established.
A sending module 402 configured to send the data of the first prompt resource to the terminal.
Optionally, the display device 40 for prompting resource may further include a receiving module 403.
A receiving module 403, configured to receive a configuration information obtaining request sent by the terminal, where the configuration information obtaining request is used to request to obtain configuration information of a prompt resource corresponding to each service function in the target application.
The sending module 402 is further configured to send configuration information of the prompt resource corresponding to each service function to the terminal.
Optionally, the receiving module 403 is configured to receive a prompt resource obtaining request sent by the terminal, where the prompt resource obtaining request is used to request to obtain data of a prompt resource corresponding to each service function in the target application;
the sending module 402 is further configured to send data of the prompt resource corresponding to each service function to the terminal.
Fig. 14 is a schematic structural diagram of another display device for prompting resources provided by the present disclosure. As shown in fig. 14, the display device 50 of the cued resource may include at least one processor 501 and a memory 503 for storing processor-executable instructions. Wherein the processor 501 is configured to execute the instructions in the memory 503 to implement the display method of the hint resource in the above-described embodiments.
Additionally, the display device 50 for prompting resources may also include a communication bus 502 and at least one communication interface 504.
The processor 501 may be a CPU, micro-processing unit, ASIC, or one or more integrated circuits for controlling the execution of programs in accordance with the disclosed aspects.
The communication bus 502 may include a path that conveys information between the aforementioned components.
The communication interface 504, using any transceiver or the like, is used for communication with other devices or communication networks, such as ethernet, RAN, WLAN, etc.
The memory 503 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
The memory 503 is used for storing instructions for executing the disclosed solution, and is controlled by the processor 501. The processor 501 is configured to execute instructions stored in the memory 503 to implement the functions of the disclosed method.
In particular implementations, processor 501 may include one or more CPUs such as CPU0 and CPU1 in fig. 14, for example, as an embodiment.
In one embodiment, the display device 50 for prompting resources may include a plurality of processors, such as the processor 501 and the processor 507 in fig. 14. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, the display device 50 for prompting resources may further include an output device 505 and an input device 506, as an embodiment. An output device 505, which is in communication with the processor 501, may display information in a variety of ways. For example, the output device 505 may be an LCD, LED display device, CRT display device, projector, or the like. The input device 506 is in communication with the processor 501 and can accept user input in a variety of ways. For example, the input device 506 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
In addition, the present disclosure also provides a computer-readable storage medium including instructions, which when executed by a processor, cause the processor to execute the display method of the prompt resource provided in the above embodiment.
In addition, the present disclosure also provides a computer program product comprising instructions which, when executed by a processor, cause the processor to perform the display method of the hint resource as provided in the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method for displaying prompt resources is applied to a terminal and is characterized by comprising the following steps:
under the condition that long connection communication is established between a target application and a server, acquiring data of a first prompt resource from the server, wherein the data of the first prompt resource is sent under the condition that the server determines that the newly added first prompt resource exists;
determining that the first prompt resource corresponds to a first service function in the target application, and the obtained data contains data of the target prompt resource, wherein the target prompt resource is the first prompt resource which is not stored in the terminal;
and displaying the target prompt resource.
2. The method for displaying a prompt resource according to claim 1, further comprising:
acquiring configuration information of prompt resources corresponding to each service function in the target application;
analyzing each acquired configuration information to determine a numerical range corresponding to each service function;
the determining that the first prompt resource corresponds to a first service function in the target application includes:
determining that the numerical value of the first prompt resource is located in a numerical range corresponding to the first service function;
and determining that the first prompt resource corresponds to a first service function in the target application.
3. The method for displaying prompt resources according to claim 2, wherein the obtaining configuration information of the prompt resources corresponding to each service function in the target application comprises:
sending a configuration information acquisition request to the server under the condition that long connection communication is established between the target application and the server, wherein the configuration information acquisition request is used for requesting to acquire configuration information of a prompt resource corresponding to each service function in the target application;
and receiving configuration information of the prompt resource corresponding to each service function from the server.
4. A display method for prompting resources is applied to a server, and is characterized by comprising the following steps:
determining that a newly added first prompt resource exists under the condition that the long connection communication is established between the target application and the server;
and sending the data of the first prompt resource to a terminal.
5. A display device for prompting resources is characterized by comprising an acquisition module, a determination module and a display module;
the acquisition module is configured to acquire data of a first prompt resource from a server under the condition that long connection communication is established between a target application and the server, wherein the data of the first prompt resource is sent under the condition that the server determines that a newly added first prompt resource exists;
the determining module is configured to determine that the first prompt resource corresponds to a first service function in the target application, and data of the target prompt resource exists in the acquired data, where the target prompt resource is the first prompt resource which is not stored in the terminal;
the display module is configured to display the target prompt resource.
6. A display device for prompting a resource, comprising: a determining module and a sending module;
the determining module is configured to determine that a newly added first prompt resource exists under the condition that the long connection communication between the target application and the server is determined to be established;
the sending module is configured to send the data of the first prompt resource to a terminal.
7. A terminal, characterized in that the terminal comprises:
a processor;
a memory configured to store the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of displaying a cueing resource as claimed in any of claims 1 to 3.
8. A server, characterized in that the server comprises:
a processor;
a memory configured to store the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of displaying a cueing resource as claimed in claim 4.
9. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a display device of a cueing resource, enable the display device of the cueing resource to perform the display method of the cueing resource as claimed in any one of claims 1 to 3 or to perform the display method of the cueing resource as claimed in claim 4.
10. A computer program product, characterized in that it comprises computer instructions which, when run on a display device of a cueing resource, cause the display device of the cueing resource to carry out the display method of a cueing resource as claimed in any one of claims 1 to 3 or carry out the display method of a cueing resource as claimed in claim 4.
CN202110352775.5A 2021-03-31 2021-03-31 Prompt resource display method, device, terminal, server and storage medium Pending CN113094131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110352775.5A CN113094131A (en) 2021-03-31 2021-03-31 Prompt resource display method, device, terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110352775.5A CN113094131A (en) 2021-03-31 2021-03-31 Prompt resource display method, device, terminal, server and storage medium

Publications (1)

Publication Number Publication Date
CN113094131A true CN113094131A (en) 2021-07-09

Family

ID=76672178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110352775.5A Pending CN113094131A (en) 2021-03-31 2021-03-31 Prompt resource display method, device, terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN113094131A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098760A (en) * 2022-06-29 2022-09-23 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427648A (en) * 2020-03-23 2020-07-17 北京达佳互联信息技术有限公司 Page resource updating method and device, electronic equipment, server and storage medium
CN112134784A (en) * 2020-09-03 2020-12-25 北京达佳互联信息技术有限公司 Message display method, device, terminal, server, system and storage medium
CN112130949A (en) * 2020-09-27 2020-12-25 北京达佳互联信息技术有限公司 Prompt resource display method and device and computer readable storage medium
CN112492372A (en) * 2020-11-25 2021-03-12 北京达佳互联信息技术有限公司 Comment message display method and device, electronic equipment, system and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427648A (en) * 2020-03-23 2020-07-17 北京达佳互联信息技术有限公司 Page resource updating method and device, electronic equipment, server and storage medium
CN112134784A (en) * 2020-09-03 2020-12-25 北京达佳互联信息技术有限公司 Message display method, device, terminal, server, system and storage medium
CN112130949A (en) * 2020-09-27 2020-12-25 北京达佳互联信息技术有限公司 Prompt resource display method and device and computer readable storage medium
CN112492372A (en) * 2020-11-25 2021-03-12 北京达佳互联信息技术有限公司 Comment message display method and device, electronic equipment, system and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098760A (en) * 2022-06-29 2022-09-23 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
KR102415845B1 (en) Internet of Things Resource Subscription Methods, Devices, and Systems
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
KR20130142961A (en) Automatic application updates
CN111694674B (en) Message distribution processing method, device, equipment and storage medium
CN105468513A (en) Testing method, apparatus and system based on mobile terminal
CN114979024A (en) Computing power network transaction method and device, computer readable medium and electronic equipment
CN113127732A (en) Method and device for acquiring service data, computer equipment and storage medium
CN112817751A (en) Computing resource management method and device, storage medium and electronic device
CN109428926B (en) Method and device for scheduling task nodes
CN109788251B (en) Video processing method, device and storage medium
CN112104679B (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
CN113094131A (en) Prompt resource display method, device, terminal, server and storage medium
US20230408620A1 (en) Method and apparatus for acquiring angle of departure (aod) of terminal, and communication device
EP3373608B1 (en) Method and apparatus for acquiring resources
CN111831503B (en) Monitoring method based on monitoring agent and monitoring agent device
CN113872851B (en) Communication method, device, system, equipment and storage medium
CN113542424A (en) Data processing method, device, equipment and computer program product
CN107347024A (en) A kind of method and apparatus for storing Operation Log
CN109688432B (en) Information transmission method, device and system
CN114510299A (en) Method, device and storage medium for processing artificial intelligence service
CN111988403A (en) Request processing method and system of electronic equipment, storage medium and electronic equipment
CN112559001A (en) Method and device for updating application
CN113132480B (en) Data transmission method, device and system
CN110768855A (en) Method and device for testing linkmzation performance
CN115174665A (en) Login state determination method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination