CN103944799B - Message treatment method and system - Google Patents
Message treatment method and system Download PDFInfo
- Publication number
- CN103944799B CN103944799B CN201310020034.2A CN201310020034A CN103944799B CN 103944799 B CN103944799 B CN 103944799B CN 201310020034 A CN201310020034 A CN 201310020034A CN 103944799 B CN103944799 B CN 103944799B
- Authority
- CN
- China
- Prior art keywords
- message
- nonsystematic
- active user
- user
- sent
- 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.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
This application discloses message treatment method and system, wherein, the described method includes:Obtain the user identity information of active user;The relevant information for being sent to the nonsystematic message of the active user is obtained according to the user identity information;The nonsystematic message is to be sent to the message of active user in a point-to-point fashion;Obtain common storage area preservation is sent to the system message of the active user, and extracts the corresponding sending time of each bar system message;The system message is that the message of active user is sent in a manner of mass-sending;According to relevant information, system message and its corresponding sending time of the nonsystematic message got, the nonsystematic message and system message are polymerize, the information of the message of active user is transmitted back to according to the result of polymerization.By the application, realize uniformly showing for nonsystematic message and system message, avoid because data are inaccurate and to user caused by interference.
Description
Technical field
This application involves technical field of data processing, more particularly to message treatment method and system.
Background technology
In the websites such as some large-scale shopping classes, webmaster usually requires to send some message to user, such as
Notify the message of customer upgrade, the statistical message that have purchased the message of certain commodity, have purchased within a period of time how many commodity,
Etc..These initial message be typically issued in the form of point-to-point to targeted customer private message, notice, prompting etc., it is this
Message due to having the characteristics that personalized user notifies, be referred to as nonsystematic message, be one-to-one storage in accumulation layer
In relevant database.
But during message is sent to user, often need to be sent to multiple users even there are some
The message of whole users, for example, certain large-scale commercial promotions message etc., this kind of message belongs to the message of global type.Although
Point-to-point form can be used to send nonsystematic message to user, but the user group of Large-Scale Interconnected net company is general now
All in million, millions above rank, when sending point-to-point nonsystematic message to large-scale consumer, data are sent to delay
Can be very big, it can not meet the quick business development present situation in internet;Meanwhile if data content repeats, it can produce a large amount of
Redundant data, unusual occupying system resources.
Thus, system message is just come into being.So-called system message is exactly website webmaster with the information forms of broadcasting to
The disclosed message of targeted customer's issue, bulletin, notice, prompting etc..There is this system message mass-sending property, high accessibility etc. to disappear
Cease characteristic.And, it is only necessary to stored in the common storage area of data Layer a, it is not necessary to one-to-one to be stored in each user's
In relevant database, it can also be showed and uniformly be managed.
Certainly, although system message has lot of advantages, nonsystematic message is also irreplaceable, for same
For user, it may can both receive system message or nonsystematic message can be received.But storage mode due to both message etc.
Have differences, cause user data inaccurate, interfered to user, therefore, how in client layer progress Message Processing and exhibition
It is existing, it is the technical issues that need to address.
The content of the invention
This application provides message treatment method and system, there is provided in nonsystematic message and system message and situation about depositing
Under, message shows the processing scheme of process, realizes uniformly showing for nonsystematic message and system message, avoids because of data not
Accurately and to interference caused by user.
This application provides following scheme:
A kind of message treatment method, including:
Obtain the user identity information of active user;
The relevant information for being sent to the nonsystematic message of the active user is obtained according to the user identity information;It is described non-
System message is to be sent to the message of active user in a point-to-point fashion;
Obtain common storage area preservation is sent to the system message of the active user, and extracts each bar system message and correspond to
Sending time;The system message is that the message of active user is sent in a manner of mass-sending;
According to relevant information, system message and its corresponding sending time of the nonsystematic message got, to institute
State nonsystematic message and system message is polymerize, the letter of the message of active user is transmitted back to according to the result of polymerization
Breath.
A kind of message handling system, including:
User identity information acquiring unit, for obtaining the user identity information of active user;
Nonsystematic message correlation information acquiring unit, the current use is sent to for being obtained according to the user identity information
The relevant information of the nonsystematic message at family;The nonsystematic message is to be sent to the message of active user in a point-to-point fashion;
System message relevant information acquiring unit, for obtain common storage area preservation be sent to the active user be
System message, and extract the corresponding sending time of each bar system message;The system message is current to be sent in a manner of mass-sending
The message of user;
Message polymerized unit, for the relevant information according to the nonsystematic message that gets, system message and its right
The sending time answered, polymerize the nonsystematic message and system message, is transmitted back to and worked as according to the result of polymerization
The information of the message of preceding user.
The specific embodiment provided according to the application, this application discloses following technique effect:
By the application, when needing to show information relevant with the message of system transmission to user, on the one hand, Ke Yigen
The relevant information for being sent to the nonsystematic message of the user is got according to user identity information;On the other hand, can be deposited from public
The information for being sent to the system message of the user is got in storage area, and therefrom extracts the sending time of every system message,
In this manner it is possible to be polymerize according to these information to nonsystematic information and system message, and returned according to the result after polymerization
Be back to the related data for showing the message for being sent to active user, so as in client to being sent to the message of active user
Situation is showed, and avoids disturbing caused by data inaccuracy and to user.As it can be seen that the embodiment of the present application is provided in non-system
System message and system message and in the case of depositing, message shows the processing scheme of process, realizes nonsystematic message and disappears with system
Breath uniformly shows.
Specifically carrying out nonsystematic message with system message when polymerizeing, can count respectively active user do not read it is non-
The quantity of system message, and the quantity of system message that active user does not read, and go out to work as according to the Information Statistics of these two aspects
The message sum of preceding user of unread, so that the message sum is presented to user by client.
Alternatively, a nonsystematic message for being sent to active user recently can also be got respectively, and send recently
To the system message of active user, the sending time of this two message is then compared, by sending time apart from current time
Nearlyer person is determined as being sent to a piece of news of active user recently, and returns, so that client is presented to user.
Furthermore can also be according to the corresponding hair of each bar nonsystematic message and system message for being sent to active user
Send the time, nonsystematic message and system message put together and carry out unified sequence, so as to client according to this sequentially into
Each bar message of row shows.
Certainly, any product for implementing the application does not necessarily require achieving all the advantages described above at the same time.
Brief description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to institute in embodiment
Attached drawing to be used is needed to be briefly described, it should be apparent that, drawings in the following description are only some implementations of the application
Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the flow chart of method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another method provided by the embodiments of the present application;
Fig. 3 is the schematic diagram of the first system provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of second system provided by the embodiments of the present application;
Fig. 5 is the schematic diagram of the 3rd system provided by the embodiments of the present application;
Fig. 6 is the schematic diagram of the 4th system provided by the embodiments of the present application.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, those of ordinary skill in the art's all other embodiments obtained, belong to the application protection
Scope.
Firstly the need of explanation, in the embodiment of the present application, the system message for being sent to user is stored in data Layer
Common storage area, so-called common storage area can be a kind of solution of Key/Value structured datas, it give tacit consent to support
Two kinds of storage modes based on memory and file, it is corresponding with usually said caching and persistent storage respectively.
For nonsystematic message and system message, the storage format of message will be different, for example, nonsystematic message
Storage format it is generally as shown in table 1, content in bracket is the explanation to corresponding field:
Table 1
The storage format of system message is generally as shown in table 2, and the content in bracket is the explanation to corresponding field:
Table 2
Either system message or nonsystematic message are can be seen that from table 1 and table 2, all includes disappearing in its storage format
ID, sender ID, message subject and message content field are ceased, but there is also difference.Firstly, for nonsystematic message
Speech, due to having the characteristics that personalization, is in general all destined to certain specific user, therefore, generally to take in the message
Band addressee's id field, and system message is usually to have the characteristics that mass-sending, can give tacit consent to being sent to all users, or certain use
Family colony etc., therefore, does not have addressee's id field generally.Secondly, also due to the recipient of nonsystematic message is that certain is special
Whether fixed user, the user have read certain message, if it is all the nonsystematic it is believed that therefore to delete certain message etc.
Message can carry Message status field, for indicating that message is not read, read or delete;But system message is destined to
Multiple users', the reading behavior of wherein some user can not represent other users, for Mr. Yu's message, possible user's first
It has been read that, but user's second is but not yet read, etc., therefore, it is impossible to determine certain system message be currently at do not read or
Read states, would not also carry Message status field in its storage format., generally can band for system message
There is sending time field, rather than system message certainly, still can be remembered in other way then without the field in system
Record the sending time of every nonsystematic message.
As it can be seen that nonsystematic message has obvious difference, the embodiment of the present application with system message in storage format
Purpose be exactly, in nonsystematic message and system message and in the case of depositing, two kinds of message phase-polymerizations uniformly to be carried to user
Relevant information for the message for being sent to the user.Specifically when providing these relevant informations, generally there are following three aspects
Content:
First, the message entry quantity that active user does not read is how many;
Second, what a piece of news for being sent to active user recently is;
3rd, when user's request shows message, the message for being sent to the active user can be presented to active user.
In specific implementation, since system message is different from the storage mode of nonsystematic message, it is each more than providing
, it is necessary to carry out special processing during kind information.Just specially treated mode provided by the embodiments of the present application is carried out in detail below
Introduce.
This information of message entry quantity do not read firstly, for active user, it is necessary to count the non-system do not read respectively
The quantity for message of uniting, and the quantity for the system message do not read.Wherein, for nonsystematic message, due to every message all
With Message status field, state is not read, read or deleted to show that message is in, accordingly, it is possible to directly in relationship type
(count) calculating is counted in database, all Message status fields is inquired about and is the message of "unread", and count and do not read non-system
The quantity for message of uniting.Can be user in the caching of common storage area alternatively, on the unread message quantity in nonsystematic message
One counter is set, as soon as system sends a nonsystematic message to user, counter adds 1 certainly;User reads or deletion one is non-
System message, counter just subtract 1, accordingly it is also possible to do not read by inquiring about the currency of the counter to obtain active user
The quantity of nonsystematic message.
And the storage mode of system message is different, the message in system message queue is according to sending time Send_Date
Sequential storage, every message have unique sending time.Therefore, can be from common storage area when counting unread Messages
The temporal information of active user's last time query messages is read, system returns to system of this time point untill current point in time and disappears
Cease list.Detailed process can be:In each inquiry system message of user, by the time Tuser information of user's current accessed
It is stored in the cache of common storage area;When user asks again, system can be according to the time of system message queue
Tqueue=[T1, T2, T3 ... Tn-1, Tn] (Tk < Tk+1) is contrasted with Tuser, finds the time point nearest from Tuser
Tk, returns to the system message queue of [Tk, Tk+1 ... Tn].That is, sending time is later than to the system of last query time point
Message, is determined as the system message of the current user of unread.
For example, it is assumed that in actual product, " message " printed words can be shown in the top of Website page etc., and
The printed words could be provided as the forms such as executable button, and as the entrance of user's query messages, user can be pressed by clicking on this
Button, initiates the request of query messages.It is assumed that the time that certain user clicked on query messages last time is on December 1st, 2012,
System will record the time in the buffer;The time of the user's inquiry next time is on December 20th, 2012, during this period, is
To unite and have sent 5 system messages to the user, the system message quantity that the user then counted does not read is 5, that is,
Say, this 5 system messages are all to be sent to the user after on December 1st, 2012, and due on December 1st, 2012 when should
User inquired about message, therefore, the system message that the system message sent before the date can have been read as the user, and only
Non- read apparatus message using the system message sent after the date as the user.Certainly, in practical applications, time point
Precision can also be accurate to hour, minute, second etc., specifically can according to the actual needs depending on.
After the quantity of nonsystematic message and the quantity of system message that active user does not read is counted, it is possible to this
Two parts statistics adduction is got up, and the total number of entries for the message do not read as the user returns to client.Client can
The quantity information to be shown in the user interface.For example, example as the aforementioned, can be aobvious in the top of Website page etc.
Show " message " printed words, on this basis, total bar of the user's unread message can be shown in the printed words upper right side etc.
Mesh quantity information.
The polymerization process of above-mentioned statistics unread message quantity is introduced in more detail with reference to Fig. 1.
S101:Receive the request for obtaining unread message quantity;
At this time, on the one hand, the quantity of the nonsystematic message of user of unread is obtained by following steps S102, on the other hand,
The quantity of the system message of user of unread is obtained by following steps S103-S104.
S102:Reading active user does not read non-from data persistence layer (namely the corresponding relevant database of active user)
System message quantity N1;It can specifically be determined according to statistical message state for the nonsystematic message number of "unread", alternatively,
The current value that the counter set for the user in the caching of common storage area can be read determines;
S103:Obtain the quantity of the system message of user of unread:The user's last time is read from the caching of common storage area
The time point T1 of query message data;
S104:Sending time is obtained from the caching of common storage area and is later than the system message of T1, and counts these systems
The quantity N2 of message;
S105:By the caching of the time point T2 renewals at current time to common storage area;
S106:The sum of N1 and N2 are calculated, obtains the message number that active user does not read.
For the so-called a piece of news for being sent to active user recently, that is to say, that will can recently be sent to the use
The a piece of news at family is reminded in the form of in foreground emersion etc. to active user, causes the attention of the active user.Wherein, if only
There are nonsystematic message, then is easy to obtain the information.This is because system gives each user in the caching of common storage area
The memory block of a reserved nearest record, will update the Message Record in caching when sending nonsystematic message to user every time,
The Message Record so read is exactly a nearest nonsystematic message.But in the case of there are system message, system hair
When sending a new system message, it can't actively refresh the message buffer area of up to ten million users.It is therefore desirable to please in user
Paradigmatic system message and nonsystematic message, draw a piece of news for being sent to active user recently when asking inquiry.During specific implementation,
The method of polymerization can be:
Step 1:The nearest a piece of news of nonsystematic message is read from the memory block that buffering area is reserved for the active user
Munsys, and sending time Tunsys;
Step 2:Nearest a piece of news Msys, Yi Jifa in user of unread message list are read from system message queue
Send time Tsys;
Step 3:Compare Tunsys and Tsys, if Tunsys > Tsys (namely the sending time of Munsys is later than Msys
Sending time), then Munsys is to be sent to the message of active user recently;If Tunsys < Tsys (namely Munsys
Sending time of the sending time earlier than Msys), then Msys is the message for being sent to active user recently.
, can be first from the relation of the active user on the message for being sent to the active user is presented to active user
The nonsystematic message (can include having read and not reading) for being sent to the user is found in type database, and is obtained respectively
Each corresponding sending time of bar nonsystematic message;Also, it can also be obtained from common storage area and be sent to active user's
System message (can equally include having read and not reading), and equally obtain the corresponding transmission of each bar system message respectively
Time.It is then possible to which each bar nonsystematic message and system message are condensed together, and carried out according to respective sending time
Sequence (for example, sending time it is nearer sequence it is more forward etc.), show each bar message according still further to the order after sequence.
Certainly, when showing of message is specifically being carried out, the operation entry that classification shows can be being provided to the user, for example, first
The entrance of checking of one " entire message " can first be provided, user is after entrance entrance, it is possible to get foregoing
It is sent to order exhibition of the information such as whole nonsystematic message of the user and the title of whole system messages according to sending time
Now give active user.Wherein, due to that can know which is not read, the nonsystematic do not read that will can wherein preserve
Message or system message carry out and have read the real form that message distinguishes, for example, by the font-weight for the message header do not read,
Etc..Furthermore it is also possible to which the entrance of checking of "unread" message is provided separately, user will only can work as after entrance entrance
The message of preceding user of unread is presented to active user in the form of list etc., can equally be arranged according to respective sending time
Sequence.Furthermore it is also possible to have the entrance for individually checking " system message ", or the entrance of " nonsystematic message ", nonsystematic message
Entrance can also be segmented further, such as including " my growth ", " privilege activity " etc., and user is from different entrances
Into afterwards, all message corresponding with the classification of the entrance is showed in the form of list etc. to user.
To sum up, the embodiment of the present application is polymerize equivalent to nonsystematic message and system message, Ran Houzai
Uniformly showed.Specifically, there is provided a kind of message treatment method, referring to Fig. 2, this method may comprise steps of:
S201:Obtain the user identity information of active user;
In specific implementation, usually registered in systems in user, after becoming the registered members of system, system just meeting
Nonsystematic message or system message are sent to user, and is arrived in user using information registrations such as the user names of registration and password
After system, it can just show to user and the relevant information of these message.In the embodiment of the present application, equally can be in user
Sign in system and then carry out corresponding Message Processing operation.After user signs in system, it is possible to according to user's
The acquisition of information such as user name are to user identity information, subsequently to obtain the related data of active user on this basis.Need
Illustrate, the executive agent of the embodiment of the present application can be certain program of system server terminal operation, be logged in due to user
Process is also to sign in the system server terminal, therefore, can be directly obtained the identification information of user.
S202:The relevant information for being sent to the nonsystematic message of the active user is obtained according to the user identity information;
The nonsystematic message is to be sent to the message of active user in a point-to-point fashion;
After user identity information is got, it is possible to obtained according to the identification information be sent to the non-of the user first
The relevant information of system message, this relevant information namely show relevant information with follow-up message.For example, can basis
User identity information searches the relevant database of the user, and therefrom extraction is sent to each bar nonsystematic message of user, at the same time
The information such as sending time, the state of each bar nonsystematic message can also be therefrom extracted, to count the nonsystematic message do not read
Quantity, or for subsequently sequence to message etc.;Alternatively, can also be according in user identity information inquiry common storage area
The unread message counter of the current user setting, the value for extracting the counter do not read the number of nonsystematic message as active user
Amount, etc..Furthermore it is also possible to it is that nearest one reserved in common storage area for the active user is inquired about according to user identity information
The information preserved in the memory block of bar message, obtains a nonsystematic message for being sent to active user recently, and obtains this
What, etc. be the sending time of nonsystematic message, be for the follow-up a piece of news for determining that user is most recently received.
S203:Obtain common storage area preservation is sent to the system message of the active user, and extracts each bar system and disappear
Cease corresponding sending time;The system message is that the message of active user is sent in a manner of mass-sending;
While acquisition is sent to the relevant information of nonsystematic message of the active user, common storage can also be obtained
What area preserved is sent to the system message of the active user, and extracts the corresponding sending time of each bar system message, so as to for
Follow-up polymerization is prepared.
It should be noted that in practical applications, system message may be destined to all users, it is also possible to being to send
Give certain certain customers, for it is this be only sent to the system message of a part of user for, when common storage area is preserved,
Recipient's id information (generally can be corresponding with the identification information of user) can be preserved at the same time, therefore, obtained from common storage area
When being sent to the system message of active user, it is also possible to may require that and use user identity information.In this way, if certain system message is
A part of user is sent to, and active user is included among this certain customers, then can be obtained according to user identity information
Know this information, then extracted the system message as the system message for being sent to the user;Obviously, if certain system disappears
Breath is destined to a part of user, still, active user and to be included among this certain customers, then can be marked according to user
Know information and know this information, correspondingly, the system message would not be extracted as the system message for being sent to the user.
At the same time, for the system message for not limiting recipient ID preserved in common storage area, can serve as being sent to
The system message of active user is extracted.
S204:According to relevant information, system message and its corresponding sending time of the nonsystematic message got,
The nonsystematic message and system message are polymerize, the message of active user is transmitted back to according to the result of polymerization
Information.
Get nonsystematic message and message show relevant information and system message and its transmission time information it
Afterwards, it is possible to polymerize nonsystematic message with system message, the result being then back to after polymerization.For example, can be according to each
Time point during the active user's last time query messages preserved in the sending time and common storage area of bar system message, really
The system message that active user does not read is made, and counts the quantity of non-read apparatus message, thus can be by the quantity therewith
Before the quantity for not reading nonsystematic message that gets be added, obtain the message sum that active user does not read and return.Alternatively,
It can also determine the system message sent recently according to the sending time of each bar system message, and by this system message
Sending time compared with getting the sending time of send recently a nonsystematic message before, will apart from it is current when
Carve a piece of news that the corresponding message of nearlyer person is determined as being sent to the user recently;Alternatively, can also be according to each bar nonsystematic
Sequence that the sending time of message and each bar system message is integrated, etc..
In short, in the embodiment of the present application, when needing to show information relevant with the message of system transmission to user, one
Aspect, can get the relevant information for being sent to the nonsystematic message of the user according to user identity information;On the other hand, may be used
To get the information for being sent to the system message of the user from common storage area, and therefrom extract every system message
Sending time, in this manner it is possible to polymerize according to these information to nonsystematic information and system message, and according to polymerization after
Result return and be used to show the related data that is sent to the message of active user, so as in client to being sent to active user
The situation of message showed, avoid because data are inaccurate and to user caused by interference.As it can be seen that the embodiment of the present application provides
In nonsystematic message and system message and in the case of depositing, message shows the processing scheme of process, realize nonsystematic message
With uniformly showing for system message.
Corresponding with message treatment method provided by the embodiments of the present application, the embodiment of the present application is additionally provided at a kind of message
Reason system, referring to Fig. 3, which can include:
User identity information acquiring unit 301, for obtaining the user identity information of active user;
Nonsystematic message correlation information acquiring unit 302, deserves for obtaining to be sent to according to the user identity information
The relevant information of the nonsystematic message of preceding user;The nonsystematic message is to be sent to disappearing for active user in a point-to-point fashion
Breath;
System message relevant information acquiring unit 303, for obtain common storage area preservation be sent to the active user
System message, and extract the corresponding sending time of each bar system message;The system message is to be sent in a manner of mass-sending
The message of active user;
Message polymerized unit 304, for the relevant information according to the nonsystematic message that gets, system message and its
Corresponding sending time, polymerize the nonsystematic message and system message, is transmitted back to according to the result of polymerization
The information of the message of active user.
When specifically polymerizeing to nonsystematic message with system message, many aspects can be included.One aspect can
To be according to the quantity of nonsystematic message and the quantity for the system message do not read do not read, carry out the message that counting user is not read
Total quantity, and return to client., can be according to the transmission of each bar system message in order to count the quantity for the system message do not read
Time and user's last time inquire about corresponding time point at moment, to determine which message is the system message of user of unread.For this reason,
Need to inquire about user every time the time point information at moment and record, correspondingly, referring to Fig. 4, which can also include:
Time point query unit, active user's last time for obtaining common storage area record inquire about the time point at moment;
The nonsystematic message correlation information acquiring unit 302 can include:
Nonsystematic message number is not read and obtains subelement 3021, for obtaining the current use according to the user identity information
The quantity for not reading nonsystematic message at family;
The message polymerized unit 304 can include:
Non- read apparatus message number obtains subelement 3041, with the time that sending time is later than to inquiry moment last time
The system message of point is determined as the system message of the current user of unread, and counts the number of the non-read apparatus message of active user
Amount;
Unread message sum determination subelement 3042, for take the quantity for not reading nonsystematic message of the active user with
Entry sum of the sum of the quantity of non-read apparatus message as active user's unread message, the entry for returning to the unread message are total
Number.
Wherein, in practical applications, the implementation for the quantity that nonsystematic message is not read in acquisition can have a variety of, wherein
Under a kind of implementation, the nonsystematic message number acquisition subelement 3021 of not reading includes:
Data base querying subelement, should for being obtained according to the user identity information in corresponding relevant database
The information of the nonsystematic message of active user;
Status information extracts subelement, for the status field information according to each bar nonsystematic message, obtains to be in and does not read
The nonsystematic message of state;
Quantity statistics subelement, for the quantity by counting the nonsystematic message in unread state, determines that this is current
The quantity for not reading nonsystematic message of user.
Alternatively, under another implementation, the nonsystematic message number acquisition subelement 3021 of not reading can wrap
Include:
Counter inquires about subelement, is set for being inquired about according to the user identity information in common storage area for the user
Unread message counter value;
Quantity determination subelement, non-system is not read for what the value of the unread message counter was determined as the active user
The quantity for message of uniting.
In order to provide reference frame to the non-read apparatus message of subsequent statistical, which further includes:
Time point storage unit, for the time point at current time to be saved in the common storage area, which can
To cover the time point information at a previously stored upper inquiry moment.
On the other hand, can include referring to Fig. 5, the nonsystematic message correlation information acquiring unit 302:
The nonsystematic message sent recently obtains subelement 3022, for according to pre- for the active user in common storage area
The information preserved in the memory block of the nearest a piece of news stayed, obtains a nonsystematic message for being sent to active user recently,
And obtain the sending time T1 of this nonsystematic message;
The message polymerized unit 304 can include:
The system message that sends recently obtains subelement 3043, for by sending time apart from current time nearest system
Message is determined as being sent to the system message of active user recently, and records be sent to active user recently one
The sending time T2 of system message;
Comparing subunit 3044, for comparing T1 and T2, will be determined as most apart from the corresponding message of current time nearlyer person
The nearly a piece of news for being sent to active user, returns to the prompt message of a piece of news for being sent to active user recently.
Another further aspect, referring to Fig. 6, the nonsystematic message correlation information acquiring unit 302 can include:
Nonsystematic message sending time obtains subelement 3023, for inquiring about the current use according to the user identity information
The relevant database at family, acquisition are sent to each bar nonsystematic message of the active user and corresponding sending time;
The message polymerized unit 304 includes:
Set generation subelement 3045, for each bar nonsystematic message and each bar system message to be added to same message
In set;
Sort subelement 3046, for being ranked up according to sending time to each bar message in the massage set, returns
Return each bar message after sorting according to sending time.
Since some system messages are destined to the certain customers specified, in this case, the system disappears
Manner of breathing closes information acquisition unit 303 and specifically can be used for:
According to the user identity information of active user, the system for being sent to the active user that common storage area preserves is obtained
Message.
In short, in above-mentioned message handling system provided by the embodiments of the present application, sent out needing to show to user with system
During the relevant information of the message sent, the nonsystematic message for being sent to the user on the one hand can be got according to user identity information
Relevant information, on the other hand can get the information for being sent to the system message of the user from common storage area, and from
In extract the sending time of every system message, in this manner it is possible to be disappeared according to these information to nonsystematic information and system
Breath is polymerize, and is returned according to the result after polymerization and be used to show the related data for being sent to the message of active user, so as to
The situation for being sent to the message of active user is showed in client.As it can be seen that the embodiment of the present application is provided in nonsystematic
Message and system message and in the case of depositing, message shows the processing scheme of process, realizes nonsystematic message and system message
Uniformly show.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
Realized by the mode of software plus required general hardware platform.Based on such understanding, the technical solution essence of the application
On the part that contributes in other words to the prior art can be embodied in the form of software product, the computer software product
It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are with so that a computer is set
Standby (can be personal computer, server, either network equipment etc.) performs certain of each embodiment of the application or embodiment
Method described in a little parts.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for system or
For system embodiment, since it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method
The part explanation of embodiment.System and system embodiment described above is only schematical, wherein the conduct
The unit that separating component illustrates may or may not be it is physically separate, can be as the component that unit is shown or
Person may not be physical location, you can with positioned at a place, or can also be distributed in multiple network unit.Can root
Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill
Personnel are without creative efforts, you can to understand and implement.
Above to message treatment method and system provided herein, it is described in detail, tool used herein
Body example is set forth the principle and embodiment of the application, and the explanation of above example is only intended to help to understand this Shen
Method and its core concept please;Meanwhile for those of ordinary skill in the art, according to the thought of the application, specific real
Apply there will be changes in mode and application range.In conclusion this specification content should not be construed as the limit to the application
System.
Claims (9)
- A kind of 1. message treatment method, it is characterised in that including:Obtain the user identity information of active user;The relevant information for being sent to the nonsystematic message of the active user is obtained according to the user identity information;The nonsystematic Message is to be sent to the message of active user in a point-to-point fashion;According to the system message for being sent to the active user of user identity information acquisition common storage area preservation and currently The temporal information of user's last time query messages, and extract the corresponding sending time of each bar system message;The system message is The message of active user is sent in a manner of mass-sending;According to the relevant information, system message and its corresponding sending time and active user of the nonsystematic message got The temporal information of last query messages, polymerize the nonsystematic message and system message, according to the result of polymerization It is transmitted back to the information of the message of active user.
- 2. according to the method described in claim 1, it is characterized in that, further include:The active user's last time for obtaining common storage area record inquires about the time point at moment;The relevant information that the nonsystematic message for being sent to the active user is obtained according to the user identity information includes:The quantity for not reading nonsystematic message of the active user is obtained according to the user identity information;Relevant information, system message and its corresponding sending time for the nonsystematic message that the basis is got, to institute State nonsystematic message and system message carries out polymerization and includes:What the system message that sending time is later than to the time point at inquiry moment last time was determined as the current user of unread is System message, and count the quantity of the non-read apparatus message of active user;The sum of the quantity for not reading nonsystematic message of the active user and the quantity of non-read apparatus message is taken to be used as active user The entry sum of unread message, returns to the entry sum of the unread message.
- 3. according to the method described in claim 2, it is characterized in that, described obtain the current use according to the user identity information The quantity for not reading nonsystematic message at family includes:The letter of the nonsystematic message of the active user is obtained in corresponding relevant database according to the user identity information Breath;According to the status field information of each bar nonsystematic message, the nonsystematic message in unread state is obtained;By counting the quantity of the nonsystematic message in unread state, the number for not reading nonsystematic message of the active user is determined Amount.
- 4. according to the method described in claim 2, it is characterized in that, described obtain the current use according to the user identity information The quantity for not reading nonsystematic message at family includes:The value of the unread message counter set in common storage area for the user is inquired about according to the user identity information;The value of the unread message counter is determined as to the quantity for not reading nonsystematic message of the active user.
- 5. according to the method described in claim 2, it is characterized in that, further include:The time point at current time is saved in the common storage area.
- 6. according to the method described in claim 1, it is characterized in that, described obtained according to the user identity information is sent to this The relevant information of the nonsystematic message of active user includes:According to the information preserved in the memory block for the nearest a piece of news reserved in common storage area for the active user, obtain most The nonsystematic message of active user closely is sent to, and obtains the sending time T1 of this nonsystematic message;Relevant information, system message and its corresponding sending time for the nonsystematic message that the basis is got, to institute State nonsystematic message and system message carries out polymerization and includes:The system that sending time is determined as being sent to recently to active user apart from current time nearest system message disappears Breath, and record the sending time T2 of a system message for being sent to active user recently;Compare T1 and T2, disappear being determined as being sent to one of active user recently apart from the corresponding message of current time nearlyer person Breath, returns to the prompt message of a piece of news for being sent to active user recently.
- 7. according to the method described in claim 1, it is characterized in that, described obtained according to the user identity information is sent to this The relevant information of the nonsystematic message of active user includes:The relevant database of the active user is inquired about according to the user identity information, acquisition is sent to each of the active user Bar nonsystematic message and corresponding sending time;Relevant information, system message and its corresponding sending time for the nonsystematic message that the basis is got, to institute State nonsystematic message and system message carries out polymerization and includes:Each bar nonsystematic message and each bar system message are added in same massage set;Each bar message in the massage set is ranked up according to sending time, is returned each after sorting according to sending time Bar message.
- A kind of 8. message handling system, it is characterised in that including:User identity information acquiring unit, for obtaining the user identity information of active user;Nonsystematic message correlation information acquiring unit, is sent to the active user's for being obtained according to the user identity information The relevant information of nonsystematic message;The nonsystematic message is to be sent to the message of active user in a point-to-point fashion;System message relevant information acquiring unit, for obtaining the transmission of common storage area preservation according to the user identity information To the system message of the active user and the temporal information of active user's last time query messages, and extract each bar system message pair The sending time answered;The system message is that the message of active user is sent in a manner of mass-sending;Message polymerized unit, for the relevant information according to the nonsystematic message that gets, system message and its corresponding The temporal information of sending time and active user's last time query messages, gathers the nonsystematic message and system message Close, the information of the message of active user is transmitted back to according to the result of polymerization.
- 9. system according to claim 8, it is characterised in that further include:Time point query unit, active user's last time for obtaining common storage area record inquire about the time point at moment;The nonsystematic message correlation information acquiring unit includes:Nonsystematic message number is not read and obtains subelement, for obtaining not reading for the active user according to the user identity information The quantity of nonsystematic message;The message polymerized unit includes:Non- read apparatus message number obtains subelement, with the system at the time point that sending time is later than to inquiry moment last time Message is determined as the system message of the current user of unread, and counts the quantity of the non-read apparatus message of active user;Unread message sum determination subelement, for the quantity for not reading nonsystematic message for taking the active user and non-read apparatus Entry sum of the sum of the quantity of message as active user's unread message, returns to the entry sum of the unread message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310020034.2A CN103944799B (en) | 2013-01-18 | 2013-01-18 | Message treatment method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310020034.2A CN103944799B (en) | 2013-01-18 | 2013-01-18 | Message treatment method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103944799A CN103944799A (en) | 2014-07-23 |
CN103944799B true CN103944799B (en) | 2018-05-01 |
Family
ID=51192289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310020034.2A Active CN103944799B (en) | 2013-01-18 | 2013-01-18 | Message treatment method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103944799B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105760059A (en) * | 2014-12-17 | 2016-07-13 | 阿里巴巴集团控股有限公司 | Message reading control method and device |
CN107371138B (en) * | 2016-05-13 | 2019-12-20 | 电信科学技术研究院 | System message sending method, sending device, receiving method and receiving device |
CN105848291A (en) * | 2016-05-25 | 2016-08-10 | 努比亚技术有限公司 | System message processing method and server |
CN106844449A (en) * | 2016-12-19 | 2017-06-13 | 北京五八信息技术有限公司 | system message management method and terminal device |
CN108111574A (en) * | 2017-11-29 | 2018-06-01 | 链家网(北京)科技有限公司 | A kind of information push method and system |
CN112965835A (en) * | 2019-01-31 | 2021-06-15 | 福建天泉教育科技有限公司 | Method and terminal for efficiently displaying offline message |
CN113824763B (en) * | 2021-08-10 | 2024-03-01 | 武汉联影医疗科技有限公司 | Message pushing method, device, computer equipment and storage medium |
CN114722300A (en) * | 2022-06-07 | 2022-07-08 | 深圳追一科技有限公司 | Message reminding method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1809194A (en) * | 2006-02-07 | 2006-07-26 | 宇龙计算机通信科技(深圳)有限公司 | Main interface system and method for short messages in mobile communication terminal |
CN101072386A (en) * | 2007-06-22 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Business server, system message server and message broadcasting method |
CN101110794A (en) * | 2007-08-20 | 2008-01-23 | 北京亿企通信息技术有限公司 | Method for reminding unread message in instant communication tools |
CA2638269A1 (en) * | 2007-07-27 | 2009-01-27 | Research In Motion Limited | Information exchange in wireless servers |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101409687B (en) * | 2008-11-25 | 2011-05-25 | 腾讯科技(深圳)有限公司 | Method and apparatus for prompting message |
-
2013
- 2013-01-18 CN CN201310020034.2A patent/CN103944799B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1809194A (en) * | 2006-02-07 | 2006-07-26 | 宇龙计算机通信科技(深圳)有限公司 | Main interface system and method for short messages in mobile communication terminal |
CN101072386A (en) * | 2007-06-22 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Business server, system message server and message broadcasting method |
CA2638269A1 (en) * | 2007-07-27 | 2009-01-27 | Research In Motion Limited | Information exchange in wireless servers |
CN101110794A (en) * | 2007-08-20 | 2008-01-23 | 北京亿企通信息技术有限公司 | Method for reminding unread message in instant communication tools |
Also Published As
Publication number | Publication date |
---|---|
CN103944799A (en) | 2014-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103944799B (en) | Message treatment method and system | |
CN105827706B (en) | Message pushing device and method | |
US8447643B2 (en) | System and method for collecting and distributing reviews and ratings | |
KR102038637B1 (en) | Privacy management across multiple devices | |
US9390197B2 (en) | Building a social graph using sharing activity of users of the open web by updating an edge representing a category type | |
CA2886421C (en) | Computer-implemented system and method for detecting events for use in an automated call center environment | |
CN107395697A (en) | Push Channel Selection, information push method, device and equipment, computer-readable recording medium | |
CN104427519B (en) | IP address ownership place management method and device | |
CN105869057B (en) | Comment storage device, comment reading method and device, and comment writing method and device | |
CN102546668B (en) | Method, device and system for counting unique visitors | |
US20180322170A1 (en) | Event processing system | |
CN107092645B (en) | Book resource management method and device | |
CN107103014A (en) | The replay method of history pushed information, device and system | |
US10657141B2 (en) | Interactive messaging system | |
CN107103011B (en) | Method and device for realizing terminal data search | |
CN112434015B (en) | Data storage method and device, electronic equipment and medium | |
WO2008043143A1 (en) | Personalised content generation | |
CN102572139A (en) | Information processing method, business processing method and device | |
CN104424202A (en) | Method and system for performing duplication checking on customer information in customer relationship management (CRM) system | |
CN109872197B (en) | Method and device for processing user information | |
US20190286671A1 (en) | Algorithmic computation of entity information from ip address | |
US8255474B2 (en) | Pruning method | |
CN106294090A (en) | A kind of data statistical approach and device | |
US8229994B2 (en) | Method, system, and program product for providing automatic group subscriptions | |
CN113905022A (en) | Group chat construction method, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |