CN106713127A - Instant chatting record acquisition and processing methods and devices - Google Patents

Instant chatting record acquisition and processing methods and devices Download PDF

Info

Publication number
CN106713127A
CN106713127A CN201710088855.8A CN201710088855A CN106713127A CN 106713127 A CN106713127 A CN 106713127A CN 201710088855 A CN201710088855 A CN 201710088855A CN 106713127 A CN106713127 A CN 106713127A
Authority
CN
China
Prior art keywords
terminal
chat
chat record
instant
cloud server
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
CN201710088855.8A
Other languages
Chinese (zh)
Other versions
CN106713127B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710088855.8A priority Critical patent/CN106713127B/en
Publication of CN106713127A publication Critical patent/CN106713127A/en
Application granted granted Critical
Publication of CN106713127B publication Critical patent/CN106713127B/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
    • 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/212Monitoring or handling of messages using filtering or selective blocking
    • 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
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The invention relates to instant chatting record acquisition and processing methods and devices. The acquisition method comprises the following steps: a first terminal bound with a first instant messaging account sends a first request message to a second terminal bound with a second instant messaging account; when receiving a first response message sent by the second terminal, the first terminal sends a second request message to a cloud server, wherein the second request message is used for requesting the cloud server for a first chatting record, and the first response message is used for instructing the first terminal that the first chatting record is successfully uploaded to the cloud server; and the first terminal receives the first chatting record sent by the cloud server. According to the methods and the devices provided by the invention, chatting records between the first instant messaging account and the second instant messaging account are restored to the first terminal locally, complete losing possibility of data is reduced, backup reliability and flexibility of the chatting records are greatly improved, and user experience is enhanced.

Description

The acquisition of instant chat record and treating method and apparatus
Technical field
This disclosure relates to the communication technology, more particularly to a kind of instant chat record acquisition and treating method and apparatus.
Background technology
Instant messaging (Instant Messaging, abbreviation IM), is to refer to send and receive internet message etc. immediately Business, with continuing to develop for the communication technology, the function of instant messaging becomes increasingly abundant, be gradually integrated with chat, Email, Various functions such as blog, music, TV, game and search.
For the chat service in instant messaging, a user can be with unique user or with multiple users foundation When chat service.In the prior art, user can preserve beyond the clouds chat record, mobile when needing to recover chat record Can be imported into chat record locally from high in the clouds by terminal, but, if user is current do not preserved merely in local and high in the clouds Its record, then the chat record of the user cannot then recover.
The content of the invention
To overcome problem present in correlation technique, the disclosure to provide acquisition and the processing method of a kind of instant chat record And device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of acquisition methods of instant chat record, including:
Bind the first terminal of the first instant messaging account number and send the to the second terminal of the second instant messaging account number of binding One request message, first request message is used for the first chat record of the instant chat for asking the second terminal to preserve It is uploaded to cloud server, participating in the account number of the instant chat includes the first instant messaging account number and described second instant Communication account number;
When the first terminal receives the first response message that the second terminal sends, to the cloud server The second request message is sent, second request message is used to ask first chat record, institute to the cloud server The first response message is stated for indicating first chat record to be successfully uploaded to the cloud service to the first terminal Device;
The first terminal receives first chat record that the cloud server sends.
The technical scheme provided by this disclosed embodiment can include the following benefits:When first terminal is not local The chat record between the first instant messaging account number and the second instant messaging account number is preserved, or, not by the first instant messaging Chat record between account number and the second instant messaging account number is stored in when on cloud server, and the present embodiment passes through first terminal The first request message is sent to second terminal, and when the first response message of second terminal transmission is received, to cloud service Device sends the second request message, and the first chat record is obtained with from cloud server.That is, the present embodiment can be by second terminal Chat record between first instant messaging account number and the second instant messaging account number is recovered local to first terminal, number is reduced According to the possibility lost completely, backup reliability and the flexibility of chat record are substantially increased, improve the experience of user.
Further, the first terminal of the first instant messaging account number of the binding is to the of the second instant messaging account number of binding Before two terminals send the first request message, methods described also includes:
The first terminal sends the 3rd request message to the cloud server, wherein, the 3rd request message is used In the second chat record that the instant chat is asked to the cloud server, second chat record is described first whole End is uploaded to the chat record of the instant chat of the cloud server;
Whether the first terminal judges complete from second chat record of cloud server acquisition;
If the first terminal judges that second chat record is imperfect, the first terminal is whole to described second End sends first request message.
Optionally, whether the first terminal judges complete from second chat record of cloud server acquisition It is whole, including:
The first terminal judges whether the cut-off time of second chat record matches with object time;
If the cut-off time of second chat record mismatches with the object time, the first terminal determines institute State the second chat record imperfect.
Optionally, whether the first terminal judges complete from second chat record of cloud server acquisition It is whole, including:
The first terminal judges whether the internal memory shared by second chat record matches with target memory;
If the internal memory shared by second chat record is mismatched with the target memory, the first terminal determines institute State the second chat record imperfect.
The technical scheme provided by this disclosed embodiment can include the following benefits:In the present embodiment, first terminal The the first instant messaging account number and second uploaded from cloud server acquisition first terminal in advance by the 3rd request message are instant Second chat record of the instant chat between communication account number, and determined by judging whether second chat record complete Whether the first request message is sent to second terminal, the embodiment causes first terminal without sending the to second terminal every time One request message, but by just determining whether that second terminal sends the first request message after corresponding judgement, it is significantly The empty overhead of first terminal is saved, while also ensure that the first instant messaging account number that first terminal recovers and second instant The integrality of the chat record between communication account number, it is to avoid the loss of significant data, improves the experience of user..
Further, it is described if the account number for participating in the instant chat also includes at least one the 3rd instant messaging account numbers Method also includes:
When the first terminal receives the second response message that the second terminal sends, it is to binding the described 3rd The third terminal of Shi Tongxin account numbers sends the 4th request message;Wherein, the 4th request message is used to ask the described 3rd eventually Hold and the 3rd chat record of the instant chat for preserving is uploaded to the cloud server, second response message is used for First chat record is indicated to be uploaded to the cloud server not successfully to the first terminal;
When the first terminal receives three response message that the third terminal sends, to the cloud server Send the 5th request message;Wherein, the 5th request message is used for cloud server request the 3rd chat note Record, the 3rd response message is used to indicate the 3rd chat record to be successfully uploaded to the high in the clouds to the first terminal Server;
The first terminal receives the 3rd chat record that the cloud server sends.
Further, first request message and second the request message also starting including the instant chat At least one of moment, the cut-off time of the instant chat.
The technical scheme provided by this disclosed embodiment can include the following benefits:When the current instant chat of participation In account number in addition to the first instant messaging account number, the second instant messaging account number, also including at least one the 3rd instant messaging account numbers When, and first terminal receive second terminal transmission the second response message when, in the present embodiment, first terminal by The third terminal of at least one the 3rd instant messaging account number of binding sends the 4th request message, to indicate third terminal whole by the 3rd 3rd chat record of the relevant above-mentioned instant chat on end is uploaded to cloud server, and is receiving third terminal transmission During three response messages, the 5th request message is sent to cloud server, the 3rd chat record is obtained with from cloud server. That is, in the scene of the instant chat of the group comprising at least three accounts, when second terminal is not by the success of the first chat record When being uploaded to cloud server, first terminal can also be by participating in the other-end of the instant chat, by the instant chat Chat record recovers to local, reduce further the possibility that data are lost completely, substantially increases the backup of chat record Reliability and flexibility, improve the experience of user.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of processing method of instant chat record, including:
The second terminal for binding the second instant messaging account number receives the first terminal transmission of the first instant messaging account number of binding The first request message, first request message be used for ask the second terminal will preserve instant chat first chat Record is uploaded to cloud server, and the account number for participating in the instant chat includes the first instant messaging account number and described second Instant messaging account number;
The second terminal sends first and responds according to the upload result of first chat record to the first terminal Message or the second response message;Wherein, first response message is used to indicate first chat to the first terminal Record has been successfully uploaded to the cloud server, and second response message is used to indicate described first to the first terminal Chat record is uploaded to the cloud server not successfully.
The technical scheme provided by this disclosed embodiment can include the following benefits:When first terminal is not by Chat record between one instant messaging account number and the second instant messaging account number is stored in when on cloud server, in the present embodiment Second terminal can aid in first terminal by the chat record between the first instant messaging account number and the second instant messaging account number Recover local to first terminal, reduce the possibility that data are lost completely, substantially increase the backup reliability of chat record And flexibility, improve the experience of user.
Further, the second terminal is sent out according to the upload result of first chat record to the first terminal The first response message or the second response message are sent, including:
The second terminal judges whether first chat record has been successfully uploaded to the cloud server;
If judging, first chat record has been successfully uploaded to the cloud server, and the second terminal is to institute State first terminal and send first response message;
If judging, first chat record is uploaded to the cloud server not successfully, and the second terminal judges Whether the number of account number of the instant chat is participated in more than 2;
If judging, the number of the account number for participating in the instant chat is equal to 2, and the second terminal is chatted described first It records and performs upload to the cloud server, is until the number of times for uploading successfully or performing upload reaches preset times Only, and based on result is uploaded first response message or second response message are sent to the first terminal;
If judging the number of the account number for participating in the instant chat more than 2, the second terminal is whole to described first End sends second response message.
The technical scheme provided by this disclosed embodiment can include the following benefits:In the present embodiment, when the first end End will not be related to the first instant messaging account number to be stored in cloud with the chat record of the instant chat of the second instant messaging account number When on the server of end, and second terminal also detects that and the first chat record of the instant chat is not uploaded to successfully into high in the clouds During server, first terminal can also be extensive by the chat record of the instant chat by participating in the other-end of the instant chat It is multiple to reduce further the possibility that data are lost completely to local, substantially increase backup reliability and the spirit of chat record Activity, improves the experience of user.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of acquisition device of instant chat record, including:First hair Send module, receiver module and the second sending module;
First sending module, is configured as disappearing to the request of second terminal transmission first of the second instant messaging account number of binding Breath, first request message is used to ask the second terminal that the first chat record of the instant chat of preservation is uploaded into cloud End server, the account number for participating in the instant chat includes the first instant messaging account number and the second instant messaging account Number;
Second sending module, is configured as the receiver module and receives the first response that the second terminal sends disappearing During breath, the second request message is sent to the cloud server, second request message is used for please to the cloud server Seek first chat record, first response message be used for the first terminal indicate first chat record into Work(is uploaded to the cloud server;
The receiver module, is configured as receiving first chat record that the cloud server sends.
The technical scheme provided by this disclosed embodiment can include the following benefits:In the present embodiment, when the first end End chat record not between the first instant messaging account number of local preservation and the second instant messaging account number, or, will Chat record between first instant messaging account number and the second instant messaging account number is stored in when on cloud server, by first Sending module sends the first request message to second terminal, and disappears in the first response that receiver module receives second terminal transmission During breath, the second request message is sent to cloud server by the second sending module, chatted with obtaining first from cloud server Record.That is, the present embodiment can by second terminal by between the first instant messaging account number and the second instant messaging account number chat Its record recovers local to first terminal, reduces the possibility that data are lost completely, substantially increases the backup of chat record Reliability and flexibility, improve the experience of user.
Further, described device also includes:3rd sending module and judge module;
3rd sending module, is configured as in first sending module to the second instant messaging account number of binding Before second terminal sends the first request message, the 3rd request message is sent to the cloud server, wherein, the described 3rd please Ask message for asking the second chat record of the instant chat to the cloud server, second chat record is institute State the chat record that first terminal is uploaded to the instant chat of the cloud server;
Whether the judge module, is configured as judging complete from second chat record of cloud server acquisition It is whole, and when judging that second chat record is imperfect, indicate first sending module to be sent to the second terminal First request message.
Optionally, the judge module, including:
First judging unit, be configured as judging second chat record cut-off time whether with object time Match somebody with somebody;
First determining unit, the cut-off time and the object time for being configured as second chat record mismatches When, determine that second chat record is imperfect.
Optionally, the judge module, including:
Second judging unit, be configured as judging internal memory shared by second chat record whether with target memory Match somebody with somebody;
Second determining unit, is configured as the internal memory shared by second chat record and is mismatched with the target memory When, determine that second chat record is imperfect.
The technical scheme provided by this disclosed embodiment can include the following benefits:The present embodiment sends by the 3rd Module and receiver module obtain the first instant messaging account number and the second instant messaging of device upload from cloud server in advance Second chat record of the instant chat between account number, and judge whether second chat record is complete, comes by judge module Decide whether to send the first request message to second terminal, the embodiment causes that the acquisition device of above-mentioned instant chat record need not The first request message is sent to second terminal every time, but by just determining whether that second terminal is sent out after corresponding judgement The first request message is sent, the empty overhead of its acquisition device for greatling save above-mentioned instant chat record, while also ensure that The acquisition device of above-mentioned instant chat record recovers the chat note between the first instant messaging account number and the second instant messaging account number The integrality of record, it is to avoid the loss of significant data, improves the experience of user.
Further, it is described if the account number for participating in the instant chat also includes at least one the 3rd instant messaging account numbers Device also includes:
4th sending module, is configured as the receiver module and receives the second response that the second terminal sends disappearing During breath, the 4th request message is sent to the third terminal for binding the 3rd instant messaging account number;Wherein, the 4th request disappears Cease for asking the third terminal that the 3rd chat record of the instant chat for preserving is uploaded into the cloud server, Second response message is used to indicate first chat record to be uploaded to the high in the clouds clothes not successfully to the first terminal Business device;
5th sending module, be configured as that the receiver module receives that at least one third terminal sends the During three response messages, the 5th request message is sent to the cloud server;Wherein, the 5th request message is used for described Cloud server asks the 3rd chat record, and the 3rd response message to the first terminal for indicating the described 3rd Chat record has been successfully uploaded to the cloud server;
The receiver module, is configured as receiving the 3rd chat record that the cloud server sends.
Further, first request message and the 4th the request message also starting including the instant chat At least one of moment, the cut-off time of the instant chat.
The technical scheme provided by this disclosed embodiment can include the following benefits:In the present embodiment, when participation is worked as In the account number of preceding instant chat in addition to the first instant messaging account number, the second instant messaging account number, also including at least one the 3rd During instant messaging account number, and when first terminal receives the second response message of second terminal transmission, the 4th sending module 4th request message is sent by the third terminal to the 3rd instant messaging account number of binding, to indicate third terminal by third terminal On the 3rd chat record of relevant above-mentioned instant chat be uploaded to cloud server, and receive third terminal in receiver module During three response message for sending, the 5th request message is sent to cloud server by the 5th sending module, taken with from high in the clouds Business device obtains the 3rd chat record.That is, in the scene of the group's instant chat comprising at least three accounts, when second terminal not When first chat record is successfully uploaded into cloud server, the acquisition device of above-mentioned instant chat record can also be by participating in The other-end of the instant chat, the chat record of the instant chat is recovered to local, be reduce further data and is lost completely The possibility of mistake, substantially increases backup reliability and the flexibility of chat record, improves the experience of user.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of processing unit of instant chat record, including:Receive mould Block and sending module;
The receiver module, is configured as receiving the first request that the first terminal of the first instant messaging account number of binding sends Message, first request message is used to ask the second terminal to be uploaded to the first chat record of the instant chat of preservation Cloud server, the account number for participating in the instant chat includes the first instant messaging account number and the second instant messaging account Number;
The sending module, is configured as the upload result according to first chat record, is sent out to the first terminal Send the first response message or the second response message;Wherein, first response message is used to indicate institute to the first terminal State the first chat record and be successfully uploaded to the cloud server, second response message is used to refer to the first terminal Show that first chat record is uploaded to the cloud server not successfully.
The technical scheme provided by this disclosed embodiment can include the following benefits:In the present embodiment, when the first end Be not stored in the chat record between the first instant messaging account number and the second instant messaging account number on cloud server by end When, the processing unit of instant chat record can aid in first terminal by the first instant messaging account number and the second instant messaging account Chat record between number recovers local to first terminal, reduces the possibility that data are lost completely, substantially increases chat The backup reliability of record and flexibility, improve the experience of user.
Further, the sending module, including:First judging unit and the second judging unit, transmitting element;
First judging unit, is configured as judging whether first chat record has been successfully uploaded to the high in the clouds Server;
The transmitting element, is configured as judging that first chat record has been uploaded in first judging unit During the cloud server, first response message is sent to the first terminal;
Second judging unit, is configured as judging that first chat record is not gone up in first judging unit When reaching the cloud server, judge the number of the account number for participating in the instant chat whether more than 2;
The transmitting element, is configured as judging to participate in the individual of the account number of the instant chat in second judging unit When number is equal to 2, first chat record is performed into upload to the cloud server, until uploading successfully or performing upload Untill number of times reaches preset times, and first response message or second are sent to the first terminal based on result is uploaded Response message;And, when the number of the account number for judging to participate in the instant chat in second judging unit is more than 2, to The first terminal sends second response message.
The technical scheme provided by this disclosed embodiment can include the following benefits:In the present embodiment, when the first end End will not be related to the first instant messaging account number to be stored in cloud with the chat record of the instant chat of the second instant messaging account number When on the server of end, and the processing unit of above-mentioned instant chat record is also detected that not by the first chat of the instant chat Record when being successfully uploaded to cloud server, this can also be by first terminal by participating in the other-end of the instant chat When the chat record chatted recover local to first terminal, reduce further the possibility that data are lost completely, greatly improve The backup reliability of chat record and flexibility, improve the experience of user.
A kind of the 5th aspect according to the embodiment of the present disclosure, there is provided acquisition device of instant chat record, including:
For the first processor that control instruction is performed;
First memory for storing first processor executable instruction;
Wherein, the first processor is configured as:First is sent to the second terminal of the second instant messaging account number of binding Request message, first request message is used for the first chat record of the instant chat for asking the second terminal to preserve Cloud server is reached, the account number for participating in the instant chat includes the first instant messaging account number and the second instant messaging account Number;
When first response message that the second terminal sends is received, second is sent to the cloud server Request message, second request message is used to ask first chat record, first sound to the cloud server Message is answered for indicating first chat record successfully to upload to the first terminal for binding first instant messaging account To the cloud server;
Receive first chat record that the cloud server sends.
The technical scheme provided by this disclosed embodiment can include the following benefits:In the present embodiment, when the first end End chat record not between the first instant messaging account number of local preservation and the second instant messaging account number, or, will Chat record between first instant messaging account number and the second instant messaging account number is stored in when on cloud server, transmitter to Second terminal sends the first request message, and when receiver receives the first response message of second terminal transmission, leads to again Cross transmitter and send the second request message to cloud server, the first chat record is obtained with from cloud server.That is, this implementation Example can be recovered to the chat record between first instant messaging account number and the second instant messaging account number by second terminal One terminal local, reduces the possibility that data are lost completely, substantially increases backup reliability and the flexibility of chat record, Improve the experience of user.
A kind of the 6th aspect according to the embodiment of the present disclosure, there is provided processing unit of instant chat record, including:
Second processing device;
Second memory for storing second processing device executable instruction;
Wherein, the second processing device is configured as:Receive the first terminal transmission of the first instant messaging account number of binding First request message, first request message be used for ask binding the second instant messaging account second terminal by preserve i.e. When the first chat record for chatting be uploaded to cloud server, the account number for participating in the instant chat includes first IMU Letter account number and the second instant messaging account number;
According to the upload result of first chat record, the first response message or second are sent to the first terminal Response message;Wherein, first response message is used to indicate first chat record successfully to the first terminal Reach the cloud server, second response message be used for the first terminal indicate first chat record not into Work(is uploaded to the cloud server.
The technical scheme provided by this disclosed embodiment can include the following benefits:In the present embodiment, when the first end Be not stored in the chat record between the first instant messaging account number and the second instant messaging account number on cloud server by end When, the processing unit of instant chat record can aid in first terminal by the first instant messaging account number and the second instant messaging account Chat record between number recovers local to first terminal, reduces the possibility that data are lost completely, substantially increases chat The backup reliability of record and flexibility, improve the experience of user.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets implementation of the invention Example, and be used to explain principle of the invention together with specification.
Fig. 1 is a kind of flow chart of the acquisition methods of instant chat record according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the acquisition methods of instant chat record according to another exemplary embodiment;
Fig. 3 is a kind of flow chart of the acquisition methods of instant chat record according to further example embodiment;
Fig. 4 is a kind of flow chart of the acquisition methods of instant chat record according to further example embodiment;
Fig. 5 is a kind of flow chart of the acquisition methods of instant chat record according to further example embodiment;
Fig. 6 is a kind of flow chart of the processing method of instant chat record according to an exemplary embodiment;
Fig. 7 is a kind of flow chart of the processing method of instant chat record according to further example embodiment;
Fig. 8 is a kind of block diagram of the acquisition device of instant chat record according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of the acquisition device of instant chat record according to another exemplary embodiment;
Figure 10 is a kind of block diagram of the acquisition device of instant chat record according to further example embodiment;
Figure 11 is a kind of block diagram of the processing unit of instant chat record according to an exemplary embodiment;
Figure 12 is a kind of block diagram of the processing unit of instant chat record according to further example embodiment;
Figure 13 is a kind of block diagram of the acquisition device of instant chat record according to an exemplary embodiment;
Figure 14 is a kind of block diagram of the processing unit of instant chat record according to another exemplary embodiment;
Figure 15 is a kind of block diagram of the acquisition device 1300 of instant chat record according to an exemplary embodiment.
By above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings It is not intended to limit the scope that the disclosure is conceived by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent and the consistent all implementation methods of the present invention.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of the acquisition methods of instant chat record according to an exemplary embodiment.This reality Apply example and refer to the first terminal when participation instant chat not by the first instant messaging account number and the second instant messaging account number Between chat record be stored in when on cloud server, first terminal is by carrying out the second of instant chat with the first terminal Terminal, local detailed process is returned to by chat record.As shown in figure 1, the method comprises the following steps:
In step S101, the first terminal of the first instant messaging account number is bound to the of the second instant messaging account number of binding Two terminals send the first request message.
Wherein, first request message is used for the first chat note of the instant chat for asking the second terminal to preserve Record is uploaded to cloud server, and the account number for participating in the instant chat is including the first instant messaging account number and described second Shi Tongxin account numbers.
In the present embodiment, instant chat can be the chat service between two instant messaging account numbers, can also be multiple Chat service between instant messaging account number, the present embodiment is not limited this.In the present embodiment, the account of instant chat is participated in Number include the first instant messaging account number and the second instant messaging account number, the first terminal that the present embodiment is related to is to have bound first i.e. The terminal of Shi Tongxin account numbers, second terminal is the terminal for having bound the second instant messaging account number.With the first instant messaging account number and As a example by instant chat between second instant messaging account number, actually the first instant messaging account number and the second instant messaging account number The chat service set up between two account numbers by first terminal and second terminal, i.e.,:Using the user of first terminal first A first instant messaging account number can be set up in terminal, one second can be set up in second terminal using the user of second terminal Instant messaging account number, instant chat software is logged in using the user of first terminal by the first instant messaging account number, uses second The user of terminal also logs in the instant chat software by the second instant messaging account number, and the two is carried out by the instant chat software Instant messaging.Optionally, the first instant messaging account number and the second instant messaging account number can be the phone number of user, software Account number etc., the instant chat software can be short message software in terminal, can also be that other can carry out instant messaging Software.
In practical application, first terminal and second terminal can preserve chat record therebetween respectively, it can be by Chat record is stored in locally, chat record can also be uploaded into cloud server.When user needs to import chat record, For example, first terminal is because certain failure causes that being stored in local chat record is all deleted, if first terminal is now Want to recover the chat record between the first instant messaging account number and the second instant messaging account number, then first terminal will will be stored in The chat record of the instant chat on cloud server is synchronized to locally, that is, be synchronized on first terminal, or, if user is former (former first terminal is by the chat between the first instant messaging account number and the second instant messaging account number for the first terminal loss come Record storage is beyond the clouds on server), when user regains a new first terminal, user by this new first The first instant messaging account number is logged in terminal, so as to be chatted between the second instant messaging account number, but, when user needs To recover the chat record before the first instant messaging account number and the second instant messaging account number on new first terminal, this is new First terminal can send a request message asking the first instant messaging account from cloud server to cloud server Number it is synchronized to locally with the chat record before the second instant messaging account number.Optionally, the chat record can be word, figure Piece, can also be voice.
But, either above-mentioned any scene, if first terminal is not by the first instant messaging account number and second Chat record between instant messaging account number is preserved beyond the clouds, when user is wanted the first instant messaging account number and the second IMU Chat record between letter account number is returned to when on first terminal, then cannot be realized.Based on this, the embodiment of the present disclosure is aimed to solve the problem that As above the technical problem of prior art.
In this step, when first terminal need local recovery the first instant messaging account number and the second instant messaging account number it Between chat record when, first terminal can to second terminal send the first request message, optionally, can in first request message To carry the first instant messaging account number, first request message is used to ask second terminal to be chatted what is preserved in second terminal immediately It the first chat record is uploaded to cloud server.When second terminal receives first request message, second terminal inspection Whether the first chat record surveyed between local the first instant messaging account number for preserving and the second instant messaging account number has uploaded to Cloud server.
In step s 102, when the first terminal receives the first response message of second terminal transmission, to described Cloud server sends the second request message.
Wherein, second request message is used to ask first chat record to the cloud server, and described the One response message is used to indicate first chat record to be successfully uploaded to the cloud server to the first terminal.
In step s 103, first terminal receives first chat record that the cloud server sends.
In this step, when second terminal detects first between the first instant messaging account number and the second instant messaging account number When chat record has uploaded to cloud server, second terminal sends the first response message to first terminal, first response Message is used to notify the first chat record between the above-mentioned first instant messaging account number of first terminal and the second instant messaging account number It has been successfully uploaded to cloud server.Due to the first chat note between the first instant messaging account number and the second instant messaging account number Record relate to the corresponding user A of the first instant messaging account number and corresponding user B of the second instant messaging account number, optionally, for For user A and user B, the first chat record on cloud server, user A and user B is respectively provided with and checks and obtain Authority.When first terminal receives the first response message, first terminal can send the second request message to cloud server, Second request message is used to ask above-mentioned first chat record, cloud server receiving the second request to cloud server After message, the first chat record that above-mentioned second terminal is uploaded is synchronized to first terminal.Optionally, second request message can To carry the high in the clouds account number of user A, cloud server can according to the high in the clouds account number of the user A will be under the high in the clouds account number it is all Chat record is synchronized to first terminal, and above-mentioned first instant messaging account number and the second IMU are included in these chat records The first chat record between letter account number.
Seen from the above description, when first terminal does not preserve the first instant messaging account number and the second instant messaging local Chat record between account number, or, the chat between the first instant messaging account number and the second instant messaging account number is not remembered Record is stored in when on cloud server, and first terminal can be by second terminal by the first instant messaging account number and the second IMU Chat record between letter account number recovers local to first terminal, reduces the possibility that data are lost completely, substantially increases The backup reliability of chat record and flexibility, improve the experience of user.
The acquisition methods of the instant chat record that the present embodiment is provided, when first terminal is instant not in local preservation first Chat record between communication account number and the second instant messaging account number, or, it is not with second by the first instant messaging account number Chat record between Shi Tongxin account numbers is stored in when on cloud server, and sending first to second terminal by first terminal please Message is sought, and when the first response message of second terminal transmission is received, the second request message is sent to cloud server, with The first chat record is obtained from cloud server.That is, the present embodiment can by second terminal by the first instant messaging account number with Chat record between second instant messaging account number recovers local to first terminal, reduces the possibility that data are lost completely, Backup reliability and the flexibility of chat record are substantially increased, the experience of user is improved.
Fig. 2 is a kind of flow chart of the acquisition methods of instant chat record according to another exemplary embodiment.This Embodiment referred to first terminal before the first request message is sent to second terminal, and first terminal is in advance from cloud service Device obtains the second chat record between the first instant messaging account number and the second instant messaging account number of first terminal upload, and sentences Whether completely second chat record break, so as to determine whether that second terminal sends the first request message according to judged result Detailed process.Ideally, second terminal is uploaded to first chat record and of the above-mentioned instant chat of cloud server The second chat record that one terminal is uploaded to the instant chat of cloud server is identical.On the basis of above-described embodiment On, further, before above-mentioned S101, methods described also includes:
In step s 201, first terminal sends the 3rd request message to the cloud server, wherein, the described 3rd please Ask message for asking the second chat record of the instant chat to the cloud server, second chat record is institute State the chat record that first terminal is uploaded to the instant chat of the cloud server.
The present embodiment is related to a kind of possible scene:First terminal is because certain failure causes to be uploaded to cloud server On the chat record between the first instant messaging account number and the second instant messaging account number and imperfect.In the present embodiment, by One terminal be uploaded to cloud server on the chat record between the first instant messaging account number and the second instant messaging account number Referred to as the second chat record.
Therefore, when first terminal need the above-mentioned first instant messaging account number of local recovery and the second instant messaging account number it Between complete chat record when, first terminal first can send the 3rd request message to cloud server, and the 3rd request disappears The second chat record for asking above-mentioned instant chat to cloud server is ceased, optionally, in the 3rd request message can be with Carry the high in the clouds account number (the high in the clouds account number of user A i.e. in embodiment one) of the corresponding user of the first instant messaging account number.High in the clouds takes User A is stored all chat records on server beyond the clouds and is synchronized to first terminal by business device according to the 3rd request message, The chat record had both included the second chat record between the user A and user B of first terminal upload, can also include user Chat record between A and other users.
In step S202, whether first terminal judges complete from second chat record of cloud server acquisition It is whole.
In step S203, if first terminal judges that second chat record is imperfect, the first terminal to The second terminal sends first request message.
In this step, after first terminal gets the second chat record, first terminal can judge the second chat note Whether record complete, when first terminal determine second chat record and it is imperfect when, then send the first request to second terminal and disappear Breath, to ask second terminal by the first chat of the instant chat between the first instant messaging account number and the second instant messaging account number Record (first chat record is complete) is uploaded to cloud server, and then cloud server is same by first chat record Walk first terminal local.
Optionally, first terminal can judge whether second chat record is complete by the method shown in following Fig. 3 and Fig. 4 It is whole.It should be noted that have recorded the first instant messaging account number and the second instant messaging on the first terminal being related in following Fig. 3 The cut-off time of the instant chat that account number is carried out, the first instant messaging account number and are have recorded on the first terminal being related in Fig. 4 Memory size shared by the complete chat record of the instant chat that two instant messaging account numbers are carried out.
Optionally, first terminal can determine whether whether first chat record is complete, may refer to the realization side shown in Fig. 3 Formula, the method comprises the following steps:
In step S301, first terminal judge second chat record cut-off time whether with object time Match somebody with somebody.
In step s 302, it is described if the cut-off time of second chat record mismatches with the object time First terminal determines that second chat record is imperfect.
In this implementation, object time can be instant for the first instant messaging account number and second that are recorded on first terminal The cut-off time of the instant chat that communication account number is carried out, can also be that user is allocated to the cut-off of first terminal according to practical experience Moment.Therefore, when first terminal judges that the cut-off time of the second acquired chat record matches with the object time, i.e., the The cut-off time of one chat record be equal to object time, then show the second chat record acquired in first terminal be it is complete, Represent that first terminal gets chat record complete between the first instant messaging account number and the second instant messaging account number, now First terminal to second terminal without sending the first request message;When first terminal judges cutting for the second acquired chat record When only the moment mismatches with above-mentioned object time, i.e. the cut-off time of the second chat record, earlier than object time, shows first eventually The second acquired chat record of end is simultaneously imperfect, therefore, first terminal can send the first request message to second terminal, with The complete chat record of above-mentioned instant chat is obtained by second terminal.
Optionally, in first request message in addition to it can include the first instant messaging account number, first can also be included At least one of the initial time of the instant chat between instant messaging account number and the second instant messaging account number and cut-off time; When the initial time that the instant chat is carried in the first request message, then request second terminal is intended to by the instant chat middle position Record after the initial time is uploaded to cloud server, so that first terminal is obtained in place from cloud server Chat record after the initial time, it is exactly the complete of above-mentioned instant chat that the chat record that should be located at after initial time is Whole chat record;When the cut-off time that the instant chat is carried in the first request message, then being intended to request second terminal will Record before being located at the cut-off time in the instant chat is uploaded to cloud server, so that first terminal is from high in the clouds Server gets the chat record before the cut-off time, and the chat record that should be located at before cut-off time is on being exactly State the complete chat record of instant chat.
After first terminal gets complete chat record (i.e. above-mentioned first chat record), before first terminal is deleted The second acquired chat record, and the complete chat record is included local.The implementation cause first terminal without Need to send the first request message to second terminal every time, but by just determining whether second terminal after corresponding judgement The first request message is sent, it greatlys save the empty overhead of first terminal, while also ensure that first terminal recovers the The integrality of the chat record between one instant messaging account number and the second instant messaging account number, it is to avoid the loss of significant data, Improve the experience of user.
Optionally, first terminal can determine whether whether second chat record is complete, referring also to the realization side shown in Fig. 4 Formula, the method comprises the following steps:
In step S401, first terminal judge internal memory shared by second chat record whether with target memory Match somebody with somebody.
It is described if the internal memory shared by second chat record is mismatched with the target memory in step S402 First terminal determines that second chat record is imperfect.
In this implementation, target memory can be the above-mentioned first instant messaging account number and second recorded on first terminal Memory size shared by the complete chat record of the instant chat that instant messaging account number is carried out, can also be user configuring to first The internal memory of terminal.Therefore, when the internal memory shared by the second acquired chat record of first terminal judgement is matched with target memory, Internal memory i.e. shared by the first chat record is equal to target memory, then show that the second chat record acquired in first terminal is complete , that is, represent that first terminal gets chat record complete between the first instant messaging account number and the second instant messaging account number, Then first terminal to second terminal without sending the first request message;When first terminal judges the second acquired chat record institute When the internal memory for accounting for is mismatched with target memory, i.e., the internal memory shared by the second chat record is less than the first internal memory, shows first terminal Acquired the second chat record is simultaneously imperfect, therefore, first terminal can send the first request message to second terminal, with logical The complete chat record (i.e. the first chat record) that second terminal obtains above-mentioned instant chat is crossed, complete is chatted when this is got After its record, the second acquired before deleting chat record of first terminal, and the complete chat record is included local. The implementation causes first terminal without sending the first request message to second terminal every time, but by corresponding judgement Just determine whether afterwards second terminal send the first request message, its empty overhead for greatling save first terminal, while Also ensure that first terminal recover the first instant messaging account number and the second instant messaging account number between chat record it is complete Property, it is to avoid the loss of significant data, improves the experience of user.
The acquisition methods of the instant chat record that the present embodiment is provided, first terminal is by the 3rd request message in advance from cloud End server obtains the instant chat between the first instant messaging account number and the second instant messaging account number of first terminal upload Second chat record, and by judging whether second chat record complete come decide whether to send first to second terminal please Message is sought, the embodiment causes first terminal without sending the first request message to second terminal every time, but by corresponding Judgement after just determine whether second terminal send the first request message, it greatlys save eating dishes without rice or wine out for first terminal Pin, at the same also ensure that first terminal recover the first instant messaging account number and the second instant messaging account number between chat record Integrality, it is to avoid the loss of significant data, improve the experience of user.
Fig. 5 is a kind of flow chart of the acquisition methods of instant chat record according to further example embodiment.This Embodiment refers to also include at least one the 3rd instant messaging account numbers and second eventually when the account number for participating in above-mentioned instant chat First chat record of the instant chat that end is not preserved itself is successfully uploaded to cloud server, and first terminal should The chat record of instant chat recovers in local detailed process.In the present embodiment, instant chat is to include at least three accounts Number group chatting, then above-mentioned second terminal be stored in the first local chat record and contain all account numbers in the instant chat Session log, i.e. the complete chat record of the instant chat contains the session log of all account numbers in the instant chat. As shown in figure 5, on the basis of the above-described embodiment, further, the method can also comprise the following steps:
In step S501, when the first terminal receives the second response message that the second terminal sends, to The third terminal for binding the 3rd instant messaging account number sends the 4th request message.
Wherein, the 4th request message is used to ask the third terminal to be chatted the 3rd of the instant chat for preserving the Its record is uploaded to the cloud server, and second response message is used to indicate first chat to the first terminal Record is uploaded to the cloud server not successfully.
In this step, after second terminal receives the first request message of first terminal transmission, second terminal detection Be related between the first instant messaging account number and the second instant messaging account number instant chat (certainly, the instant chat can also be related to And other account numbers) the first chat record whether be uploaded to cloud server.Chatted immediately when second terminal detects this It the first chat record is not uploaded to cloud server, and now second terminal because certain failure first cannot chat this Its record is uploaded to cloud server, then second terminal can now judge whether the number of the account number for participating in the instant chat is more than 2.If second terminal determines that the number of the account number for participating in current instant chat is more than 2, illustrate the instant chat for contain to Lack three group chattings of user, then second terminal sends the second response message to first terminal, inform that first terminal oneself is worked as It is preceding that the first chat record is not successfully uploaded to cloud server.
After first terminal receives the second response response message, first terminal can tying up to the participation instant chat The third terminal of the 3rd instant messaging account number sends the 4th request message calmly, and the 4th request message is used to ask third terminal to be incited somebody to action 3rd chat record of the instant chat for preserving is uploaded to the cloud server.Optionally, in the 4th request message Above-mentioned first instant messaging account number can be carried.3rd chat record is identical with above-mentioned first chat record, contains Participate in the session log of all account numbers of the instant chat.
In step S502, when the first terminal receives three response message that the third terminal sends, to The cloud server sends the 5th request message.
Wherein, the 5th request message is used to ask the 3rd chat record to the cloud server, and described the Three response messages are used to indicate the 3rd chat record to be successfully uploaded to the cloud server to the first terminal.
In step S503, first terminal receives the 3rd chat record that the cloud server sends.
Specifically, after third terminal receives the 4th request message, third terminal can detect the 3rd for itself preserving Whether chat record has been successfully uploaded to cloud server, if failed upload, third terminal can be by the 3rd chat Record is uploaded to cloud server, and sends the 3rd response message to first terminal;If third terminal detects the 3rd chat Record is currently successfully uploaded to cloud server, then third terminal directly sends the 3rd response message to first terminal, with Inform that the 3rd chat record of the instant chat has been successfully uploaded to cloud server, so that first terminal is to cloud service Device sends the 5th request message, and the 5th request message is used to ask above-mentioned 3rd chat record to cloud server, works as high in the clouds Server is received after the 5th request message of second terminal transmission, and first terminal sheet is synchronized to above-mentioned 3rd chat record Ground, so as to create a further reduction the possibility that data are lost completely, substantially increases backup reliability and the spirit of chat record Activity, improves the experience of user.
The acquisition methods of the instant chat record that the present embodiment is provided, when in the account number for participating in current instant chat except the Outside one instant messaging account number, the second instant messaging account number, when also including at least one the 3rd instant messaging account numbers, and first When terminal receives the second response message of second terminal transmission, first terminal is by the of the 3rd instant messaging account number of binding Three terminals send the 4th request message, to ask third terminal by the 3rd chat of the relevant above-mentioned instant chat on third terminal Record is uploaded to cloud server, and when three response message of third terminal transmission is received, is sent to cloud server 5th request message, the 3rd chat record is obtained with from cloud server.That is, in the instant of the group comprising at least three accounts In the scene of chat, when the first chat record is not successfully uploaded to cloud server by second terminal, first terminal can be with By participating in the other-end of the instant chat, the chat record of the instant chat is recovered to local, reduce further number According to the possibility lost completely, backup reliability and the flexibility of chat record are substantially increased, improve the experience of user.
Fig. 6 is a kind of flow chart of the processing method of instant chat record according to an exemplary embodiment.This reality Apply example and refer to second terminal after the first request message for receiving first terminal transmission, coordinate first terminal from high in the clouds Server recovers chat record to the local detailed process of first terminal.As shown in fig. 6, the method comprises the following steps:
In step s 601, the second terminal of the second instant messaging account number of binding receives the first instant messaging account number of binding The first request message that first terminal sends.
Wherein, first request message is used for the first chat note of the instant chat for asking the second terminal to preserve Record is uploaded to cloud server, and the account number for participating in the instant chat is including the first instant messaging account number and described second Shi Tongxin account numbers.
In this step, the scene that the present embodiment is related to is identical with the scene introduced in above-described embodiment one, if that is, first Terminal does not preserve beyond the clouds the chat record between the first instant messaging account number and the second instant messaging account number, works as user Want to return to the chat record between the first instant messaging account number and the second instant messaging account number when on first terminal, first Terminal can send the first request message to second terminal.After second terminal receives first request message, first is known eventually End is current to think that request second terminal will be related to the first of the instant chat of the first instant messaging account number and the second instant messaging account number Chat record is uploaded to cloud server.Now, second terminal can detect the preservation state of first chat record, determine this Whether one chat record has been uploaded to cloud server, obtains uploading result.
In step S602, second terminal is sent out according to the upload result of first chat record to the first terminal Send the first response message or the second response message.
Wherein, first response message is used to indicate first chat record successfully to upload to the first terminal To the cloud server, second response message is used to indicate first chat record failed to the first terminal It is uploaded to the cloud server.
In this step, when second terminal determines that the first chat record has been successfully uploaded to cloud server, then second eventually End can send the first response message to first terminal, obtain first chat record from cloud server by first terminal, have The acquisition modes of body referring to the embodiment shown in above-mentioned Fig. 1 description;When second terminal determines that the first chat record is also failed Cloud server is uploaded to, optionally, can be uploaded to first chat record after cloud server by second terminal, then to First terminal sends the first response message;Optionally, when second terminal determines that current instant chat is first instant except being related to Outside communication account number, two account numbers of the second instant messaging account number, other account numbers are further related to, then second terminal now can be to first Terminal sends the second response message, to inform that the first chat record is not successfully uploaded to cloud service by first terminal oneself Device.After first terminal receives the second response message of second terminal transmission, first terminal can be instant by participating in this The other-end of chat, the chat record of the instant chat is recovered to local, and detailed process may refer to shown in above-mentioned Fig. 5 The description of embodiment, will not be repeated here.
In sum, when first terminal is not by chatting between the first instant messaging account number and the second instant messaging account number Its record is stored in when on cloud server, second terminal can aid in first terminal by the first instant messaging account number with second i.e. Chat record between Shi Tongxin account numbers recovers local to first terminal, reduces the possibility that data are lost completely, carries significantly The backup reliability of chat record high and flexibility, improve the experience of user.
Fig. 7 is a kind of flow chart of the processing method of instant chat record according to another exemplary embodiment.This Embodiment refers to upload result of the second terminal according to above-mentioned first chat record, it is determined that sending the first sound to first terminal Message is answered still to send the detailed process of the second response message.On the basis of above-described embodiment, further, above-mentioned S602 tools Body can include:
In step s 701, second terminal judges whether first chat record has been successfully uploaded to the cloud service Device.If so, S702 is then performed, if it is not, then performing S703.
In step S702, if judging, first chat record has been successfully uploaded to the cloud server, the Two terminals send first response message to the first terminal.
In step S703, if judging, first chat record is uploaded to the cloud server not successfully, the Whether the number that two terminal judges participate in the account number of the instant chat is more than 2.If it is not, S704 is then performed, if so, then performing S705。
In this step, when second terminal determines to be related to the first instant messaging account number and the instant of the second instant messaging account number to chat When it the first chat record is not successfully uploaded to cloud server, second terminal can first judge currently to be related to first instant Whether the instant chat of communication account number and the second instant messaging account number is including at least three group chattings of account, specifically: Judge the number of the account number for participating in the instant chat whether more than 2.
In step S704, if the number of the account number for judging to participate in the instant chat is equal to 2, second terminal is by institute State the first chat record and perform upload to the cloud server, until upload successfully or perform upload number of times reach it is default Untill number of times, and result sends first response message to the first terminal or second response disappears based on uploading Breath.
In this step, when second terminal judges that the number of the account number for participating in above-mentioned instant chat is equal to 2, show current The first chat record involved by instant chat is only included between the first instant messaging account number and the second instant messaging account number Session log, the i.e. instant chat are independent two people chat.Optionally, second terminal is now by local the first chat for preserving Record and perform upload operation to cloud server, untill the number of times for uploading successfully or performing upload reaches preset times. When second terminal determines that the first chat record for preserving successfully is uploaded to cloud server, then sending first to first terminal responds Message, it is local so as to first chat record is synchronized into first terminal from cloud server by first terminal;When the second end First chat record is not still successfully uploaded to cloud server by end until uploading when number of times reaches preset times, then second eventually Hold and send the second response message to first terminal, taken with informing that above-mentioned first chat record of first terminal is uploaded to high in the clouds not successfully Business device.
In step S705, if judging the number of the account number for participating in the instant chat more than 2, second terminal is to institute State first terminal and send second response message.
In this step, when second terminal judges that the number of the account number for participating in above-mentioned instant chat is more than 2, show current The first chat record involved by instant chat is not only included between the first instant messaging account number and the second instant messaging account number Session log, further comprises the session log between the first instant messaging account number and other instant messaging account numbers, i.e., this is instant It is chats more than three people or three people to chat, while also terminal of the explanation with other instant messaging account numbers can also be auxiliary First terminal is helped to get the chat record of the instant chat.Because now be not uploaded to for the first chat record by second terminal Cloud server, and there is the terminal of other instant messaging account numbers to be now possible to remember the chat of the instant chat Record is uploaded to cloud server, therefore, second terminal can save eating dishes without rice or wine for second terminal now without the upload of blindness Expense.So, second terminal can send the second response message to first terminal, so that first terminal can be above-mentioned by participating in The other-end of instant chat, first terminal is synchronized to locally by the chat record of above-mentioned instant chat, specifically be may refer to The embodiment shown in Fig. 5 is stated, be will not be repeated here.
The processing method of the instant chat record that the present embodiment is provided, when first terminal will not be related to the first IMU Letter account number is stored in when on cloud server with the chat record of the instant chat of the second instant messaging account number, and second terminal Detect when the first chat record of the instant chat successfully not being uploaded into cloud server, first terminal can also lead to The other-end for participating in the instant chat is crossed, the chat record of the instant chat is recovered to local, or take repeatedly upload Mode, reduce further the possibility that data are lost completely, substantially increase chat record backup reliability and flexibly Property, improve the experience of user.
Following is disclosure device embodiment, can be used for performing method of disclosure embodiment.For disclosure device reality The details not disclosed in example is applied, method of disclosure embodiment is refer to.
Fig. 8 is a kind of block diagram of the acquisition device of instant chat record according to an exemplary embodiment, the device Can be the first terminal in above method embodiment, can also be the device being integrated in above-mentioned first terminal.Such as Fig. 8 institutes Show, the device includes:First sending module 10, the sending module 12 of receiver module 11 and second;
First sending module 10, is configured as disappearing to the request of second terminal transmission first of the second instant messaging account number of binding Breath, first request message is used to ask the second terminal that the first chat record of the instant chat of preservation is uploaded into cloud End server, the account number for participating in the instant chat includes the first instant messaging account number and the second instant messaging account Number;
Second sending module 12, is configured as the receiver module 11 and receives the first sound that the second terminal sends When answering message, the second request message is sent to the cloud server, second request message is used for the cloud service Device asks first chat record, and first response message to the first terminal for indicating first chat record It has been successfully uploaded to the cloud server;
Receiver module 11, is configured as receiving first chat record that the cloud server sends.
In sum, the acquisition device of the instant chat record that the embodiment of the present disclosure is provided, when first terminal is not at this Ground preserves the chat record between the first instant messaging account number and the second instant messaging account number, or, not by the first IMU Letter account number and the second instant messaging account number between chat record be stored in when on cloud server, by the first sending module to Second terminal sends the first request message, and when receiver module receives the first response message of second terminal transmission, passes through Second sending module sends the second request message to cloud server, and the first chat record is obtained with from cloud server.I.e., originally Embodiment can be recovered the chat record between the first instant messaging account number and the second instant messaging account number by second terminal It is local to first terminal, the possibility that data are lost completely is reduced, substantially increase backup reliability and the spirit of chat record Activity, improves the experience of user.
Fig. 9 is a kind of block diagram of the acquisition device of instant chat record according to another exemplary embodiment, upper State on the basis of embodiment illustrated in fig. 8, further, the device can also include:3rd sending module 13 and judge module 14;
3rd sending module 13, is configured as in first sending module 10 to the second instant messaging account number of binding Second terminal send the first request message before, to the cloud server send the 3rd request message, wherein, the described 3rd Request message is used to be asked to the cloud server the second chat record of the instant chat, and second chat record is The first terminal is uploaded to the chat record of the instant chat of the cloud server;
The judge module 14, is configured as judging whether is second chat record that obtains from the cloud server Completely, and when judging that second chat record is imperfect, first sending module is indicated to be sent out to the second terminal Send first request message.
Optionally, with continued reference to shown in Fig. 9, above-mentioned judge module 14 can include:
First judging unit 141, be configured as judging second chat record cut-off time whether with object time Matching;
First determining unit 142, is configured as the cut-off time of second chat record with the object time not During matching, determine that second chat record is imperfect.
Optionally, with continued reference to shown in Fig. 9, above-mentioned judge module 14 can also include:
Second judging unit 143, be configured as judging internal memory shared by second chat record whether with target memory Matching;
Second determining unit 144, is configured as the internal memory shared by second chat record with the target memory not During matching, determine that second chat record is imperfect.
Further, the 4th request message of first request message and following embodiments also includes the instant chat At least one of initial time, cut-off time.
In sum, the acquisition device of the instant chat record that the embodiment of the present disclosure is provided, by the 3rd sending module and Receiver module obtains the first instant messaging account number and the of device upload beforehand through the 3rd request message from cloud server Second chat record of the instant chat between two instant messaging account numbers, and judge that second chat record is by judge module It is no it is complete decide whether to send the first request message to second terminal, the embodiment causes obtaining for above-mentioned instant chat record Device is taken without sending the first request message to second terminal every time, but by just being determined whether after corresponding judgement Second terminal sends the first request message, the empty overhead of its acquisition device for greatling save above-mentioned instant chat record, together When also ensure that the first instant messaging account number and the second instant messaging account number that the acquisition device of above-mentioned instant chat record recovers Between chat record integrality, it is to avoid the loss of significant data, improve the experience of user.
Figure 10 is a kind of block diagram of the acquisition device of instant chat record according to further example embodiment, if ginseng Account number with the instant chat also includes at least one the 3rd instant messaging account numbers, then in the base of above-mentioned embodiment illustrated in fig. 9 On plinth, further, the device can also include:4th sending module 15 and the 5th sending module 16;
4th sending module 15, is configured as the receiver module 11 and receives the second sound that the second terminal sends When answering message, the 4th request message is sent to the third terminal for binding the 3rd instant messaging account number;Wherein, the described 4th ask Message is asked to be taken for asking the third terminal that the 3rd chat record of the instant chat for preserving is uploaded into the high in the clouds Business device, second response message is used to indicate first chat record to be uploaded to the cloud not successfully to the first terminal End server;
5th sending module 16, is configured as the receiver module 11 and receives the 3rd sound that the third terminal sends When answering message, the 5th request message is sent to the cloud server;Wherein, the 5th request message is used for the high in the clouds 3rd chat record described in server request, the 3rd response message is used to indicate the 3rd chat to the first terminal Record has been successfully uploaded to the cloud server;
The receiver module 11, is configured as receiving the 3rd chat record that the cloud server sends.
In sum, the acquisition device of the instant chat record that the embodiment of the present disclosure is provided, when the current instant chat of participation Account number in addition to the first instant messaging account number, the second instant messaging account number, also including at least one the 3rd instant messaging accounts Number when, and first terminal receive second terminal transmission the second response message when, the 4th sending module is by binding The third terminal of the 3rd instant messaging account number sends the 4th request message, to ask third terminal by shutting on third terminal The 3rd chat record for stating instant chat is uploaded to cloud server, and receives the 3rd of third terminal transmission the in receiver module During response message, the 5th request message is sent to cloud server by the 5th sending module, the is obtained with from cloud server Three chat records.That is, in the scene of the instant chat of the group comprising at least three accounts, when second terminal is not chatted first When its record is successfully uploaded to cloud server, the acquisition device of above-mentioned instant chat record can also immediately be chatted by participating in this It other-end, the chat record of the instant chat is recovered to local, reduce further the possibility that data are lost completely Property, backup reliability and the flexibility of chat record are substantially increased, improve the experience of user.
Figure 11 is a kind of block diagram of the processing unit of instant chat record according to an exemplary embodiment.The device Can be the second terminal in above method embodiment, can also be the device being integrated in above-mentioned second terminal.Such as Figure 11 institutes Show, the device includes:Receiver module 20 and sending module 21.
The receiver module 20, be configured as receiving the first terminal transmission of the first instant messaging account number of binding first please Message is sought, the first chat record that first request message is used for the instant chat for asking the second terminal to preserve is uploaded To cloud server, the account number for participating in the instant chat includes the first instant messaging account number and second instant messaging Account number;
The sending module 21, is configured as the upload result according to first chat record, to the first terminal Send the first response message or the second response message;Wherein, first response message is used to be indicated to the first terminal First chat record has been successfully uploaded to the cloud server, and second response message is used for the first terminal First chat record is indicated to be uploaded to the cloud server not successfully.
In sum, the processing unit of the instant chat record that the embodiment of the present disclosure is provided, when first terminal will not Chat record between first instant messaging account number and the second instant messaging account number is stored in when on cloud server, and this is chatted immediately The processing unit of its record can aid in first terminal by chatting between the first instant messaging account number and the second instant messaging account number Its record recovers local to first terminal, reduces the possibility that data are lost completely, substantially increases the backup of chat record Reliability and flexibility, improve the experience of user.
Figure 12 is a kind of block diagram of the processing unit of instant chat record according to further example embodiment.Upper State on the basis of embodiment illustrated in fig. 11, further, above-mentioned sending module 21 can include:First judging unit 211, Two judging units 212 and transmitting element 213;
First judging unit 211, is configured as judging whether first chat record has been successfully uploaded to described Cloud server;
The transmitting element 213, is configured as having judged first chat record in first judging unit 211 When being successfully uploaded to the cloud server, first response message is sent to the first terminal;
Second judging unit 212, is configured as judging the first chat note in first judging unit 211 When record is uploaded to the cloud server not successfully, judge the number of the account number for participating in the instant chat whether more than 2;
The transmitting element 213, is configured as judging to participate in the instant chat in second judging unit 212 The number of account number be equal to 2 when, first chat record is performed into upload to the cloud server, until upload successfully or Untill execution upload number of times reaches preset times, and first response message is sent to the first terminal based on result is uploaded Or second response message;And, the number of the account number for judging to participate in the instant chat in second judging unit 212 During more than 2, second response message is sent to the first terminal.
In sum, the processing unit of the instant chat record that the embodiment of the present disclosure is provided, when first terminal will not It is related to the first instant messaging account number to be stored on cloud server with the chat record of the instant chat of the second instant messaging account number When, and the processing unit of above-mentioned instant chat record also detects that and do not go up the first chat record of the instant chat successfully When being transmitted to cloud server, first terminal can also be by participating in the other-end of the instant chat, by chatting for the instant chat Its record recovers to local, reduce further the possibility that data are lost completely, and the backup for substantially increasing chat record can By property and flexibility, the experience of user is improved.
On the device in above-described embodiment, wherein modules and unit perform the concrete mode of operation relevant It has been described in detail in the embodiment of the method, explanation will be not set forth in detail herein.
The foregoing describe the built-in function of the acquisition device of instant chat record and the processing unit of instant chat record Module and structural representation, Figure 13 are a kind of frames of the acquisition device of instant chat record according to an exemplary embodiment Figure, the acquisition device of instant chat record can be the first terminal in above method embodiment.As shown in figure 13, this is instant The acquisition device of chat record can include:For control instruction perform first processor 31, for storing first processor The first memory 32 of 31 executable instructions;
Wherein, the first processor 31 is configured as:The is sent to the second terminal of the second instant messaging account number of binding One request message, first request message is used for the first chat record of the instant chat for asking the second terminal to preserve Cloud server is uploaded to, the account number for participating in the instant chat includes the first instant messaging account number and second instant messaging Account number;
When first response message that the second terminal sends is received, second is sent to the cloud server Request message, second request message is used to ask first chat record, first sound to the cloud server Message is answered for indicating first chat record successfully to upload to the first terminal for binding first instant messaging account To the cloud server;
Receive first chat record that the cloud server sends.
Figure 14 is a kind of block diagram of the processing unit of instant chat record according to an exemplary embodiment, and this is instant The processing unit of chat record can be the second terminal in above method embodiment.As shown in figure 14, instant chat record Processing unit can include:Second processing device 41, the second memory 42 for storing the executable instruction of second processing device 41;
Wherein, the second processing device 41 is configured as:The first terminal for receiving the first instant messaging account number of binding sends The first request message, first request message be used for ask binding the second instant messaging account second terminal by preserve First chat record of instant chat is uploaded to cloud server, and participating in the account number of the instant chat includes that described first is instant Communication account number and the second instant messaging account number;
According to the upload result of first chat record, the first response message or second are sent to the first terminal Response message;Wherein, first response message is used to indicate first chat record successfully to the first terminal Reach the cloud server, second response message be used for the first terminal indicate first chat record not into Work(is uploaded to the cloud server.
The entity of the processing unit recorded in the entity and instant chat of the acquisition device of above-mentioned instant chat record In embodiment, it should be appreciated that above-mentioned processor can be CPU (English:Central Processing Unit, letter Claim:CPU), can also be other general processors, digital signal processor (English:Digital Signal Processor, Referred to as:DSP), application specific integrated circuit (English:Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can the be microprocessor person processor can also be any conventional processor etc., and foregoing Memory can be read-only storage (English:Read-only memory, abbreviation:ROM), random access memory (English: Random access memory, referred to as:RAM), flash memory, hard disk or solid state hard disc.SIM is also referred to as user's body Part identification card, smart card, digital mobile telephone must load onto this card and can use.Digital shifting is stored on computer chip The information of mobile phone client, the content such as the key of encryption and the telephone directory of user.Side with reference to disclosed in the embodiment of the present invention The step of method, can be embodied directly in hardware processor and perform completion, or be held with the hardware in processor and software module combination Row is completed.
Figure 15 is a kind of block diagram of the acquisition device 1300 of instant chat record according to an exemplary embodiment.Example Such as, the acquisition device 1300 of instant chat record can be mobile phone, computer, digital broadcast terminal, messaging devices, Game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 15, the acquisition device 1300 of instant chat record can include following one or more assemblies:Treatment group Part 1302, memory 1304, power supply module 1306, multimedia groupware 1308, audio-frequency assembly 1310, input/output (I/O's) connects Mouth 1312, sensor cluster 1314, and communication component 1316.Optionally, the acquisition device 1300 of instant chat record The processing unit of above-mentioned instant chat record is could alternatively be, the component that it includes is similar to, will not be repeated here.
The integrated operation of the generally acquisition device 1300 of control instant chat record of processing assembly 1302, such as with display, Call, data communication, camera operation and the associated operation of record operation.Processing assembly 1302 can include one or many Individual processor 1320 carrys out execute instruction, to complete all or part of step of above-mentioned method.Additionally, processing assembly 1302 can be with Including one or more modules, it is easy to the interaction between processing assembly 1302 and other assemblies.For example, processing assembly 1302 can be with Including multi-media module, to facilitate the interaction between multimedia groupware 1308 and processing assembly 1302.
Memory 1304 is configured as storing various types of data supporting the acquisition device in instant chat record 1300 operation.The example of these data includes any application for being operated on the acquisition device 1300 of instant chat record The instruction of program or method, contact data, telephone book data, message, picture, video etc..Memory 1304 can be by any Volatibility or non-volatile memory device or the combinations thereof realization of type, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM) may be programmed read-only storage Device (PROM), read-only storage (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 1306 provides electric power for the various assemblies of the acquisition device 1300 that instant chat is recorded.Power supply module 1306 can include power-supply management system, one or more power supplys, and other and the acquisition device 1300 recorded for instant chat Generation, management and the associated component of distribution electric power.
Multimedia groupware 1308 is included in the offer one between the acquisition device 1300 of the instant chat record and user The touching display screen of individual output interface.In certain embodiments, touching display screen can include liquid crystal display (LCD) and touch Panel (TP).Touch panel includes one or more touch sensors with the gesture on sensing touch, slip and touch panel.Institute State touch sensor can not only sensing touch or sliding action border, but also detection and the touch or slide phase The duration of pass and pressure.In certain embodiments, multimedia groupware 1308 includes a front camera and/or rearmounted takes the photograph As head.When the acquisition device 1300 of instant chat record is in operator scheme, such as screening-mode or during video mode, preposition shooting Head and/or rear camera can receive the multi-medium data of outside.Each front camera and rear camera can be one The optical lens system of individual fixation or with focusing and optical zoom capabilities.
Audio-frequency assembly 1310 is configured as output and/or input audio signal.For example, audio-frequency assembly 1310 includes a wheat Gram wind (MIC), when the acquisition device 1300 of instant chat record is in operator scheme, such as call model, logging mode and voice During recognition mode, microphone is configured as receiving external audio signal.The audio signal for being received can be further stored Memory 1304 sends via communication component 1316.In certain embodiments, audio-frequency assembly 1310 also includes a loudspeaker, For exports audio signal.
I/O interfaces 1312 are that interface, above-mentioned peripheral interface module are provided between processing assembly 1302 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 1314 includes one or more sensors, and the acquisition device 1300 for being recorded for instant chat is carried For the state estimation of various aspects.For example, sensor cluster 1314 can detect the acquisition device 1300 of instant chat record Opening/closed mode, the relative positioning of component, such as described component be instant chat record acquisition device 1300 display Device and keypad, sensor cluster 1314 can also detect what the acquisition device 1300 or instant chat of instant chat record were recorded The position of 1,300 1 components of acquisition device changes, presence that the acquisition device 1300 that user records with instant chat is contacted or not In the presence of the acquisition device 1300 that the orientation of acquisition device 1300 or acceleration/deceleration and instant chat that instant chat is recorded are recorded Temperature change.Sensor cluster 1314 can include proximity transducer, be configured to be examined when without any physical contact Survey the presence of object nearby.Sensor cluster 1314 can also include optical sensor, such as CMOS or ccd image sensor, be used for Used in imaging applications.In certain embodiments, the sensor cluster 1314 can also include acceleration transducer, gyroscope Sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1316 is configured to facilitate wired between the acquisition device 1300 of instant chat record and other equipment Or the communication of wireless mode.The acquisition device 1300 of instant chat record can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In one exemplary embodiment, communication component 1316 comes via broadcast channel reception From the broadcast singal or broadcast related information of external broadcasting management system.In one exemplary embodiment, the communication component 1316 also include near-field communication (NFC) module, to promote junction service.For example, radio frequency identification (RFID) can be based in NFC module Technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, the acquisition device 1300 of instant chat record can be by one or more application specific collection Into circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), Field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for execution State the acquisition methods of instant chat record.When the acquisition device 1300 of instant chat record is replaced by above-mentioned instant chat note During the processing unit of record, can be used for performing the processing method of above-mentioned instant chat record.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 1304 of instruction, the processor 1320 of the acquisition device 1300 that above-mentioned instruction can be recorded by instant chat is performed To complete the acquisition methods that above-mentioned instant chat is recorded, or, the processor of the processing unit that can be recorded by above-mentioned instant chat Perform to complete the processing method that above-mentioned instant chat is recorded.For example, the non-transitorycomputer readable storage medium can be with It is ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art considering specification and after putting into practice invention disclosed herein, will readily occur to it is of the invention its Its embodiment.The application is intended to any modification of the invention, purposes or adaptations, these modifications, purposes or Person's adaptations follow general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claims are pointed out.
It should be appreciated that the invention is not limited in the precision architecture being described above and be shown in the drawings, and And can without departing from the scope carry out various modifications and changes.The scope of the present invention is only limited by appending claims System.

Claims (17)

1. the acquisition methods that a kind of instant chat is recorded, it is characterised in that including:
The first terminal for binding the first instant messaging account number please to the second terminal transmission first of the second instant messaging account number of binding Message is sought, the first chat record that first request message is used for the instant chat for asking the second terminal to preserve is uploaded To cloud server, the account number for participating in the instant chat includes the first instant messaging account number and second instant messaging Account number;
When the first terminal receives the first response message that the second terminal sends, sent to the cloud server Second request message, second request message is used to ask first chat record to the cloud server, and described the One response message is used to indicate first chat record to be successfully uploaded to the cloud server to the first terminal;
The first terminal receives first chat record that the cloud server sends.
2. method according to claim 1, it is characterised in that the first terminal of the binding the first instant messaging account number to Before binding second terminal first request message of transmission of the second instant messaging account number, methods described also includes:
The first terminal to the cloud server send the 3rd request message, wherein, the 3rd request message be used for The cloud server asks the second chat record of the instant chat, and second chat record is on the first terminal It is transmitted to the chat record of the instant chat of the cloud server;
Whether the first terminal judges complete from second chat record of cloud server acquisition;
If the first terminal judges that second chat record is imperfect, the first terminal is sent out to the second terminal Send first request message.
3. method according to claim 2, it is characterised in that the first terminal judges to be obtained from the cloud server Second chat record it is whether complete, including:
The first terminal judges whether the cut-off time of second chat record matches with object time;
If the cut-off time of second chat record mismatches with the object time, the first terminal determines described Two chat records are imperfect.
4. method according to claim 2, it is characterised in that the first terminal judges to be obtained from the cloud server Second chat record it is whether complete, including:
The first terminal judges whether the internal memory shared by second chat record matches with target memory;
If the internal memory shared by second chat record is mismatched with the target memory, the first terminal determines described Two chat records are imperfect.
5. the method according to claim any one of 1-4, it is characterised in that if the account number for participating in the instant chat is also wrapped At least one the 3rd instant messaging account numbers are included, methods described also includes:
When the first terminal receives the second response message that the second terminal sends, to binding the 3rd IMU Believe that the third terminal of account number sends the 4th request message;Wherein, the 4th request message is used to ask the third terminal to be incited somebody to action 3rd chat record of the instant chat for preserving is uploaded to the cloud server, and second response message is used for institute Stating first terminal indicates first chat record to be uploaded to the cloud server not successfully;
When the first terminal receives three response message that the third terminal sends, sent to the cloud server 5th request message;Wherein, the 5th request message is used to ask the 3rd chat record, institute to the cloud server The 3rd response message is stated for indicating the 3rd chat record to be successfully uploaded to the cloud service to the first terminal Device;
The first terminal receives the 3rd chat record that the cloud server sends.
6. method according to claim 5, it is characterised in that first request message and the 4th request message bag Include at least one of initial time, cut-off time of the instant chat of the instant chat.
7. the processing method that a kind of instant chat is recorded, it is characterised in that including:
The second terminal for binding the second instant messaging account number receives the first terminal of the first instant messaging account number of binding sends the One request message, first request message is used for the first chat record of the instant chat for asking the second terminal to preserve It is uploaded to cloud server, participating in the account number of the instant chat includes the first instant messaging account number and described second instant Communication account number;
The second terminal sends the first response message according to the upload result of first chat record to the first terminal Or second response message;Wherein, first response message is used to indicate first chat record to the first terminal The cloud server is successfully uploaded to, second response message is used to indicate first chat to the first terminal Record is uploaded to the cloud server not successfully.
8. method according to claim 7, it is characterised in that the second terminal is upper according to first chat record Result is passed, the first response message or the second response message are sent to the first terminal, including:
The second terminal judges whether first chat record has been successfully uploaded to the cloud server;
If judging, first chat record has been successfully uploaded to the cloud server, and the second terminal is to described One terminal sends first response message;
If judging, first chat record is uploaded to the cloud server not successfully, and the second terminal judges to participate in Whether the number of the account number of the instant chat is more than 2;
If judging, the number of the account number for participating in the instant chat is equal to 2, and the second terminal remembers the described first chat Record and perform upload to the cloud server, untill the number of times for uploading successfully or performing upload reaches preset times, and Based on result is uploaded first response message or second response message are sent to the first terminal;
If judging the number of the account number for participating in the instant chat more than 2, the second terminal is sent out to the first terminal Send second response message.
9. the acquisition device that a kind of instant chat is recorded, it is characterised in that including:First sending module, receiver module and second Sending module;
First sending module, is configured as sending the first request message, institute to the second terminal of the second instant messaging account number of binding The first request message is stated to be taken for asking the second terminal that the first chat record of the instant chat of preservation is uploaded into high in the clouds Business device, the account number for participating in the instant chat includes the first instant messaging account number and the second instant messaging account number;
Second sending module, is configured as the receiver module and receives the first response message that the second terminal sends When, the second request message is sent to the cloud server, second request message is used to be asked to the cloud server First chat record, first response message is used to indicate first chat record to succeed to the first terminal It is uploaded to the cloud server;
The receiver module, is configured as receiving first chat record that the cloud server sends.
10. device according to claim 9, it is characterised in that described device also includes:3rd sending module and judge mould Block;
3rd sending module, is configured as whole to bind the second instant messaging account number second in first sending module Before end sends the first request message, the 3rd request message is sent to the cloud server, wherein, the 3rd request message The second chat record for asking the instant chat to the cloud server, second chat record is described first Terminal is uploaded to the chat record of the instant chat of the cloud server;
Whether the judge module, is configured as judging complete from second chat record of cloud server acquisition, And when judging that second chat record is imperfect, indicate first sending module to send described to the second terminal First request message.
11. devices according to claim 10, it is characterised in that the judge module, including:
First judging unit, is configured as judging whether the cut-off time of second chat record matches with object time;
First determining unit, when the cut-off time for being configured as second chat record mismatches with the object time, Determine that second chat record is imperfect.
12. devices according to claim 10, it is characterised in that the judge module, including:
Second judging unit, is configured as judging whether the internal memory shared by second chat record matches with target memory;
Second determining unit, when being configured as the internal memory shared by second chat record and being mismatched with the target memory, Determine that second chat record is imperfect.
13. device according to claim any one of 9-12, it is characterised in that if participating in the account number of the instant chat also Including at least one the 3rd instant messaging account numbers, described device also includes:
4th sending module, is configured as the receiver module and receives the second response message that the second terminal sends When, send the 4th request message to the third terminal for binding the 3rd instant messaging account number;Wherein, the 4th request message For asking the third terminal that the 3rd chat record of the instant chat for preserving is uploaded into the cloud server, institute The second response message is stated for indicating first chat record to be uploaded to the cloud service not successfully to the first terminal Device;
5th sending module, is configured as the receiver module and receives the 3rd response message that the third terminal sends When, send the 5th request message to the cloud server;Wherein, the 5th request message is used for the cloud server Asking the 3rd chat record, the 3rd response message is used to indicate the 3rd chat record to the first terminal It is successfully uploaded to the cloud server;
The receiver module, is configured as receiving the 3rd chat record that the cloud server sends.
A kind of 14. processing units of instant chat record, it is characterised in that including:Receiver module and sending module;
The receiver module, the first request for being configured as receiving the first terminal transmission of the first instant messaging account number of binding disappears Breath, first request message is used to ask the second terminal that the first chat record of the instant chat of preservation is uploaded into cloud End server, the account number for participating in the instant chat includes the first instant messaging account number and the second instant messaging account Number;
The sending module, is configured as the upload result according to first chat record, and the is sent to the first terminal One response message or the second response message;Wherein, first response message is used to indicate described the to the first terminal One chat record has been successfully uploaded to the cloud server, and second response message is used to indicate institute to the first terminal State the first chat record and be uploaded to the cloud server not successfully.
15. devices according to claim 14, it is characterised in that the sending module, including:First judging unit, Two judging units and transmitting element;
First judging unit, is configured as judging whether first chat record has been successfully uploaded to the cloud service Device;
The transmitting element, is configured as judging that first chat record has been successfully uploaded in first judging unit During the cloud server, first response message is sent to the first terminal;
Second judging unit, is configured as on first judging unit judges that first chat record is failed When reaching the cloud server, judge the number of the account number for participating in the instant chat whether more than 2;
The transmitting element, is configured as the number of account number for judging to participate in the instant chat in second judging unit During equal to 2, first chat record is performed into upload to the cloud server, until uploading successfully or performing upload time Untill number reaches preset times, and first response message or the second sound are sent to the first terminal based on result is uploaded Answer message;And, when the number of the account number for judging to participate in the instant chat in second judging unit is more than 2, to institute State first terminal and send second response message.
A kind of 16. acquisition device of instant chat record, it is characterised in that including:
First processor;
First memory for storing first processor executable instruction;
Wherein, the first processor is configured as:
The first request message is sent to the second terminal of the second instant messaging account number of binding, first request message is used to ask First chat record of the instant chat of preservation is uploaded to cloud server by the second terminal, participates in the instant chat Account number includes the first instant messaging account number and the second instant messaging account number;
When first response message that the second terminal sends is received, send second to the cloud server and ask Message, second request message is used to ask first chat record to the cloud server, and first response disappears Cease for indicating first chat record to be successfully uploaded to institute to the first terminal for binding first instant messaging account State cloud server;
Receive first chat record that the cloud server sends.
A kind of 17. processing units of instant chat record, it is characterised in that including:
Second processing device;
Second memory for storing second processing device executable instruction;
Wherein, the second processing device is configured as:
The first request message that the first terminal of the first instant messaging account number of binding sends is received, first request message is used for First chat record of the instant chat of preservation is uploaded to high in the clouds clothes by the second terminal of request the second instant messaging account of binding Business device, the account number for participating in the instant chat includes the first instant messaging account number and the second instant messaging account number;
According to the upload result of first chat record, the first response message or the second response are sent to the first terminal Message;Wherein, first response message is used to indicate first chat record to be successfully uploaded to the first terminal The cloud server, second response message is used to indicate first chat record failed to the first terminal Reach the cloud server.
CN201710088855.8A 2017-02-20 2017-02-20 Method and device for acquiring and processing instant chat records Active CN106713127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710088855.8A CN106713127B (en) 2017-02-20 2017-02-20 Method and device for acquiring and processing instant chat records

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710088855.8A CN106713127B (en) 2017-02-20 2017-02-20 Method and device for acquiring and processing instant chat records

Publications (2)

Publication Number Publication Date
CN106713127A true CN106713127A (en) 2017-05-24
CN106713127B CN106713127B (en) 2021-03-09

Family

ID=58911876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710088855.8A Active CN106713127B (en) 2017-02-20 2017-02-20 Method and device for acquiring and processing instant chat records

Country Status (1)

Country Link
CN (1) CN106713127B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650165A (en) * 2018-02-28 2018-10-12 阿里巴巴集团控股有限公司 A kind of restoration methods of communication data, device and equipment
CN108881403A (en) * 2018-05-29 2018-11-23 珠海格力电器股份有限公司 A kind of method and device of backup chat record
WO2019095156A1 (en) * 2017-11-15 2019-05-23 华为技术有限公司 Information search method, terminal, network device, and system
CN114500445A (en) * 2022-01-04 2022-05-13 维沃移动通信有限公司 Communication record acquisition method and device, electronic equipment and storage medium
CN116450635A (en) * 2023-06-15 2023-07-18 成都豪杰特科技有限公司 Data cleaning method and system based on artificial intelligence

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125135A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Instant messaging application chatting record management method and terminal thereof
CN105429846A (en) * 2014-09-18 2016-03-23 中兴通讯股份有限公司 Instant chat tool chat record synchronization methods and terminal equipment
CN106230703A (en) * 2016-08-30 2016-12-14 腾讯科技(深圳)有限公司 The process of chat record and acquisition methods and device
CN106375197A (en) * 2016-10-07 2017-02-01 苏州高精特专信息科技有限公司 Chatting record keeping method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125135A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Instant messaging application chatting record management method and terminal thereof
CN105429846A (en) * 2014-09-18 2016-03-23 中兴通讯股份有限公司 Instant chat tool chat record synchronization methods and terminal equipment
CN106230703A (en) * 2016-08-30 2016-12-14 腾讯科技(深圳)有限公司 The process of chat record and acquisition methods and device
CN106375197A (en) * 2016-10-07 2017-02-01 苏州高精特专信息科技有限公司 Chatting record keeping method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019095156A1 (en) * 2017-11-15 2019-05-23 华为技术有限公司 Information search method, terminal, network device, and system
CN111357245A (en) * 2017-11-15 2020-06-30 华为技术有限公司 Information searching method, terminal, network equipment and system
US11582179B2 (en) 2017-11-15 2023-02-14 Huawei Technologies Co., Ltd. Information search method, terminal, network device, and system
CN108650165A (en) * 2018-02-28 2018-10-12 阿里巴巴集团控股有限公司 A kind of restoration methods of communication data, device and equipment
CN108881403A (en) * 2018-05-29 2018-11-23 珠海格力电器股份有限公司 A kind of method and device of backup chat record
CN114500445A (en) * 2022-01-04 2022-05-13 维沃移动通信有限公司 Communication record acquisition method and device, electronic equipment and storage medium
CN116450635A (en) * 2023-06-15 2023-07-18 成都豪杰特科技有限公司 Data cleaning method and system based on artificial intelligence
CN116450635B (en) * 2023-06-15 2024-01-09 中免日上互联网科技有限公司 Data cleaning method and system based on artificial intelligence
CN116450635B8 (en) * 2023-06-15 2024-03-22 中免日上互联科技有限公司 Data cleaning method and system based on artificial intelligence

Also Published As

Publication number Publication date
CN106713127B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN104159226B (en) Method for connecting network and device
CN106488335B (en) Live-broadcast control method and device
CN106713127A (en) Instant chatting record acquisition and processing methods and devices
CN104898613A (en) Control method and device of smart home device
CN104317932A (en) Photo sharing method and device
CN104185304B (en) A kind of method and device accessing WI-FI network
CN104834665A (en) Target picture acquiring method and device
CN105141506B (en) communication message processing method and device
CN105159672A (en) Remote assistance method and client
CN105468767A (en) Method and device for acquiring calling card information
CN104539812B (en) Recommendation information acquisition methods, terminal and server
CN106211159A (en) Personal identification method based on bluetooth and device
CN106067111A (en) Message treatment method and device
EP3136697A1 (en) Contact record processing method and apparatus
CN105100355A (en) Method and device for identifying calling user
CN105704655A (en) Media data sharing method and media data sharing device between terminals
CN105515948A (en) Instant messaging method and device
CN106060257A (en) Method and device for viewing relevant information of contact
CN105872254A (en) Message forwarding method and device
CN105138564A (en) Data file reading method and apparatus
CN105763601A (en) File sharing method and device
CN104639609A (en) Method and device for sharing network
CN105491518A (en) Method and device for social reminding based on wearable devices
CN104881342A (en) Terminal testing method and device
CN105591886A (en) Message processing method, device and terminal electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant