Information processing method and apparatus, and electronic device, computer-readable storage medium and computer program product
By displaying the incremental and existing unread message counts on the client and updating the unread message count in real time, the problem of cumbersome operations in the existing technology is solved, and the user experience and information processing efficiency are improved.
Patent Information
- Application Number
- PCT/CN2025/082953
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-27
- Filing Date
- 2025-03-17
- Publication Date
- 2025-10-02
AI Technical Summary
In the prior art, users need to click on unread messages one by one to update the number of unread messages, which results in cumbersome operations, excessive accumulation of information, consumption of system resources, and impact on user experience and efficiency.
By displaying the incremental number of unread messages and the existing number of unread messages on the client, displaying the detailed information page in response to the trigger operation, and updating the number of unread messages in real time after receiving new information, the amount of data transmission is reduced and the clarity and timeliness of information display are improved.
It realizes the quick update of the number of unread messages, reduces the data transmission volume, saves bandwidth resources, improves operational efficiency and the clarity of information display, and ensures the timeliness and dynamic feedback of information.
Smart Images

Figure CN2025082953_02102025_PF_FP_ABST
Abstract
Description
Information processing method, device, electronic device, computer-readable storage medium, and computer program product
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number 202410366238X and application date of March 27, 2024, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0003] The present application relates to the field of communication technologies, and in particular to an information processing method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0004] With the rapid development of Internet technology, more and more applications are available, and users will also receive a large amount of unread messages. The number of unread messages will be displayed on the application page. In related technologies, users need to click on each unread message to reduce the number of unread messages displayed on the page. The process of eliminating the number of unread messages is cumbersome. Too much unread information accumulates, resulting in information overload. At the same time, too many elimination operations will increase the load on the database, thereby consuming system resources and network bandwidth, resulting in inefficient information processing and increased waiting time. Summary of the Invention
[0005] In view of this, embodiments of the present application provide an information processing method, apparatus, electronic device, computer-readable storage medium, and computer program product, which can quickly update the number of unread messages and improve user experience.
[0006] The embodiments of this application provide the following technical solutions:
[0007] An embodiment of the present application provides an information processing method, applied to an electronic device, the method comprising:
[0008] Displaying a first page of the client, wherein the first page includes an entrance to the second page and an incremental number of unread messages, where the incremental number of unread messages is the total number of unread messages received after the second page was last displayed;
[0009] In response to a triggering operation on an entry to the second page, displaying the second page, wherein the second page includes a plurality of information categories and a number of stored unread messages corresponding to each of the plurality of information categories, the number of stored unread messages being the number of unread messages accumulated in the information category;
[0010] In response to receiving new information of at least one of the information categories after displaying the second page, based on the new information of at least one of the information categories, the number of existing unread information corresponding to at least one of the information categories is updated, and the incremental number of unread information is updated.
[0011] An embodiment of the present application provides an information processing device, the device comprising:
[0012] a first display module configured to display a first page of the client, wherein the first page includes an entrance to the second page and an incremental number of unread messages, where the incremental number of unread messages is the total number of unread messages received after the second page was last displayed;
[0013] a second display module configured to display the second page in response to a triggering operation on an entry to the second page, wherein the second page includes a plurality of information categories and a number of stored unread messages corresponding to the plurality of information categories, the number of stored unread messages being the number of unread messages accumulated in the information categories;
[0014] The quantity update module is configured to update the number of existing unread messages corresponding to at least one of the information categories and update the incremental number of unread messages based on the new information of at least one of the information categories in response to receiving new information of at least one of the information categories after displaying the second page.
[0015] An embodiment of the present application provides an electronic device, comprising:
[0016] A memory configured to store executable instructions for implementing the information processing method provided in the embodiments of the present application;
[0017] The processor is configured to execute the executable instructions stored in the memory to implement the information processing method provided in the embodiment of the present application.
[0018] An embodiment of the present application provides a computer storage medium, in which a computer program or computer executable instructions are stored, which are used to implement the information processing method provided in the embodiment of the present application when executed by a processor.
[0019] An embodiment of the present application provides a computer program product, including a computer program or computer-executable instructions. When the computer program or computer-executable instructions are executed by a processor, the information processing method provided in the embodiment of the present application is implemented.
[0020] The embodiments of the present application have the following beneficial effects:
[0021] The first page only displays the incremental unread information received after entering the second page. Compared with displaying the detailed content of the unread information, it can reduce the amount of data transmission and save bandwidth resources. The second page displays the existing unread information of all information categories, realizing the display of different types of unread information on different pages, and improving the clarity of the quantity display; after displaying the second page, if new information is received, by updating the incremental unread information number in the first page, the effect of prompting the number of new information received after displaying the second page is achieved, avoiding the continuous accumulation of the number of unread information on the first page, compared with manually checking the information to update the incremental unread information number on the first page, the operation efficiency is higher; by updating the existing unread information in the second page, the effect of prompting the user of the current accumulated number of unread information in different information categories is achieved, and the comparison of the number of unread information before and after the second page can be displayed in time, ensuring the timeliness and dynamic feedback of the information. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] FIG1 is a schematic diagram of the architecture of an information processing system 100 provided in an embodiment of the present application;
[0023] FIG2 is a schematic structural diagram of a terminal 400 provided in an embodiment of the present application;
[0024] FIG3A is a schematic diagram of a first flow chart of an information processing method provided in an embodiment of the present application;
[0025] FIG3B is a schematic diagram of a second flow chart of the information processing method provided in an embodiment of the present application;
[0026] FIG3C is a schematic diagram of a third flow chart of the information processing method provided in an embodiment of the present application;
[0027] FIG3D is a schematic diagram of a fourth flow chart of the information processing method provided in an embodiment of the present application;
[0028] FIG3E is a fifth flow chart of the information processing method provided in an embodiment of the present application;
[0029] FIG3F is a sixth flow chart of the information processing method provided in an embodiment of the present application;
[0030] FIG3G is a seventh flow chart of the information processing method provided in an embodiment of the present application;
[0031] FIG3H is a schematic diagram of an eighth flow chart of the information processing method provided in an embodiment of the present application;
[0032] FIG4A is a schematic diagram of a first application of the information processing method provided in an embodiment of the present application;
[0033] FIG4B is a schematic diagram of a second application of the information processing method provided in an embodiment of the present application;
[0034] FIG4C is a schematic diagram of a third application of the information processing method provided in an embodiment of the present application;
[0035] FIG4D is a schematic diagram of a fourth application of the information processing method provided in an embodiment of the present application;
[0036] FIG4E is a schematic diagram of a fifth application of the information processing method provided in an embodiment of the present application;
[0037] FIG5A is a schematic diagram of a sixth application of the information processing method provided in an embodiment of the present application;
[0038] FIG5B is a seventh application diagram of the information processing method provided in an embodiment of the present application;
[0039] FIG5C is a schematic diagram of an eighth application of the information processing method provided in an embodiment of the present application;
[0040] FIG5D is a ninth application diagram of the information processing method provided in an embodiment of the present application;
[0041] FIG5E is a schematic diagram of the tenth application of the information processing method provided in an embodiment of the present application;
[0042] FIG5F is a schematic diagram of an eleventh application of the information processing method provided in an embodiment of the present application;
[0043] FIG6 is a schematic diagram of the principle of one-way control in the related art provided by an embodiment of the present application;
[0044] FIG7 is a schematic diagram showing the principle of the incremental red dot scheme provided in an embodiment of the present application;
[0045] FIG8 is a structural diagram of a counter provided in an embodiment of the present application.
[0046] It should be pointed out that the above-mentioned "first" and "second" are only used to distinguish different solutions, and do not represent the degree of distinction between the advantages and disadvantages of the solutions or the priority in the implementation process. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0048] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0049] In the following description, the terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0050] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0051] Unless otherwise specified, "at least one" mentioned below refers to one or more situations, and "a plurality of" may refer to two or more situations.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0053] The relevant data collection and processing in the embodiments of this application should be strictly in accordance with the requirements of relevant national laws and regulations when applied in examples, and the informed consent or separate consent of the personal information subject should be obtained. Subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.
[0054] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0055] 1) The first page, which includes at least one function item or a function display page in the client. Function items include live streaming, short videos, news subscriptions, games, and shopping. The first page may include multiple levels of sub-pages with a hierarchical jump relationship. Except for the last level of sub-pages, each sub-page includes a portal to the next level of sub-pages.
[0056] 2) Information categories refer to the classification of various types of notifications or interactions users receive on social media, content platforms, applications, or other online services. These categories help users organize and manage their notifications, enabling them to quickly identify and respond to different types of information. Information categories include at least one of the following: comment, like, follow, share, and favorite.
[0057] 3) The second page, which can be redirected or displayed via the first page, includes multiple information categories. If the first page includes multiple subpages, the last subpage of the first page includes a portal to the second page. In response to a triggering operation on the portal to the second page, the second page is displayed. The portal to the second page can be displayed in various forms, for example, it can be a user's avatar or an arrow.
[0058] 4) The third page includes all unread messages of any information category. The second page includes entrances to the third page corresponding to multiple information categories.
[0059] 5) Incremental unread message count: The total number of unread messages received by the client since the last time the second page was displayed on the client. For example, if the first page displays 50 unread messages, and after the second page is displayed, the first page no longer displays unread messages. If 20 more unread messages are received, the total number of unread messages received will be displayed as 20 on the first page, i.e., the incremental unread message count is 20.
[0060] 6) The number of unread messages in the second page is the number of unread messages accumulated in each of the multiple message categories. For example, if there are 5 unread messages in the Likes category, 6 unread messages in the Comments category, and 7 unread messages in the Followed category, the number of unread messages in the Likes category, Comments category, and Followed category will be 5, 6, and 7, respectively.
[0061] 7) Counter: A data storage structure in the server used to record the number of unread messages. The counter includes multiple sub-counters, each corresponding to an information category, and the multiple sub-counters are used to count the unread messages in multiple information categories.
[0062] 8) Snapshot data, which is data recorded by a counter running on a server corresponding to the client when the second page is displayed. The snapshot data includes the number of unread messages (i.e., first count values) in multiple information categories at the time the second page is displayed (i.e., the first timestamp).
[0063] 9) Split-screen display mode displays multiple pages on the same screen, allowing users to display multiple pages simultaneously on a single client screen. For example, in response to a triggering operation on an entry to a second page within a first page, the first and second pages are displayed simultaneously. The first and second pages can be the same size, and the ratio of the sizes of the first and second pages can also be the ratio of the amount of content displayed on the first and second pages.
[0064] 10) Single-screen display mode is a mode in which only one page is displayed on a screen at a time. For example, the first page is displayed, and in response to a trigger operation for an entry to the second page in the first page, the first page is hidden and the second page is displayed.
[0065] 11) Interactive notifications are a way to display the number of unread messages. This means the number of unread messages can be encapsulated in an interactive notification. Interactive notifications can take many forms. For example, an interactive notification can be a red circle that displays the number of unread messages.
[0066] 12) Peer-to-peer messaging is a type of messaging that is transmitted only between two users. Peer-to-peer messaging, without the need for a central server, allows real-time, private communication between users. It is commonly used for instant messaging, file sharing, and other applications requiring direct connectivity. This type of messaging also includes group messaging.
[0067] 13) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0068] 14) Human-computer interaction interface, which is used to provide an interface for human-computer interaction functions / an interface for displaying pages and information.
[0069] For example, graphical user interface (GUI) display, such as augmented reality (AR) interface, virtual reality (VR) interface, voice user interface (VUI), interactive projection interface (using projection technology to display information on a plane), eye movement detection interface (interface controlled by detecting the user's line of sight), holographic interface (three-dimensional hologram formed by projecting images through holographic projection technology, so that stereoscopic images can be seen without wearing special glasses), multimodal interface (interface that combines multiple interaction methods, such as touch, vision, hearing, etc.), brain-machine interface (BMI) interface, etc.
[0070] In related technologies, users are often required to click on each unread message in turn. Only after the specific message content is displayed can the number of unread messages displayed on the page be reduced in turn, and only the total number of unread messages is displayed on the page, which makes the interaction path too long and the process of eliminating the number of unread messages cumbersome. Too many unread messages accumulate, affecting the user experience.
[0071] Based on the above analysis, the applicant found that the information processing method of the existing technology cannot update the number of unread messages displayed on the outer page when the specific content of the information has not been viewed. To address the above problem, the embodiment of the present application provides an information processing method that can quickly update the number of unread messages and improve the user experience.
[0072] The embodiments of the present application provide an information processing method, apparatus, electronic device, computer-readable storage medium, and computer program product that can quickly update the number of unread messages and enhance the user experience. The following describes exemplary applications of the electronic device provided by the embodiments of the present application. The electronic device provided by the embodiments of the present application can be implemented as various types of terminals, such as laptops, tablet computers, desktop computers, set-top boxes, smartphones, smart speakers, smart watches, smart televisions, and in-vehicle terminals, and can also be implemented as a server. The following describes exemplary applications of the electronic device implemented as a terminal.
[0073] Refer to Figure 1, which is a schematic diagram of the architecture of the information processing system 100 provided in an embodiment of the present application. In order to support an information processing application, the terminal 400 is connected to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.
[0074] Terminal 400 is configured to display a first page of a client on a human-computer interaction interface 410, wherein the first page includes an entry to a second page and an incremental number of unread messages; in response to a triggering operation on the entry to the second page, display a second page, wherein the second page includes multiple information categories and the number of existing unread messages corresponding to each of the multiple information categories, the number of existing unread messages being the number of unread messages accumulated in the information category; in response to receiving new information for at least one information category after displaying the second page, update the number of existing unread messages corresponding to each of the at least one information category based on the new information for the at least one information category, and update the incremental number of unread messages. Server 200 is configured to count unread messages and send the number of unread messages to terminal 400 for display on the human-computer interaction interface 410 of terminal 400.
[0075] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal and the server may be connected directly or indirectly via wired or wireless communication, which is not limited in the embodiments of the present application.
[0076] Referring to FIG. 2 , FIG. 2 is a schematic diagram of the structure of a terminal 400 provided in an embodiment of the present application. The terminal 400 shown in FIG. 2 includes: at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in the terminal 400 are coupled together via a bus system 440. It will be understood that the bus system 440 is used to implement connection and communication between these components. In addition to including a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in FIG. 2 , all of the various buses are labeled as the bus system 440.
[0077] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0078] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0079] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0080] The memory 450 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0081] In some embodiments, the memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.
[0082] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, and driver layer, which are used to implement various basic services and process hardware-based tasks;
[0083] A network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420. Exemplary network interfaces 420 include Bluetooth, Wi-Fi, and Universal Serial Bus (USB);
[0084] a presentation module 453 for enabling presentation of information via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripheral devices and displaying content and information);
[0085] The input processing module 454 is configured to detect one or more user inputs or interactions from one of the one or more input devices 432 and to translate the detected inputs or interactions.
[0086] In some embodiments, the apparatus provided in the embodiments of the present application can be implemented using software. FIG2 shows an information processing device 455 stored in memory 450. This information processing device 455 can be software in the form of a program or plug-in, and includes the following software modules: a first display module 4551, a second display module 4552, and a quantity update module 4553. These modules are logical and can be arbitrarily combined or further separated according to the functions implemented. The functions of each module will be described below.
[0087] In some embodiments, the terminal or server can implement the information processing method provided by the embodiment of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be commands, machine instructions or software instructions at the microprogram level. The computer program can be a native program or software module in the operating system; it can be a local (Native) application (APPlication, APP), that is, a program that needs to be installed in the operating system to run, such as a live broadcast APP or an instant messaging APP; it can also be a small program that can be embedded in any APP, that is, a program that can be run only by downloading it to a browser environment. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.
[0088] The information processing method provided in the embodiment of the present application will be described in conjunction with the exemplary application and implementation of the terminal provided in the embodiment of the present application.
[0089] Refer to Figure 3A, which is a first flow chart of the information processing method provided in an embodiment of the present application. The terminal is used as the main body and the steps shown in Figure 3A will be explained.
[0090] In step 101, a first page of a client is displayed, wherein the first page includes an entrance to a second page and an incremental number of unread messages, where the incremental number of unread messages is the total number of unread messages received after the second page was last displayed.
[0091] In some embodiments, the client display page can be in single-screen mode or multi-screen mode. The client can be an instant messaging client, and the first page can be a function aggregation page in the instant messaging client, which may include multiple function items, such as live broadcast, short video, news subscription, games and shopping, and each function item corresponds to multiple information categories. The incremental unread information number of the corresponding function item can be displayed in the area corresponding to each function item. The incremental unread information number can be carried in the incremental unread interactive notification. The incremental unread information number is the total number of messages received and in an unread state after the second page was last displayed. The incremental unread interactive notification can be expressed in a simple number or in a number combined with other graphic elements. The other graphic elements can be a circle or a plus sign with a color (such as a striking red).
[0092] For example, if the last time the second page was displayed was 10:30 and the current time is 11:00, between 10:30 and 11:00, the number of unread messages received by the live broadcast function item was 5, the number of unread messages received by the short video function item was 0, the number of unread messages received by the news subscription function item was 1, the number of unread messages received by the game function item was 3, and the number of unread messages received by the shopping function item was 2. Then the total number of unread messages received after the last display of the second page is 5+0+1+3+2=11, that is, the incremental number of unread messages is 11.
[0093] In some embodiments, the first page includes multiple levels of sub-pages in a step-by-step jump relationship, where multiple levels refers to two or more levels, and each of the multiple levels of sub-pages includes an incremental number of unread messages. See Figure 3B, which is a second flow diagram of the information processing method provided in an embodiment of the present application. Step 101 of Figure 3A, "Displaying the First Page of the Client," can be implemented via steps 1011 to 1012 of Figure 3B, as described in detail below.
[0094] In step 1011, the first subpage in the multi-level subpage is displayed, wherein the first subpage includes an entrance to the second subpage, the first subpage is any level subpage in the multi-level subpage except the last level subpage, and the second subpage is the next level subpage of the first subpage.
[0095] In some embodiments, taking two levels of sub-pages as an example, the first sub-page can be a page including multiple function items, and the second sub-page, that is, the last level sub-page, can be a details page corresponding to any function item. The entrance to the second sub-page corresponding to each function item can be designed in the form of a button, a card, or a list item. A red circle can be displayed on the entrance to the second sub-page corresponding to each function item. The red circle includes the number of unread messages in the information category corresponding to the function item, which is used to prompt the user that there are new unread messages in the information category.
[0096] For example, when the function item is a short video, the first sub-page includes a short video function item and an entrance to the second sub-page corresponding to the short video function item. In response to a trigger operation on the entrance to the second sub-page corresponding to the short video function item, the second sub-page is displayed, wherein the second sub-page can be a details page for the short video, and the short video can be switched in the second sub-page by sliding.
[0097] In step 1012, in response to a trigger operation for an entry of the second subpage in the first subpage, the second subpage is displayed, wherein, when the second subpage is not the last-level subpage, the second subpage includes an entry of the next-level subpage of the second subpage, and when the second subpage is the last-level subpage, the second subpage includes an entry of the second page.
[0098] In some embodiments, the second sub-page further includes an entry to a sub-page one level above the second sub-page, and in response to a triggering operation on the entry to the sub-page one level above, the sub-page one level above the second sub-page is displayed. The triggering operation can be any of the following forms: click, long press, slide, or voice command.
[0099] For example, the entrance to any sub-page can be displayed in the upper right corner of the previous sub-page. The entrance can be displayed in various forms, such as a red circle or an arrow. For example, if the entrance is a red circle, the red circle can include the incremental number of unread messages. The incremental number of unread messages included in each sub-page is the same.
[0100] The embodiments of the present application utilize a step-by-step redirect design to reduce initial page load time, improve application responsiveness and performance, and allow for gradual, in-depth content search, avoiding information overload. Clear step-by-step redirect relationships help users better understand the application's structure and reduce the likelihood of getting lost. Each page includes an incremental unread message count, providing real-time notification of the total number of unread messages and improving information management efficiency.
[0101] Continuing to refer to Figure 3A, in step 102, in response to a trigger operation for the entrance to the second page, the second page is displayed, wherein the second page includes multiple information categories and the number of existing unread information corresponding to the multiple information categories, and the number of existing unread information is the number of unread information accumulated in the information category.
[0102] In some embodiments, there may be multiple entries corresponding to the second pages in the first page. In response to a triggering operation on any entry of the second page, the second page corresponding to the triggered entry is displayed.
[0103] As an example, the second page includes multiple information categories, such as comments, likes, follows, shares and collections. By triggering any function item in the first page, the second page corresponding to the function item is obtained.
[0104] In some embodiments, when the first page includes multiple levels of sub-pages, the last level of sub-page of the first page includes an entry to the second page, and the second page is displayed in response to a triggering operation on the entry to the second page.
[0105] Continuing with the example of step 1012 above, when the second subpage is the last-level subpage, the second subpage includes an entry to the second page, and in response to a triggering operation on the entry to the second page in the second subpage, the second page is displayed.
[0106] In step 103, in response to receiving new information of at least one information category after displaying the second page, the number of existing unread information corresponding to at least one information category is updated based on the new information of at least one information category, and the incremental number of unread information is updated.
[0107] In some embodiments, in response to receiving new information of at least one information category, i.e., new unread information, after displaying the second page and before entering the third page, the following processing is performed in parallel or serially based on the new information of at least one information category: updating the number of existing unread information corresponding to at least one information category, i.e., superimposing the number of existing unread information before displaying the second page, and adding 1 to the number of existing unread information of the information category on the second page each time a new information of an information category is received, and updating the incremental number of unread information, i.e., setting the incremental number of unread information before displaying the second page to zero and then superimposing the unread number, and adding 1 to the incremental number of unread information on the first page each time a new information of any information category is received.
[0108] Following the example of step 101 above, if the current time is 11:00, the current time is after the second page is displayed and before entering the third page, if the second page is the page corresponding to the short video function item, the information categories include likes, comments, favorites and forwarding, if before the second page is displayed, the number of unread messages corresponding to likes is 1, the number of unread messages corresponding to comments is 3, the number of unread messages corresponding to favorites is 5, the number of unread messages corresponding to forwarding is 2, and the number of incremental unread messages is 1+3+5+2=11. If after the second page is displayed and before entering the third page, 1 like is received, There are new messages in the Likes category, 0 new messages in the Comments category, 2 new messages in the Favorites category, and 1 new message in the Forwards category. The number of existing unread messages corresponding to Likes, Comments, Favorites, and Forwards will be updated respectively. That is, the number of existing unread messages corresponding to Likes is 2, the number of existing unread messages corresponding to Comments is 3, the number of existing unread messages corresponding to Favorites is 7, and the number of existing unread messages corresponding to Forwards is 3. The incremental number of unread messages 11 before displaying the second page will be set to zero. The sum of the number of new messages corresponding to Likes, Comments, Favorites, and Forwards is 1+0+2+1=4, so the incremental number of unread messages will be updated to 4.
[0109] In some embodiments, step 103 "updating the number of existing unread messages corresponding to at least one information category" can be achieved by performing the following operations: for each information category in multiple information categories, updating the number of existing unread messages corresponding to the information category to a first number of messages, wherein the first number of messages is the sum of the number of existing unread messages corresponding to the information category and the number of new messages in the information category.
[0110] As an example, the client can calculate the number of first messages, or the client can report the number of existing unread messages corresponding to the information category to the server corresponding to the client, and then the server can calculate the number of first messages and send it to the client, triggering the client to update.
[0111] In some embodiments, step 103 of "updating the incremental unread message count" can be implemented by performing the following operations: updating the incremental unread message count to a second message count, where the second message count is the total number of new messages of at least one information category.
[0112] As an example, the incremental number of unread messages is updated to the second number of messages, that is, when new messages of at least one information category are received after the second page is displayed, the incremental number of unread messages is replaced from the incremental number of unread messages before entering the second page to the second number of messages. If there are multiple new messages, the new messages of each information category are added together to obtain the second number of messages.
[0113] In some embodiments, when the client is in split-screen display mode, the first page and the second page are both in display state, and the above-mentioned "updating the incremental number of unread messages to the second number of messages" can be achieved by performing the following operations: in response to the client being in split-screen display mode, the incremental number of unread messages displayed on the first page is updated to the second number of messages.
[0114] Continuing with the example of step 103 above, the incremental number of unread messages before displaying the second page is 11. After displaying the second page and receiving new messages, the incremental number of unread messages is updated to 4, that is, the second number of messages is 4. When the client is in split-screen display mode, when new messages are received, the number of existing unread messages corresponding to each information category on the second page and the incremental number of unread messages displayed on the first page are synchronously updated, that is, the incremental number of unread messages displayed on the first page is updated to the second number of messages, 4.
[0115] In the split-screen display mode of the embodiment of the present application, the first page and the second page are visible at the same time, so the incremental number of unread messages can be updated in real time. This allows the user to immediately see the updated incremental number of unread messages on the first page while viewing the content of the second page, thereby improving the real-time nature of the information. The split-screen mode allows the user to perform multiple tasks at the same time, such as browsing other content while viewing messages. The real-time updated number of unread messages can help users understand whether there is any new important information that needs to be processed without leaving the current task. Since the incremental number of unread messages is updated in real time on the first page, users do not need to switch pages frequently to check for new messages, which reduces interference and improves work efficiency.
[0116] In some embodiments, when the client is in single-screen display mode and the second page is in display state, the first page is in hidden state, and the above-mentioned "updating the incremental unread information number to the second information number" can be implemented in the following way: in response to the client being in single-screen display mode, the incremental unread information number in the cached page data of the first page is updated to the second information number, wherein the cached page data of the first page is used to refresh the page when the first page switches to display state.
[0117] Continuing with the example of step 103 above, the incremental number of unread messages before displaying the second page is 11. After displaying the second page and receiving new messages, the incremental number of unread messages is updated to 4, that is, the second number of messages is 4. When the client is in single-screen display mode, when new messages are received, the number of existing unread messages corresponding to each information category in the second page and the incremental number of unread messages in the cached page data of the first page are synchronously updated, that is, the incremental number of unread messages in the cached page data of the first page is updated to the second number of messages 4. In response to the trigger operation for the entrance to the first page, the second number of messages 4 is displayed on the first page.
[0118] In the embodiment of the present application, in the single-screen display mode, when the second page is in the display state, the first page is in the hidden state. By updating the incremental unread information number in the cached page data of the first page, the information can be kept updated without occupying additional resources. When the user switches back to the first page from the second page, the first page can be quickly refreshed to display the latest incremental unread information number, which improves the efficiency of page switching and reduces the user's waiting time. By updating the incremental unread information number in the cached page data, it is ensured that the incremental unread information number on the first page is the latest in any display mode, maintaining the consistency and accuracy of the information. In the single-screen display mode, there is no need to frequently request data on the incremental unread information number from the server, saving network bandwidth.
[0119] As an example of steps 101 to 103, the client can be in a single-screen display mode, see Figure 4A, which is a first application diagram of the information processing method provided by an embodiment of the present application. If the first page includes multiple levels of sub-pages, taking two levels of sub-pages as an example, in the left figure of Figure 4A, the first sub-page 210 of the first page of the client is displayed, and the first sub-page 210 includes multiple function items, such as function item 211, function item 212, function item 213, function item 214 and function item 215. Each function item in the first sub-page 210 can include an entrance to a second sub-page corresponding to the function item, such as entrance 217 to the second sub-page, and an incremental number of unread messages in a circular icon 216, for example, the incremental number of unread messages is 10. In response to a triggering operation on entry 217 of the second sub-page, a second sub-page 218, the final sub-page, is displayed in the middle diagram of FIG4A . Second sub-page 218 includes entry 219 for the second page and entry 220 for returning to the first sub-page. The incremental unread message count of 10 can be displayed in a circular icon within entry 219 of the second page. Second sub-page 218 is the second sub-page corresponding to function item 211. In response to a triggering operation on entry 219 of the second page, a second page 221 is displayed in the right diagram of FIG4A . Second page 221 includes entry 222 for returning to the second sub-page and multiple information categories, such as information category 223, information category 224, information category 225, information category 226, and information category 227. Each information category is followed by the number of unread messages corresponding to that information category, such as 1 for information category 224 and 9 for information category 225.
[0120] As an example of steps 101 to 103, see FIG4B , which is a second application diagram of the information processing method provided by an embodiment of the present application. In the left figure of FIG4B , after the second page 221 is displayed, in response to a trigger operation for the entry 222 for returning to the second sub-page, the second sub-page 218 is displayed in the middle figure of FIG4B , at which time the number of incremental unread messages in the second sub-page is 0. In response to a trigger operation for the entry 220 for returning to the first sub-page, the first sub-page 210 is displayed in the right figure of FIG4B , at which time the number of incremental unread messages corresponding to the function item 212 is 0.
[0121] As an example of steps 101 to 103, see FIG4C , which is a schematic diagram of a third application of the information processing method provided in an embodiment of the present application. In response to receiving new information of at least one information category after displaying the second page, for example, the number of new information of information category 224 is 1, the number of new information of information category 225 is 2, and the total number of new information is 3, in the left diagram of FIG4C , if the new information all belongs to function item 212, then the incremental number of unread information is displayed as 3 in circular icon 216 of first sub-page 210. In response to a triggering operation on entry 217 of the second sub-page, in the middle diagram of FIG4C , the incremental number of unread information is displayed as 3 in entry 219 of the second page of second sub-page 218. In response to a triggering operation on entry 219 of the second page, in the right diagram of FIG4C , on second page 221, the number of existing unread information corresponding to information category 224 is updated to 2, and the number of existing unread information corresponding to information category 225 is updated to 11.
[0122] In some embodiments, the second page also includes entrances to third pages corresponding to multiple information categories. After step 102 "displaying the second page", the following operations can also be performed: in response to the trigger operation of the entrance to the third page corresponding to the first information category, the third page corresponding to the first information category is displayed, and the number of unread information corresponding to the first information category on the third page is set to zero, wherein the first information category is any one of the multiple information categories.
[0123] As an example, see FIG4D , which is a fourth application diagram of the information processing method provided in an embodiment of the present application. In the left diagram of FIG4D , when the second page 221 is displayed, the second page 221 includes entrances to third pages corresponding to multiple information categories, such as an entrance 228 to the third page corresponding to information category 225. In response to a trigger operation on the entrance 228 corresponding to the third page 225, in the middle diagram of FIG4D , the third page 229 corresponding to the first information category 225 is displayed, and the number of unread messages 11 corresponding to the first information category on the third page is reset to zero. The third page 229 also includes an entrance 230 for returning to the second page. In response to a trigger operation on the entrance 230 of the second page, in the right diagram of FIG4D , the number of unread messages corresponding to the first information category 225 on the second page 221 is reset to zero.
[0124] As an example, see FIG4E , which is a fifth application diagram of the information processing method provided by an embodiment of the present application. In the left figure of FIG4E , the number of new messages in information category 224 is 1, and the number of new messages in information category 225 is 2. After the number of existing unread messages in information category 225 is set to zero on the second page 221, in response to a trigger operation for entry 222 for returning to the second sub-page, the second sub-page 218 is displayed in the middle figure of FIG4E . In the second sub-page 218, the number of incremental unread messages included in entry 219 of the second page is updated to 1. In response to a trigger operation for entry 220 for returning to the first sub-page, the first sub-page 210 is displayed in the right figure of FIG4E , and the number of incremental unread messages included in the circular icon 216 behind the function item 212 in the first sub-page 210 is updated to 1.
[0125] In some embodiments, referring to FIG. 3C , FIG. 3C is a schematic diagram of a third flow chart of an information processing method provided in embodiments of the present application. Following the display of the third page corresponding to the first information category in the aforementioned embodiment, steps 201 to 202 of FIG. 3C may also be executed in response to receiving new information of the first information category after the third page is displayed, as described in detail below.
[0126] In step 201, if the difference between the time when the new information of the first information category is received and the time when all the unread information in the third page is in the read state is less than the time threshold, the number of existing unread information corresponding to the first information category in the second page is set to zero, and the incremental number of unread information in the first page remains unchanged.
[0127] For example, if after the moment when new information of the first information category is received and before the moment when all unread information in the third page is in the read state, the number of existing unread information corresponding to the first information category in the second page is 11, the number of new messages in the first information category is 3, and the time threshold is 5 seconds, if the difference between the moment when the new information of the first information category is received and the moment when all unread information in the third page is in the read state is 3 seconds, then the number of existing unread information corresponding to the first information category in the second page will be set to zero, and the incremental number of unread information in the first page will remain unchanged at 3.
[0128] In step 202, if the difference between the time when the new information of the first information category is received and the time when all the unread information in the third page is in the read state is greater than or equal to the time threshold, based on the new information of the first information category, the number of existing unread information corresponding to the first information category is updated, and the incremental number of unread information is updated.
[0129] For example, if after the moment when the new information of the first information category is received and before the moment when all the unread information in the third page is in the read state, the number of existing unread information corresponding to the first information category in the second page is 11, the number of new messages in the first information category is 3, and the time threshold is 5 seconds, if the difference between the moment when the new information of the first information category is received and the moment when all the unread information in the third page is in the read state is 8 seconds, then the number of existing unread information corresponding to the first information category in the second page is updated to 14, and the incremental number of unread information in the first page is first reset to zero and then added by 3, that is, the incremental number of unread information in the first page is updated to 3.
[0130] In some embodiments, the server corresponding to the client includes a counter, which includes multiple sub-counters, each of which is used to count unread messages in multiple information categories. See Figure 3D, which is a fourth flow chart of the information processing method provided in an embodiment of the present application. After the above embodiment of "displaying the third page corresponding to the first information category", a notification is sent to the server immediately after entering the third page, or after all unread messages on the third page are triggered, that the unread messages on the third page are in a read state, triggering the server to execute steps 301 to 302 of Figure 3D, which are described in detail below.
[0131] In step 301, in response to the fact that all the unread information in the third page is in the read state, and the difference between the time when the unread information is in the read state and the time when the new information of the first information category is received is less than or equal to the time threshold, the number of unread information in the sub-counter corresponding to the first information category is set to zero, and the number of new information of the first information category is deleted.
[0132] For example, if all the unread messages on the third page are in the read state, the number of unread messages corresponding to the first information category on the second page is 11, the number of new messages in the first information category is 3, and the time threshold is 5 seconds. If the difference between the time when the new message of the first information category is received and the time when all the unread messages on the third page are in the read state is 3 seconds, then the number of unread messages corresponding to the first information category on the second page, 11, will be updated to zero, and the number of new messages in the first information category, 3, will be deleted.
[0133] Here, the time threshold can be obtained by performing the following processing: collecting the user's operation data in the client and analyzing the user's behavior pattern in the application. For example, for each user, the average time required for the user to read a message and the time interval for the user to open the application again after reading the message can be counted. The reading time of all users is averaged to obtain an overall average reading time, and the average reading time plus a buffer time (for example, 5 seconds) is used as the time threshold. Alternatively, the time distribution of user session intervals can be analyzed to find the most common session interval time. A time threshold that can cover the session intervals of most users (for example, 80% of users) can be selected. For example, the median or 75th percentile of the session interval time can be selected as the time threshold.
[0134] In step 302, in response to the fact that all the unread information in the third page is in the read state, and the time when the unread information is in the read state and the time when the new information of the first information category is received is greater than the time threshold, the number of unread information in the sub-counter corresponding to the first information category is set to zero, and the number of new information of the first information category is displayed on the second page.
[0135] For example, if all the unread messages on the third page are in the read state, the number of unread messages corresponding to the first information category on the second page is 11, the number of new messages in the first information category is 3, and the time threshold is 5 seconds. If the difference between the time when the new message of the first information category is received and the time when all the unread messages on the third page are in the read state is 8 seconds, the number of unread messages in the sub-counter corresponding to the first information category, 11, will be updated to zero, and the number of new messages in the first information category, 3, will be displayed on the second page.
[0136] By setting up independent sub-counters for each information category, the embodiment of the present application can accurately manage the number of unread messages in each information category, helping users to more clearly understand the information status of each information category. By setting a time threshold, when all unread messages on the third page are in the read state, and when new messages of the first information category are received within the time threshold, the number of existing unread messages corresponding to the first information category on the second page is reset to zero, thereby avoiding repeated processing of new messages, reducing the amount of stored data, optimizing the use of storage resources, reducing unnecessary data storage and transmission, and saving system resources and bandwidth.
[0137] In some embodiments, the second page also includes entrances to third pages corresponding to multiple information categories, as shown in Figure 3E , which is a fifth flow chart of the information processing method provided in an embodiment of the present application. After step 102 of Figure 3A , "Displaying the Second Page," steps 401 to 402 of Figure 3E may also be executed, as described in detail below.
[0138] In step 401 , in response to a triggering operation on an entry to a third page corresponding to a second information category, a third page corresponding to the second information category is displayed, wherein the second information category is any one of a plurality of information categories.
[0139] In some embodiments, different second information categories correspond to different third pages, the third page includes an entrance to the second page, and the second page is displayed in response to a triggering operation on the entrance to the second page on the third page.
[0140] For example, the second page displays a personal information center, and the multiple information categories include likes, comments, favorites, and forwarding. The second information category is any one of likes, comments, favorites, and forwarding. In response to a trigger operation on the entry to the third page corresponding to the like, the third page corresponding to the like is displayed. That is, the third page includes multiple like information, such as "User B liked your video at 13:00."
[0141] In step 402, in response to a trigger operation on at least one unread message in the third page, the triggered unread message in the third page is displayed, and the number of existing unread messages corresponding to the second information category is updated to the third number of messages, wherein the third number of messages is the difference between the number of existing unread messages corresponding to the second information category and the number of triggered unread messages in the third page.
[0142] Continuing with the example of step 401 above, for the third page corresponding to the second information category of likes, there are 4 unread messages in the third page, that is, the number of existing unread messages corresponding to the second information category of likes is 4, such as message A, message B, message C and message D. In response to the triggering operation for message A and message B, the triggered message A and message B are displayed in sequence. At this time, the number of triggered unread messages in the third page is 2. The difference between the number of existing unread messages corresponding to the second information category of likes and the number of triggered unread messages in the third page is 4-2=2, that is, the number of third messages is 2. The number of existing unread messages 4 corresponding to the second information category is updated to the number of third messages 2.
[0143] In some embodiments, the third page is logged in with the account of the first object, at least one unread message is a message sent by the second object, and the at least one unread message is sorted in descending order according to preset sorting parameters, and the sorting parameters include at least one of the following: the reception time of the unread message, the similarity between the first object and the second object corresponding to the unread message, the interaction frequency between the first object and the second object corresponding to the unread message, and the interaction time between the first object and the second object corresponding to the unread message.
[0144] For example, taking similarity as an example, obtain the first object feature of the first object and the second object feature of the second object, vectorize the first object feature to obtain a first vector, vectorize the second object feature to obtain a second vector, determine the similarity between the first vector and the second vector, and use it as the similarity between the first object and the second object corresponding to the unread information, where the similarity can be determined by any one of the following algorithms: cosine similarity, Euclidean distance, Manhattan distance, or Pearson correlation coefficient.
[0145] By providing access to third pages corresponding to multiple information categories, the present embodiment of the application allows users to quickly access the third pages corresponding to different information categories, improving navigation convenience. When a user reads or marks a message as read, the number of unread messages is updated in real time, ensuring that the user always sees the latest unread message status. Users only need to click on an unread message to view the details, and the number of unread messages is automatically updated, simplifying the operation process and improving response speed.
[0146] As an example of the above embodiment, the client can be in a multi-screen display mode, see Figure 5A, which is a sixth application diagram of the information processing method provided by the embodiment of the present application. If the first page includes multiple levels of sub-pages, taking two levels of sub-pages as an example, in the left figure of Figure 5A, the first sub-page 210 of the first page of the client is displayed, and the first sub-page 210 includes multiple function items, such as function item 211, function item 212, function item 213, function item 214 and function item 215. Each function item in the first sub-page 210 can include an entrance to a second sub-page corresponding to the function item, such as entrance 217 of the second sub-page, and an incremental number of unread messages in the circular icon 216, for example, the incremental number of unread messages is 10. In response to a triggering operation on entry 217 of the second sub-page, in the middle figure of FIG. 5A , first sub-page 210 and second sub-page 218 are displayed on the same screen. Second sub-page 218 is the last-level sub-page and includes entry 219 for the second page and entry 220 for returning to the first sub-page. The incremental unread message count of 10 can be displayed in a circular icon in entry 219 of the second page. Second sub-page 218 is the second sub-page corresponding to function item 211. In response to a triggering operation on entry 219 of the second page, the display switches from the first and second sub-pages shown in FIG. 5A to the first, second sub-page, and second page shown in FIG. 5B .
[0147] As an example of the above-described embodiment, see FIG5B , which is a seventh application diagram of the information processing method provided by the embodiment of the present application. In FIG5B , a first sub-page 210, a second sub-page 218, and a second page 221 are displayed on the same screen. Second page 221 includes an entry 222 for returning to the second sub-page and multiple information categories, such as information category 223, information category 224, information category 225, information category 226, and information category 227. Each information category is followed by a corresponding number of unread messages, such as 1 for information category 224 and 9 for information category 225. After the second page is displayed, in response to a triggering operation on entry 222 for returning to the second sub-page, the display of the first, second, and second sub-pages shown in FIG5B is switched to the display of the first and second sub-pages shown in FIG5C .
[0148] As an example of the above embodiment, see Figure 5C, which is a schematic diagram of the eighth application of the information processing method provided by the embodiment of the present application. In Figure 5C, the second page is hidden, and the first sub-page 210 and the second sub-page 218 are displayed on the same screen. At this time, the incremental unread message count in the second sub-page 218 is 0, and the incremental unread message count corresponding to the function item 212 in the first sub-page 210 is also 0.
[0149] As an example of the above embodiment, see FIG5D , which is a ninth application diagram of the information processing method provided by the embodiment of the present application. In response to receiving new information of at least one information category after displaying the second page, for example, the number of new information of information category 224 is 1, the number of new information of information category 225 is 2, and the total number of new information is 3, in FIG5D , the first sub-page 210, the second sub-page 218, and the second page 221 are displayed on the same screen. If the new information all belongs to function item 212, then the circular icon 216 of the first sub-page 210 displays the incremental unread information number as 3, the second page entry 219 of the second sub-page 218 displays the incremental unread information number as 3, and on the second page 221, the existing unread information number corresponding to information category 224 is updated to 2, and the existing unread information number corresponding to information category 225 is updated to 11. When displaying the second page 221, the second page 221 includes entrances to the third pages corresponding to multiple information categories, for example, the entrance 228 to the third page corresponding to the information category 225. In response to the triggering operation of the entrance 228 to the third page corresponding to the information category 225, the display switches from the first sub-page, the second sub-page, and the second page shown in Figure 5D to the first sub-page, the second sub-page, the second page, and the third page shown in Figure 5E.
[0150] As an example of the above embodiment, refer to FIG5E , which is a tenth application diagram of the information processing method provided by the embodiment of the present application. In FIG5E , in response to a trigger operation for the entry 228 of the third page corresponding to the information category 225, the first sub-page 210, the second sub-page 218, the second page 221, and the third page 229 corresponding to the first information category 225 are displayed on the same screen, and the number of unread messages 11 corresponding to the first information category on the third page is reset to zero. The third page 229 also includes an entry 230 for returning to the second page. In response to a trigger operation for the entry 230 for returning to the second page, the display of the first sub-page, the second sub-page, the second page, and the third page shown in FIG5E is switched to the display of the first sub-page, the second sub-page, and the second page shown in FIG5F.
[0151] As an example of the above embodiment, see Figure 5F, which is a schematic diagram of the eleventh application of the information processing method provided by the embodiment of the present application. In Figure 5F, the first sub-page 210, the second sub-page 218, and the second page 221 are displayed on the same screen. In the second sub-page 218, the incremental unread message count included in the entry 219 of the second page is updated to 1. In the first sub-page 210, the incremental unread message count included in the circular icon 216 behind the function item 212 in the first sub-page 210 is updated to 1.
[0152] The embodiment of the present application displays multiple pages on a split screen, which can more clearly reflect the changes in quantity on each page under different situations, thereby improving the visibility and intuitiveness of the quantity changes.
[0153] In the embodiment of the present application, only the incremental unread information received after entering the second page is displayed on the first page, and the existing unread information of all information categories is displayed on the second page, thereby realizing the display of different types of unread information numbers on different pages; after displaying the second page, if new information is received, by updating the incremental unread information number in the first page, the effect of prompting the number of new information received after displaying the second page is achieved, thereby avoiding the continuous accumulation of the number of unread information in the first page, and the operation efficiency is higher than the method of manually checking the information to update the incremental unread information number on the first page; by updating the existing unread information in the second page, the effect of prompting the user of the number of unread information accumulated in different information categories is achieved, so that the user can easily understand the comparison of the number of unread information before and after displaying the second page, thereby improving the user's usage experience.
[0154] In some embodiments, referring to FIG3F , FIG3F is a sixth flow chart of the information processing method provided in an embodiment of the present application. Before executing the above embodiment of "updating the incremental unread message count to the second message count," steps 501 to 503 of FIG3F may also be executed, as described in detail below.
[0155] In step 501, a first timestamp is sent to the server corresponding to the client, triggering the server to generate multiple first count values, wherein the first timestamp is the moment when the second page starts to be displayed, and the multiple first count values respectively represent the number of unread information in multiple information categories at the moment corresponding to the first timestamp.
[0156] For example, when the second page is displayed, the number of unread messages in the information category of comments is 3, and the number of unread messages in the information category of likes is 2, and the multiple first count values are 3 and 2 respectively.
[0157] In step 502, a second timestamp is sent to the server, triggering the server to generate multiple second count values, and based on the second count value corresponding to each information category and the first count value, the sub-incremental number of unread information of each information category is determined, and the sum of the multiple sub-incremental numbers of unread information corresponding to the multiple information categories is determined as the second information quantity, wherein the second timestamp represents the moment when new information of at least one information category is received, and the multiple second count values respectively represent the number of unread information in the multiple information categories at the moment corresponding to the second timestamp.
[0158] For example, after displaying the second page, if the number of new messages received with the information category of comments is 1, that is, the number of multiple sub-incremental unread messages corresponding to the information category of comments is 1, and the number of new messages received with the information category of likes is 4, that is, the number of multiple sub-incremental unread messages corresponding to the information category of likes is 3, it is determined that the sum of the sub-incremental unread messages corresponding to the information category of comments is 3, that is, the number of unread messages of the information category of comments at the second timestamp is 3, and the sum of the sub-incremental unread messages corresponding to the information category of likes is 6, that is, the number of unread messages of the information category of likes is 6, then the multiple second count values are 3 and 6 respectively.
[0159] In the embodiment of the present application, the first timestamp ensures that when viewing the second page, the number of unread messages corresponding to the current multiple information categories can be immediately obtained, providing real-time information display, ensuring that the information on the page is consistent with the server status, and reducing the delay from the client request to the server response. For the client, it is only necessary to send the first timestamp when displaying the second page, without the need for complex logic to record changes in unread information. The second timestamp allows the server to dynamically update the number of unread messages corresponding to multiple information categories when new information is received, ensuring the timeliness of the information. By comparing the second count value with the first count value, the number of sub-incremental unread messages for each information category can be accurately calculated, reducing unnecessary full calculations. The count is updated only when new information arrives, avoiding frequent full requests and optimizing the use of server resources. It also ensures the accuracy of the number of unread messages and avoids errors caused by missing information.
[0160] In some embodiments, a counter is running in the server, and the counter includes multiple sub-counters. The server is used to count the unread information in multiple information categories through the multiple sub-counters to obtain multiple first count values and multiple second count values, and the multiple first count values are recorded in the snapshot data of the counter.
[0161] In some embodiments, multiple sub-counters include multiple sub-version numbers corresponding to multiple information categories. When the number of new messages in at least one information category is multiple, all new messages are treated as unread messages. See Figure 3G, which is a seventh flow chart of the information processing method provided in an embodiment of the present application. The above-mentioned server "counting unread messages in multiple information categories using multiple sub-counters" can be implemented by executing steps 601 to 602 of Figure 3G, which are described in detail below.
[0162] In step 601, in response to receiving the first information in the fourth information category, the sub-version number of the sub-counter corresponding to the fourth information category is updated to the first sub-version number, and one is added to the first count value corresponding to the fourth information category to obtain the second count value corresponding to the fourth information category, wherein the fourth information category is any one of multiple information categories, and the first information is any new information in the fourth information category.
[0163] For example, if before receiving the first information in the fourth information category, the sub-version number of the sub-counter corresponding to the fourth information category is 1, and the number of first information in the fourth information category, that is, the first count value, is 1, in response to receiving the first information in the fourth information category, the sub-version number 1 of the sub-counter corresponding to the fourth information category is updated to the first sub-version number 2, and one is added to the first count value 1 corresponding to the fourth information category, to obtain the second count value 2 corresponding to the fourth information category.
[0164] In step 602, in response to receiving the second information in the fourth information category between the moment corresponding to the second timestamp and the moment corresponding to the third timestamp, the first sub-version number is updated to the second sub-version number, and one is added to the second count value corresponding to the fourth information category to obtain the third count value corresponding to the fourth information category, wherein the third timestamp represents the moment when the second count value corresponding to the fourth information category is generated, the second information is the next new information received after the first information, and the third count value represents the amount of new information in the fourth information category at the moment corresponding to the third timestamp.
[0165] For example, if the second information in the fourth information category is received after the first information in the fourth information category is received and before the second count value corresponding to the fourth information category is generated, the first sub-version number 2 is updated to the second sub-version number 3, and one is added to the second count value 2 corresponding to the fourth information category to obtain the third count value 3 corresponding to the fourth information category.
[0166] In an embodiment of the present application, when there are multiple new information in at least one information category, the sub-version number and count value corresponding to the second information will be updated after the sub-version number and count value corresponding to the first information are updated. This allows for the update of multiple new information in sequence based on the sub-version number and count value corresponding to the previous new information, thereby avoiding conflicts in sub-version number and count value updates caused by the simultaneous updating of a large amount of new information, and improving the orderliness of the update.
[0167] In some embodiments, referring to FIG3H , which is a schematic diagram of the eighth flow chart of the information processing method provided in embodiments of the present application, the server implements step 602 of FIG3G , "determining the number of sub-incremental unread messages for each information category," by executing steps 6021 to 6022 of FIG3H for each of the multiple information categories, as described in detail below.
[0168] In step 6021, in response to the number of unread messages in the information category being not zero, the difference between the second count value corresponding to the information category and the first count value corresponding to the information category in the snapshot data is determined as the sub-incremental unread message number of the information category.
[0169] In some embodiments, the snapshot data refers to data recorded by a counter running in a server corresponding to the client when the second page is displayed. The snapshot data includes the number of unread messages (i.e., first count values) in multiple information categories at the time the second page is displayed (i.e., first timestamp).
[0170] For example, in response to the number of unread messages in the information category being not zero, if the second count value corresponding to the information category being comments is 4 and the first count value corresponding to the information category being comments is 3, then the sub-incremental number of unread messages in the information category is 1.
[0171] In step 6022, in response to the number of unread messages in the information category being zero, the first count value corresponding to the information category is deleted from the snapshot data, and the second count value corresponding to the information category is used as the sub-incremental unread message number of the information category.
[0172] For example, in response to the number of unread messages in the information category being zero, that is, all unread messages are changed to read status, if the first count value corresponding to the information category is comment is 3, and the second count value corresponding to the information category is comment is 4, the first count value 3 corresponding to the information category is deleted from the snapshot data, and the sub-incremental unread message number corresponding to the information category is comment is 4.
[0173] Continuing to refer to FIG. 3F , in step 503 , the second information quantity sent by the server is received.
[0174] In an embodiment of the present application, snapshot data is used to record the number of unread messages in multiple information categories when entering the second page, so as to facilitate calculation of the number of existing unread messages and the number of incremental unread messages after the second page is displayed and new messages are received. When entering the second page next time, the previous snapshot data is deleted, which improves calculation efficiency and saves cache space.
[0175] In some embodiments, the client includes a first information sequence number, and the initial values of the first information sequence number and the second information sequence number in the server are the same, for example, the initial values are both 0. After step 103 of Figure 3A "receiving new information of at least one information category after displaying the second page", the following operations can also be performed: sending a query request to the server to trigger the server to query the second information sequence number, wherein when the server sends new information of at least one information category to the client, it updates the second information sequence number according to the number of new information of at least one information category, and the second information sequence number represents the number of new information of at least one information category received by the server.
[0176] For example, if the initial values of the first information sequence number in the client and the second information sequence number in the server are both 0, when the server sends new information of at least one information category to the client, for example, the number of new information of the information category of likes is 2, and the number of new information of the information category of comments is 1, then the number of new information of at least one information category is 3, and the second information sequence number is updated from the initial value 0 to 3.
[0177] In some embodiments, after step 103 "update the incremental number of unread messages" in Figure 3A, the following operations can also be performed: update the first information sequence number according to the number of new information of at least one information category, wherein the updated first information sequence number is the same as the updated second information sequence number.
[0178] Continuing with the above example, when updating the incremental number of unread messages, if the number of new messages in at least one information category is 3, and the second information sequence number is 3, the first information sequence number is updated from the initial value 0 to 3. At this time, the updated first information sequence number and the updated second information sequence number are both 3.
[0179] In an embodiment of the present application, when the server sends new information of at least one information category to the client, the second information sequence number is updated according to the number of new information of at least one information category, and the first information sequence number is updated after the incremental number of unread information is updated, so that the client synchronously updates the first information sequence number after the server updates the first information sequence number, so that the client and the server complete the quantity update when the information sequence numbers are consistent, avoiding repeated updates of the quantity.
[0180] In some embodiments, the second page also includes an entry to the first page. After step 103 "Update the incremental number of unread messages" in Figure 3A, the following operations can also be performed: in response to a trigger operation for the entry to the first page, the first page that has been refreshed is displayed based on the cached page data of the first page, wherein the incremental number of unread messages in the first page is the second number of messages.
[0181] In some embodiments, if the first page includes multiple levels of sub-pages, and the second page includes an entry to the last-level sub-page, in response to a trigger operation for the entry to the last-level sub-page, the cached page data of the first page is used to display the last-level sub-page after the page refresh, wherein the incremental unread information quantity in the last-level sub-page is the second information quantity. At the same time, the second sub-page includes an entry to return to the previous-level sub-page (i.e., the first sub-page), and in response to a trigger operation for the entry to the previous-level sub-page, the cached page data of the first page is used to display the previous-level sub-page after the page refresh, wherein the incremental unread information quantity in the previous-level sub-page is also the second information quantity.
[0182] For example, taking a two-level subpage as an example, the second page also includes an entry to the second-level subpage. In response to a trigger operation on the entry to the second-level subpage, the second-level subpage after the page refresh is displayed based on the cached page data of the first page, wherein the incremental number of unread messages in the second-level subpage is the second number of messages. At the same time, the second-level subpage includes an entry to return to the first-level subpage. In response to a trigger operation on the entry to the first-level subpage, the first-level subpage after the page refresh is displayed based on the cached page data of the first page, wherein the incremental number of unread messages in the first-level subpage is also the second number of messages.
[0183] As an example, referring to FIG4E , in the left diagram of FIG4E , in response to a trigger operation on entry 222 of the first page, in the middle diagram of FIG4E , the incremental unread information quantity in entry 219 of the second page in second-level sub-page 218 is updated to a second information quantity of 1 based on the cached page data of the first page. In response to a trigger operation on entry 220 of the first-level sub-page, in the right diagram of FIG4E , the incremental unread information quantity in function item 212 of first-level sub-page 210 is updated to a second information quantity of 1 based on the cached page data of the first page.
[0184] The embodiment of the present application includes an entrance to the first page in the second page, which can quickly return to the first page and enhance the convenience of navigation. At the same time, using cached page data to refresh the page can reduce loading time, reduce network traffic, and improve the response speed and efficiency of the system. When returning or refreshing the page, the incremental number of unread messages is updated to the second number of messages, ensuring that the user sees the latest unread information status, improving the real-time nature of the information. The user only needs to click on the entrance to return or access the subpage, and the incremental number of unread messages will be automatically updated, simplifying the operation process and improving the convenience of operation. Regardless of the level of the subpage, when returning to the previous subpage, the incremental number of unread messages remains consistent, ensuring the consistency and accuracy of the information.
[0185] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.
[0186] Taking the short video message notification in the instant messaging software as an example, when the client receives notifications of multiple information categories, the number of unread messages will be displayed on the page. In the related art, the user is often required to click on each unread message in turn. After the specific message content is displayed, the number of unread messages displayed on the page can be reduced in turn, and only the total number of unread messages is displayed on the page, which makes the interaction path too long, and the process of eliminating the number of unread messages is cumbersome. Too many unread messages accumulate, affecting the user's experience. Through the information processing method provided in the embodiment of the present application, different numbers of unread messages are displayed on different pages, so that the first page only displays the increment of unread messages received after entering the second page, and the second page displays the inventory of unread messages of all information categories, so that after the user triggers the second page, the number of unread messages displayed on the first page can be reset to zero. After receiving new messages again, only the number of new messages is displayed on the first page.
[0187] Refer to Figure 6, which is a schematic diagram of the principle of one-way control in the related technology provided by the embodiment of the present application. Related technologies often use a one-way control solution, that is, the server sends a dynamic configuration, or after the experimental platform sends the configuration, the client reads the switch (such as a configuration variable, used to dynamically enable or disable certain functions without republishing the entire application), that is, whether the experiment is hit. In the one-way control solution, the server sends the switch to the client, and the client does not return the switch to the server. Among them, the experiment refers to an A / B experiment. For example, when a function needs to be launched, some users can be selected to use the function through experimental control, and another part of the users do not use the function. The hits of the experiment can be divided into multiple circles, which can be divided according to geographical distribution, age distribution or gender differences. The commonly used hit method is random distribution hit. A hit experiment is an incremental red dot solution (i.e., an information processing method) implemented by the user.
[0188] Referring to FIG7 , FIG7 is a schematic diagram of the principle of the incremental red dot scheme provided by an embodiment of the present application. In the process of implementing the incremental red dot scheme, both the client and the server need to detect whether the experiment is hit. That is, the server will issue the incremental red dot (i.e., interactive notification) only after the experiment is hit. At the same time, the client will use the cumulative scheme of the incremental red dot (i.e., information processing method) only after the experiment is hit. Therefore, the technical solution of the client and server linkage experiment is adopted. In FIG7 , the finder is initialized to read the experimental results. The switch is sent to the client by the server in the form of a buffer. After receiving the buffer, the client will parse the switch in the form of the buffer as needed, and send the buffer to the server when triggering a network request (i.e., a query request). In this way, the effect of client and server linkage is achieved. For example, when a switch requires the server and client to perceive it at the same time, the client will display the entrance to select the red dot after perceiving the switch. When the server perceives the switch, if it wants to issue the red dot, it needs to read the red dot switch. At this time, the server and client need to be linked at the same time to perceive the switch. The buffer is binary data and can be defined as a dictionary-type data, such as the Key-Value type. After obtaining the buffer, the client can use the structured data storage format (Protocol Buffers, ProtoBuf) to parse the buffer and obtain a data structure similar to the following: Key_1-value_xxx, where value can be 0, indicating a miss experiment and using the original counting scheme; value can also be 1, indicating a hit experiment and using the incremental red dot scheme.
[0189] The specific plan for incremental red dots is:
[0190] First, the client starts, and the server sends the switch in Buffer format to the client. The client reads the received switch and parses it.
[0191] Secondly, if the switch represents that the client hits the experiment, when a new message comes in, the number of red dots A sent by the server and the number of red dots B of the client's local function are accumulated, and the number of red dots A+B is displayed on the personal information page of the client's instant messaging software.
[0192] Then, when the user clicks to enter the specified interface (i.e., the second page), the client notifies the server that the user has entered the page. After receiving the notification, the server records the timestamp TimeStamp_1 (i.e., the first timestamp). Assuming that the current timestamp is TimeStamp_2 (i.e., the second timestamp), when the server sends the red dots again, it will only send the red dots A' newly added within the time period from TimeStamp_1 to TimeStamp_2.
[0193] Finally, the red dot A' sent by the server and the red dot B of the client's local function are accumulated. The number of red dots displayed on the personal page (i.e. the second page) is A'+B, and the number of red dots displayed on the outer layer (i.e. the first page) is A'.
[0194] Similarly, when the user clicks to enter the specified interface (i.e., the second page), the client notifies the server that the user has entered the page. After receiving the notification, the server records the timestamp TimeStamp_3. Assuming that the current timestamp is TimeStamp_4, when the server sends the red dots again, it will only send the red dots A" added in the time period from TimeStamp_3 to TimeStamp_4. The red dots A" sent by the server and the red dots B of the client's local function are accumulated. The number of red dots displayed on the personal page (i.e., the second page) is A"+B, and the number of red dots displayed on the outer layer (i.e., the first page) is A".
[0195] If there is no solution that hits the incremental red point in the buffer, the logic of accumulating all red points is maintained.
[0196] The above-mentioned incremental red dot solution calculates the number of new messages after entering the designated interface and receiving new messages through the server, and only displays the number of new messages (i.e., the incremental number of unread messages) on the outer layer, and displays the sum of the number of unread messages before entering the personal page and the number of new messages (i.e., the existing number of unread messages) on the personal page. It realizes the display of different types of unread messages on different pages, avoids the continuous stacking of the number of unread messages on the outer layer, and has higher operation efficiency compared to manually checking the information to update the number of unread messages on the outer layer. At the same time, the server only calculates the number of new messages when sending new messages after displaying the designated page, which also improves the efficiency of updating the number of unread messages.
[0197] See Figure 8, which is a block diagram of a counter provided by an embodiment of the present application. The server maintains a global distributed counter to record the number of unread messages of three types (i.e., information categories): comments, likes, and follows. Each time a new message is added, the sub-counter corresponding to the message type is incremented. When a number is issued, the entire counter information is pulled and the corresponding unread number is issued.
[0198] Deduplication is required when sending numbers, including the following two methods:
[0199] Method 1: Use message sequence numbers for deduplication: Each user has a unique message sequence number. Initially, the message sequence numbers on the client and server are the same. When a new message arrives, the server's message sequence number (i.e., the second message sequence number) increases. When the client requests the server again, the server checks the message sequence number and finds that the client's message sequence number (i.e., the first message sequence number) is smaller than the server's. It then attempts to pull the counter and send a number. If the send is successful, the server's message sequence number is also updated to the client, and the message sequence numbers on both ends become consistent. No more red dots are sent.
[0200] Method 2: Use the method of clearing the counter to deduplicate: When the user clicks on the message page of the personal center (i.e. the third page), it is considered that the user has finally read the message. At this time, the client will promptly notify the server to clear the entire counter. If new information (i.e. new information) is received at the same time, the new information will be cleared together; if a new message is received after entering the message page for a period of time, only the original unread information (i.e. the number of existing unread messages) will be cleared, and the new message will still be displayed to ensure that the number will not be repeatedly sent when pulling across devices or resetting the client.
[0201] When a user clicks on their profile, the client reports the click to the server, which then writes a snapshot of the counter. This snapshot is a complete backup of the counter, and all information on it is identical to the original counter at the time of the backup. When a digital red dot is needed, the server retrieves the counter data and the snapshot data, calculates the difference in comments, likes, and follows between the two, and then issues an outer digital red dot based on the difference.
[0202] Consistency of counter updates: Each counter has its own version number. Each time a counter is updated (i.e., when a new message arrives or a previous message is read), the counter's version number increments by +1. When updating a counter's data, the obtained version number must be verified to be consistent with the current latest counter version number. Only when they are consistent will the data be updated, ensuring consistency. For example, if two different messages are received at approximately the same time, and the original counter has a message count of 1 and a version number of 100, the first message will be updated based on version 100, resulting in a counter with a message count of 2 and a version number of 101. The second message will also be updated based on version 100, but since the latest version number is now 101, the obtained version number 100 is inconsistent with the latest version number 101. Therefore, only the first message is retained. After the first message is updated (i.e., its version number becomes 101), the second message's counter with version 101 will be updated to a counter with a message count of 3 and a version number of 102.
[0203] Data consistency between the counter and the counter snapshot: a sub-counter version (i.e., sub-version number) is recorded on the sub-counter to mark the validity of the snapshot data. When the user has finally read a category of messages (i.e., any information category), the sub-counter count is cleared and the sub-counter version is updated, so that the sub-counter version in the counter snapshot data is smaller than the sub-counter version, thereby invalidating the sub-counter snapshot and deleting the snapshot data without updating the snapshot data. Taking the information in the comment category as an example, when the comment number is finally read, that is, when the comment tab (Tab) of the personal center message list (i.e., the second page) is clicked, the comment sub-counter clears the comment count and updates the comment version of the comment sub-counter to the counter version, making the comment version in the comment sub-counter inconsistent with the comment version in the counter snapshot. When the outer number is subsequently sent, the comment count in the counter snapshot is no longer referenced when calculating the comment count.
[0204] In related technologies, digital red dots are generally completely dependent on servers for distribution, but the incremental red dot solution of the embodiment of the present application is based on scalability and achieves compatibility between server distribution and client construction of red dots.
[0205] After the hit test, the client will combine the digital red dots sent by the server (i.e., the incremental number of unread messages) with the digital red dots built locally on the client (i.e., the number of existing unread messages). The client's local digital red dots are calculated using a dot-based approach: only peer-to-peer messages after timeStamp1 (i.e., the first timestamp) are summed, and peer-to-peer messages before timeStamp1 are considered "read messages."
[0206] Starting from the function of the digital red dot, the digital red dots in related technologies are dependent on elimination, that is, the digital red dot can only be eliminated by clicking on the deepest function entrance (i.e. the third page). However, the incremental red dot solution only uses the reminder function of the digital red dot itself, which avoids the situation where the red dot is always displayed because the elimination path of the red dot is too long. The red dot is implemented by relying on both dependency and non-dependency. Before the function of the last-level page (i.e. the second page) is displayed, that is, where the first page is displayed, the digital red dot is dependent. Once the last-level page continues to be exposed, the previous red dots will be eliminated, so as to remind the user while reducing the intention to disturb the user. In addition to the cumulative display, the client can also display each newly added red dot in the personal center in the form of +x according to the following two solutions:
[0207] Solution 1: If 1 new message is added to the video account page (i.e. the first page), +1 will be displayed after the corresponding column, indicating the number of new red dot messages (i.e. the incremental number of unread messages).
[0208] Option 2: If 1 new video account message is added, +1 will be displayed after the existing red dot in the personal page (i.e. the third page), indicating the number of new red dot messages added this time.
[0209] In the embodiment of the present application, only the increment of unread messages received after entering the second page is displayed on the first page, and the stock of unread messages of all information categories is displayed on the second page, thereby realizing the display of different types of unread message quantities on different pages; after displaying the second page, if new messages are received, by updating the incremental unread message quantity on the first page, the effect of prompting the number of new messages received after displaying the second page is realized, thereby avoiding the continuous accumulation of the number of unread messages on the first page, which is more efficient than manually viewing the information to update the incremental unread message quantity on the first page; by updating the stock of unread messages on the second page, the effect of prompting the user of the number of unread messages currently accumulated in different information categories is realized, making it easy for the user to understand the comparison of the number of unread messages before and after displaying the second page, thereby improving the user's experience. By displaying multiple pages in split screen, the changes in the quantity on each page under different circumstances can be more clearly reflected, thereby improving the visibility and intuitiveness of the changes in quantity. Snapshot data records the number of unread messages in multiple information categories upon entering the second page, facilitating calculation of the existing and incremental unread message counts after the second page is displayed and new messages are received. The previous snapshot data is deleted the next time the second page is entered, improving computational efficiency and saving cache space. When there are multiple new messages in at least one information category, the sub-version number and count corresponding to the second message are updated after the sub-version number and count corresponding to the first message are updated. This allows each new message to be updated sequentially based on the sub-version number and count corresponding to the previous new message, avoiding conflicts in sub-version number and count updates caused by the simultaneous updating of a large number of new messages and improving the orderliness of updates. When the server sends new messages in at least one information category to the client, it updates the second message sequence number based on the number of new messages in the at least one information category and, after updating the incremental unread message count, updates the first message sequence number. This allows the client to synchronously update the first message sequence number after the server updates the first message sequence number. This allows the client and server to complete the number update when the message sequence numbers are consistent, avoiding duplicate number updates.
[0210] The following further describes an exemplary structure of the information processing device 455 provided in an embodiment of the present application implemented as a software module. In some embodiments, as shown in FIG2 , the software modules stored in the information processing device 455 in the memory 450 may include:
[0211] The first display module 4551 is configured to display the first page of the client, wherein the first page includes an entrance to the second page and an incremental number of unread messages, where the incremental number of unread messages is the total number of unread messages received after the second page was last displayed.
[0212] The second display module 4552 is configured to display the second page in response to a trigger operation for the entrance to the second page, wherein the second page includes multiple information categories and the number of existing unread information corresponding to the multiple information categories, and the number of existing unread information is the number of unread information accumulated in the information category.
[0213] The quantity update module 4553 is configured to update the number of existing unread messages corresponding to at least one information category and update the incremental number of unread messages based on the new information of at least one information category in response to receiving new information of at least one information category after displaying the second page.
[0214] In some embodiments, the first page includes multiple levels of sub-pages with a step-by-step jump relationship, and the first display module 4551 is further configured to display the first sub-page in the multi-level sub-pages, wherein the first sub-page includes an entrance to the second sub-page, and the first sub-page is any level sub-page in the multi-level sub-pages except the last level sub-page, and the second sub-page is the next level sub-page of the first sub-page; in response to a trigger operation for the entrance of the second sub-page in the first sub-page, the second sub-page is displayed, wherein, when the second sub-page is not the last level sub-page, the second sub-page includes an entrance to the next level sub-page of the second sub-page, and when the second sub-page is the last level sub-page, the second sub-page includes an entrance to the second page.
[0215] In some embodiments, the quantity update module 4553 is further configured to update, for each information category in a plurality of information categories, the number of existing unread messages corresponding to the information category to a first number of messages, wherein the first number of messages is the sum of the number of existing unread messages corresponding to the information category and the number of new messages in the information category.
[0216] In some embodiments, the quantity updating module 4553 is further configured to update the incremental unread message quantity to a second message quantity, wherein the second message quantity is the total quantity of new messages of at least one information category.
[0217] In some embodiments, when the client is in split-screen display mode, both the first page and the second page are in display state, and the quantity update module 4553 is also configured to update the incremental unread information quantity displayed on the first page to the second information quantity in response to the client being in split-screen display mode.
[0218] In some embodiments, when the client is in single-screen display mode and the second page is in display state, the first page is in hidden state, and the quantity update module 4553 is also configured to update the incremental unread information quantity in the cached page data of the first page to the second information quantity in response to the client being in single-screen display mode, wherein the cached page data of the first page is used to refresh the page when the first page switches to display state.
[0219] In some embodiments, the quantity update module 4553 is also configured to send a first timestamp to the server corresponding to the client, triggering the server to generate multiple first count values, wherein the first timestamp is the moment when the second page starts to be displayed, and the multiple first count values respectively represent the number of unread information in multiple information categories at the moment corresponding to the first timestamp; send a second timestamp to the server, triggering the server to generate multiple second count values, determine the sub-incremental unread information number of each information category based on the second count value and the first count value corresponding to each information category, and determine the sum of the multiple sub-incremental unread information numbers corresponding to multiple information categories as the second information number, wherein the second timestamp represents the moment when new information of at least one information category is received, and the multiple second count values respectively represent the number of unread information in multiple information categories at the moment corresponding to the second timestamp; receive the second information number sent by the server.
[0220] In some embodiments, the multiple sub-counters include multiple sub-version numbers corresponding to multiple information categories respectively. When the number of new information in at least one information category is multiple, all new information is treated as unread information. The quantity update module 4553 is further configured to, in response to receiving the first information in the fourth information category, update the sub-version number of the sub-counter corresponding to the fourth information category to the first sub-version number, and add one to the first count value corresponding to the fourth information category to obtain a second count value corresponding to the fourth information category, wherein the fourth information category is any one of the multiple information categories, and the first information is any new information in the fourth information category; in response to receiving the second information in the fourth information category between the time corresponding to the second timestamp and the time corresponding to the third timestamp, update the first sub-version number to the second sub-version number, and add one to the second count value corresponding to the fourth information category to obtain a third count value corresponding to the fourth information category, wherein the third timestamp represents the time when the second count value corresponding to the fourth information category is generated, the second information is the next new information received after the first information, and the third count value represents the number of new information in the fourth information category at the time corresponding to the third timestamp.
[0221] In some embodiments, the quantity update module 4553 is further configured to perform the following operations for each information category in a plurality of information categories: in response to the number of unread messages in the information category being not zero, determining the difference between the second count value corresponding to the information category and the first count value corresponding to the information category in the snapshot data as the sub-incremental number of unread messages for the information category; in response to the number of unread messages in the information category being zero, deleting the first count value corresponding to the information category from the snapshot data, and using the second count value corresponding to the information category as the sub-incremental number of unread messages for the information category.
[0222] In some embodiments, the second page also includes entrances to third pages corresponding to multiple information categories. The second display module 4552 is also configured to display the third page corresponding to the first information category in response to a trigger operation on the entrance to the third page corresponding to the first information category, and set the number of unread information corresponding to the first information category on the third page to zero, wherein the first information category is any one of the multiple information categories.
[0223] In some embodiments, the second display module 4552 is further configured to respond to receiving new information of the first information category after displaying the third page. If the difference between the moment when the new information of the first information category is received and the moment when all the unread information in the third page is in the read state is less than a time threshold, the number of existing unread information corresponding to the first information category in the second page is set to zero, and the incremental number of unread information in the first page remains unchanged; if the difference between the moment when the new information of the first information category is received and the moment when all the unread information in the third page is in the read state is greater than or equal to the time threshold, the number of existing unread information corresponding to the first information category is updated based on the new information of the first information category, and the incremental number of unread information is updated.
[0224] In some embodiments, the server corresponding to the client includes a counter, and the counter includes multiple sub-counters, and the multiple sub-counters are used to count the unread information in multiple information categories respectively. The second display module 4552 is also configured to send a notification to the server that the unread information in the third page is in a read state, triggering the server to perform the following operations: in response to the unread information in the third page being all in a read state, and the difference between the time when the unread information is all in a read state and the time when new information of the first information category is received is less than or equal to the time threshold, the number of unread information in the sub-counter corresponding to the first information category is set to zero, and the number of new information of the first information category is deleted; in response to the unread information in the third page being all in a read state, and the time when the unread information is all in a read state and the time when the new information of the first information category is received is greater than the time threshold, the number of unread information in the sub-counter corresponding to the first information category is set to zero, and the number of new information of the first information category is displayed on the second page.
[0225] In some embodiments, the second page also includes entrances to third pages corresponding to multiple information categories, and the second display module 4552 is further configured to display the third page corresponding to the second information category in response to a trigger operation on the entrance to the third page corresponding to the second information category, wherein the second information category is any one of the multiple information categories; in response to a trigger operation on at least one unread information in the third page, display the triggered unread information in the third page, and update the number of existing unread information corresponding to the second information category to the third information number, wherein the third information number is the difference between the number of existing unread information corresponding to the second information category and the number of triggered unread information in the third page.
[0226] In some embodiments, the client includes a first information sequence number, and the initial value of the first information sequence number and the second information sequence number in the server are the same. The quantity update module 4553 is also configured to send a query request to the server to trigger the server to query the second information sequence number, wherein when the server sends new information of at least one information category to the client, it updates the second information sequence number according to the number of new information of at least one information category, and the second information sequence number represents the number of new information of at least one information category received by the server.
[0227] In some embodiments, the quantity updating module 4553 is further configured to update the first information sequence number according to the quantity of new information of at least one information category, wherein the updated first information sequence number is the same as the updated second information sequence number.
[0228] In some embodiments, the second page also includes an entry to the first page, and the quantity update module 4553 is also configured to display the first page after page refresh based on the cached page data of the first page in response to a trigger operation for the entry to the first page, wherein the incremental unread information quantity in the first page is the second information quantity.
[0229] An embodiment of the present application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the information processing method described in the embodiment of the present application.
[0230] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, which stores computer-executable instructions or computer programs. When the computer-executable instructions or computer programs are executed by a processor, the processor will execute the information processing method provided by an embodiment of the present application, for example, the information processing method shown in Figure 3A.
[0231] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
[0232] In some embodiments, computer-executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0233] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, e.g., in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (e.g., files storing one or more modules, subroutines, or code portions).
[0234] By way of example, computer-executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed across multiple sites and interconnected by a communication network.
[0235] In summary, through the embodiment of the present application, only the increment of unread information received after entering the second page is displayed on the first page, and the stock of unread information of all information categories is displayed on the second page, thereby realizing the display of different types of unread information numbers on different pages; after displaying the second page, if new information is received, by updating the incremental unread information number in the first page, the effect of prompting the number of new information received after displaying the second page is realized, thereby avoiding the continuous accumulation of the number of unread information in the first page, and the operation efficiency is higher than the method of manually viewing the information to update the incremental unread information number on the first page; by updating the stock of unread information in the second page, the effect of prompting the user of the number of accumulated unread information in different information categories is realized, making it convenient for the user to understand the comparison of the number of unread information before and after displaying the second page, thereby improving the user's usage experience. By displaying multiple pages in split screen, the changes in the number on each page under different circumstances can be more clearly reflected, thereby improving the visibility and intuitiveness of the changes in the number. Snapshot data records the number of unread messages in multiple information categories upon entering the second page, facilitating calculation of the existing and incremental unread message counts after the second page is displayed and new messages are received. The previous snapshot data is deleted the next time the second page is entered, improving computational efficiency and saving cache space. When there are multiple new messages in at least one information category, the sub-version number and count corresponding to the second message are updated after the sub-version number and count corresponding to the first message are updated. This allows each new message to be updated sequentially based on the sub-version number and count corresponding to the previous new message, avoiding conflicts in sub-version number and count updates caused by the simultaneous updating of a large number of new messages and improving the orderliness of updates. When the server sends new messages in at least one information category to the client, it updates the second message sequence number based on the number of new messages in the at least one information category and, after updating the incremental unread message count, updates the first message sequence number. This allows the client to synchronously update the first message sequence number after the server updates the first message sequence number. This allows the client and server to complete the number update when the message sequence numbers are consistent, avoiding duplicate number updates.
[0236] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the scope of protection of the present application.
Claims
1. An information processing method, applied to an electronic device, comprising: Displaying a first page of the client, wherein the first page includes an entrance to the second page and an incremental number of unread messages, where the incremental number of unread messages is the total number of unread messages received after the second page was last displayed; In response to a triggering operation on an entry to the second page, displaying the second page, wherein the second page includes a plurality of information categories and a number of stored unread messages corresponding to each of the plurality of information categories, the number of stored unread messages being the number of unread messages accumulated in the information category; In response to receiving new information of at least one of the information categories after displaying the second page, based on the new information of at least one of the information categories, the number of existing unread information corresponding to at least one of the information categories is updated, and the incremental number of unread information is updated.
2. The method according to claim 1, wherein The updating of the number of stored unread messages corresponding to at least one of the information categories includes: For each of the multiple information categories, the number of existing unread messages corresponding to the information category is updated to a first number of messages, wherein the first number of messages is the sum of the number of existing unread messages corresponding to the information category and the number of new messages in the information category.
3. The method according to claim 1, wherein The updating of the incremental number of unread messages includes: The incremental unread message quantity is updated to a second message quantity, wherein the second message quantity is the total quantity of new messages of at least one of the information categories.
4. The method according to claim 3, wherein: When the client is in a split-screen display mode, both the first page and the second page are in a display state; Updating the incremental unread message quantity to a second message quantity includes: In response to the client being in the split-screen display mode, the incremental unread message quantity displayed on the first page is updated to a second message quantity.
5. The method according to claim 3, wherein When the client is in a single-screen display mode and the second page is in a displayed state, the first page is in a hidden state; Updating the incremental unread message quantity to a second message quantity includes: In response to the client being in the single-screen display mode, the incremental unread information quantity in the cached page data of the first page is updated to a second information quantity, wherein the cached page data of the first page is used to refresh the page when the first page switches to the display state.
6. The method according to claim 5, wherein: The second page also includes an entrance to the first page; After updating the incremental number of unread messages, the method further includes: In response to a trigger operation on the entry of the first page, the first page after the page refresh is displayed based on the cached page data of the first page, wherein the incremental unread information quantity in the first page is the second information quantity.
7. The method according to claim 6, wherein: The first page includes multiple levels of sub-pages in a step-by-step jump relationship, the multiple levels of sub-pages including a first sub-page and a second sub-page, the first sub-page being any level sub-page except the last level sub-page in the multiple levels of sub-pages, the second sub-page being a level sub-page below the first sub-page, and the second sub-page including an entrance to the first sub-page; When the cached page data based on the first page is displayed, the method further includes: When the second sub-page is the last-level sub-page, in response to a triggering operation on an entry to the second sub-page, the second sub-page after the page refresh is displayed based on the cached page data of the first page, wherein the incremental number of unread messages in the second sub-page is the second number of messages; In response to a trigger operation on an entry of a first subpage, the first subpage refreshed by the page is displayed based on cached page data of the first page, wherein the incremental unread information quantity in the first subpage is the second information quantity.
8. The method according to claim 3, wherein: Before updating the incremental unread message quantity to the second message quantity, the method further includes: Sending a first timestamp to a server corresponding to the client to trigger the server to generate a plurality of first count values, wherein the first timestamp is the time when the second page starts to be displayed, and the plurality of first count values respectively represent the number of unread messages in the plurality of information categories at the time corresponding to the first timestamp; Sending a second timestamp to the server to trigger the server to generate multiple second count values, determining the number of sub-incremental unread messages for each information category based on the second count value corresponding to each information category and the first count value, and determining the sum of the multiple sub-incremental numbers of unread messages corresponding to the multiple information categories as the second number of messages, wherein the second timestamp represents a moment when new information of at least one information category is received, and the multiple second count values respectively represent the number of unread messages in the multiple information categories at the moment corresponding to the second timestamp; Receive the second information quantity sent by the server.
9. The method according to claim 8, wherein The server runs a counter, the counter including a plurality of sub-counters, and the server is configured to count unread information in the plurality of information categories respectively using the plurality of sub-counters to obtain the plurality of first count values and the plurality of second count values, and the plurality of first count values are recorded in snapshot data of the counter; The server determines the number of sub-incremental unread messages of each information category in a manner including: For each of the plurality of information categories, perform the following operations: In response to the number of unread messages in the information category being non-zero, determining a difference between the second count value corresponding to the information category and the first count value corresponding to the information category in the snapshot data as a sub-incremental number of unread messages for the information category; In response to the number of unread messages in the information category being zero, the first count value corresponding to the information category is deleted from the snapshot data, and the second count value corresponding to the information category is used as the sub-incremental number of unread messages for the information category.
10. The method according to claim 9, wherein: The plurality of sub-counters include a plurality of sub-version numbers corresponding to the plurality of information categories respectively; When there are multiple new messages in at least one of the information categories, all of the new messages are regarded as the unread messages, and the server counts the unread messages in the multiple information categories using the multiple sub-counters respectively. The method includes: In response to receiving the first information in a fourth information category, updating the sub-version number of the sub-counter corresponding to the fourth information category to the first sub-version number, and adding one to the first count value corresponding to the fourth information category to obtain the second count value corresponding to the fourth information category, wherein the fourth information category is any one of the multiple information categories, and the first information is any new information in the fourth information category; In response to receiving the second information in the fourth information category between the moment corresponding to the second timestamp and the moment corresponding to the third timestamp, the first sub-version number is updated to the second sub-version number, and one is added to the second count value corresponding to the fourth information category to obtain the third count value corresponding to the fourth information category, wherein the third timestamp represents the moment when the second count value corresponding to the fourth information category is generated, the second information is the next new information received after the first information, and the third count value represents the amount of new information in the fourth information category at the moment corresponding to the third timestamp.
11. The method according to any one of claims 1 to 10, wherein: The second page also includes entrances to third pages corresponding to the multiple information categories; After displaying the second page, the method further includes: In response to a triggering operation on the entry to the third page corresponding to the first information category, the third page corresponding to the first information category is displayed, and the number of unread messages corresponding to the first information category in the third page is set to zero, wherein the first information category is any one of the multiple information categories.
12. The method according to claim 11, wherein After displaying the third page corresponding to the first information category, the method further includes: in response to receiving new information of the first information category after displaying the third page; If the difference between the time when the new information of the first information category is received and the time when all the unread information on the third page is in the read state is less than a time threshold, the number of the existing unread information corresponding to the first information category on the second page is set to zero, and the incremental number of unread information on the first page remains unchanged; If the difference between the time when the new information of the first information category is received and the time when all the unread information in the third page is in the read state is greater than or equal to the time threshold, based on the new information of the first information category, the number of existing unread information corresponding to the first information category is updated, and the incremental number of unread information is updated.
13. The method according to claim 11, wherein The server corresponding to the client includes a counter, the counter includes multiple sub-counters, and the multiple sub-counters are used to count the unread information in the multiple information categories respectively; After displaying the third page corresponding to the first information category, the method further includes: Sending a notification to the server that the unread information on the third page is in a read state, triggering the server to perform the following processing: In response to the unread messages on the third page all being in a read state, and the difference between the time when the unread messages are all in a read state and the time when new messages of the first information category are received is less than or equal to the time threshold, setting the number of unread messages in the sub-counter corresponding to the first information category to zero, and deleting the number of new messages of the first information category; In response to the fact that all the unread information in the third page is in the read state, and the time when the unread information is in the read state and the time when new information of the first information category is received is greater than the time threshold, the number of unread information in the sub-counter corresponding to the first information category is set to zero, and the number of new information of the first information category is displayed on the second page.
14. The method according to any one of claims 1 to 10, wherein: The second page also includes entrances to third pages corresponding to the multiple information categories; After displaying the second page, the method further includes: In response to a triggering operation on an entry to the third page corresponding to a second information category, displaying the third page corresponding to the second information category, wherein the second information category is any one of the plurality of information categories; In response to a triggering operation on at least one unread message in the third page, the triggered unread message in the third page is displayed, and the number of existing unread messages corresponding to the second information category is updated to the third number of messages, wherein the third number of messages is the difference between the number of existing unread messages corresponding to the second information category and the number of triggered unread messages in the third page.
15. The method according to claim 14, wherein The third page is logged in by the account of the first object, the at least one unread message is a message sent by the second object, and the at least one unread message is sorted in descending order according to preset sorting parameters, and the sorting parameters include at least one of the following: the reception time of the unread message, the similarity between the first object and the second object corresponding to the unread message, the interaction frequency between the first object and the second object corresponding to the unread message, and the interaction time between the first object and the second object corresponding to the unread message.
16. The method according to any one of claims 1 to 10, wherein: The first page includes multiple levels of sub-pages in a step-by-step jump relationship; The first page of the display client includes: Displaying a first subpage in the multi-level subpages, wherein the first subpage includes an entrance to a second subpage, the first subpage is any subpage in the multi-level subpages except the last subpage, and the second subpage is a subpage in the next lower level of the first subpage; In response to a trigger operation on the entry of the second sub-page in the first sub-page, the second sub-page is displayed, wherein, when the second sub-page is not the last-level sub-page, the second sub-page includes the entry of the next-level sub-page of the second sub-page, and when the second sub-page is the last-level sub-page, the second sub-page includes the entry of the second page.
17. The method according to any one of claims 1 to 10, wherein: The client includes a first information sequence number, and the initial value of the first information sequence number and the second information sequence number in the server are the same; After receiving new information of at least one of the information categories after displaying the second page, the method further includes: sending a query request to the server to trigger the server to query the second information sequence number, wherein the server updates the second information sequence number according to the number of new information of the at least one information category when sending new information of the at least one information category to the client, and the second information sequence number represents the number of new information of the at least one information category received by the server; After updating the incremental number of unread messages, the method further includes: The first information sequence number is updated according to the amount of new information of at least one of the information categories, wherein the updated first information sequence number is the same as the updated second information sequence number.
18. An information processing device, comprising: A first display module is configured to display a first page of the client, wherein the first page includes an entrance to the second page and an incremental number of unread messages, where the incremental number of unread messages is the total number of unread messages received after the second page was last displayed; a second display module, configured to display the second page in response to a triggering operation on an entry to the second page, wherein the second page includes a plurality of information categories and a number of existing unread messages corresponding to the plurality of information categories, the number of existing unread messages being the number of unread messages accumulated in the information categories; A quantity update module is used to update the number of existing unread messages corresponding to at least one of the information categories and update the incremental unread message number based on the new information of at least one of the information categories in response to receiving new information of at least one of the information categories after displaying the second page.
19. An electronic device, comprising: a memory for storing computer-executable instructions; A processor, configured to implement the information processing method according to any one of claims 1 to 17 when executing the computer-executable instructions stored in the memory.
20. A computer-readable storage medium storing computer-executable instructions or a computer program, wherein the computer-executable instructions or the computer program, when executed by a processor, implement the information processing method according to any one of claims 1 to 17.
21. A computer program product, comprising computer executable instructions or a computer program, wherein when the computer executable instructions or the computer program are executed by a processor, the information processing method according to any one of claims 1 to 17 is implemented.
Citation Information
Patent Citations
Unread message reminding method and device, terminal equipment and storage medium
CN110191231A
Method and apparatus for presenting session message in application
CN110290058A
Message prompting method and device, terminal and storage medium
CN111698147A
Information processing method and device, electronic equipment and computer readable storage medium
CN112165390A
Information processing method and device, electronic equipment, storage medium and program product
CN115996206A