Information prompting method and device, equipment, storage medium and product
By updating the display status of the information prompt icon after the information viewing operation and synchronizing server data when the network is restored, the problem of abnormal red dot display was resolved, ensuring the accuracy of information prompts.
Patent Information
- Application Number
- CN202111374270.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-19
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2041-11-19
AI Technical Summary
When the network connection is restored after clicking the red dot in an offline environment, the red dot displays abnormally, resulting in inconsistent information prompts and display status.
After receiving and viewing information on the preset page, the display status of the target information prompt icon is updated, and when the network connection is restored, the cached information is sent to the server to update the icon management data to ensure that the display status of the server and the terminal is consistent.
This ensures that the information prompts maintain a consistent display status after the network is restored, avoiding display anomalies and improving the accuracy of information prompts.
Smart Images

Figure CN116150163B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to an information prompting method and device, equipment, storage medium and product. BACKGROUND
[0002] When a new message, a new function or a business that needs to be diverted occurs in an application, a red dot is generally displayed on the corresponding page object to guide. Generally, the display type of the red dot can be a bubble, a number, or a bubble text.
[0003] In the related art, whether the red dot is displayed is controlled by a server. A page or interface element capable of displaying the red dot function is obtained through a background server. The terminal processes the obtained data in the interface element. If the red dot has a cascading relationship, a notification is sent to the upper-level page to display the red dot in cascade.
[0004] In the related art, if a user clicks the interface element corresponding to the red dot in a non-network environment, the red dot is canceled. However, in the case of restoring network connection, the red dot is displayed again, which causes the problem of abnormal display of the red dot. SUMMARY
[0005] The embodiments of the present application provide an information prompting method, device, equipment, storage medium and product, which can.
[0006] According to an aspect of the embodiments of the present application, an information prompting method is provided, which includes:
[0007] Receiving an information viewing operation corresponding to a target page display object in a preset page;
[0008] Updating an identification display state of a target information prompt identifier from a first display state to a second display state based on the information viewing operation, the target information prompt identifier being an information prompt identifier associated with the target page display object;
[0009] In the case of restoring network connection, sending the cached information corresponding to the information viewing operation to the server, so that the server updates the identification management data according to the cached information, the identification management data being used to control the identification display state of the information prompt identifier corresponding to the page display object;
[0010] Receiving the first identification management update data sent by the server;
[0011] Controlling the target information prompt identifier to be displayed in the second display state based on the first identification management update data.
[0012] According to an aspect of the embodiments of the present application, an information prompting method is provided, which includes:
[0013] obtaining identity management data, the identity management data being used to control an identity display state of an information prompt identity corresponding to a page display object;
[0014] receiving, by a terminal, buffer information sent by the terminal in a case where a network connection is resumed, the buffer information being used to represent an operation result corresponding to an information viewing operation received by a target page display object in a preset page of the terminal;
[0015] updating, according to the buffer information, the identity management data to obtain first identity management update data, the first identity management update data being used to control an identity display state of a target information prompt identity to be updated from a first display state to a second display state, the target information prompt identity being an information prompt identity associated with the target page display object;
[0016] sending, to the terminal, the first identity management update data, so that the terminal controls the target information prompt identity to be displayed in the second display state.
[0017] According to an aspect of an embodiment of the present application, an information prompt device is provided, and the device comprises:
[0018] an operation receiving module configured to receive, in a preset page, an information viewing operation corresponding to a target page display object;
[0019] an identity display module configured to update, based on the information viewing operation, an identity display state of a target information prompt identity from a first display state to a second display state, the target information prompt identity being an information prompt identity associated with the target page display object;
[0020] a buffer information sending module configured to send, to a server, buffer information corresponding to the information viewing operation in a case where a network connection is resumed, so that the server updates identity management data according to the buffer information, the identity management data being used to control an identity display state of an information prompt identity corresponding to a page display object;
[0021] an update data receiving module configured to receive first identity management update data sent by the server;
[0022] The identity display module is further configured to control the target information prompt identity to be displayed in the second display state based on the first identity management update data.
[0023] According to an aspect of an embodiment of the present application, an information prompt device is provided, and the device comprises:
[0024] The management data management module is configured to acquire identification management data, wherein the identification management data is used to control an identification display state of an information prompt identification corresponding to a page display object.
[0025] The cache information receiving module is configured to receive cache information sent by the terminal in the case of resuming the network connection, wherein the cache information is used to represent an operation result corresponding to an information viewing operation received by a target page display object in a preset page of the terminal.
[0026] The management data updating module is configured to update the identification management data according to the cache information, to obtain first identification management updating data, wherein the first identification management updating data is used to control the identification display state of a target information prompt identification to be updated from a first display state to a second display state, and the target information prompt identification refers to an information prompt identification associated with the target page display object.
[0027] The updating data sending module is configured to send the first identification management updating data to the terminal, so that the terminal controls the target information prompt identification to be displayed in the second display state.
[0028] According to an aspect of an embodiment of the present application, a computer device is provided, which comprises a processor and a memory, and the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the information prompting method.
[0029] According to an aspect of an embodiment of the present application, a computer readable storage medium is provided, which stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by a processor to implement the information prompting method.
[0030] According to an aspect of an embodiment of the present application, a computer program product is provided, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the information prompting method.
[0031] The technical scheme provided by the embodiment of the present application can bring the following beneficial effects:
[0032] By receiving the information viewing operation corresponding to the target page display object in the preset page, the display state of the target information prompt mark associated with the target page display object is updated from the first display state to the second display state. In the case that the terminal restores the network connection, the cached information corresponding to the information viewing operation is sent to the server, so that the server updates the mark management data, thereby ensuring that the display state of the target information prompt mark controlled by the mark management data on the server side is also updated to the second display state, the display states of the target information prompt marks controlled by the server side and the terminal side are kept consistent, and when the terminal performs the next page loading, the target information prompt mark can still be displayed in the second display state according to the received mark management update data, so that the target information prompt mark is prevented from returning to the first display state after the network connection is restored, the problem of abnormal display of the information prompt mark after the network connection is restored is solved, and the accuracy of the information prompt mark display is improved. BRIEF DESCRIPTION OF DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.
[0034] Figure 1 is a schematic diagram of an application running environment provided by an embodiment of the present application;
[0035] Figure 2 is a flow of an information prompt method provided by an embodiment of the present application Figure One ;
[0036] Figure 3 An application page in which an information prompt mark is displayed is exemplarily shown;
[0037] Figure 4 An application page in which an information prompt mark is displayed is exemplarily shown;
[0038] Figure 5 is a flow of an information prompt method provided by an embodiment of the present application Figure Two ;
[0039] Figure 6 is a flow of an information prompt method provided by an embodiment of the present application Figure Three ;
[0040] Figure 7 is a flow of an information prompt method provided by an embodiment of the present application Figure Four ;
[0041] Figure 8 is a flow of an information prompting method provided by an embodiment of the present application Figure Five ;
[0042] Figure 9 An exemplary technical architecture diagram of a red dot management system is shown.
[0043] Figure 10 is an interaction flow diagram of an information prompting method provided by an embodiment of the present application
[0044] Figure 11 An exemplary diagram of a red dot display flow is shown.
[0045] Figure 12 is a block diagram of an information prompting device provided by an embodiment of the present application Figure One ;
[0046] Figure 13 is a block diagram of an information prompting device provided by an embodiment of the present application Figure Two ;
[0047] Figure 14 is a structural block diagram of a computer device provided by an embodiment of the present application Figure One ;
[0048] Figure 15 is a structural block diagram of a computer device provided by an embodiment of the present application Figure Two .DETAILED DESCRIPTION
[0049] The information prompting method provided by the embodiments of the present application relates to cloud technology, which is briefly described below to facilitate understanding by those skilled in the art.
[0050] Cloud computing is a computing mode that distributes computing tasks on a resource pool composed of a large number of computing machines, so that various application systems can obtain computing power, storage space and information services according to needs. The network providing resources is called "cloud". The resources in the "cloud" can be infinitely expanded in the eyes of the user, and can be obtained at any time, used on demand, expanded at any time, and paid according to use.
[0051] As a basic capability provider of cloud computing, a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform) is established, and a plurality of types of virtual resources are deployed in the resource pool for external customers to select and use. The cloud computing resource pool mainly includes: computing devices (virtualized machines containing operating systems), storage devices, network devices.
[0052] According to logical function division, the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer is deployed on the PaaS layer, or the SaaS is directly deployed on the IaaS. The PaaS is a platform for software running, such as a database and a web container. The SaaS is various business software, such as a web portal and a short message massager. Generally, the SaaS and the PaaS are upper layers relative to the IaaS.
[0053] In the embodiment of the present application, the display state of the information prompt identifier corresponding to each page display object of the target application can be controlled by the cloud.
[0054] To make the objects, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.
[0055] Please refer to Figure 1 which shows a schematic diagram of an application running environment provided by an embodiment of the present application. The application running environment can include a terminal 10 and a server 20.
[0056] The terminal 10 includes but is not limited to a mobile phone, a computer, a smart voice interactive device, a smart home appliance, a vehicle-mounted terminal, a game console, an e-book reader, a multimedia playing device, a wearable device, and the like. The terminal 10 can install a client of an application.
[0057] In the embodiment of the present application, the above-mentioned application can be any application capable of supporting information communication. Typically, the application is a social application. Of course, in addition to the social application, information communication can also be supported in other types of applications. For example, a financial application, a news application, a payment application, an interactive entertainment application, a browser application, a shopping application, a content sharing application, a virtual reality (VR) application, an augmented reality (AR) application, and the like, which are not limited in the embodiment of the present application. In addition, for different applications, the corresponding communication information will be different, and the corresponding functions will also be different, which can be pre-configured according to actual needs, and the embodiment of the present application is not limited. Optionally, the terminal 10 runs the client of the above-mentioned application.
[0058] The server 20 is configured to provide background services for clients of the application program in the terminal 10. For example, the server 20 can be a background server of the application program described above. The server 20 can be a standalone physical server, a server cluster composed of multiple physical servers, or a distributed system. Alternatively, the server 20 can be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms. Alternatively, the server 20 provides background services for multiple application programs in multiple terminals 10.
[0059] Alternatively, the terminal 10 and the server 20 can communicate with each other through the network 30. The terminal 10 and the server 20 can be directly or indirectly connected through wired or wireless communication, which is not limited in the present application.
[0060] Please refer to Figure 2 , which shows the flow of the information prompting method provided by an embodiment of the present application Figure One . The method can be applied in a computer device, which refers to an electronic device with data computing and processing capabilities. For example, the execution subject of each step can be the terminal 10 in the application program running environment as shown in Figure 1 . The method can include the following steps (201-205).
[0061] Step 201, receiving an information viewing operation corresponding to a target page display object in a preset page.
[0062] The preset page includes at least one page displayed on the terminal screen. Alternatively, the at least one page includes at least one application page corresponding to a target application and at least one system page corresponding to a terminal system. For example, the preset page is an application icon display page of the system or an application page.
[0063] The preset page includes at least one page display object. The page display object refers to a page element in the page, such as an application icon corresponding to an application program and a conversation box in an application page. The target page display object refers to an operation object corresponding to the information viewing operation.
[0064] Alternatively, the information viewing operation is an operation received in an offline state of the terminal, the preset page is a page rendered based on a terminal cache, and the target page display object is also a page element rendered based on a terminal cache.
[0065] In step 202, based on the information viewing operation, the display state of the target information prompt identifier is updated from the first display state to the second display state.
[0066] The target information prompt identifier refers to an information prompt identifier associated with the target page display object. In some application scenarios, the information prompt identifier refers to a prompt dot used to prompt the existence of unread information.
[0067] The information prompt identifier associated with the target page display object corresponding to the information viewing operation is determined as the target information prompt identifier. The association relationship is not limited to a one-to-one relationship. If there is a cascading display relationship between the first information prompt identifier corresponding to the first page display object and the information prompt identifier corresponding to the second page display object, the first information prompt identifier and the second information prompt identifier are determined as the target information prompt identifier associated with the first page display object or the second page display object.
[0068] Optionally, the target information prompt identifier associated with the target page display object is determined according to the identifier level of the information prompt identifier corresponding to the target page display object. For example, the information prompt identifier corresponding to the target page display object is a three-level identifier, and the information prompt identifier has a corresponding first-level identifier and a second-level identifier. The first-level identifier and the second-level identifier are information prompt identifiers corresponding to other page display objects, but the first-level identifier and the second-level identifier are cascading identifiers of the three-level identifier. Therefore, the first-level identifier, the second-level identifier, and the three-level identifier are all information prompt identifiers associated with the target page display object. The information viewing operation received by the target page display object can change the display state of the target information prompt identifier associated with the target page display object. It can also be understood that the target information prompt identifier refers to an information prompt identifier whose display state is affected by the information viewing operation received by the target page display object.
[0069] The first display state refers to the display state of the target information prompt identifier before the information viewing operation is received, and the second display state refers to the display state of the target information prompt identifier after the information viewing operation is received. The first display state and the second display state can be the same or different. In one example, the first display state is a display state, that is, the target information prompt identifier is in a display state before the information viewing operation. However, due to the information viewing operation acting on the target page display object, such as clicking the target page display object, the target information prompt identifier is updated from the display state to a hidden state, that is, the target information prompt identifier is hidden.
[0070] The display states of the above-mentioned indicators include, but are not limited to, a display state, a hidden state, a style state, and a content state. The style state corresponds to different indicator styles, such as a circle, a rounded rectangle, a dot, a superscript, an information box, and the like. The content state corresponds to different prompt contents. For example, numbers, characters, and the like.
[0071] In one example, as shown in FIG. 4, an example schematic diagram of displaying an information prompt indicator in an application page is exemplarily shown. Figure 3 In one example, as shown in FIG. 4, an example schematic diagram of displaying an information prompt indicator in an application page is exemplarily shown. Figure 3 The page 30 shown in FIG. 3 includes a first-level red dot 31 corresponding to the "message" option, a second-level red dot 32 corresponding to the "notification" option, and a third-level red dot 33 corresponding to the "first service account" conversation window. The "second service account" and the "third service account" are also functions that need to be guided by the application program. Since the user has clicked the conversation windows corresponding thereto, the red dots corresponding to the "second service account" and the "third service account" are hidden in the page 30. If the user clicks the "first service account" conversation window, the above-mentioned first-level red dot 31, the second-level red dot 32, and the third-level red dot 33 will also disappear. The red dot plays an important role in guiding new functions.
[0072] In one example, as shown in FIG. 4, an example schematic diagram of displaying an information prompt indicator in an application page is exemplarily shown. Figure 4 In one example, as shown in FIG. 4, an example schematic diagram of displaying an information prompt indicator in an application page is exemplarily shown. The page 40 shown in FIG. 4 includes a red dot 411 corresponding to the application icon 410 of "application 4" and a red dot 421 corresponding to the application icon of "application 8". The red dot 411 and the red dot 421 respectively display the number 2361 of unread information in "application 4" and the number 1 of unread information in "application 8". The number of unread information is determined by an internal rule of the application. In this embodiment, the total number of unread information of the application program is taken as a root node of a multi-way tree, and the unread information corresponding to other page display objects is taken as leaf nodes to construct the multi-way tree. The red dots corresponding to the page display objects in the page are managed and guided to be displayed by the unread information corresponding to the nodes in the multi-way tree.
[0073] In the example embodiment, the cache information (which is involved in step 203) includes the node cache information of the target node corresponding to the target page display object in the multi-ary tree. The multi-ary tree generally refers to an n-ary tree (n-ary tree, n≥2). The tree family exists for the purpose of achieving convenient and fast search. The height of the tree is an irresistible time lower limit for hit search. Under certain data conditions, the height and width of the tree are mutually restricted. In the example embodiment, the display state of the information prompt identifier corresponding to each page display object in the preset page is determined by the node information corresponding to each node in the multi-ary tree. Each node in the multi-ary tree corresponds to a page display object, and the node information corresponding to each node controls the display state of the information prompt identifier corresponding to the page display object. The node information is identifier attribute information, which represents the display attribute of the information prompt identifier corresponding to the page display object corresponding to the node.
[0074] Correspondingly, as shown in Figure 5 the implementation process of step 202 includes the following steps (2021-2022), Figure 5 the flowchart of the information prompt method provided by one embodiment of the present application is shown Figure Two .
[0075] Step 2021, based on the information viewing operation, generating node cache information.
[0076] The display state of the target information prompt identifier is affected by the information viewing operation, so the identifier attribute information corresponding to each target page display object, i.e. the node information of the target node corresponding to the target page display object in the multi-ary tree, can be updated according to the information viewing operation to obtain the node cache information.
[0077] In one possible scenario, the terminal is in an offline state, but can still receive the information viewing operation. However, since the terminal cannot establish a network connection with the server, it cannot synchronize the change information of the display state of the target information prompt identifier caused by the information viewing operation to the server in time, so the node cache information generated according to the information viewing operation can be stored on the terminal side, representing the change information of the nodes in the multi-ary tree, i.e. representing the change of the display state of the target information prompt identifier.
[0078] Optionally, the node cache information is the node information of the root node, and the change information of other nodes can be determined through the node information of the root node. Optionally, the node cache information can be saved through NSUserDefaults (a scheme for storing lightweight data), which is not limited in the embodiments of the present application.
[0079] Step 2022, based on the node cache information, updating the display state of the target information prompt identifier from the first display state to the second display state.
[0080] The information viewing operation can cause the node information of each node in the multi-way tree to change, and obtain changed node cache information. Therefore, the display state of the target information prompt mark can be updated according to the node cache information, and the first display state is updated to the second display state.
[0081] In step 203, in the case of restoring the network connection, the cache information corresponding to the information viewing operation is sent to the server, so that the server updates the mark management data according to the cache information.
[0082] The mark management data is used to control the display state of the information prompt mark corresponding to the page display object.
[0083] The cache information corresponding to the information viewing operation includes, but is not limited to, the operation instruction record log corresponding to the information viewing operation and the change information of the display state of the information prompt mark caused by the information viewing operation. Alternatively, the node cache information can represent the change of the display state of the target information prompt mark.
[0084] In a possible case, in the case of restoring the network connection of the terminal, the cache information corresponding to the information viewing operation received in the offline state is sent to the server, so that the server updates the mark management data stored on the server side according to the received cache information, ensures that the display state of the target information prompt mark on the terminal side and the server side is consistent, and ensures that the display state of the target information prompt mark rendered according to the received mark management data after the terminal restores the network connection will not back to the first display state before the information viewing operation, but the latest second display state.
[0085] In step 204, the first mark management update data sent by the server is received.
[0086] After receiving the cache information, the server updates the mark management data stored on the server side, and obtains the first mark management update data. The specific updating process can be referred to the method embodiment of the server side described below.
[0087] In step 205, the target information prompt mark is controlled to be displayed in the second display state based on the first mark management update data.
[0088] The first mark management update data includes the mark attribute information of the information prompt mark corresponding to the page display object. In an example embodiment, the first mark management update data includes the node information in the multi-way tree.
[0089] After the terminal receives the first identity management update data, the terminal can re-render the display state of the page prompt identity corresponding to each page display object in the page according to the identity attribute information corresponding to each page display object in the first identity management update data, and control the target information prompt identity to display in the second display state in the network connection state.
[0090] The first identity management update data includes identity attribute update information corresponding to each node in the multi-way tree, and the identity attribute update information includes update data corresponding to each identity attribute field. The terminal can determine whether the update data corresponding to each identity attribute field meets the identity display condition corresponding to each identity attribute field, and display the target information prompt identity corresponding to the determined identity display state.
[0091] In the example embodiment, as shown in FIG. 2, after step 201, the method further includes the following steps (206-210). Figure 5
[0092] In step 206, in response to the information viewing operation, display the display information corresponding to the target page display object.
[0093] The display information includes unread information corresponding to the target page display object.
[0094] In step 207, in the case that the display information is not successfully loaded, generate display failure information corresponding to the target page display object.
[0095] In some possible scenarios, although the terminal is in an offline state, the terminal stores the cache content corresponding to the display information. Therefore, the terminal can display the display information corresponding to the target page display object according to the cache content corresponding to the display information. On the contrary, if the terminal does not store the cache content corresponding to the display information, the terminal cannot successfully display the display information corresponding to the target page display object, i.e., the case that the display information is not successfully loaded. If the display information is not successfully loaded, the display failure information corresponding to the target page display object can be generated. The display failure information is used to represent the case that the display information is not successfully loaded.
[0096] In the case that the display information is successfully loaded, step 203 can be performed.
[0097] In step 208, in the case that the network connection is restored, send the cache information and the display failure information to the server, so that the server updates the identity management data according to the cache information and the display failure information.
[0098] Since the above display failure information represents a case that the display information is not successfully loaded, the display information is still unread information for the user, although the user has performed the information viewing operation on the page display object corresponding to the display information. In order to avoid missing important information, the server side can update the identification management data according to the cache information and the display failure information. For the display information successfully loaded, the identification state of the information prompt identification corresponding to the display information is maintained as the original first display state, instead of the second display state corresponding to the information viewing operation.
[0099] Step 209, receiving the second identification management update data sent by the server.
[0100] Step 210, controlling the target information prompt identification to display in the first display state based on the second identification management update data.
[0101] By updating the identification management data in combination with the above display failure information, the important information can be avoided to be missed, and the information unsuccessfully viewed in the offline state is prompted again.
[0102] In summary, the technical scheme provided by the embodiments of the present application can update the display state of the target information prompt identification associated with the target page display object from the original first display state to the second display state by receiving the information viewing operation corresponding to the target page display object in the preset page. In the case that the terminal restores the network connection, the cache information corresponding to the information viewing operation is sent to the server, so that the server updates the identification management data, thereby ensuring that the display state of the target information prompt identification controlled by the identification management data on the server side is also updated to the second display state. The display states of the target information prompt identification controlled by the server side and the terminal side are kept consistent. When the terminal performs the next page loading, the target information prompt identification can still be controlled to display in the second display state according to the received identification management update data, avoiding the target information prompt identification being restored to the original first display state after the network connection is restored. The problem of abnormal display of the information prompt identification after the terminal restores the network connection is solved, and the accuracy of the information prompt identification display is improved.
[0103] Please refer to Figure 6 which shows the flow of the information prompt method provided by an embodiment of the present application Figure Three . The method can be applied in a computer device, which refers to an electronic device with data calculation and processing capability. For example, the execution subject of each step can be the server 20 in the application program running environment as shown in Figure 1 . The method can include the following steps (610-640).
[0104] Step 610, obtaining identification management data.
[0105] The identification management data is used to control the identification display state of the information prompt identification corresponding to the page display object. The identification management data includes identification attribute information of the information prompt identification corresponding to each page display object.
[0106] The identification attribute information includes user identification, application identification, operation index data, and unread information quantity corresponding to the information prompt identification. The identification display state of the corresponding information prompt identification can be controlled through the identification attribute information.
[0107] In an example embodiment, as shown in FIG. 6, the implementation process of step 610 includes the following sub-steps (611-612), Figure 7 Figure 7 FIG. 6 shows a flowchart of an information prompt method according to an embodiment of the present application. Figure Four .
[0108] Step 611: Obtain page configuration information.
[0109] The page configuration information includes identification attribute information of at least one page display object corresponding to a target application.
[0110] In an example embodiment, a service-side management background provides a product or operation personnel with a page display object that needs to display an information prompt identification, so as to generate a database table tuple as the page configuration information. The field information (representing identification attribute) of the database table tuple includes an application program ID (Identity Document, identity number), a user ID, a red dot display time, a disappearance time, a guide attribute, a diversion function, and the like. The red dot manager also generates nodes of a multi-way tree according to a tuple after calling an interface.
[0111] Step 612: Construct a multi-way tree based on the identification attribute information of the at least one page display object.
[0112] The identification management data is used to represent nodes in the multi-way tree and node information corresponding to the nodes. The nodes in the multi-way tree correspond to the at least one page display object in a one-to-one manner, and the node information is the identification attribute information of the page display object corresponding to the node.
[0113] The page display object is taken as a node to construct the multi-way tree, and the multi-way tree is obtained. The connection relationship between the nodes in the multi-way tree can be determined by the cascade relationship between the page display objects, and the present embodiment does not limit this.
[0114] Step 620: Receive the cached information sent by the terminal in the case of resuming network connection.
[0115] The cache information is used to represent operation results corresponding to information viewing operations of the target page display object in the preset page of the terminal. The cache information can be introduced with reference to the method embodiments of the terminal side, which will not be described herein.
[0116] At step 630, the identification management data is updated according to the cache information, and first identification management update data is obtained.
[0117] The first identification management update data is used to control the identification display state of the target information prompt identification to be updated from the first display state to the second display state.
[0118] The target information prompt identification refers to an information prompt identification associated with the target page display object.
[0119] In an exemplary embodiment, as shown in FIG. 6, the implementation process of step 630 includes the following sub-steps (631-634). Figure 7
[0120] At step 631, identification attribute change information corresponding to the target page display object is generated based on the cache information.
[0121] The identification attribute change information refers to data change information corresponding to each identification attribute field. For example, the terminal receives an information viewing operation on the target page display object, and the user has one click behavior on the target page display object. The number of times of the click event is recorded as 1, which is used as the identification attribute change information.
[0122] The identification attribute change information includes change information corresponding to any one identification attribute field.
[0123] At step 632, a target node corresponding to the target page display object on the multi-way tree is determined.
[0124] The multi-way tree is a tree-shaped data structure generated with at least one page display object as a tree node. Therefore, the target node corresponding to each target page display object on the multi-way tree can be determined.
[0125] At step 633, identification attribute information corresponding to the target node is updated based on the identification attribute change information, and identification attribute update information corresponding to the target node is obtained.
[0126] The identification attribute change information is transmitted to the target node, and the identification attribute information corresponding to the target node is updated. For example, the update data corresponding to the target identification attribute field is obtained by calculating the change data corresponding to the target identification attribute field in the identification attribute change information and the original data corresponding to the target identification attribute field in the original identification attribute information according to a preset rule. For each identification attribute field, the calculation method of the target identification attribute field is used to calculate the update data corresponding to each identification attribute field. The update attribute corresponding to each identification attribute field can be obtained. For the identification attribute field not involved in the identification attribute change information, the original data corresponding to the identification attribute field is kept unchanged, that is, the original data is considered to be the latest data. The update data corresponding to each identification attribute field obtained can represent the identification attribute update information corresponding to the target node.
[0127] In step 634, the identification attribute update information corresponding to each node in the multi-way tree is determined based on the identification attribute update information corresponding to the target node.
[0128] The first identification management update data represents the identification attribute update information corresponding to each node in the multi-way tree.
[0129] In some application scenarios, only the identification attribute information corresponding to the target node in the multi-way tree changes, so the identification attribute update information corresponding to each node in the multi-way tree can be obtained based on the identification attribute update information corresponding to the target node and the original identification attribute information of the other nodes.
[0130] In an exemplary embodiment, the change of the identification attribute update information corresponding to the target node can cause the identification attribute information of other nodes to change, so it is necessary to update the identification attribute data of the nodes in the entire multi-way tree based on the identification attribute update information corresponding to the target node. Accordingly, as shown in FIG. 6, the implementation process of step 634 includes the following steps (634a-634f), Figure 8 The implementation process of step 634 includes the following steps (634a-634f), Figure 8 FIG. 6 shows a flow of an information prompting method provided by an embodiment of the present application Figure Five .
[0131] In step 634a, the target node is taken as a current node.
[0132] In step 634b, the guide attribute information of the current node is obtained.
[0133] The guiding attribute information includes data corresponding to the guiding attribute field in the identification attribute information of the current node. The guiding attribute includes a strong guiding type and a weak guiding type. The strong and weak guiding attributes of the information prompt identification can be strong guiding and weak guiding. The strong guiding type indicates that the user needs to click to enter the next level directory or page corresponding to the information prompt identification, and the information prompt identification of the previous level directory or page changes, such as disappearing. The weak guiding type indicates that the next level directory or page is displayed but not entered, and the information prompt identification of the previous level disappears.
[0134] In step 634c, in the case that the guiding attribute information indicates that the guiding attribute of the current node is a weak guiding type or the current node is a root node of the multi-branch tree, the identification attribute update information corresponding to each node in the multi-branch tree is obtained.
[0135] The root node of the multi-branch tree refers to the original starting point of the multi-branch tree, and the root node does not have a corresponding parent node. Therefore, the process can be stopped, and the identification attribute update information corresponding to each node in the multi-branch tree is obtained.
[0136] If the guiding attribute of the current node is a weak guiding type, it indicates that the identification attribute change information of the node will not cause the change of the identification attribute information of other nodes. Therefore, the process can be stopped, and the identification attribute update information corresponding to each node in the multi-branch tree is obtained.
[0137] In step 634d, in the case that the guiding attribute information indicates that the guiding attribute of the current node is a strong guiding type, the node attribute transmission information corresponding to the current node is generated.
[0138] If the guiding attribute of the current node is a weak guiding type, it indicates that the identification attribute change information of the node will cause the change of the identification attribute information of other nodes. Therefore, the node attribute transmission information corresponding to the current node needs to be determined. The node attribute transmission information is used to change the identification attribute information of the parent node corresponding to the current node. The node attribute transmission information includes change data corresponding to the target identification attribute field. The target identification attribute field is an attribute field in which the corresponding data changes.
[0139] In step 634e, the node attribute transmission information is transmitted to the parent node corresponding to the current node, and the identification attribute update information corresponding to the parent node is obtained.
[0140] In step 634e, the node attribute transmission information is transmitted to the parent node corresponding to the current node, and the identification attribute update information corresponding to the parent node is obtained.
[0141] In step 634f, the parent node is taken as the current node. From step 634b, the step of obtaining the guiding attribute information of the current node is executed.
[0142] In step 640, the first identification management update data is sent to the terminal to control the target information prompt identification to display in the second display state.
[0143] In the case where the guide attribute information indicates that the guide attribute of the current node is a weak guide type or the current node is the root node of the multi-branch tree, the identification attribute update information corresponding to each node in the multi-branch tree is obtained. The first identification management update data represents the identification attribute update information corresponding to each node in the multi-branch tree. The identification attribute update information corresponding to each node is sent to the terminal as the first identification management update data, so that the terminal controls the target information prompt identification to display in the latest second display state, avoiding the target information prompt identification to return to the first display state before the information viewing operation.
[0144] In an exemplary embodiment, as shown in Figure 7 the method further includes (650-670).
[0145] In step 650, the operation information and the display failure information sent by the terminal in the case where the network connection is restored are received.
[0146] The display failure information represents the case where the display information corresponding to the target page display object is not successfully loaded.
[0147] In step 660, the identification management data is updated according to the operation information and the display failure information, and the second identification management update data is obtained.
[0148] The second identification management update data is used to control the identification display state of the target information prompt identification to remain in the first display state. Since the display information is not successfully loaded, the display information is still unread information for the user, and therefore it is necessary to ensure that the display state of the information prompt identification associated with the display information remains in the first display state after the terminal restores the network connection, so as to prompt the user to view the information that fails to be successfully loaded.
[0149] In step 670, the second identification management update data is sent to the terminal to control the target information prompt identification to display in the first display state.
[0150] The embodiments of the present application will be described below in combination with specific application scenarios and examples. As shown in Figure 9 an exemplary technical architecture diagram of a red dot management system is shown. Figure 9 The red dot management system shown in includes a user interface layer deployed on a terminal, and a red dot manager (RedPointManager) and a user red dot database and an application corresponding underlying service deployed on a server side.
[0151] The interface layer is used to control the system program and the red dot display in the application program such as the browser and the applet.
[0152] The red dot manager is a red dot management tool class built in the server, used to bridge the user red dot database (red dot data layer) and the user interface layer of the front end. The presentation layer in the red dot manager copies a copy of the red dot protocol data (RedPointProtocol) and the controller (RedPoint Controller) in the client, so as to solve the logical problem caused by the multi-level linkage of the red dot.
[0153] The red dot manager further includes a data structure layer and a data access layer. The data structure layer maintains a multi-way tree (n-way tree, n≥2) data structure, each node of which represents a red dot object. The red dot protocol is implemented through various functional modules and directly managed by the red dot controller. For the construction of the multi-way tree, the server provides a management background to configure the functions that need to display the red dot to the product or operation personnel, thereby generating a database table tuple. The field information of the database table tuple includes the application program ID (Identity Document, identity number), user ID, red dot display / disappearance time, strong / weak guidance attribute, diversion function, etc. The red dot manager also generates the nodes of the multi-way tree according to a tuple after calling the interface.
[0154] The multi-way tree can take the unread number displayed by the application program as the root node, and the red dot can be traversed through the root node of the n-way tree. Each node provides a getter method to read the red dot data from the user red dot database through the data access layer. In the client, the user interface layer corresponding to each page display object needs to establish a binding relationship with the node (Node) in the multi-way tree. When the red dot data changes, the anonymous function is used to respond to the data transmission in the multi-way tree. Each Node holds a pointer to the parent node (Parent Node). When the display state of the red dot corresponding to the child node changes, the change information is transmitted to the parent node through the strong / weak guidance attribute of the configured child node. The strong / weak guidance attribute of the red dot can have strong guidance and weak guidance. The strong guidance means that the user needs to click into the next level directory or page of the red dot, and the red dot of the previous level directory or page disappears. The weak guidance means that the next level directory or page is displayed but not entered, and the red dot of the previous level disappears.
[0155] When the red dot corresponding to each node is loaded in the user interface of the front end, the display state of the red dot corresponding to the child node of the current node is traversed, if the child node is not a leaf node, the next layer is recursively traversed, and if no red dot is displayed in the lower layer node at the current time point, the red dot of the node is in a hidden state. When the state of the node corresponding to the red dot changes, the change information is transmitted into the multi-way tree through the protocol method in the presentation layer of the red dot manager to update. The controller forwards the updated node data to the user interface layer for display and controls the disappearance behavior of the red dot in the page. Generally, there are three disappearance modes of the red dot, the first is to disappear after being clicked by the user, the second is to disappear after the display time expires, and the third is to disappear by being forcibly configured by the configuration personnel, and the three behaviors are controlled by the controller receiving the node data of the multi-way tree to control the disappearance of the red dot.
[0156] In addition, a bottom server is constructed by Node.js (a JavaScript runtime environment) for managing and storing the terminal user red dot database. The user red dot database creates a database table in the dimension of the application program of the terminal device, and the table fields include the user ID of the application program, the new function array, the long connection message number, the red dot type, the red dot position, the display / hide time, the click number, etc. The red dot of the new function is configured in the field of the database table. The DAO (Data Access Object) interface and Hibernate (an object relationship mapping framework) in the data access layer of the red dot manager can obtain the red dot data through JDBC (Java Database Connectivity). The user red dot database provides the getRedPoints interface for the client, and the red dot data is downloaded at a specific time (such as the application startup, the application switching before and after the background, the application exit, etc.), avoiding the red dot logic display confusion caused by the independent red dot interface mode of each function in the application.
[0157] If there is a red dot cache in the offline environment of the front end, the click or browsing behavior of the user on the red dot diversion function in the above user interface layer is recorded, and the root node information corresponding to the offline state is cached at the end of the user behavior. Alternatively, the root node information can be saved by NSUserDefaults (a lightweight data storage scheme). In the case of good network, it is sent to the server by the terminal, and after the red dot manager of the server processes the red dot data and synchronizes to the user red dot database, the updated red dot data can be downloaded to the terminal at a special time.
[0158] In the above application scenarios, the display and hiding of the red dot are controlled by creating the RedPointManager, and the relationship between the red dots is managed and maintained by establishing the data structure of the multi-way tree. The diversion function automatically generates and configures the display logic by sending the red dot information to the RedPointManager, realizes the unified processing of the red dot from the aspects of the display data of the red dot, the cascade relationship processing, the bubble style, and the like, discards the independent maintenance of the display mode of the red dot by each function, and prevents the logic error of the red dot display. In the above application scenarios, the red dot data is also cached, the root node information is cached by using the NSUserDefaults, and the user operation in the weak network and no network environment is recorded to track the influence of the user operation on the red dot in the offline environment, so that the diversion data of the red dot is more accurate. The red dot management system in the above application scenarios can solve the problems of the abnormal display of the red dot before and after the network connection is restored and the logic error of the red dot data between functions.
[0159] In summary, the technical scheme provided by the embodiments of the present application updates the local identification management data by receiving the cache information corresponding to the information viewing operation of the page display object sent by the terminal in the case of restoring the network connection, ensures that the display state corresponding to the target information prompt identifier controlled by the local identification management data is consistent with the terminal side, and also updates the identification management data from the first display state to the second display state, and sends the identification management update data to the terminal, so that the terminal still maintains the display of the target information prompt identifier in the second display state after restoring the network connection, avoids the target information prompt identifier displayed by the terminal recovering to the original first display state after restoring the network connection, solves the problem of abnormal display of the information prompt identifier after the terminal restores the network connection, and improves the accuracy of the display of the information prompt identifier.
[0160] Please refer to Figure 10 which shows the interactive flowchart of the information prompt method provided by an embodiment of the present application.
[0161] Step 1001, the server acquires page configuration information.
[0162] The page configuration information includes the identification attribute information of at least one page display object corresponding to the target application.
[0163] Step 1002, the server constructs a multi-way tree based on the identification attribute information of the at least one page display object.
[0164] Step 1003, the server sends the identification management data corresponding to the multi-way tree to the terminal.
[0165] The identification management data is used to control the identification display state of the information prompt identifier corresponding to the page display object.
[0166] Correspondingly, the terminal receives the identification management data.
[0167] At step 1004, the terminal displays the preset page based on the identification management data.
[0168] The identification display state of the target information prompt identification associated with the target page display object in the preset page is the first display state.
[0169] The identification management data includes identification attribute information corresponding to each node in the multi-way tree, and the identification attribute information includes data corresponding to each identification attribute field. The terminal can determine whether the data corresponding to each identification attribute field meets the identification display condition corresponding to each identification attribute field, and then display the target information prompt identification corresponding to the identification display state according to the determination result.
[0170] At step 1005, the terminal receives an information viewing operation corresponding to the target page display object in the preset page.
[0171] At step 1006, the terminal generates node cache information based on the information viewing operation.
[0172] At step 1007, the terminal updates the identification display state of the target information prompt identification from the first display state to the second display state based on the node cache information.
[0173] At step 1008, the terminal sends the node cache information corresponding to the information viewing operation to the server in the case of restoring the network connection.
[0174] The terminal sends the node cache information corresponding to the information viewing operation to the server, so that the server updates the identification management data according to the node cache information.
[0175] Correspondingly, the server receives the node cache information sent by the terminal in the case of restoring the network connection.
[0176] At step 1009, the server generates identification attribute change information corresponding to the target page display object based on the node cache information.
[0177] At step 1010, the server determines a target node corresponding to the target page display object on the multi-way tree.
[0178] The multi-way tree is a tree-shaped data structure generated by taking at least one page display object as a tree node.
[0179] At step 1011, the server updates the identification attribute information corresponding to the target node based on the identification attribute change information, to obtain identification attribute update information corresponding to the target node.
[0180] At step 1012, the server takes the target node as a current node.
[0181] Step 1013, the server acquires the boot attribute information of the current node.
[0182] Step 1014, the server generates the node attribute transmission information corresponding to the current node in the case that the boot attribute information indicates that the boot attribute of the current node is the strong boot type.
[0183] Step 1015, the server transmits the node attribute transmission information to the parent node corresponding to the current node, and obtains the identification attribute update information corresponding to the parent node.
[0184] Step 1016, the server takes the parent node as the current node. The step of acquiring the boot attribute information of the current node in step 1013 is executed.
[0185] Step 1017, the server obtains the identification attribute update information corresponding to each node in the multi-branch tree in the case that the boot attribute information indicates that the boot attribute of the current node is the weak boot type or the current node is the root node of the multi-branch tree.
[0186] Step 1018, the server sends the first identification management update data corresponding to the multi-branch tree to the terminal.
[0187] The server sends the first identification management update data corresponding to the multi-branch tree to the terminal, so that the terminal controls the target information prompt identifier to be displayed in the second display state.
[0188] Correspondingly, the terminal receives the first identification management update data sent by the server.
[0189] Step 1019, the terminal controls the target information prompt identifier to be displayed in the second display state based on the first identification management update data.
[0190] The descriptions of the steps in the above interaction process have been introduced in the method embodiments on the terminal side and the method embodiments on the server side, and will not be repeated here.
[0191] The above interaction process will be described in combination with specific examples. As shown in the following example, an example of a red dot display process is exemplarily shown. Figure 11 Figure 11 The red dot display process is shown. After starting the client, the red dot manager calls the red dot interface to obtain red dot data, and constructs a multi-way tree according to the obtained red dot data. In response to loading a page by the client, the red dot manager traverses the nodes of the multi-way tree, and judges whether a current node reached is a leaf node. If not, the next node is traversed; if yes, all child nodes of the current node are obtained and it is judged whether the child nodes include a child node displaying a red dot. If yes, the red dot data corresponding to the node is transmitted to an interface layer to display the red dot and save a user operation behavior; if not, the client saves the user operation behavior. Finally, the server is synchronized to keep the red dot data on the server side consistent with the red dot data on the client side, so as to avoid inconsistent display of the red dot before and after the terminal restores network connection.
[0192] In summary, the technical scheme provided by the embodiments of the present application updates the display state of the target information prompt identifier associated with the target page display object in the terminal from the first display state to the second display state according to the information viewing operation corresponding to the target page display object in the received preset page. In the case where the terminal restores network connection, the terminal sends the node cache information corresponding to the information viewing operation to the server, the server generates the identifier attribute change information of the target page display object according to the received node cache information and transmits the identifier attribute change information to the target node corresponding to the target page display object in the multi-way tree, so as to update the identifier attribute information of the target node and traverse other nodes according to the guide attribute of the target node, to obtain the identifier attribute update information of each node in the multi-way tree, so as to ensure that the display state of each information prompt identifier controlled by the identifier management data on the server side is consistent with that on the terminal side, and is the latest display state. The server sends the updated identifier management data to the terminal, and the terminal can control the target information prompt identifier to remain displayed in the second display state according to the received updated identifier management data in the next page loading, so as to avoid the target information prompt identifier returning to the first display state after restoring network connection, solve the problem of abnormal display of the information prompt identifier after the terminal restores network connection, and improve the accuracy of display of the information prompt identifier.
[0193] The following is an apparatus embodiment of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, refer to the method embodiments of the present application.
[0194] Please refer to Figure 12 which shows a block diagram of an information prompt apparatus provided by an embodiment of the present application Figure OneThe device has the function of implementing the information prompting method, which can be realized by hardware or corresponding software executed by hardware. The device can be a computer device or be arranged in a computer device. The device 1200 can include an operation receiving module 1210, an identification display module 1220, a cached information sending module 1230, and an update data receiving module 1240.
[0195] The operation receiving module 1210 is configured to receive an information viewing operation corresponding to a target page display object on a preset page.
[0196] The identification display module 1220 is configured to update an identification display state of a target information prompting identification from a first display state to a second display state based on the information viewing operation, the target information prompting identification being an information prompting identification associated with the target page display object.
[0197] The cached information sending module 1230 is configured to send cached information corresponding to the information viewing operation to a server in a case where a network connection is restored, so that the server updates identification management data according to the cached information, the identification management data being used to control an identification display state of an information prompting identification corresponding to a page display object.
[0198] The update data receiving module 1240 is configured to receive first identification management update data sent by the server.
[0199] The identification display module 1220 is further configured to control the target information prompting identification to be displayed in the second display state based on the first identification management update data.
[0200] In an example embodiment, the device 1200 further includes an information display module and a failure information generating module.
[0201] The information display module is configured to display display information corresponding to the target page display object in response to the information viewing operation.
[0202] The failure information generating module is configured to generate display failure information corresponding to the target page display object in a case where the display information is not successfully loaded.
[0203] The cached information sending module 1230 is further configured to send the cached information and the display failure information to the server in a case where the network connection is restored, so that the server updates the identification management data according to the cached information and the display failure information.
[0204] The update data receiving module 1240 is further configured to receive second identification management update data sent by the server.
[0205] The identification display module 1220 is further configured to control the target information prompt identification to display in the first display state based on the second identification management update data.
[0206] In an example embodiment, the cache information includes node cache information of a target node corresponding to the target page display object in a multi-way tree, and the identification display module 1220 includes:
[0207] a node cache generation unit configured to generate the node cache information based on the information viewing operation;
[0208] an identification display unit configured to update an identification display state of the target information prompt identification from the first display state to the second display state based on the node cache information.
[0209] In summary, the technical scheme provided by the embodiments of the present application can update the display state of the target information prompt identification associated with the target page display object from the first display state to the second display state by receiving an information viewing operation corresponding to a target page display object in a preset page, and can send the cache information corresponding to the information viewing operation to the server in the case of restoring the network connection of the terminal, so as to make the server update the identification management data, thereby ensuring that the display state of the target information prompt identification controlled by the identification management data on the server side is also updated to the second display state, and the display states of the target information prompt identification controlled by the server side and the terminal side are kept consistent. When the terminal performs the next page loading, the target information prompt identification can still be controlled to display in the second display state according to the received identification management update data, avoiding the target information prompt identification from returning to the original first display state after restoring the network connection, solving the problem of abnormal display of the information prompt identification after restoring the network connection of the terminal, and improving the accuracy of the display of the information prompt identification.
[0210] For reference Figure 13 which shows a block diagram of an information prompt device provided by an embodiment of the present application Figure Two The device has the functions of implementing the above information prompt method, which can be implemented by hardware or corresponding software executed by hardware. The device can be a computer device or can be arranged in a computer device. The device 1300 can include:
[0211] an identification management data management module 1310 configured to acquire identification management data, the identification management data being used to control an identification display state of an information prompt identification corresponding to a page display object;
[0212] The cache information receiving module 1320 is configured to receive cache information sent by the terminal in the case of resuming the network connection, the cache information being used to represent an operation result corresponding to an information viewing operation of a target page display object in a preset page of the terminal;
[0213] The management data updating module 1330 is configured to update the identification management data according to the cache information, to obtain first identification management update data, the first identification management update data being used to control an identification display state of a target information prompt identification to be updated from a first display state to a second display state, the target information prompt identification being an information prompt identification associated with the target page display object;
[0214] The update data sending module 1340 is configured to send the first identification management update data to the terminal, so that the terminal controls the target information prompt identification to be displayed in the second display state.
[0215] In an example embodiment, the cache information receiving module 1320 is further configured to receive the operation information and display failure information sent by the terminal in the case of resuming the network connection, the display failure information being used to represent a case where display information corresponding to the target page display object is not successfully loaded;
[0216] The management data updating module 1330 is further configured to update the identification management data according to the operation information and the display failure information, to obtain second identification management update data, the second identification management update data being used to control the identification display state of the target information prompt identification to remain in the first display state;
[0217] The update data sending module 1340 is further configured to send the second identification management update data to the terminal, so that the terminal controls the target information prompt identification to be displayed in the first display state.
[0218] In an example embodiment, the management data updating module 1330 includes:
[0219] The change information generating unit is configured to generate identification attribute change information corresponding to the target page display object based on the cache information;
[0220] The target node determining unit is configured to determine a target node corresponding to the target page display object on a multi-way tree, the multi-way tree being a tree-shaped data structure generated by taking at least one page display object as a tree node;
[0221] The node attribute updating unit is configured to update identification attribute information corresponding to the target node based on the identification attribute change information, to obtain identification attribute update information corresponding to the target node.
[0222] A multi-tree updating unit is configured to determine the identification attribute updating information of each node in the multi-tree based on the identification attribute updating information corresponding to the target node, and the first identification management updating data represents the identification attribute updating information of each node in the multi-tree.
[0223] In an example embodiment, the multi-tree updating unit comprises:
[0224] A current node determining subunit is configured to take the target node as a current node.
[0225] A guide attribute obtaining subunit is configured to obtain guide attribute information of the current node.
[0226] A multi-tree determining subunit is configured to obtain the identification attribute updating information of each node in the multi-tree in a case where the guide attribute information indicates that the guide attribute of the current node is of a weak guide type or the current node is a root node of the multi-tree.
[0227] A transfer information generating subunit is configured to generate node attribute transfer information corresponding to the current node in a case where the guide attribute information indicates that the guide attribute of the current node is of a strong guide type.
[0228] A parent node attribute updating subunit is configured to transfer the node attribute transfer information to a parent node corresponding to the current node to obtain identification attribute updating information corresponding to the parent node.
[0229] A current node updating subunit is configured to take the parent node as the current node and start execution from the step of obtaining the guide attribute information of the current node.
[0230] In an example embodiment, the management data management module 1310 comprises:
[0231] A configuration information obtaining unit is configured to obtain page configuration information, wherein the page configuration information comprises identification attribute information of at least one page display object corresponding to a target application.
[0232] A multi-tree constructing unit is configured to construct a multi-tree based on the identification attribute information of the at least one page display object.
[0233] The identification management data is used to represent nodes in the multi-tree and node information corresponding to the nodes, the nodes in the multi-tree correspond to the at least one page display object one by one, and the node information is identification attribute information of a page display object corresponding to the node.
[0234] To sum up, the technical scheme provided by the embodiments of the present application updates the local identity management data by receiving the cached information corresponding to the information viewing operation on the page display object sent by the terminal in the case of restoring the network connection, ensures that the display state of the target information prompt identity controlled by the local identity management data is consistent with the terminal side, and also updates the identity management data from the first display state to the second display state, and sends the identity management update data to the terminal, so that the terminal still displays the target information prompt identity in the second display state after restoring the network connection, avoids the target information prompt identity displayed by the terminal from restoring to the original first display state after restoring the network connection, solves the problem of abnormal display of the information prompt identity after the terminal restores the network connection, and improves the accuracy of the display of the information prompt identity.
[0235] It should be noted that the device provided in the above embodiments is only used as an example to illustrate the division of the above functional modules in realizing its functions, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is described in detail in the method embodiments, which will not be described here.
[0236] Please refer to Figure 14 , which shows the structure of the computer device provided by an embodiment of the present application Figure One . The computer device can be a terminal. The computer device is used to implement the information prompt method on the terminal side provided in the above embodiments. Specifically:
[0237] Generally, the computer device 1400 includes a processor 1401 and a memory 1402.
[0238] The processor 1401 can include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1401 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processing), an FPGA (Field Programmable Gate Array), a PLA (Programmable Logic Array). The processor 1401 can also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also known as a CPU (Central Processing Unit), and the coprocessor being a low-power processor for processing data in a standby state. In some embodiments, the processor 1401 can be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 1401 can also include an AI (Artificial Intelligence) processor for processing machine learning-related computing operations.
[0239] The memory 1402 can include one or more computer-readable storage media that can be non-transitory. The memory 1402 can also include a high-speed random access memory, and a nonvolatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is configured to store at least one instruction, at least one program, a code set or an instruction set, which is configured to be executed by one or more processors to implement the information prompting method on the terminal side described above.
[0240] In some embodiments, the computer device 1400 can also optionally include a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402, and the peripheral device interface 1403 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 1403 through a bus, a signal line, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1404, a touch display screen 1405, a camera assembly 1406, an audio circuit 1407, a positioning assembly 1408, and a power supply 1409.
[0241] Those skilled in the art can understand that, Figure 14The structure shown in the figure does not constitute a limitation on the computer device 1400, and can include more or fewer components than shown, or combine certain components, or adopt a different arrangement of components.
[0242] Reference is made to Figure 15 which shows the structure block of the computer device provided by one embodiment of the present application Figure Two The computer device can be a server, for executing the information prompting method on the server side as described above. Specifically:
[0243] The computer device 1500 includes a central processing unit (CPU) 1501, a system memory 1504 including a random access memory (RAM) 1502 and a read-only memory (ROM) 1503, and a system bus 1505 that couples the system memory 1504 to the central processing unit 1501. The computer device 1500 also includes a basic input / output system (I / O) 1506 that provides an interface between the various components within the computer and a mass storage device 1507 for storing an operating system 1513, application programs 1514, and other program modules 1515.
[0244] The basic input / output system 1506 includes a display 1508 for displaying information and an input device 1509, such as a mouse, keyboard, or the like, for inputting information into the computer. The display 1508 and input device 1509 are connected to the central processing unit 1501 through an input / output controller 1510 that is connected to the system bus 1505. The basic input / output system 1506 can also include the input / output controller 1510 for receiving and processing input from a number of other devices, including a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 1510 provides output to a display screen, printer, or other type of output device.
[0245] The mass storage device 1507 is connected to the central processing unit 1501 through a mass storage controller (not shown) that is connected to the system bus 1505. The mass storage device 1507 and its associated computer readable media provide non-volatile storage for the computer device 1500. That is, the mass storage device 1507 can include a computer readable medium (not shown) such as a hard disk or a CD-ROM drive.
[0246] Without loss of generality, computer-readable media can include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid state memory technology, CD-ROM, digital versatile disks (DVD), or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Computer storage media does not, however, include communication media. The system memory 1504 and mass storage device 1507 described above can collectively be referred to as memory.
[0247] According to various embodiments of the present application, the computer device 1500 can also operate in a networking environment via the network 1512 with remote computers. The computer device 1500 can connect to the network 1512 through a network interface unit 1511 connected to the system bus 1505. It is contemplated that the network interface unit 1511 can also be utilized to connect to other types of networks and remote computer systems (not shown).
[0248] The memory also includes a computer program that is stored in the memory and configured to be executed by one or more processors to implement the information prompting method described above.
[0249] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and when executed by a processor, the at least one instruction, the at least one program, the code set or the instruction set implements the information prompting method described above.
[0250] Optionally, the computer readable storage medium can include: ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State Drives), optical disc, etc. Among them, the random access memory can include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0251] In the example embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the information prompting method described above.
[0252] It should be understood that "multiple" mentioned herein refers to two or more. The association relationship of "and / or" describing the associated objects means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. The character " / " generally represents that the associated objects before and after it are in an "or" relationship. In addition, the step numbers described herein only exemplarily show a possible execution order between steps. In some other embodiments, the above steps can also be executed in a different order, such as two different numbered steps being executed simultaneously, or two different numbered steps being executed in an order opposite to that shown in the figure, and the embodiments of the present application do not limit this.
[0253] In addition, in the specific embodiments of the present application, data related to user information and the like are involved. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0254] The above only describes the example embodiments of the present application, and does not limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. An information presentation method characterized by comprising: The method comprises: receiving an information viewing operation corresponding to a target page display object on a preset page; in response to the information viewing operation, displaying presentation information corresponding to the target page display object; based on the information viewing operation, updating an identification display state of a target information prompt identifier from a first display state to a second display state, the target information prompt identifier being an information prompt identifier associated with the target page display object; in the case that the presentation information is successfully loaded, in the case that the network connection is restored, sending the cached information corresponding to the information viewing operation to the server to enable the server to update the identification management data according to the cached information, the identification management data being used to control the identification display state of the information prompt identifier corresponding to the page display object; receiving the first identification management update data sent by the server; based on the first identification management update data, controlling the target information prompt identifier to be displayed in the second display state; in the case that the presentation information is not successfully loaded, generating presentation failure information corresponding to the target page display object; in the case that the network connection is restored, sending the cached information and the presentation failure information to the server to enable the server to update the identification management data according to the cached information and the presentation failure information; receiving the second identification management update data sent by the server; based on the second identification management update data, controlling the target information prompt identifier to be displayed in the first display state.
2. The method of claim 1, wherein the cached information comprises node cached information of a target node corresponding to the target page display object in a multi-way tree, and the updating of the identification display state of the target information prompt identifier from the first display state to the second display state based on the information viewing operation comprises: generating the node cached information based on the information viewing operation; updating the identification display state of the target information prompt identifier from the first display state to the second display state based on the node cached information.
3. An information presentation method characterized by comprising: The method comprises: obtaining identification management data, the identification management data being used to control the identification display state of an information prompt identifier corresponding to a page display object; receiving cached information sent by a terminal in the case that the network connection is restored, the cached information being used to represent an operation result corresponding to an information viewing operation received by a target page display object in a preset page of the terminal; updating the identification management data according to the cached information to obtain first identification management update data, the first identification management update data being used to control the identification display state of a target information prompt identifier to be updated from a first display state to a second display state, the target information prompt identifier being an information prompt identifier associated with the target page display object; sending the first identification management update data to the terminal to enable the terminal to control the target information prompt identifier to be displayed in the second display state; receive operation information and display failure information sent by the terminal in the case of resuming network connection, the display failure information being used to represent a case that the display information corresponding to the target page display object is not successfully loaded; update the identification management data according to the operation information and the display failure information, to obtain second identification management update data, the second identification management update data being used to control the identification display state of the target information prompt identification to remain as the first display state; send the second identification management update data to the terminal, so that the terminal controls the target information prompt identification to be displayed in the first display state.
4. The method of claim 3, wherein, The updating the identification management data according to the cache information to obtain first identification management update data comprises: generating identification attribute change information corresponding to the target page display object based on the cache information; determining a target node corresponding to the target page display object on a multi-way tree, the multi-way tree being a tree-shaped data structure generated by taking at least one page display object as a tree node; updating identification attribute information corresponding to the target node based on the identification attribute change information, to obtain identification attribute update information corresponding to the target node; determining identification attribute update information corresponding to each node in the multi-way tree based on the identification attribute update information corresponding to the target node, the first identification management update data representing the identification attribute update information corresponding to each node in the multi-way tree.
5. The method of claim 4, wherein, The determining identification attribute update information corresponding to each node in the multi-way tree based on the identification attribute update information corresponding to the target node comprises: taking the target node as a current node; obtaining guide attribute information of the current node; in a case that the guide attribute information indicates that the guide attribute of the current node is a weak guide type or the current node is a root node of the multi-way tree, obtaining the identification attribute update information corresponding to each node in the multi-way tree; in a case that the guide attribute information indicates that the guide attribute of the current node is a strong guide type, generating node attribute transmission information corresponding to the current node; transmitting the node attribute transmission information to a parent node corresponding to the current node, to obtain identification attribute update information corresponding to the parent node; taking the parent node as the current node, and starting from the step of obtaining the guide attribute information of the current node.
6. The method of claim 3, wherein, The obtaining identification management data comprises: obtaining page configuration information, the page configuration information comprising identification attribute information of at least one page display object corresponding to a target application; constructing a multi-way tree based on the identification attribute information of the at least one page display object; wherein the identification management data is used to represent nodes in the multi-way tree and node information corresponding to the nodes, the nodes in the multi-way tree corresponding one by one to the at least one page display object, and the node information being identification attribute information of a page display object corresponding to the node.
7. An information presentation device, characterized by comprising: The apparatus comprises: an operation receiving module configured to receive an information viewing operation corresponding to a target page display object on a preset page; The identifier display module is configured to update an identifier display state of a target information prompt identifier from a first display state to a second display state based on the information viewing operation, the target information prompt identifier being an information prompt identifier associated with the target page display object; The cached information sending module is configured to send the cached information corresponding to the information viewing operation to the server in a case where the network connection is restored, so that the server updates identifier management data according to the cached information, the identifier management data being used to control an identifier display state of an information prompt identifier corresponding to a page display object; The update data receiving module is configured to receive first identifier management update data sent by the server; The identifier display module is further configured to control the target information prompt identifier to be displayed in the second display state based on the first identifier management update data; The information display module is configured to display display information corresponding to the target page display object in response to the information viewing operation; The failure information generating module is configured to generate display failure information corresponding to the target page display object in a case where the display information is not successfully loaded; The cached information sending module is further configured to send the cached information and the display failure information to the server in a case where the network connection is restored, so that the server updates the identifier management data according to the cached information and the display failure information; The update data receiving module is further configured to receive second identifier management update data sent by the server; The identifier display module is further configured to control the target information prompt identifier to be displayed in the first display state based on the second identifier management update data.
8. An information presentation device according to claim 7, characterized in that The cached information includes node cached information of a target node corresponding to the target page display object in a multi-way tree, and the identifier display module includes: A node cached information generating unit configured to generate the node cached information based on the information viewing operation; An identifier display unit configured to update an identifier display state of the target information prompt identifier from the first display state to the second display state based on the node cached information.
9. An information presentation device, characterized by comprising: The apparatus includes: A management data management module configured to acquire identifier management data, the identifier management data being used to control an identifier display state of an information prompt identifier corresponding to a page display object; A cached information receiving module configured to receive cached information sent by a terminal in a case where the network connection is restored, the cached information being used to represent an operation result of an information viewing operation received by a target page display object in a preset page of the terminal; A management data update module configured to update the identifier management data according to the cached information, to obtain first identifier management update data, the first identifier management update data being used to control an identifier display state of a target information prompt identifier to be updated from a first display state to a second display state, the target information prompt identifier being an information prompt identifier associated with the target page display object; The update data sending module is configured to send the first identification management update data to the terminal, so that the terminal controls the target information prompt identification to display in the second display state. The cache information receiving module is further configured to receive operation information and display failure information sent by the terminal in the case of resuming network connection, and the display failure information is used to represent a case that display information corresponding to the target page display object is not successfully loaded. The management data updating module is further configured to update the identification management data according to the operation information and the display failure information, to obtain second identification management update data, and the second identification management update data is used to control the identification display state of the target information prompt identification to remain in the first display state. The update data sending module is further configured to send the second identification management update data to the terminal, so that the terminal controls the target information prompt identification to display in the first display state.
10. The information prompting apparatus according to claim 9, wherein The management data updating module comprises: A change information generating unit configured to generate identification attribute change information corresponding to the target page display object based on the cache information. A target node determining unit configured to determine a target node corresponding to the target page display object on a multi-way tree, and the multi-way tree is a tree data structure generated by taking at least one page display object as a tree node. A node attribute updating unit configured to update identification attribute information corresponding to the target node based on the identification attribute change information, to obtain identification attribute update information corresponding to the target node. A multi-way tree updating unit configured to determine identification attribute update information corresponding to each node in the multi-way tree based on the identification attribute update information corresponding to the target node, and the first identification management update data represents the identification attribute update information corresponding to each node in the multi-way tree.
11. The information prompting apparatus according to claim 10, characterized by The multi-way tree updating unit comprises: A current node determining subunit configured to take the target node as a current node. A guide attribute obtaining subunit configured to obtain guide attribute information of the current node. A multi-way tree determining subunit configured to obtain identification attribute update information corresponding to each node in the multi-way tree in the case that the guide attribute information indicates that the guide attribute of the current node is a weak guide type or the current node is a root node of the multi-way tree. A transfer information generating subunit configured to generate node attribute transfer information corresponding to the current node in the case that the guide attribute information indicates that the guide attribute of the current node is a strong guide type. A parent node attribute updating subunit configured to transfer the node attribute transfer information to a parent node corresponding to the current node, to obtain identification attribute update information corresponding to the parent node. A current node updating subunit configured to take the parent node as the current node, and the step of obtaining the guide attribute information of the current node is executed.
12. The information prompting apparatus according to claim 9, wherein The management data management module comprises: A configuration information obtaining unit configured to obtain page configuration information, and the page configuration information comprises identification attribute information of at least one page display object corresponding to a target application. A multi-ary tree constructing unit is configured to construct a multi-ary tree based on the identification attribute information of the at least one page display object; The identification management data is used to represent the nodes in the multi-ary tree and the node information corresponding to the nodes, the nodes in the multi-ary tree correspond to the at least one page display object one by one, and the node information is the identification attribute information of the page display object corresponding to the node.
13. A computer device, comprising: The computer device includes a processor and a memory, and the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the information prompting method of claim 1 or 2, or the information prompting method of any one of claims 3 to 6.
14. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the information prompting method of claim 1 or 2, or the information prompting method of any one of claims 3 to 6.
15. A computer program product, characterised in that, The computer program product includes computer instructions stored in a computer readable storage medium, and the processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the information prompting method of claim 1 or 2, or the information prompting method of any one of claims 3 to 6.
Citation Information
Patent Citations
Information prompting method and device, storage medium and electronic equipment
CN113220182A