CN106411718B - Data synchronization method and device based on instant messaging application - Google Patents

Data synchronization method and device based on instant messaging application Download PDF

Info

Publication number
CN106411718B
CN106411718B CN201610981616.0A CN201610981616A CN106411718B CN 106411718 B CN106411718 B CN 106411718B CN 201610981616 A CN201610981616 A CN 201610981616A CN 106411718 B CN106411718 B CN 106411718B
Authority
CN
China
Prior art keywords
data
sent
cache region
instant messaging
messaging application
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.)
Expired - Fee Related
Application number
CN201610981616.0A
Other languages
Chinese (zh)
Other versions
CN106411718A (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610981616.0A priority Critical patent/CN106411718B/en
Priority to PCT/CN2016/112764 priority patent/WO2018082177A1/en
Publication of CN106411718A publication Critical patent/CN106411718A/en
Application granted granted Critical
Publication of CN106411718B publication Critical patent/CN106411718B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • 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/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The embodiment of the invention discloses a data synchronization method and a device based on instant messaging application, which comprises the following steps: logging in a first account number of a first instant messaging application and a second account number of a second instant messaging application, wherein the first instant messaging application corresponds to a first data cache region, and the second instant messaging application corresponds to a second data cache region; inputting data to be sent to a first instant messaging application, and storing the data to be sent in a first data cache region; prompting a user whether to synchronously release data to be sent through a second account; and when the user selects to synchronously release the data to be sent through the second account, writing the data to be sent in the first data cache region into the second data cache region. By implementing the embodiment of the invention, the internal data interaction and the data synchronous release of the two instant messaging applications of the same terminal can be realized, the account numbers of the two instant messaging applications do not need to be bound, the operation convenience can be improved, and the advantage of high user experience is realized.

Description

Data synchronization method and device based on instant messaging application
Technical Field
The present invention relates to the field of data synchronization, and in particular, to a data synchronization method and apparatus based on instant messaging application.
Background
At present, chat tools such as instant messaging applications (e.g. WeChat, QQ, etc.) have become indispensable communication tools for people. Many users have application requirements of double WeChats (or double QQQs), and can log in two WeChats at the same time, so that the application of the double WeChats (or double QQQs) is richer and more convenient, and mobile phone terminals of the double WeChats appear in the market at present. However, in the current data synchronization technology applied to instant messaging, for example, when WeChat and QQ are bound, the dynamics of WeChat friend circle can be synchronously released to QQ space, and the realization principle of the technology is as follows: synchronization is achieved through data interaction between the WeChat server and the QQ server. The same technology is applied to synchronous data (dynamic or in other words) distribution to a friend circle between double WeChats, and is also a relatively mature technology.
However, the premise of this technology is that two accounts of the instant messaging application must be bound to realize data synchronization, and the server performs corresponding operation processing to realize data synchronous transmission of the two accounts, otherwise, it is difficult to realize data synchronization. This is difficult to meet the requirement of user convenience, which is an important characteristic of instant messaging application, and the short board of this technology will reduce user experience.
Disclosure of Invention
The embodiment of the invention discloses a data synchronization method and device based on instant messaging application, which can realize the synchronous data release of two instant messaging application accounts at the same terminal under the condition of not binding the two instant messaging application accounts, meet the convenience requirement of a user on the instant messaging application and improve the user experience.
The first aspect of the embodiment of the invention discloses a data synchronization method based on instant messaging application, which comprises the following steps: logging in a first account number of a first instant messaging application and a second account number of a second instant messaging application, wherein the first instant messaging application corresponds to a first data cache region, and the second instant messaging application corresponds to a second data cache region; inputting data to be sent to the first instant messaging application, and storing the data to be sent in the first data cache region; prompting a user whether to select to synchronously release the data to be sent through the second account; and when the user selects to synchronously release the data to be sent through the second account, writing the data to be sent in the first data cache region into the second data cache region.
In an alternative, in the method provided in the first aspect, the method may further include: and when the user selects to synchronously release the data to be sent through the second account, automatically triggering the second instant messaging application to be in a state of waiting for the user to input the data.
In an alternative, in the method provided in the first aspect, when the user selects to synchronously issue the data to be sent through the second account, writing the data to be sent in the first data cache area into the second data cache area, specifically, the method includes:
when the user selects to synchronously release the data to be sent through the second account, writing the data to be sent in the first data cache region into sub-regions corresponding to different sequence numbers of the second data cache region, wherein the second data cache region comprises a plurality of sub-regions, and the sub-regions are identified by the sequence numbers.
In an alternative, the method provided in the first aspect further includes, after writing the data to be sent in the first data buffer area into the second data buffer area, that: and sending the data to be sent in the first data cache region to a first social server, and sending the data to be sent in the second data cache region to a second social server.
In an alternative, after sending the data to be sent in the first data cache region to a first social server and sending the data to be sent in the second data cache region to a second social server, the method provided in the first aspect further includes: deleting the transmitted data in the first data buffer and the second data buffer.
The second aspect of the embodiments of the present invention discloses a data synchronization device based on instant messaging application, including: the system comprises a login unit, a first data cache region and a second data cache region, wherein the login unit is used for logging in a first account number of a first instant messaging application and a second account number of a second instant messaging application, the first instant messaging application corresponds to the first data cache region, and the second instant messaging application corresponds to the second data cache region; the input unit is used for inputting data to be sent to the first instant messaging application; a storage unit, configured to store the data to be sent in the first data buffer area; the prompting unit is used for prompting whether the user selects to synchronously release the data to be sent through the second account; and the writing unit is used for writing the data to be sent in the first data cache region into the second data cache region when the user selects to synchronously release the data to be sent through the second account.
In an alternative, the apparatus provided in the second aspect may further include:
and the triggering unit is used for automatically triggering the second instant messaging application to be in a state of waiting for data input by the user when the user selects to synchronously release the data to be sent through the second account.
In an alternative, in the apparatus provided in the second aspect, the writing unit is specifically configured to:
when the user selects to synchronously release the data to be sent through the second account, writing the data to be sent in the first data cache region into sub-regions corresponding to different sequence numbers of the second data cache region, wherein the second data cache region comprises a plurality of sub-regions, and the sub-regions are identified by the sequence numbers.
In an alternative, the apparatus provided in the second aspect may further include:
a sending unit, configured to send the data to be sent in the first data cache region to a first social server and send the data to be sent in the second data cache region to a second social server after the data to be sent in the first data cache region is written in the second data cache region.
In an alternative, the apparatus provided in the second aspect may further include:
and the deleting unit is used for deleting the sent data in the first data cache region and the second data cache region after the data to be sent in the first data cache region is sent to a first social server and the data to be sent in the second data cache region is sent to a second social server.
In the embodiment of the invention, a first account number of a first instant messaging application and a second account number of a second instant messaging application are logged in, wherein the first instant messaging application corresponds to a first data cache region, and the second instant messaging application corresponds to a second data cache region; inputting data to be sent to the first instant messaging application, and storing the data to be sent in the first data cache region; prompting a user whether to select to synchronously release the data to be sent through the second account; when the user selects to synchronously release the data to be sent through the second account, writing the data to be sent in the first data cache region into the second data cache region; and then, sending the data to be sent of the first data cache region to a first social server, sending the data to be sent of the second data cache region to a second social server, and deleting the data of the first data cache region and the second data cache region after the data are successfully sent. Therefore, the embodiment of the invention can realize the internal data interaction and the data synchronous release of the two instant messaging applications of the same terminal, does not need to bind the account numbers of the two instant messaging applications, can improve the operation convenience of the user, and has the advantage of high user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data synchronization method based on an instant messaging application according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another data synchronization method based on instant messaging application according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data synchronization apparatus based on instant messaging application according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a data synchronization method and device based on instant messaging application, which can realize internal data interaction and data synchronous release of two instant messaging application accounts at the same terminal under the condition of not binding the two instant messaging application accounts, meet the convenience requirement of a user on the instant messaging application and improve the user experience. The following are detailed below.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a data synchronization method based on instant messaging application according to an embodiment of the present invention. As shown in fig. 1, a data synchronization method based on instant messaging application disclosed in the embodiment of the present invention may include the following steps:
s101, logging in a first account of a first instant messaging application and a second account of a second instant messaging application, wherein the first instant messaging application corresponds to a first data cache region, and the second instant messaging application corresponds to a second data cache region.
The first instant messaging application and the second instant messaging application in step S101 are social applications that allow two or more people to communicate text or image messages, files, voice and video in real time using a network, and may be WeChat, QQ or other social applications. In the embodiment of the present invention, the first instant messaging application and the second instant messaging application are the same instant messaging application as an actual application scenario, for example: the first instant messaging application and the second instant messaging application can both be WeChat, and the user can publish pictures, characters and video information through a friend circle of the WeChat, and can share articles or music to the friend circle through other software. Of course, in practical applications, the first instant messaging application and the second instant messaging application may also be different instant messaging applications.
In the step S101, the first account of the first instant messaging application and the second account of the second instant messaging application are logged, and when the first instant messaging application and the second instant messaging application are the same, for example, both are wechat, the logging of the double wechat can be realized through a plurality of methods, the first method can be realized through the double system function of the terminal: firstly, installing the WeChat software in a default system, simultaneously switching to enter a second system of the terminal, downloading the WeChat software in the second system for installation, and after the installation is finished, simultaneously logging in different WeChat account numbers in the two systems respectively; the second is that two different wechat can be registered in the same terminal by wechat split technology.
S102, inputting data to be sent to a first instant messaging application, and storing the data to be sent in the first data cache region.
The data to be sent in step S102 may be pictures, texts, or videos, and may include other information, such as location information and public authority information, for example: the text content is ' clear weather and no cloud in all, the matching picture is a landscape picture, the position of the picture is ' south mountain park ', and the public authority (who can see) is ' public '.
The first data buffer in step S102 is used to store data to be sent of the first instant messaging application. Optionally, in an embodiment of the present invention, the first data buffer area may be divided into a plurality of different sub-areas, where the different sub-areas are identified by sequence numbers, and data to be sent is stored in the different sub-areas each time, so as to prevent a certain section of data space from being reused many times, and prevent another part of data area from being idle, thereby improving resource utilization of the data buffer area. For example: the first data cache region is divided into N subregions, N is a positive integer larger than 1, the data to be sent is stored in the subregion with the sequence number of 1 in the first data cache region at the 1 st time, then the data is stored in the subregion with the sequence number of 2 at the 2 nd time, and so on until the N subregions are all used, and the data to be sent is stored in the subregion with the sequence number of 1 in the N +1 st time in a recycling manner.
And S103, prompting the user whether to synchronously release the data to be transmitted through the second account.
Optionally, in step S103, it is prompted to whether the user selects to synchronously publish the data to be sent through the second account, that is, when the first account of the first instant messaging application detects that the second account of the second instant messaging application exists in the same terminal, after the data to be sent is edited, the user is prompted to select to synchronously publish the data to be sent through the second account, for example: the same mobile phone terminal logs in the WeChat A and the WeChat B, and prompts a user whether to synchronously issue the dynamic state to a friend circle of the WeChat B or not when the WeChat A finishes editing of a piece of dynamically-spoken data waiting for sending. In practical applications, the prompt may also be provided by using a convenient icon or other manners, which is not limited herein.
And S104, when the user selects to synchronously release the data to be transmitted through the second account, writing the data to be transmitted in the first data cache region into the second data cache region.
Optionally, in step S104, when the user selects to synchronously issue the data to be sent through the second account, the terminal may automatically trigger the second instant messaging application to perform a related operation of preparing to send the data, so that the second instant messaging application is in a state of waiting for the user to input the data.
Optionally, in the step S104, writing the data to be sent in the first data buffer area into the second data buffer area is to write the data to be sent in the first data buffer area into sub-areas corresponding to different sequence numbers of the second data buffer area, where the second data buffer area includes a plurality of sub-areas, and the sub-areas are identified by sequence numbers. For example: the second data cache region comprises M different sub-regions, wherein M is a positive integer larger than 1, the data in the first data cache region is written into the sub-region with the sequence number of 1 of the second data cache region for the 1 st time, the data in the first data cache region is written into the sub-region with the sequence number of 2 of the second data cache region for the 2 nd time, and the like, until all the M sub-regions are used, the data to be sent is stored in the sub-region with the sequence number of 1 again for the M +1 th time. By the method, the technical scheme of the embodiment of the invention can prevent the front section area of the data cache area from being repeatedly used all the time and other areas from being idle all the time, thereby reasonably and effectively utilizing the memory resource of the cache area.
According to the technical scheme provided by the invention, the second account number of the second instant messaging application of the first account number of the first instant messaging application is logged in, the data to be sent is input to the first instant messaging application and stored in the first data cache region, a prompt synchronization function is set, the first instant messaging application prompts a user whether to synchronously issue the data to be sent through the second account number, and when the user selects synchronization, the data to be sent in the first cache region is directly written into the second data cache region corresponding to the second instant messaging application, so that the internal data interaction of two instant messaging applications of the same terminal can be realized, and the data synchronization of the two instant messaging applications is further realized. The technical scheme of the invention does not need to bind the account numbers of the two instant messaging applications, can realize the data synchronization of the two instant messaging applications only by operating one instant messaging application, and has the advantage of convenient operation.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a data synchronization method based on instant messaging application according to another embodiment of the present invention. As shown in fig. 1, another data synchronization method based on instant messaging application disclosed in the embodiment of the present invention may include the following steps:
s201, logging in a first account of a first instant messaging application and a second account of a second instant messaging application, wherein the first instant messaging application corresponds to a first data cache region, and the second instant messaging application corresponds to a second data cache region.
The first instant messaging application and the second instant messaging application in step S201 are social applications that allow two or more people to communicate text or image messages, files, voice and video in real time using a network, and may be WeChat, QQ or other social applications. In the embodiment of the present invention, the first instant messaging application and the second instant messaging application are the same instant messaging application as an actual application scenario, for example: the first instant messaging application and the second instant messaging application can both be WeChat, and the user can publish pictures, characters and video information through a friend circle of the WeChat, and can share articles or music to the friend circle through other software. Of course, in practical applications, the first instant messaging application and the second instant messaging application may also be different instant messaging applications.
S202, inputting data to be sent to a first instant messaging application, and storing the data to be sent in the first data cache region.
The data to be sent in step S202 may be pictures, texts, or videos, and may include other information, such as location information and public authority information, for example: the text content is 'clear weather and no cloud in all miles', the matching picture is a landscape picture, the position of the picture is 'south mountain park', and the public authority (who can see) is 'public'.
The first data buffer in step S202 is used to store data to be sent of the first instant messaging application. Optionally, in an embodiment of the present invention, the first data buffer area may be divided into a plurality of different sub-areas, where the different sub-areas are identified by sequence numbers, and data to be sent is stored in the different sub-areas each time, so as to prevent a certain section of data space from being reused many times while other data areas are left unused, thereby improving resource utilization of the data buffer area. For example: the first data cache region is divided into N subregions, N is a positive integer larger than 1, the data to be sent is stored in the subregion with the sequence number of 1 in the first data cache region at the 1 st time, then the data is stored in the subregion with the sequence number of 2 at the 2 nd time, and so on until the N subregions are all used, and the data to be sent is stored in the subregion with the sequence number of 1 in the N +1 st time in a recycling manner.
And S203, prompting the user whether to synchronously release the data to be transmitted through the second account.
Optionally, in step S203, the user is prompted whether to select to synchronously publish the data to be sent through the second account, that is, when the first account of the first instant messaging application detects that the second account of the second instant messaging application exists in the same terminal, after the data to be sent is edited, the user is prompted whether to select to synchronously publish the data to be sent through the second account, for example: the same mobile phone terminal logs in the WeChat A and the WeChat B, and prompts a user whether to synchronously issue the dynamic state to a friend circle of the WeChat B or not when the WeChat A finishes editing of a piece of dynamically-spoken data waiting for sending. In practical applications, the prompt may also be provided by using a convenient icon or other manners, which is not limited herein.
And S204, when the user selects to synchronously release the data to be transmitted through the second account, writing the data to be transmitted in the first data cache region into the second data cache region.
Optionally, in step S204, when the user selects to synchronously issue the data to be sent through the second account, the terminal may automatically trigger the second instant messaging application to perform a related operation of preparing to send the data, so that the second instant messaging application is in a state of waiting for the user to input the data.
Optionally, in the step S204, writing the data to be sent in the first data buffer area into the second data buffer area is to write the data to be sent in the first data buffer area into sub-areas corresponding to different sequence numbers of the second data buffer area, where the second data buffer area includes a plurality of sub-areas, and the sub-areas are identified by sequence numbers. For example: the second data cache region comprises M different sub-regions, wherein M is a positive integer larger than 1, the data in the first data cache region is written into the sub-region with the sequence number of 1 of the second data cache region for the 1 st time, the data in the first data cache region is written into the sub-region with the sequence number of 2 of the second data cache region for the 2 nd time, and the like, until all the M sub-regions are used, the data to be sent is stored in the sub-region with the sequence number of 1 again for the M +1 th time. By the method, the technical scheme of the embodiment of the invention can prevent the front section area of the data cache area from being repeatedly used all the time and other areas from being idle all the time, thereby reasonably and effectively utilizing the memory resource of the cache area.
S205, sending the data to be sent in the first data cache region to a first social server, and sending the data to be sent in the second data cache region to a second social server.
Optionally, when the user selects to synchronously issue the data to be sent through the second account, after the terminal writes the data to be sent in the first data cache region into the second data cache region, the first instant messaging application directly sends the data to be sent to the first social server; the terminal can synchronously carry out corresponding sending operation on the second instant messaging application so that the second instant messaging application can conveniently send the data to be sent to the second social server. The first social server and the second social server may be WeChat or the like social servers.
S206, deleting the sent data in the first data buffer area and the second data buffer area.
Optionally, in the step S206, the first data buffer and the second data buffer may be used or erased, that is, after the data to be transmitted has been successfully transmitted, the transmitted data in the first data buffer and the second data buffer are deleted.
Optionally, in step S206, the first data buffer and the second data buffer may also be not used or erased, but may store data that has been sent before in a specific time range, a threshold of the number of stored sub-areas of the first data buffer and the second data buffer is set, where the threshold is greater than 1, and when the number of stored sub-areas exceeds the threshold, the sent data of the data buffer is erased, and it is not necessary to erase all data sent each time, so as to save terminal resources.
The technical scheme provided by the invention includes that data to be sent is input to the first instant messaging application and stored in a first data cache region by logging in a second account number of a second instant messaging application of a first account number of the first instant messaging application, a prompt synchronization function is set, a user is prompted by the first instant messaging application whether to synchronously issue the data to be sent through the second account number, and when the user selects synchronization, the data to be sent in the first cache region is directly written into a second data cache region corresponding to the second instant messaging application; and then sending the data to be sent in the first data cache region to a first social server, sending the data to be sent in the second data cache region to a second social server, and deleting the sent data in the first data cache region and the second data cache region. The technical scheme provided by the invention can realize synchronous updating of data after internal data interaction of two instant messaging applications of the same terminal is realized, and has the advantages of convenience in operation and high user experience.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data synchronization apparatus based on instant messaging application according to an embodiment of the present invention. As shown in fig. 3, a data synchronization apparatus 300 based on instant messaging application according to an embodiment of the present invention may include:
the login unit 301 is configured to log in a first account of a first instant messaging application and a second account of a second instant messaging application, where the first instant messaging application corresponds to a first data cache region and the second instant messaging application corresponds to a second data cache region.
An input unit 302 is configured to input data to be sent to the first instant messaging application.
A storage unit 303, configured to store the data waiting to be sent in the first data buffer.
A prompting unit 304, configured to prompt a user whether to select to synchronously issue data to be sent through the second account.
A writing unit 305, configured to write the data to be sent in the first data cache region into the second data cache region when the user selects to synchronously issue the data to be sent through the second account.
Optionally, the writing unit 305 in the apparatus is specifically configured to:
when a user selects to synchronously release data to be sent through a second account, the data to be sent in the first data cache region is written into sub regions corresponding to different sequence numbers of a second data cache region, wherein the second data cache region comprises a plurality of sub regions, and the sub regions are identified through the sequence numbers.
Optionally, the apparatus may further include:
the triggering unit 306 is configured to automatically trigger the second instant messaging application to be in a state of waiting for data input by the user when the user selects to synchronously issue data to be sent through the second account.
A sending unit 307, configured to send the data to be sent in the first data cache region to the first social server after writing the data to be sent in the first data cache region into the second data cache region, and send the data to be sent in the second data cache region to the second social server.
The deleting unit 308 is configured to delete the sent data in the first data cache region and the second data cache region after sending the data to be sent in the first data cache region to the first social server and sending the data to be sent in the second data cache region to the second social server.
Referring to fig. 4, fig. 4 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention, where the terminal may be a smart phone, a smart watch, a tablet computer, or the like. As shown in fig. 4, the terminal 400 includes: a processor 401, a memory 402, a transceiver 403, and a bus 404. The transceiver 403 is used for transmitting and receiving data to and from an external device. The number of processors 401 in the device 400 may be one or more. In some embodiments of the present application, the processor 401, the memory 402, and the transceiver 403 may be connected by a bus system or other means. The apparatus 400 may be used to perform the method shown in fig. 1. With regard to the meaning and examples of the terms related to the present embodiment, reference may be made to the corresponding description of fig. 1. And will not be described in detail herein.
Wherein the memory 402 has program code stored therein. The processor 401 is arranged to call program code stored in the memory 402 for performing the steps as shown in fig. 1.
It should be noted that the processor 401 may be a single processing element or may be a general term for a plurality of processing elements. For example, the Processing element may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application, such as: one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs).
The memory 403 may be a single storage device or a combination of multiple storage elements, and is used for storing executable program codes or parameters, data, etc. required by the running device of the application program. And the memory 403 may include a Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile), such as a magnetic disk memory, a Flash memory (Flash), and the like.
The bus 404 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
The user equipment may also include input and output devices coupled to bus 404 for interfacing with other components such as processor 401 via the bus. The input and output device can provide an input interface for an operator so that the operator can select a control item through the input interface, and can also be other interfaces through which other equipment can be externally connected.
Specifically, the terminal described in the embodiment of the present invention may implement part or all of the processes in an embodiment of the data synchronization method based on the instant messaging application described in conjunction with fig. 1 and fig. 2 of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (8)

1. A data synchronization method based on instant messaging application is characterized by comprising the following steps:
logging in a first account number of a first instant messaging application and a second account number of a second instant messaging application, wherein the first instant messaging application corresponds to a first data cache region, and the second instant messaging application corresponds to a second data cache region;
inputting data to be sent to the first instant messaging application, and storing the data to be sent in the first data cache region;
prompting a user whether to select to synchronously release the data to be sent through the second account;
when the user selects to synchronously release the data to be sent through the second account, writing the data to be sent in the first data cache region into the second data cache region;
when the user selects to synchronously issue the data to be sent through the second account, writing the data to be sent in the first data cache region into the second data cache region, which specifically includes:
when a user selects to synchronously release the data to be sent through the second account, writing the data to be sent in the first data cache region into sub regions corresponding to different sequence numbers of the second data cache region, wherein the second data cache region comprises a plurality of sub regions, and the sub regions are identified by sequence numbers;
the writing the data to be sent in the first data cache region into the sub-regions corresponding to the different sequence numbers of the second data cache region specifically includes:
dividing the first data buffer area into N subregions, wherein N is a positive integer larger than 1, storing data to be sent in a subregion with the sequence number of 1 in the first data buffer area for the 1 st time, storing the data in a subregion with the sequence number of 2 for the 2 nd time, and storing the data to be sent in the subregion with the sequence number of 1 in the N +1 th time of recycling.
2. The method of claim 1, further comprising:
and when the user selects to synchronously release the data to be sent through the second account, automatically triggering the second instant messaging application to be in a state of waiting for the user to input the data.
3. The method of claim 1, wherein after writing the data to be sent in the first data buffer into the second data buffer, the method further comprises:
and sending the data to be sent in the first data cache region to a first social server, and sending the data to be sent in the second data cache region to a second social server.
4. The method of claim 3, wherein after sending the data to be sent in the first data cache to a first social server and sending the data to be sent in the second data cache to a second social server, the method further comprises:
deleting the transmitted data in the first data buffer and the second data buffer.
5. A data synchronization apparatus based on instant messaging application, comprising:
the system comprises a login unit, a first data cache region and a second data cache region, wherein the login unit is used for logging in a first account number of a first instant messaging application and a second account number of a second instant messaging application, the first instant messaging application corresponds to the first data cache region, and the second instant messaging application corresponds to the second data cache region;
the input unit is used for inputting data to be sent to the first instant messaging application;
a storage unit, configured to store the data to be sent in the first data buffer area;
the prompting unit is used for prompting whether the user selects to synchronously release the data to be sent through the second account;
a writing unit, configured to write the data to be sent in the first data cache region into the second data cache region when a user selects to synchronously issue the data to be sent through the second account; the write unit is specifically configured to: when a user selects to synchronously release the data to be sent through the second account, writing the data to be sent in the first data cache region into sub regions corresponding to different sequence numbers of the second data cache region, wherein the second data cache region comprises a plurality of sub regions, and the sub regions are identified by sequence numbers;
the writing the data to be sent in the first data cache region into the sub-regions corresponding to the different sequence numbers of the second data cache region specifically includes:
dividing the first data buffer area into N subregions, wherein N is a positive integer larger than 1, storing data to be sent in a subregion with the sequence number of 1 in the first data buffer area for the 1 st time, storing the data in a subregion with the sequence number of 2 for the 2 nd time, and storing the data to be sent in the subregion with the sequence number of 1 in the N +1 th time of recycling.
6. The apparatus of claim 5, further comprising:
and the triggering unit is used for automatically triggering the second instant messaging application to be in a state of waiting for data input by the user when the user selects to synchronously release the data to be sent through the second account.
7. The apparatus of claim 5, further comprising:
a sending unit, configured to send the data to be sent in the first data cache region to a first social server and send the data to be sent in the second data cache region to a second social server after the data to be sent in the first data cache region is written in the second data cache region by the device.
8. The apparatus of claim 7, further comprising:
and the deleting unit is used for deleting the sent data in the first data cache region and the second data cache region after the device sends the data to be sent in the first data cache region to a first social server and sends the data to be sent in the second data cache region to a second social server.
CN201610981616.0A 2016-11-04 2016-11-04 Data synchronization method and device based on instant messaging application Expired - Fee Related CN106411718B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610981616.0A CN106411718B (en) 2016-11-04 2016-11-04 Data synchronization method and device based on instant messaging application
PCT/CN2016/112764 WO2018082177A1 (en) 2016-11-04 2016-12-28 Method and device for data synchronization based on instant communication application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610981616.0A CN106411718B (en) 2016-11-04 2016-11-04 Data synchronization method and device based on instant messaging application

Publications (2)

Publication Number Publication Date
CN106411718A CN106411718A (en) 2017-02-15
CN106411718B true CN106411718B (en) 2020-02-21

Family

ID=58015572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610981616.0A Expired - Fee Related CN106411718B (en) 2016-11-04 2016-11-04 Data synchronization method and device based on instant messaging application

Country Status (2)

Country Link
CN (1) CN106411718B (en)
WO (1) WO2018082177A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632130B (en) * 2017-03-16 2021-04-30 北京京东尚科信息技术有限公司 Method and device for multi-terminal chat input transfer, electronic equipment and storage medium
CN109445381B (en) * 2018-09-30 2023-12-12 芜湖友仁机电工程有限公司 MES terminal capable of ensuring accurate input data
CN110995574B (en) * 2019-12-06 2022-06-10 海南车智易通信息技术有限公司 User information management method, acquisition method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102448029A (en) * 2011-09-29 2012-05-09 美商威睿电通公司 Mobile phone client for managing multi micro blog accounts and method
CN102541956A (en) * 2010-12-30 2012-07-04 中国移动通信集团公司 Social network site content management system and method thereof
CN103812755A (en) * 2012-11-12 2014-05-21 腾讯科技(深圳)有限公司 Message synchronization method and device in instant messaging application
CN104283926A (en) * 2013-07-10 2015-01-14 腾讯科技(深圳)有限公司 Data synchronization method, device and server
CN105681165A (en) * 2015-09-16 2016-06-15 阿里巴巴集团控股有限公司 Relationship and task prompting method and device in communication process

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095802A (en) * 2012-12-07 2013-05-08 网际傲游(北京)科技有限公司 Method and device for managing multiple accounts with Internet explorer
CN105868383A (en) * 2016-04-11 2016-08-17 北京华网汇通技术服务有限公司 Method and system for multi-channel information release
CN106021125B (en) * 2016-05-16 2019-07-02 北京珠穆朗玛移动通信有限公司 Data sharing method, mobile terminal and its system between dual user system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541956A (en) * 2010-12-30 2012-07-04 中国移动通信集团公司 Social network site content management system and method thereof
CN102448029A (en) * 2011-09-29 2012-05-09 美商威睿电通公司 Mobile phone client for managing multi micro blog accounts and method
CN103812755A (en) * 2012-11-12 2014-05-21 腾讯科技(深圳)有限公司 Message synchronization method and device in instant messaging application
CN104283926A (en) * 2013-07-10 2015-01-14 腾讯科技(深圳)有限公司 Data synchronization method, device and server
CN105681165A (en) * 2015-09-16 2016-06-15 阿里巴巴集团控股有限公司 Relationship and task prompting method and device in communication process

Also Published As

Publication number Publication date
WO2018082177A1 (en) 2018-05-11
CN106411718A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
US11025963B2 (en) Data processing method, apparatus, and system for live streaming page
CN109542361B (en) Distributed storage system file reading method, system and related device
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
US20180262284A1 (en) Method, apparatus and terminal device for sending broadcast
CN104486388A (en) Accessing method and device of cloud storage file
CN106411718B (en) Data synchronization method and device based on instant messaging application
CN108712320B (en) Message pushing method and device
CN111163130A (en) Network service system and data transmission method thereof
CN103596152A (en) Short message delay sending system and method
CN103581111A (en) Communication method and system
CN104253872A (en) Synchronous information updating method, system and terminal
CN107864044B (en) Information processing method and device, terminal and readable storage medium
CN112953908A (en) Network isolation configuration method, device and system
CN107437036B (en) Role-based access control method, device and system
US9577967B2 (en) Method and system for managing an informational site using a social networking application
CN107124353B (en) Message processing method and device, computer device and storage medium
CN102984676A (en) Method and terminal for processing message session
CN107168648B (en) File storage method and device and terminal
CN104796519A (en) Terminal
US11258838B2 (en) Method, system, and non-transitory computer readable record medium for processing chatroom based on usage
CN104346228A (en) Application program sharing method and terminal
CN113868479A (en) Method and device for processing service data
CN112988426A (en) Message processing method and device
CN109587353B (en) Method, device and storage medium for identifying short message number attribution information
CN109450885B (en) Network data interception method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200221

Termination date: 20211104

CF01 Termination of patent right due to non-payment of annual fee