CN108809815A - Item number update method, conversation processing method, device and system are not read in session - Google Patents

Item number update method, conversation processing method, device and system are not read in session Download PDF

Info

Publication number
CN108809815A
CN108809815A CN201810715477.6A CN201810715477A CN108809815A CN 108809815 A CN108809815 A CN 108809815A CN 201810715477 A CN201810715477 A CN 201810715477A CN 108809815 A CN108809815 A CN 108809815A
Authority
CN
China
Prior art keywords
information
session
read
server
new record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810715477.6A
Other languages
Chinese (zh)
Other versions
CN108809815B (en
Inventor
段利君
田佐俭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN201810715477.6A priority Critical patent/CN108809815B/en
Publication of CN108809815A publication Critical patent/CN108809815A/en
Application granted granted Critical
Publication of CN108809815B publication Critical patent/CN108809815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The present invention provides a kind of sessions not to read item number update method, conversation processing method, device and system, wherein this method includes:In response to the log on request of conversation applications, the maximum renewal time of local session information is sent to server;Receive the more new record of the session information after the maximum renewal time that server returns;Local session information is updated according to more new record, and determining according to more new record and show each session does not read item number.It solves the item number of not reading that existing needs store each dialogue in server side through the above scheme and just can guarantee that each terminal does not read the technical problem that item number can synchronize, reduction server stress is reached, has been simple and efficient and ensures that different terminals session information does not read the technique effect that item number can synchronize.

Description

Item number update method, conversation processing method, device and system are not read in session
Technical field
The present invention relates to Internet technical field, more particularly to item number update method, Dialog processing side are not read in a kind of session Method, device and system.
Background technology
Currently, with the continuous development of Internet technology, more and more people begin to use mobile phone, computer etc. intelligently to set It is standby, and there are many quantity of the smart machines such as portable computer.For example, a user is possible, there are one mobile phone, a tablet electricity simultaneously Brain, an office computer etc..These equipment users can log in chat software, for example, chat can be logged on mobile phone Software can log in chat software again on computers.
For chat software, can generally exist in the case that user switches between devices, if existing It needs to realize that multiple terminal sessions do not read item number consistent, it is necessary to store not reading for each session in server end, enter Server clear 0 is notified after each session.Server needs to update all session informations every time, implements relatively complicated, service Device operating pressure is big.
In view of the above-mentioned problems, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of sessions not to read item number update method, conversation processing method, device and system, with Achieve the purpose that be simple and efficient and realizes that session is not read item number and synchronized in multiple terminals.
An embodiment of the present invention provides a kind of sessions not to read item number update method, including:
In response to the log on request of conversation applications, the maximum renewal time of local session information is sent to server;
Receive the more new record of the session information after the maximum renewal time that server returns, wherein in more new record Including:The information for the information that the information encoding and receiving time point, each session window of every session information are finally read is compiled Number and be read time point, wherein information encoding is to be numbered to obtain by the time sequencing that server receives according to session information 's;
Local session information is updated according to more new record, and according to the determination of more new record and shows each session not Read item number.
In one embodiment, determining according to more new record and show each session does not read item number, including:
By the information encoding of every session information after maximum renewal time, last with corresponding session window is read The information encoding of the information taken is compared;
If it is greater than the information encoding for the information of corresponding session window being finally read, then the session window is not read Item number increases by one.
In one embodiment, the update note of the session information after the maximum renewal time that server returns is received Record, including:
The more new record of the session information after the maximum renewal time corresponding to login user that server returns is received, Wherein, session information is stored and is retrieved based on User ID in server.
In one embodiment, it is determining according to more new record and show each session do not read item number after, method is also Including:
User is detected whether to there are the session windows of people of unread information to carry out checking operation;
In the case where detecting user to carrying out checking operation there are the session window of people of unread information, this is checked into meeting It talks about the information encoding of the up-to-date information of window and is read time point and be uploaded to server.
In one embodiment, it is determining according to more new record and show each session do not read item number after, method is also Including:
Receive the information encoding for the new information that server transmission comes;
The item number of not reading of the session window of the new information is updated according to new information.
The embodiment of the present invention additionally provides a kind of conversation processing method, including:
Client end response is received in the log on request of conversation applications, the maximum renewal time of the local session information of transmission is sent out It send to server;
According to maximum renewal time, the more new record of the session information after the maximum renewal time for determining server side, Wherein, more new record includes:The information encoding and receiving time point, each session window of every session information are finally read Information information encoding and be read time point, wherein information encoding be according to session information by server receive when Between serial number obtain;
More new record is sent to client, wherein more new record is determining for client and shows not reading for each session Item number.
In one embodiment, the above method further includes:
It receives and stores the information encoding for the information that each session window that client uploads finally is read and is read out Between point.
In one embodiment, the above method further includes:
Receive the session information that client is sent;
Session information to receiving sequentially is numbered according to the time, obtains information encoding.
The embodiment of the present invention additionally provides a kind of session and does not read item number updating device, including:
Sending module sends out the maximum renewal time of local session information for the log on request in response to conversation applications It send to server;
First receiving module, the update note of the session information after maximum renewal time for receiving server return Record, wherein more new record includes:The last quilt of the information encoding and receiving time point, each session window of every session information The information encoding of the information of reading and it is read time point, wherein information encoding is received by server according to session information Time sequencing number;
Display module is updated, for being updated to local session information according to more new record, and it is true according to more new record Determine and show each session does not read item number.
In one embodiment, update display module includes:
Comparison unit is used for by the information encoding of every session information after maximum renewal time, with corresponding session The information encoding for the information of window being finally read is compared;
Counting unit then should for the information encoding of the information being finally read if it is greater than corresponding session window The item number of not reading of session window increases by one.
In one embodiment, first receiving module is specifically used for receiving that server returns corresponds to login user The more new record of session information after maximum renewal time, wherein session information is stored based on User ID in server And retrieval.
In one embodiment, above-mentioned apparatus further includes:
Detection module, for it is determining according to more new record and show each session do not read item number after, detection user is It is no to there are the session windows of people of unread information to carry out checking operation;
Uploading module, for detecting the case where user there are the session window of people of unread information to carrying out checking operation Under, by the information encoding of the up-to-date information for being checked session window and it is read time point and is uploaded to server.
In one embodiment, above-mentioned apparatus further includes:
Second receiving module, for it is determining according to more new record and show each session do not read item number after, receive clothes The information encoding for the new information that business device transmission comes;
Update module, for being updated to the item number of not reading of the session window of the new information according to new information.
The embodiment of the present invention additionally provides a kind of Dialog processing device, including:
Receiving module, for receiving client end response in the log on request of conversation applications, the local session information of transmission Maximum renewal time is sent to server;
Determining module, for according to maximum renewal time, the session after the maximum renewal time for determining server side to be believed The more new record of breath, wherein more new record includes:The information encoding of every session information and receiving time point, each session The information encoding for the information that window is finally read and it is read time point, wherein information encoding is according to session information bedding and clothing What the time sequencing that business device receives was numbered;
Sending module, for more client will to be sent to by new record, wherein more new record is determining for client and shows Item number is not read in each session.
The embodiment of the present invention additionally provides a kind of session processing system, including:Server, multiple client, wherein:
Server is for the step of executing the above method;
Client is for the step of executing the above method.
Multiple client can log in same conversation applications.
The embodiment of the present invention additionally provides a kind of client device, including processor and executable for storing processor The memory of instruction, when processor executes instruction the step of the realization above method.
The embodiment of the present invention additionally provides a kind of server, including processor and for storing processor-executable instruction Memory, when processor executes instruction realize the above method the step of.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is stored thereon with computer instruction, instruction It is performed the step of realizing the above method.
In embodiments of the present invention, after user's request logs in conversation applications, to the local meeting of server requesting client Information encoding and receiving time point, each session window for talking about every session information after the maximum renewal time of information are last The information encoding for the information being read and it is read time point, then, when information encoding based on every session information and reception Between the information encoding of information that is finally read of point, each session window and be read time point not reading for each session be calculated Item number.It solves the item number of not reading that existing needs store each dialogue in server side through the above way and just can guarantee each terminal The technical problem that item number can synchronize is not read, has reached reduction server stress, is simple and efficient and is ensured different terminals session information The technique effect that item number can synchronize is not read.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, not Constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is the system architecture diagram of session updates system according to the ... of the embodiment of the present invention;
Fig. 2 is the method flow diagram that item number update method is not read in session according to the ... of the embodiment of the present invention;
Fig. 3 is the method flow diagram of conversation processing method according to the ... of the embodiment of the present invention;
Fig. 4 is the configuration diagram of terminal device according to the ... of the embodiment of the present invention;
Fig. 5 is the structure diagram that item number updating device is not read in session according to the ... of the embodiment of the present invention;
Fig. 6 is the structure diagram of Dialog processing device according to the ... of the embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, right with reference to embodiment and attached drawing The present invention is described in further details.Here, the exemplary embodiment and its explanation of the present invention be for explaining the present invention, but simultaneously It is not as a limitation of the invention.
The problem of not read in view of existing different terminals session information in the presence of the synchronization of item number, in this example, examines If considering user when client-side reads people of unread information, background server change or the corresponding mark of record can be triggered Field (such as:The identification fields such as UDI, image, sequence, time), then when user is in the client of other different operating systems When checking people of unread information, it can realize according to the current corresponding identification field in backstage and not read item number with former client session information Synchronization.
Based on this, a kind of session updates system is provided in this example, it can be with as shown in Figure 1, including:Conversation server 101, first terminal 102, second terminal 103, multiple session opposite equip.s 104.Wherein, first terminal 102, second terminal 103, Multiple session opposite equip.s 104, which are all linked into conversation server 101, to engage in the dialogue.
Wherein, between first terminal 102 and second terminal 103 it is difference visitor that is that same user is possessed and logging in session Family end.For example, first terminal 102 is the mobile phone of user, second terminal 103 is the computer of user.First terminal and second terminal User can log in realize checking and initiate etc. for session.
A kind of session is provided in this example and does not read item number update method, in client-side, as shown in Fig. 2, may include Following steps:
Step 201:In response to the log on request of conversation applications, the maximum renewal time of local session information is sent to clothes Business device;
For example, user A click on mobile phone terminal conversation applications (such as:Wechat, qq etc.), then passing through authentication Later, the application being activated can be entered.This starts the operation of application, so that it may as log on request, to be received in terminal After the log on request, so that it may the maximum renewal time of the session information of the local application is sent to server, for example, answering It it was 10 days 13 June in 2016 with the last time newer time:00, current time is 15 days 14 June in 2016:00.Terminal can incite somebody to action 10 days 13 June in 2016:00 is sent to server end, so that server end knows that this applies the information on present terminal It is which newer at time point.
Step 202:Receive the more new record of the session information after the maximum renewal time that server returns, wherein more New record includes:The information that the information encoding and receiving time point, each session window of every session information are finally read Information encoding and be read time point, wherein information encoding is the time sequencing received by server according to session information What number obtained;
For server, after the maximum renewal time that be sended over to end side, so that it may with by the time Later this applies the more new record in server side to be sent to end side.Wherein, this more new record is that terminal is each When receiving information, check information, upload.For example, may include:The information encoding and receiving time of every session information The information encoding for the information that point, each session window are finally read and it is read time point.Specifically, for every information and Speech, server side can be each session information serial number sequentially in time, for example, the chat sessions of user A and user B, One information encoding is 1-1, and next information encoding is 1-2, then next information encoding is 1-3 etc., that is, to session information Serial number is carried out, so that realizing effective differentiation to information generated time.
Step 203:Local session information is updated according to more new record, and and display determining according to more new record is each Item number is not read in session.
Specifically, user terminal can be and corresponding by the information encoding of every session information after maximum renewal time The information encoding of the information being finally read of session window compared;If it is greater than the finally quilt of corresponding session window The information encoding of the information of reading, then the session window do not read item number increase by one.
For user terminal, whether the moment detects user to there are the session windows of people of unread information to carry out checking behaviour Make, in the case where detecting user to carrying out checking operation there are the session window of people of unread information, this is checked into conversation window Mouthful up-to-date information information encoding and be read time point and be uploaded to server.It allows for applying the quilt in each terminal in this way It checks, the information node checked can be recorded in server side.In this way when other terminal landing, so that it may With the information encoding finally checked based on each session window that server side records, how many item of the session window determined People of unread information, so that applying the synchronization for being logged in each terminal and can realizing people of unread information item number.
For example, user A currently logs in application on mobile phone, the final time that information is updated on the mobile phone is 2016 6 On the moon 10 13:00, user logs in application on computers later, and has checked the information of some session windows, last when checking Between be 18 days 10 June in 2016:00.Currently, 10 days 13 June in 2016:00 user A logs in application on mobile phone again, by " 2016 On June 10,13 in:00 " this time point was sent to server, server obtain after session information more new record after Session information more new record, have 10 days 13 June in 2016 in this more new record:The information encoding of 00 all information and Generated time, and, 10 days 13 June in 2016:The final time that time each session window after 00 is checked, such base The final time and information encoding checked in each session window, and the information encoding of each information and generated time, just It can determine the people of unread information item number of each session window.
In order to enable server side is more convenient to the acquisition of information, classification can be carried out to information by User ID and deposited Storage, for example, the information storage in the account of user A is together, the information storage in the account of user B together, to be promoted Search the effect of information.Specifically, the more new record of the session information after the maximum renewal time that server returns is received, it can To include:The more new record of the session information after the maximum renewal time corresponding to login user that server returns is received, Wherein, session information is stored and is retrieved based on User ID in server.
Because the information of session window is that the moment is newer, then in the determination of basis more new record and showing each session not After reading item number, the information encoding of the next new information of reception server transmission is needed, according to new information to the new information The item number of not reading of session window is updated.
For server side, as shown in figure 3, providing a kind of conversation processing method, it may include steps of:
Step 301:Client end response is received in the log on request of conversation applications, the maximum of the local session information of transmission is more The new time is sent to server;
Step 302:According to maximum renewal time, the session information after the maximum renewal time for determining server side is more New record, wherein more new record includes:The information encoding and receiving time point, each session window of every session information are most The information encoding for the information being read afterwards and it is read time point, wherein information encoding is connect by server according to session information What the time sequencing received was numbered;
Step 303:More new record is sent to client, wherein more new record is determining for client and shows each meeting Words do not read item number.
For server, it is also necessary to receive and store the information that each session window of client upload is finally read Information encoding and be read time point.
For server, session information that can also be to receiving sequentially is numbered according to the time, obtains information Number.
It is illustrated with reference to a specific example, it should be noted, however, that the specific embodiment is merely to more Illustrate the application well, does not constitute the improper restriction to the application.
In this example, user received in customer end A message and read after, by upload session progress agreement submit into Degree.It, can be according to simultaneous session progress agreement elder generation Load Game, then after customer end B logs in when being switched to customer end B It pulls message again not read according to agreement calculating, so that conversation applications toggle between devices When, it can keep not that readings are consistent.
Specifically, may include following two parts:Upload session progress and simultaneous session progress:
1) upload session progress is as follows:
A. on the client, user enters and has the session not read or receive message, client in a session every time The seqno of the last item message in the session is just sent to server for updating session progress by end.
It b., will be in seqno and current time write-in database after server receives the request of upload session progress.
C. upload session flow terminates.
2) simultaneous session progress is as follows:
A. all there are one unique and incremental numbers for every information that user is received by conversation applications:Seqno, should Seqno is generated by server end, everyone is independently incremented by.
B. maximum renewal time ts, which accesses, after client logs in, in the session progress locally preserved according to client services Device, if local not any session progress, ts 0;
C. server uploads ts according to client, read in all session windows of user uid session updates bigger than ts into Degree record returns to client;
D. client preserves according to the record that server-side returns or updates progress record, and then invoking server obtains newest Message.
Wherein, seqno and ts is stored in server side, session content can be assisted after updating progress record by synchronization message View obtains;After logining successfully, server informs user in the maximum seqno of server end, and client is according to the seqno and this Compare between the seqno that ground preserves, the seqno returned if it is less than server just calls synchronous protocol;If client is online When having new information, the newest seqno of server proactive notification client, client initiates synchronization call according to same logic.
E. client is according to the message of return, for the seqno of every new information received and the corresponding meeting being locally stored The seqno of words compares, if the seqno of new information is big, is included in and does not read, if small, be not counted in and do not read.
Embodiment of the method provided herein can be in mobile terminal, terminal or similar arithmetic unit It executes.For running on computer terminals, Fig. 4 is that the meter of item number update method is not read in a kind of session of the embodiment of the present invention The hardware block diagram of calculation machine terminal.As shown in figure 4, terminal 10, which may include one or more, (only shows one in figure It is a) (processor 102 can include but is not limited to the processing of Micro-processor MCV or programmable logic device FPGA etc. to processor 102 Device), memory 104 for storing data and the transmission module 106 for communication function.Ordinary skill people Member does not cause to limit it is appreciated that structure shown in Fig. 4 only signal to the structure of above-mentioned electronic device.For example, calculating Machine terminal 10 may also include than shown in Fig. 4 more either less components or with the configuration different from shown in Fig. 4.
Memory 104 can be used for storing the software program and module of application software, such as the session in the embodiment of the present invention Corresponding program instruction/the module of item number update method is not read, and processor 102 is stored in the software in memory 104 by operation Program and module realize that the session of above-mentioned application program is not read to perform various functions application and data processing Item number update method.Memory 104 may include high speed random access memory, may also include nonvolatile memory, such as one or Multiple magnetic storage devices, flash memory or other non-volatile solid state memories.In some instances, memory 104 can be into one Step includes the memory remotely located relative to processor 102, these remote memories can pass through network connection to computer Terminal 10.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Transmission module 106 is used to receive via a network or transmission data.Above-mentioned network specific example may include The wireless network that the communication providers of terminal 10 provide.In an example, transmission module 106 includes that a network is suitable Orchestration (Network Interface Controller, NIC), can be connected with other network equipments by base station so as to Internet is communicated.In an example, transmission module 106 can be radio frequency (Radio Frequency, RF) module, For wirelessly being communicated with internet.
In software view, above-mentioned session does not read item number updating device as shown in figure 5, may include:Sending module 501, One receiving module 502, update display module 503, wherein:
Sending module 501, for the log on request in response to conversation applications, by the maximum renewal time of local session information It is sent to server;
First receiving module 502, the update of the session information after maximum renewal time for receiving server return Record, wherein more new record includes:The information encoding and receiving time point, each session window of every session information are last The information encoding for the information being read and it is read time point, wherein information encoding is received by server according to session information To time sequencing number;
Display module 503 is updated, for being updated to local session information according to more new record, and according to more new record It determines and show each session does not read item number.
In one embodiment, update display module 503 may include:Comparison unit was used for maximum renewal time The information encoding of every session information later is carried out with the information encoding for the information of corresponding session window being finally read Comparison;Counting unit, for the information encoding of the information being finally read if it is greater than corresponding session window, the then session The item number of not reading of window increases by one.
In one embodiment, the first receiving module 502 specifically can be used for receiving that server returns corresponds to and step on The more new record of session information after the maximum renewal time of land user, wherein session information is based on User ID in server It is stored and is retrieved.
In one embodiment, item number updating device is not read in above-mentioned session, which, to include:Detection module, in root It is determining according to more new record and show each session do not read item number after, whether user to there are the session windows of people of unread information for detection It carries out checking operation;Uploading module, for detecting user to there are the session windows of people of unread information to carry out checking operation In the case of, by the information encoding of the up-to-date information for being checked session window and it is read time point and is uploaded to server.
In one embodiment, item number updating device is not read in above-mentioned session, which, to include:Second receiving module, is used for It is determining according to more new record and show each session do not read item number after, the information for receiving the new information that server transmission comes is compiled Number;Update module, for being updated to the item number of not reading of the session window of the new information according to new information.
A kind of Dialog processing device is additionally provided in the embodiment of the present invention, is located in server, as shown in fig. 6, can wrap It includes:Receiving module 601, determining module 602 and sending module 603, wherein:
Receiving module 601, for receiving client end response in the log on request of conversation applications, the local session information of transmission Maximum renewal time be sent to server;
Determining module 602 is used for according to maximum renewal time, the session after the maximum renewal time for determining server side The more new record of information, wherein more new record includes:The information encoding and receiving time point, Mei Gehui of every session information It talks about the information encoding for the information that window is finally read and is read time point, wherein information encoding is according to session information quilt What the time sequencing that server receives was numbered;
Sending module 603, for more client will to be sent to by new record, wherein more new record determines simultaneously for client Show each session does not read item number.
Wherein, client can be the terminal device or software that guest operation uses.Specifically, client can be intelligence The terminal devices such as energy mobile phone, tablet computer, laptop, desktop computer, smartwatch or other wearable devices.When So, client can also be the software that can be run in above-mentioned terminal device.Such as:The application such as qq, wechat or browser is soft Part.
Although this application provides the method operating procedure of such as embodiment or flow chart, based on routine or without creativeness Labour may include more or less operating procedure.The step of being enumerated in embodiment sequence is only that numerous steps execute A kind of mode in sequence does not represent and unique executes sequence.It, can be by when device in practice or client production execute According to embodiment, either method shown in the drawings sequence executes or parallel executes (such as parallel processor or multiple threads Environment).
The device or module that above-described embodiment illustrates can specifically realize by computer chip or entity, or by having The product of certain function is realized.For convenience of description, it is divided into various modules when description apparatus above with function to describe respectively. The function of each module is realized can in the same or multiple software and or hardware when implementing the application.It is of course also possible to The module for realizing certain function is combined into realization by multiple submodule or subelement.
Method, apparatus or module in the application can realize controller by any in a manner of computer readable program code Mode appropriate is realized, for example, controller can take such as microprocessor or processor and storage can be by (micro-) processing Computer-readable medium, logic gate, switch, the special collection for the computer readable program code (such as software or firmware) that device executes It is micro- at circuit (Application Specific Integrated Circuit, ASIC), programmable logic controller (PLC) and insertion The example of the form of controller, controller includes but not limited to following microcontroller:ARC 625D,Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, Memory Controller are also implemented as depositing A part for the control logic of reservoir.It is also known in the art that in addition to real in a manner of pure computer readable program code Other than existing controller, completely can by by method and step carry out programming in logic come so that controller with logic gate, switch, special The form of integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. realizes identical function.Therefore this controller It is considered a kind of hardware component, and hardware can also be considered as to the device for realizing various functions that its inside includes Structure in component.Or even, it can will be considered as the software either implementation method for realizing the device of various functions Module can be the structure in hardware component again.
Part of module in the application device can be in the general upper and lower of computer executable instructions Described in the text, such as program module.Usually, program module includes executing particular task or realization particular abstract data type Routine, program, object, component, data structure, class etc..The application can also be put into practice in a distributed computing environment, at these In distributed computing environment, by executing task by the connected remote processing devices of communication network.In Distributed Calculation In environment, program module can be located in the local and remote computer storage media including storage device.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can It is realized by the mode of software plus required hardware.Based on this understanding, the technical solution of the application is substantially in other words The part that contributes to existing technology can be expressed in the form of software products, and can also pass through the implementation of Data Migration It embodies in the process.The computer software product can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, packet Some instructions are included to use so that a computer equipment (can be personal computer, mobile terminal, server or network are set It is standby etc.) execute each embodiment of the application or embodiment certain parts method.
Each embodiment in this specification is described by the way of progressive, same or analogous portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.The whole of the application or Person part can be used in numerous general or special purpose computing system environments or configuration.Such as:Personal computer, server calculate Machine, handheld device or portable device, mobile communication terminal, multicomputer system, based on microprocessor are at laptop device System, programmable electronic equipment, network PC, minicomputer, mainframe computer include the distribution of any of the above system or equipment Formula computing environment etc..
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application there are many deformation and Variation is without departing from spirit herein, it is desirable to which the attached claims include these deformations and change without departing from the application's Spirit.

Claims (19)

1. item number update method is not read in a kind of session, which is characterized in that including:
In response to the log on request of conversation applications, the maximum renewal time of local session information is sent to server;
Receive the more new record of the session information after the maximum renewal time that server returns, wherein more new record includes: The information encoding for the information that the information encoding and receiving time point, each session window of every session information are finally read and by Read access time point, wherein information encoding is numbered by the time sequencing that server receives according to session information;
Local session information is updated according to more new record, and determining according to more new record and show each session does not read item Number.
2. the method according to claim 1, which is characterized in that it is determining according to more new record and show each session does not read item number, Including:
By the information encoding of every session information after maximum renewal time, with being finally read for corresponding session window The information encoding of information is compared;
If it is greater than the information encoding for the information of corresponding session window being finally read, then the session window does not read item number Increase by one.
3. the method according to claim 1, which is characterized in that receive the session letter after the maximum renewal time that server returns The more new record of breath, including:
The more new record of the session information after the maximum renewal time corresponding to login user that server returns is received, In, session information is stored and is retrieved based on User ID in server.
4. the method according to claim 1, which is characterized in that determining according to more new record and show each session does not read item number Later, method further includes:
User is detected whether to there are the session windows of people of unread information to carry out checking operation;
In the case where detecting user to carrying out checking operation there are the session window of people of unread information, this is checked into conversation window Mouthful up-to-date information information encoding and be read time point and be uploaded to server.
5. the method according to claim 1, which is characterized in that determining according to more new record and show each session does not read item number Later, method further includes:
Receive the information encoding for the new information that server transmission comes;
The item number of not reading of the session window of the new information is updated according to new information.
6. a kind of conversation processing method, which is characterized in that including:
Client end response is received in the log on request of conversation applications, the maximum renewal time of the local session information of transmission is sent to Server;
According to maximum renewal time, the more new record of the session information after the maximum renewal time for determining server side, wherein More new record includes:The letter that the information encoding and receiving time point, each session window of every session information are finally read The information encoding of breath and it is read time point, wherein information encoding is that time for being received by server according to session information is suitable What sequence was numbered;
More new record is sent to client, wherein more new record is determining for client and show each session does not read item number.
7. method according to claim 6, which is characterized in that further include:
It receives and stores the information encoding for the information that each session window that client uploads finally is read and is read time point.
8. method according to claim 6, which is characterized in that further include:
Receive the session information that client is sent;
Session information to receiving sequentially is numbered according to the time, obtains information encoding.
9. item number updating device is not read in a kind of session, which is characterized in that including:
The maximum renewal time of local session information is sent to by sending module for the log on request in response to conversation applications Server;
First receiving module, the more new record of the session information after maximum renewal time for receiving server return, In, more new record includes:The information encoding and receiving time point, each session window of every session information are finally read The information encoding of information and it is read time point, wherein information encoding is the time received by server according to session information What serial number obtained;
Display module is updated, for being updated to local session information according to more new record, and is determined simultaneously according to more new record Show each session does not read item number.
10. device according to claim 9, which is characterized in that updating display module includes:
Comparison unit is used for by the information encoding of every session information after maximum renewal time, with corresponding session window The information encoding of the information being finally read compared;
Counting unit, for the information encoding of the information being finally read if it is greater than corresponding session window, the then session The item number of not reading of window increases by one.
11. device according to claim 9, which is characterized in that the first receiving module is specifically used for receiving pair that server returns It should be in the more new record of the session information after the maximum renewal time of login user, wherein session information is based in server User ID is stored and is retrieved.
12. device according to claim 9, which is characterized in that further include:
Detection module, for it is determining according to more new record and show each session do not read item number after, whether detection user right There are the session windows of people of unread information to carry out checking operation;
Uploading module, in the case where detecting user to carrying out checking operation there are the session window of people of unread information, inciting somebody to action This, which is checked the information encoding of the up-to-date information of session window and is read time point, is uploaded to server.
13. device according to claim 9, which is characterized in that further include:
Second receiving module, for it is determining according to more new record and show each session do not read item number after, receive server The information encoding for the new information that transmission comes;
Update module, for being updated to the item number of not reading of the session window of the new information according to new information.
14. a kind of Dialog processing device, which is characterized in that including:
Receiving module, for receiving client end response in the log on request of conversation applications, the maximum of the local session information of transmission Renewal time is sent to server;
Determining module was used for according to maximum renewal time, the session information after the maximum renewal time for determining server side More new record, wherein more new record includes:The information encoding and receiving time point, each session window of every session information The information encoding for the information being finally read and it is read time point, wherein information encoding is according to session information by server What the time sequencing received was numbered;
Sending module, for more client will to be sent to by new record, wherein more new record is determining for client and shows each meeting Words do not read item number.
15. a kind of session processing system, which is characterized in that including:Server, multiple client, wherein:
The step of server requires any one of 6 to 8 method for perform claim;
The step of client requires any one of 1 to 5 method for perform claim.
Multiple client can log in same conversation applications.
16. a kind of client device, including processor and the memory for storing processor-executable instruction, processor are held The method for realizing any one of claim 1 to 5 when row instruction.
17. a kind of server, including processor and the memory for storing processor-executable instruction, processor execution refers to The method that any one of claim 6 to 8 is realized when enabling.
18. a kind of computer readable storage medium is stored thereon with computer instruction, instruction, which is performed, realizes claim 1 The step of to any one of 5 method.
19. a kind of computer readable storage medium is stored thereon with computer instruction, instruction, which is performed, realizes claim 6 The step of to any one of 8 method.
CN201810715477.6A 2018-06-29 2018-06-29 Method for updating unread number of session, session processing method, device and system Active CN108809815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810715477.6A CN108809815B (en) 2018-06-29 2018-06-29 Method for updating unread number of session, session processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810715477.6A CN108809815B (en) 2018-06-29 2018-06-29 Method for updating unread number of session, session processing method, device and system

Publications (2)

Publication Number Publication Date
CN108809815A true CN108809815A (en) 2018-11-13
CN108809815B CN108809815B (en) 2021-06-22

Family

ID=64074160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810715477.6A Active CN108809815B (en) 2018-06-29 2018-06-29 Method for updating unread number of session, session processing method, device and system

Country Status (1)

Country Link
CN (1) CN108809815B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138652A (en) * 2019-05-21 2019-08-16 北京达佳互联信息技术有限公司 A kind of session updates method, apparatus and client device
CN113472630A (en) * 2021-05-20 2021-10-01 合肥市智享亿云信息科技有限公司 Method for synchronizing unread messages

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7185026B2 (en) * 2004-04-15 2007-02-27 International Business Machines Corporation Method for synchronizing read/unread data during LOTUS NOTES database migration
CN101232467A (en) * 2008-02-22 2008-07-30 中兴通讯股份有限公司 Method for obtaining information using time jab in real time communicating business
CN103051516A (en) * 2011-10-17 2013-04-17 腾讯科技(深圳)有限公司 Message prompting method and device of instant messaging client
CN103326929A (en) * 2013-06-24 2013-09-25 北京小米科技有限责任公司 Method and device for transmitting messages
US20130326367A1 (en) * 2011-02-15 2013-12-05 Nec Casio Mobile Communications, Ltd. Portable terminal device and screen display method thereof
CN104836719A (en) * 2014-02-11 2015-08-12 阿里巴巴集团控股有限公司 Method and system for synchronizing instant communication unread messages
CN105245432A (en) * 2014-06-26 2016-01-13 腾讯科技(北京)有限公司 Unread message counting method, unread message counting device and terminal
US20160277346A1 (en) * 2015-03-18 2016-09-22 Xiaomi Inc. Method, apparatus, terminal and storage medium for displaying application messages
CN106209608A (en) * 2016-09-14 2016-12-07 广东欧珀移动通信有限公司 The method and device that the difference of a kind of chat message synchronizes
CN106341310A (en) * 2016-09-28 2017-01-18 江西博瑞彤芸科技有限公司 Session message display method
US20170346938A1 (en) * 2016-05-31 2017-11-30 International Business Machines Corporation Sent Text Correction Feature
CN107465802A (en) * 2016-06-03 2017-12-12 北京融聚世界网络科技有限公司 A kind of methods, devices and systems for showing communication message

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7185026B2 (en) * 2004-04-15 2007-02-27 International Business Machines Corporation Method for synchronizing read/unread data during LOTUS NOTES database migration
CN101232467A (en) * 2008-02-22 2008-07-30 中兴通讯股份有限公司 Method for obtaining information using time jab in real time communicating business
US20130326367A1 (en) * 2011-02-15 2013-12-05 Nec Casio Mobile Communications, Ltd. Portable terminal device and screen display method thereof
CN103051516A (en) * 2011-10-17 2013-04-17 腾讯科技(深圳)有限公司 Message prompting method and device of instant messaging client
CN103326929A (en) * 2013-06-24 2013-09-25 北京小米科技有限责任公司 Method and device for transmitting messages
CN104836719A (en) * 2014-02-11 2015-08-12 阿里巴巴集团控股有限公司 Method and system for synchronizing instant communication unread messages
CN105245432A (en) * 2014-06-26 2016-01-13 腾讯科技(北京)有限公司 Unread message counting method, unread message counting device and terminal
US20160277346A1 (en) * 2015-03-18 2016-09-22 Xiaomi Inc. Method, apparatus, terminal and storage medium for displaying application messages
US20170346938A1 (en) * 2016-05-31 2017-11-30 International Business Machines Corporation Sent Text Correction Feature
CN107465802A (en) * 2016-06-03 2017-12-12 北京融聚世界网络科技有限公司 A kind of methods, devices and systems for showing communication message
CN106209608A (en) * 2016-09-14 2016-12-07 广东欧珀移动通信有限公司 The method and device that the difference of a kind of chat message synchronizes
CN106341310A (en) * 2016-09-28 2017-01-18 江西博瑞彤芸科技有限公司 Session message display method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138652A (en) * 2019-05-21 2019-08-16 北京达佳互联信息技术有限公司 A kind of session updates method, apparatus and client device
CN113472630A (en) * 2021-05-20 2021-10-01 合肥市智享亿云信息科技有限公司 Method for synchronizing unread messages

Also Published As

Publication number Publication date
CN108809815B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN108280115B (en) Method and device for identifying user relationship
KR102363006B1 (en) How to respond to user requests using natural language machine learning based on conversation examples
CN104836719B (en) A kind of synchronous method and system of instant messaging unread message
US20140046939A1 (en) User recommendation method and a user recommendation system using the same
CN105630977B (en) Application program recommended method, apparatus and system
CN104753985A (en) Session list display method and device
CN109155749A (en) The natural language interaction formula message transfer service session device of internet cloud trustship
CN106845267B (en) The processing method and mobile terminal of applicating history information
US11729286B2 (en) Feature-based network embedding
CN107872534B (en) Information pushing method and device, server and readable storage medium
CN105868590B (en) A kind of handwriting data treating method and apparatus
CN110391974A (en) A kind of message synchronization method, server-side, terminal and system
CN111079006A (en) Message pushing method and device, electronic equipment and medium
WO2015009584A1 (en) Techniques to manage state information for a web service
US11412010B2 (en) Content delivery and consumption with affinity-based remixing
CN112001274A (en) Crowd density determination method, device, storage medium and processor
CN111182065A (en) Message processing method and device based on MQTT protocol and computer equipment
CN104063475B (en) user-defined list processing method and device
CN108809815A (en) Item number update method, conversation processing method, device and system are not read in session
CN111585801A (en) ZigBee device upgrading method and related device
CN113781119A (en) Virtual resource sending method and device, electronic equipment and storage medium
CN103390021B (en) The method and apparatus to extract social relations from call time data
CN106888264A (en) A kind of method for interchanging data and device
CN105635215A (en) Contact information synchronization method and device and cloud server
CN106209584A (en) User profile processing method based on the Internet, client and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Duan Lijun

Inventor after: Tian Zuojian

Inventor before: Duan Lijun

Inventor before: Tian Zuojian

REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40000239

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant