CN102685018A - Method and system for processing network instant messaging message and instant massaging equipment - Google Patents

Method and system for processing network instant messaging message and instant massaging equipment Download PDF

Info

Publication number
CN102685018A
CN102685018A CN2011100538716A CN201110053871A CN102685018A CN 102685018 A CN102685018 A CN 102685018A CN 2011100538716 A CN2011100538716 A CN 2011100538716A CN 201110053871 A CN201110053871 A CN 201110053871A CN 102685018 A CN102685018 A CN 102685018A
Authority
CN
China
Prior art keywords
chat message
date
index information
day
phase
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
CN2011100538716A
Other languages
Chinese (zh)
Other versions
CN102685018B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110053871.6A priority Critical patent/CN102685018B/en
Publication of CN102685018A publication Critical patent/CN102685018A/en
Application granted granted Critical
Publication of CN102685018B publication Critical patent/CN102685018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention is suitable for the information processing field and provides a method and a system for processing network instant messaging messages and instant massaging equipment. The method comprises the following steps: receiving a new chat message, and obtaining the date of the chat information and the user identification numbers of a sender and a receiver; according to the user identification numbers of a sender and a receiver, positioning a corresponding file; obtaining an index message from the file; obtaining a prestored first date and a prestored last date from the index message; and according to the date of the chat message, the first date and the last date, editing the chat message. With the adoption of the method disclosed by the invention, a purpose that a stored overdue chat record is automatically deleted while the chat message is stored or checked can be effectively realized, the corresponding index message can be synchronously revised, the information processing time is reduced, and the information processing efficiency is improved.

Description

A kind of method of network instant communication information processing, system and instant communication device
Technical field
The invention belongs to field of information processing, relate in particular to a kind of method, system and instant communication device of network instant communication information processing.
Background technology
Along with the development of information technology, based on the network instant communication instrument of browser (for example: WebQQ etc.) since its use and upgrade on convenience, what receive more and more users likes that the scope of its application is also more and more widely.
Existing network instant communication instrument can be realized the function of chat record roaming; Be that the information that the user passes through network instant communication instrument transmitting-receiving can be stored a period of time (for example seven days) on the webserver; During this period of time; The user can be on any machine the logging in network JICQ, check that server is the chat message of its storage.Yet, when the chat message of storage is too much, can influence the handling property of server, therefore need to adopt a kind of method with expired chat message deletion.
Prior art is through regularly starting the shell script of server, and the chat message of traversal server storage can be with expired chat message deletion.Yet also there is following shortcoming in prior art: 1) need delete expired chat record through traveling through all chat messages at every turn, too consumption of natural resource, lose time; 2) shell script can not be handled chat message in real time according to Preset Time, influences the information processing effect; 3) shell script can not be revised index information synchronously when handling chat message, has influenced the efficient of information processing.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of method of network instant communication information processing, is intended to solve prior art lower problem of efficient when handling the chat record of network instant communication.
The embodiment of the invention is achieved in that a kind of method of network instant communication information processing, said method comprising the steps of:
Receive new chat message, and obtain the date and transmitting-receiving side's user identification number of said chat message;
Navigate to corresponding file according to said transmitting-receiving side user identification number, from said file, obtain index information, from said index information, obtain the phase first day and the tail date that prestore again;
According to date and the said phase first day and the tail date of said chat message, said chat message is carried out editing and processing.
Another purpose of the embodiment of the invention is to provide a kind of network instant communication information processing system, and said system comprises:
Information receiving unit is used to receive new chat message, and obtains the date and transmitting-receiving side's user identification number of said chat message;
Date acquisition unit is used for navigating to corresponding file according to said transmitting-receiving side user identification number, from said file, obtains index information, from said index information, obtains the phase first day and the tail date that prestore again;
Information process unit is used for date and the said phase first day and tail date according to said chat message, and said chat message is carried out editing and processing.
A purpose again of the embodiment of the invention is to provide a kind of instant communication device, and said instant communication device comprises said network instant communication information processing system.
In embodiments of the present invention; Through date and the phase first day in the manipulative indexing information and the tail date of obtaining new chat message,, chat message is handled according to date and the said phase first day and the tail date of said chat message; The expired chat record that automatic deletion has been stored when can effectively be implemented in storage or checking chat message; And can revise corresponding index information synchronously, and reduced the time of information processing, improved the efficient of information processing.
Description of drawings
Fig. 1 is the realization flow figure of the network instant communication information processing method that provides of the embodiment of the invention one;
Fig. 2 is the concrete realization flow figure of the information process that provides of the embodiment of the invention one;
Fig. 3 is the composition structure chart of the network instant communication information processing system that provides of the embodiment of the invention three;
Fig. 4 is the composition structure chart of the information process unit that provides of the embodiment of the invention three.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Date and first day phase in manipulative indexing information and the tail date of the embodiment of the invention through obtaining new chat message; According to date and the said phase first day and the tail date of said chat message; Chat message is handled, the expired chat record that automatic deletion has been stored when can effectively be implemented in storage or checking chat message, and can revise corresponding index information synchronously; Reduce the time of information processing, improved the efficient of information processing.
For technical scheme of the present invention is described, describe through specific embodiment below.
Embodiment one:
Fig. 1 shows the realization flow of the network instant communication information processing method that the embodiment of the invention one provides, and details are as follows for this procedure:
In step S101, receive new chat message, and obtain the date and transmitting-receiving side's user identification number of said chat message.
In the present embodiment; The network instant communication instrument (for example: WebQQ etc.) receive new chat message; Network instant communication instrument service end is obtained the time of this chat message and the user identification number of this chat message transmitting-receiving side (User Identification Number/To User Identification Number; UIN/TUIN), said user identification number is the number that is used to identify each user's uniqueness, for example: QQ number etc.
In step S102, navigate to corresponding file according to said transmitting-receiving side user identification number, from said file, obtain index information, from said index information, obtain the phase first day and the tail date that prestore again.
In the present embodiment; The network instant communication service end stores user's chat message; Said chat message is stored according to the difference of user identification number; The network instant communication service end navigates to the file that has said chat message according to transmitting-receiving side's user identification number, from said file, obtains index information, from said index information, obtains the phase first day and the tail date that prestore again.Wherein, Said index information is used to write down the date of chat message and the bar number of chat message; The date of chat message stores according to the sequencing that gets in the said index information; The phase first day in the index information is the date that gets into index information recently, and the tail date is for get into the date of index information the earliest.
In step S103,, said chat message is carried out editing and processing according to date and the said phase first day and the tail date of said chat message.
In the present embodiment, the mode of editing and processing is including, but not limited to storage, deletion.According to date and the said phase first day and the tail date of said chat message, the concrete steps of said chat message being carried out editing and processing are as shown in Figure 2:
In step S201, judge whether the date of said chat message is identical with the said phase first day of from index information, obtaining, if the result is " being ", execution in step S203 then, if the result is " denying ", execution in step S202 then.
In the present embodiment; The date of the chat message that obtains was compared with the phase first day of from index information, obtaining; If the date of this chat message is identical with the phase first day in the said index information; Then directly increase the bar number of chat message in the said index information, and store said chat message, said chat message is stored to the end of corresponding date file; If the phase first day in the date of this chat message and the said index information is inequality; Then the date of chat message is later than the phase first day in the said index information certainly; The date of said chat message is deposited in the said index information; Then the date of this chat message becomes the phase first day in the index information, and increases the bar number of chat message in the said index information.Quick location when effectively deleting expired chat record and read-write for service end simultaneously, a newly-built file deposits said new chat message in this new file under this catalogue, and said filename comprises date and time information.
In step S202; Date of said chat message and the said phase first day not simultaneously; The date of said chat message is deposited in the said index information, and increase the bar number of chat message in the said index information, simultaneously said chat message is deposited in the new file.
In step S203, date of said chat message when the said first day, the phase was identical, increase the bar number of chat message in the said index information.
In step S204, judge that whether the current date and the difference on said tail date of from index information, obtaining surpass intended duration, if the result be " being ", execution in step S205 then, if the result is " denying ", the then ending message processing of deleting.
As one embodiment of the present of invention; When storage or checking chat record information, whether surpass intended duration through the difference of judging the tail date in current date and the index information, the chat record information of having stored is deleted processing; When said difference surpasses intended duration; Explain that this chat message is expired, tail date and corresponding chat message bar number described in the deletion index information, the corresponding chat message of deletion simultaneously; When said difference did not surpass intended duration, then the chat message of explanation storage was all not out of date, and the processing of ending message deletion can effectively reduce date number of times relatively, improves the efficient of information processing.
In the present embodiment, the tail date is for getting into the date in the index information the earliest, during above intended duration, deletes this tail date with the difference on tail date at current date, and the penult date in the index information becomes the next tail date.Wherein, intended duration can preestablish according to the server performance of network instant communication, and for example: seven days one inferior.
In step S205, when said difference surpasses intended duration, delete tail date described in the said index information and corresponding chat message bar number, simultaneously the corresponding chat message of deletion.
As one embodiment of the present of invention; Surpass intended duration in said difference, the current tail date continues the next tail date is judged when being deleted; When the difference on current time and next tail date did not surpass intended duration, the deletion of ending message was handled.
Date and first day phase in manipulative indexing information and the tail date of the embodiment of the invention through obtaining new chat message; The date of said chat message and the phase first day in the said index information are compared; According to comparative result chat message is stored; Through the judgement on tail date in the index information is come chat message is deleted processing, can be implemented in and store the expired chat record that automatic deletion has been stored when perhaps checking chat message, and can revise corresponding index information synchronously simultaneously; Reduce the time of information processing, improved the efficient of information processing.
Embodiment two:
Fig. 3 shows the composition structure of the network instant communication information processing system that the embodiment of the invention two provides, and for the ease of explanation, only shows the part relevant with the embodiment of the invention.
This network instant communication information processing system can be to run on the unit that software unit, hardware cell or software and hardware in the information processing terminal combine, and also can be used as independently, suspension member is integrated in these information processing terminals or runs in the application system of these information processing terminals.
This network instant communication information processing system comprises information receiving unit 31, date acquisition unit 32 and information process unit 33.Wherein, the concrete function of each unit is following:
Information receiving unit 31 is used to receive new chat message, and obtains the date and transmitting-receiving side's user identification number of said chat message, and its implementation repeats no more at this as stated.
Date acquisition unit 32; Be used for navigating to corresponding file, from said file, obtain index information, from said index information, obtain the phase first day and the tail date that prestore again according to said transmitting-receiving side user identification number; Its implementation repeats no more at this as stated.
Information process unit 33 is used for date and the said phase first day and tail date according to said chat message, and said chat message is carried out editing and processing.Wherein, said information process unit 33 also comprises first judge module 41, second judge module 42, first modified module 43, second modified module 44, information deletion module 45 and finishes module 46 (as shown in Figure 4) that each module concrete function is following:
First judge module 41 judges whether the date of said chat message is identical with the said phase first day of from index information, obtaining; And when judged result is " being "; First modified module 42 increases the bar number of chat message in the said index information, and stores said chat message; When judged result was " denying ", second modified module 43 deposited the date of said chat message in the said index information in, and increased the bar number of chat message in the said index information, simultaneously said chat message was deposited in the new file;
Second judge module 44 judges whether the current date and the difference on said tail date of from index information, obtaining surpass intended duration; And when judged result is " being "; Tail date and corresponding chat message bar number, the corresponding chat message of deletion simultaneously described in the said index information of information deletion module 45 deletions; When judged result is " denying ", finishes the deletion of module 46 ending messages and handle.
In the present embodiment, the detailed process of each module repeats no more at this as stated.
In embodiments of the present invention; Through date and the phase first day in the manipulative indexing information and the tail date of obtaining new chat message; The date of said chat message and the phase first day in the said index information are compared, chat message is stored, simultaneously through the judgement on tail date in the index information is come chat message is deleted processing according to comparative result; The expired chat record that automatic deletion has been stored when can be implemented in storage or checking chat message; And revise corresponding index information synchronously, and reduced the time of information processing, improved the efficient of information processing.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. the method for a network instant communication information processing is characterized in that, said method comprising the steps of:
Receive new chat message, and obtain the date and transmitting-receiving side's user identification number of said chat message;
Navigate to corresponding file according to said transmitting-receiving side user identification number, from said file, obtain index information, from said index information, obtain the phase first day and the tail date that prestore again;
According to date and the said phase first day and the tail date of said chat message, said chat message is carried out editing and processing.
2. the method for claim 1 is characterized in that, said date and the said phase first day and tail date according to said chat message, the step of said chat message being carried out editing and processing is specially:
Whether the date of judging said chat message is identical with the said phase first day of from index information, obtaining;
Date of said chat message when the said first day, the phase was identical, increase the bar number of chat message in the said index information, and store said chat message;
Judge whether the current date and the difference on said tail date of from index information, obtaining surpass intended duration;
When said difference surpasses intended duration, delete tail date described in the said index information and corresponding chat message bar number, simultaneously the corresponding chat message of deletion.
3. method as claimed in claim 2 is characterized in that, said method is further comprising the steps of:
Date of said chat message and the said phase first day not simultaneously, date of said chat message is deposited in the said index information, and increases the bar number of chat message in the said index information, simultaneously said chat message is deposited in the new file;
When said difference did not surpass intended duration, the deletion of ending message was handled.
4. the method for claim 1 is characterized in that, said index information is used to write down the date of chat message and the bar number of chat message.
5. method as claimed in claim 4 is characterized in that, the date of chat message stores according to the sequencing that gets in the said index information.
6. a network instant communication information processing system is characterized in that, said system comprises:
Information receiving unit is used to receive new chat message, and obtains the date and transmitting-receiving side's user identification number of said chat message;
Date acquisition unit is used for navigating to corresponding file according to said transmitting-receiving side user identification number, from said file, obtains index information, from said index information, obtains the phase first day and the tail date that prestore again;
Information process unit is used for date and the said phase first day and tail date according to said chat message, and said chat message is carried out editing and processing.
7. system as claimed in claim 6 is characterized in that, said information process unit also comprises:
First judge module, whether the date that is used for judging said chat message is with said identical from the phase first day that index information obtains;
First modified module, be used for date of said chat message when the said first day, the phase was identical, increase the bar number of chat message in the said index information, and store said chat message;
Second judge module is used for judging whether current date and said difference from the tail date that index information obtains surpass intended duration;
The information deletion module is used for when said difference surpasses intended duration, deletes tail date described in the said index information and corresponding chat message bar number, simultaneously the corresponding chat message of deletion.
8. system as claimed in claim 7 is characterized in that, said information process unit also comprises:
Second modified module; Be used for date of said chat message and the said phase first day not simultaneously; The date of said chat message is deposited in the said index information, and increase the bar number of chat message in the said index information, simultaneously said chat message is deposited in the new file;
Finish module, be used for when said difference does not surpass intended duration, the deletion of ending message is handled.
9. system as claimed in claim 6 is characterized in that, said index information is used to write down the date of chat message and the bar number of chat message.
10. system as claimed in claim 9 is characterized in that, the date of chat message stores according to the sequencing that gets in the said index information.
11. an instant communication device is characterized in that, said instant communication device comprises the described network instant communication information processing system of claim 6 to 10.
CN201110053871.6A 2011-03-07 2011-03-07 A kind of method of network instant communication information processing, system and instant communication device Active CN102685018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110053871.6A CN102685018B (en) 2011-03-07 2011-03-07 A kind of method of network instant communication information processing, system and instant communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110053871.6A CN102685018B (en) 2011-03-07 2011-03-07 A kind of method of network instant communication information processing, system and instant communication device

Publications (2)

Publication Number Publication Date
CN102685018A true CN102685018A (en) 2012-09-19
CN102685018B CN102685018B (en) 2016-06-01

Family

ID=46816403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110053871.6A Active CN102685018B (en) 2011-03-07 2011-03-07 A kind of method of network instant communication information processing, system and instant communication device

Country Status (1)

Country Link
CN (1) CN102685018B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867063A (en) * 2012-09-27 2013-01-09 东莞宇龙通信科技有限公司 Method and terminal for managing information
WO2014183482A1 (en) * 2013-05-14 2014-11-20 Tencent Technology (Shenzhen) Company Limited Method, system and mobile terminal for deleting chat record
WO2015002979A1 (en) * 2013-07-01 2015-01-08 24/7 Customer, Inc. Method and apparatus for effecting web page access in a plurality of media applications
CN105279154A (en) * 2014-05-27 2016-01-27 中兴通讯股份有限公司 Query method and device for instant messages
CN105791562A (en) * 2016-02-26 2016-07-20 宁波萨瑞通讯有限公司 Information processing method and system
WO2016153119A1 (en) * 2015-03-25 2016-09-29 한양대학교 에리카산학협력단 Method and system for managing data of closed data sharing service
CN107733785A (en) * 2017-10-18 2018-02-23 苏州亿科赛卓电子科技有限公司 A kind of multiple terminals chat message synchronization removal method and device
CN108306817A (en) * 2018-01-12 2018-07-20 维沃移动通信有限公司 A kind of Information locating processing method and mobile terminal
CN108390819A (en) * 2018-02-23 2018-08-10 平安科技(深圳)有限公司 IM information protection method, device, equipment and computer storage medium
CN110191193A (en) * 2019-06-12 2019-08-30 广州吱呀网络科技有限公司 A kind of terminal message synchronous method, device and mobile terminal
CN110198263A (en) * 2019-05-29 2019-09-03 北京达佳互联信息技术有限公司 Conversation processing method, device, equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855835A (en) * 2005-04-20 2006-11-01 上海东望软件有限公司 Methods for recording demand communication data and managing subsequently
CN1991744A (en) * 2005-12-28 2007-07-04 腾讯科技(深圳)有限公司 Method for realizing view of message record in instantaneous communication implement chatting window
CN1996284A (en) * 2005-12-31 2007-07-11 英保达股份有限公司 Save file management system and method therefor
US20070168433A1 (en) * 2006-01-18 2007-07-19 Morgan Fabian F System and method for managing an instant messaging contact list
CN101227424A (en) * 2007-12-20 2008-07-23 腾讯科技(深圳)有限公司 Information exhibiting method as well as subscriber terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855835A (en) * 2005-04-20 2006-11-01 上海东望软件有限公司 Methods for recording demand communication data and managing subsequently
CN1991744A (en) * 2005-12-28 2007-07-04 腾讯科技(深圳)有限公司 Method for realizing view of message record in instantaneous communication implement chatting window
CN1996284A (en) * 2005-12-31 2007-07-11 英保达股份有限公司 Save file management system and method therefor
US20070168433A1 (en) * 2006-01-18 2007-07-19 Morgan Fabian F System and method for managing an instant messaging contact list
CN101227424A (en) * 2007-12-20 2008-07-23 腾讯科技(深圳)有限公司 Information exhibiting method as well as subscriber terminal

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867063A (en) * 2012-09-27 2013-01-09 东莞宇龙通信科技有限公司 Method and terminal for managing information
WO2014183482A1 (en) * 2013-05-14 2014-11-20 Tencent Technology (Shenzhen) Company Limited Method, system and mobile terminal for deleting chat record
US10153995B2 (en) 2013-07-01 2018-12-11 [24]7.ai, Inc. Method and apparatus for effecting web page access in a plurality of media applications
WO2015002979A1 (en) * 2013-07-01 2015-01-08 24/7 Customer, Inc. Method and apparatus for effecting web page access in a plurality of media applications
CN105279154A (en) * 2014-05-27 2016-01-27 中兴通讯股份有限公司 Query method and device for instant messages
WO2016153119A1 (en) * 2015-03-25 2016-09-29 한양대학교 에리카산학협력단 Method and system for managing data of closed data sharing service
CN105791562A (en) * 2016-02-26 2016-07-20 宁波萨瑞通讯有限公司 Information processing method and system
CN107733785A (en) * 2017-10-18 2018-02-23 苏州亿科赛卓电子科技有限公司 A kind of multiple terminals chat message synchronization removal method and device
CN108306817A (en) * 2018-01-12 2018-07-20 维沃移动通信有限公司 A kind of Information locating processing method and mobile terminal
CN108306817B (en) * 2018-01-12 2021-04-30 维沃移动通信有限公司 Information positioning processing method and mobile terminal
CN108390819A (en) * 2018-02-23 2018-08-10 平安科技(深圳)有限公司 IM information protection method, device, equipment and computer storage medium
WO2019161599A1 (en) * 2018-02-23 2019-08-29 平安科技(深圳)有限公司 Im information protection method, apparatus and device, and computer storage medium
CN110198263A (en) * 2019-05-29 2019-09-03 北京达佳互联信息技术有限公司 Conversation processing method, device, equipment and system
CN110191193A (en) * 2019-06-12 2019-08-30 广州吱呀网络科技有限公司 A kind of terminal message synchronous method, device and mobile terminal

Also Published As

Publication number Publication date
CN102685018B (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN102685018A (en) Method and system for processing network instant messaging message and instant massaging equipment
CN102087615B (en) Messages merger method and system in message queue
CN105893084B (en) Version upgrading method and terminal device
CN110134648A (en) Log processing method, device, equipment, system and computer readable storage medium
CN109299157A (en) A kind of data export method and device of distributed big single table
CN101771723A (en) Data synchronization method
CN104580183B (en) A kind of method of data synchronization and device across cluster
CN112579695A (en) Data synchronization method and device
CN105468346A (en) Timing event management method, storage method, execution method and corresponding apparatus
CN101778131A (en) Data synchronization system
CN102831179B (en) web page processing method and device
CN106250501A (en) Report processing method and reporting system
CN107155167A (en) Mobile terminal and its Bluetooth pairing name class processing method and storage device
CN101789963A (en) Data synchronization system
CN103873631B (en) Method and device for displaying call interface of mobile terminal
CN101742394B (en) Electronic work order priority level adjustment method and electronic work order executing method and device
CN105634933B (en) The processing method and intelligent terminal of the history message of public account in converged communication
CN107291579A (en) A kind of metadata cluster File Snapshot method based on static subtree subregion
CN107103565A (en) Network meal-ordering method and system based on positioning
US7778660B2 (en) Mobile communications terminal, information transmitting system and information receiving method
CN106850600A (en) multimedia information push method and device
CN104902542B (en) A kind of information sharing method and mobile communication terminal
CN105897566A (en) User acquisition method and system for network course
CN110443659A (en) A kind of invoice generation method and system
CN112995066B (en) Frame data processing method and device, electronic 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
C14 Grant of patent or utility model
GR01 Patent grant