Content of the invention
The present invention provides a kind of method and device of synchronizing information, in order to realize the purpose of different APP accounts informations synchronizations.
The embodiment of the present invention provides a kind of method of synchronizing information, and methods described is applied to the server of the 2nd APP, wrapsInclude:
The logging request that the terminal of the 2nd APP sends is received, the logging request carries the second account letter of the 2nd APPBreath;
Determine whether that the terminal of an APP is connected with local holding, wherein, the terminal of an APP is by the 2nd APP'sFirst account information is connected with local holding;
When the terminal for having an APP is connected with local holding, second account information of the 2nd APP is sent to firstThe terminal of APP, indicates that the terminal of an APP updates local account information.
In an embodiment of the present invention, methods described also includes:
First account information of the login of the terminal of the first APP is switched to the second account information.
In an embodiment of the present invention, the first account information of the login of the terminal of an APP is being switched to the second accountBefore the information of family, methods described also includes:
Terminal to an APP sends a notification message, and indicates that the terminal of an APP is stepped on again according to the second account informationRecord.
In an embodiment of the present invention, the notification message includes checking information, indicates the terminal of an APP according to secondChecking information is carried when account information is logged in again.
The embodiment of the present invention also provides a kind of device of synchronizing information, and described device is applied to the server of the 2nd APP, instituteStating device includes:
Receiver module, for receiving the logging request that the terminal of the 2nd APP sends, the logging request carries secondSecond account information of APP;
Judge module, for determining whether that the terminal of an APP is connected with local holding, wherein, the terminal of an APPIt is connected with local holding by first account information of the 2nd APP;
First sending module, for when the terminal for having an APP is connected with local holding, by second account of the 2nd APPFamily information is sent to the terminal of an APP, indicates that the terminal of an APP updates local account information.
In an embodiment of the present invention, described device also includes:
Handover module, for switching to the second account information by the first account information of the login of the terminal of an APP.
In an embodiment of the present invention, described device also includes:
Second sending module, for switching to the second account by the first account information of the login of the terminal of an APPBefore information, the terminal to an APP sends a notification message, and indicates that the terminal of an APP is stepped on again according to the second account informationRecord.
In an embodiment of the present invention, the notification message includes checking information, indicates the terminal of an APP according to secondChecking information is carried when account information is logged in again.
In embodiments of the present invention, the logging request that the terminal of the 2nd APP sends is received, and the logging request carries theSecond account information of two APP;Determine whether that the terminal of an APP is connected with local holding, wherein, the terminal of an APPIt is connected with local holding by first account information of the 2nd APP;When the terminal for having an APP is connected with local holding, willSecond account information of the 2nd APP is sent to the terminal of an APP, indicates that the terminal of an APP updates local account information.As can be seen here, the embodiment of the present invention can realize the synchronous purpose of different APP accounts informations.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, notThe present invention can be limited.
Specific embodiment
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related toDuring accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodimentDescribed in embodiment do not represent and the consistent all embodiments of the present invention.Conversely, they be only with as appended byThe example of consistent apparatus and method in terms of some being described in detail in claims, of the invention.
The flow chart of the method for synchronizing information in one embodiment of the invention is illustrated in figure 1, the method can include followingStep S11-S13.
Step S11, receives the logging request that the terminal of the 2nd APP sends, and the logging request carries the of the 2nd APPTwo account informations;
Step S12, determines whether that the terminal of an APP is connected with local holding, and wherein, the terminal of an APP passes throughFirst account information of the 2nd APP is connected with local holding;
Step S13, when the terminal for having an APP is connected with local holding, second account information of the 2nd APP is sentTo the terminal of an APP, indicate that the terminal of an APP updates local account information.
Before this step, the terminal to an APP sends a notification message, and indicates the terminal of an APP according to the second accountFamily information is logged in again.Here notification message can include checking information, indicate that the terminal of an APP is believed according to the second accountChecking information is carried when breath is logged in again.
In embodiments of the present invention, the logging request that the terminal of the 2nd APP sends is received, and the logging request carries theSecond account information of two APP;Determine whether that the terminal of an APP is connected with local holding, wherein, the terminal of an APPIt is connected with local holding by first account information of the 2nd APP;When the terminal for having an APP is connected with local holding, willSecond account information of the 2nd APP is sent to the terminal of an APP, indicates that the terminal of an APP updates local account information.As can be seen here, the embodiment of the present invention can realize the synchronous purpose of different APP accounts informations.
In the alternative embodiment of the present invention, the first account information of the login of the terminal of an APP can also be switchedFor the second account information.
The method that the synchronizing information of the present invention is discussed in detail below by a specific embodiment realizes process.Such as Fig. 2The flow chart of the method for synchronizing information in another embodiment of the present invention is shown, the method may comprise steps of S21-S23.
Step S21, receives the logging request that the terminal of the 2nd APP sends, and the logging request carries the of the 2nd APPTwo account informations;
Step S22, determines whether that the terminal of an APP is connected with local holding, and wherein, the terminal of an APP passes throughFirst account information of the 2nd APP is connected with local holding;
Step S23, when the terminal for having an APP is connected with local holding, sends notice to the terminal of an APP and disappearsBreath, indicates that the terminal of an APP is logged in again according to the second account information.Here notification message includes checking information, indicatesChecking information is carried according to the second account information when the terminal of the first APP is logged in again.If the terminal of an APP not with localConnection is kept, is then terminated.
In the above-described embodiments, an APP can be live APP, and the 2nd APP can be instant messaging APP, such as wechat.Live APP is logged in using wechat account 1, wechat is logged in wechat account 2.It is currently wechat account 2 that wechat server is only recorded,Equivalent to having nullified wechat account 1.But live APP also shows the information such as the head portrait of wechat account 1, the pet name.The present invention is implementedIn example, wechat server receives the logging request of wechat account 2, and wechat account 1 is switched to wechat account 2.Take to live APPBusiness device sends the notice for being switched to wechat account 2.The notice carries the information such as the head portrait of wechat account 2, the pet name.Live APP clothesBusiness device updates local record, and sends to user and be switched to the notice of wechat account 2, while head portrait for showing of interface switching etc. is believedBreath.
It should be noted that in actual applications, above-mentioned all optional embodiments can be any in the way of adopting and combineCombination, forms the alternative embodiment of the present invention, and this is no longer going to repeat them.
Corresponding to the method for the synchronizing information in above-described embodiment, the present invention also provides a kind of device of synchronizing information.Such asFig. 3 show the structural representation of the device of synchronizing information in one embodiment of the invention, including:
Receiver module 31, for receiving the logging request that the terminal of the 2nd APP sends, the logging request carries secondSecond account information of APP;
Judge module 32, for determining whether that the terminal of an APP is connected with local holding, wherein, the end of an APPEnd is connected with local holding by first account information of the 2nd APP;
First sending module 33, for when the terminal for having an APP is connected with local holding, by the second of the 2nd APPAccount information is sent to the terminal of an APP, indicates that the terminal of an APP updates local account information.
In an embodiment of the present invention, as shown in figure 4, the device that figure 3 above shows can also include:
Handover module 41, for switching to the second account information by the first account information of the login of the terminal of an APP.
In an embodiment of the present invention, as shown in figure 5, the device that figure 4 above shows can also include:
Second sending module 51, for switching to the second account by the first account information of the login of the terminal of an APPBefore the information of family, the terminal to an APP sends a notification message, indicate an APP terminal according to the second account information againLog in.
In an embodiment of the present invention, the notification message includes checking information, indicates the terminal of an APP according to secondChecking information is carried when account information is logged in again.
The said apparatus of the embodiment of the present invention:The logging request that the terminal of the 2nd APP sends is received, the logging request is takenThe second account information with the 2nd APP;Determine whether that the terminal of an APP is connected with local holding, wherein, an APPTerminal by first account information of the 2nd APP and local keep being connected;It is connected with local holding in the terminal for having an APPWhen, the terminal that second account information of the 2nd APP is sent to an APP indicates that the terminal of an APP updates local accountInformation.As can be seen here, the embodiment of the present invention can realize the synchronous purpose of different APP accounts informations.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer programProduct.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or with reference to software and hardware in terms of realityApply the form of example.And, the present invention can be adopted in one or more computers for wherein including computer usable program codeThe shape of the upper computer program that implements of usable storage medium (including but not limited to disk memory and optical memory etc.)Formula.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer programFigure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagramJourney and/or the combination of square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be providedInstruct the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices to produceA raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devicesThe device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring toMake the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram orThe function of specifying in multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing devices so that in meterSeries of operation steps is executed on calculation machine or other programmable devices to produce computer implemented process, so as in computer orThe instruction executed on other programmable devices is provided for realization in one flow process of flow chart or multiple flow processs and/or block diagram oneThe step of function of specifying in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present inventionGod and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologiesWithin, then the present invention is also intended to comprising these changes and modification.