Summary of the invention
The embodiment of the present invention provides a kind of account data synchronous method and its equipment, storage medium, terminal, by equipment
Unified application interface analyze the corresponding terminal applies of current account data, the workload that can reduce server end improves account
The synchronous efficiency of data.
First aspect of the embodiment of the present invention provides a kind of account data synchronous method, it may include:
The current account data of terminal applies is obtained from server based on application interface, and is obtained based on the application interface
Account number entrained by the current account data;
The current account data the corresponding terminal of the account number is sent to based on the application interface to answer
With;
It is updated using former account data of the current account data to the terminal applies.
In a kind of possible design, the current account number for obtaining terminal applies from server based on application interface
According to, and before obtaining account number entrained by the current account data based on the application interface, further includes:
It is obtained based on application interface and applies the corresponding account number of logging request, and the application logging request is sent to
Server, so that the server returns to the corresponding logon rights data of the application logging request according to the account number.
In a kind of possible design, the current account number for obtaining terminal applies from server based on application interface
According to, comprising:
Account synchronization request is sent according to the logon rights data entry terminal applies, and based on the application interface
To the server, so that the server returns to the corresponding terminal applies of the account number according to the account synchronization request
Current account data.
In a kind of possible design, it is described using the current account data to the former account data of the terminal applies
It is updated, comprising:
Obtain the former account data of the terminal applies;
When there is account data unmatched with data in the former account data in the current account data, adopt
The former account data is updated with the unmatched account data.
In a kind of possible design, it is described using the current account data to the former account data of the terminal applies
After being updated, further includes:
The update of the former account data is detected as a result, and the update result is back to clothes based on the application interface
Business device.
Second aspect of the embodiment of the present invention provides a kind of account data synchronizer, it may include:
Data capture unit, for obtaining the current account data of terminal applies, and base from server based on application interface
Account number entrained by the current account data is obtained in the application interface;
Data transmission unit, for the current account data to be sent to the account number based on the application interface
The corresponding terminal applies;
Data updating unit, for being carried out more using former account data of the current account data to the terminal applies
Newly.
In a kind of possible design, further includes:
Request transmitting unit applies the corresponding account number of logging request for obtaining based on application interface, and will be described
It is sent to server using logging request, so that the server returns to the application logging request pair according to the account number
The logon rights data answered.
In a kind of possible design, the data capture unit is specifically used for,
Account synchronization request is sent according to the logon rights data entry terminal applies, and based on the application interface
To the server, so that the server returns to the corresponding terminal applies of the account number according to the account synchronization request
Current account data.
In a kind of possible design, the data updating unit includes:
Data acquisition subelement, for obtaining the former account data of the terminal applies;
Data update subelement, exist in the current account data with the data in the former account data not for working as
When matched account data, the former account data is updated using the unmatched account data.
In a kind of possible design, further includes:
As a result output unit, for detecting the update of the former account data based on the application interface as a result, and by institute
It states update result and is back to server.
The third aspect of the embodiment of the present invention provides a kind of computer storage medium, and the computer storage medium is stored with
A plurality of instruction, described instruction are suitable for being loaded by processor and executing following steps:
The current account data of terminal applies is obtained from server based on application interface, and is obtained based on the application interface
Account number entrained by the current account data;
The current account data the corresponding terminal of the account number is sent to based on the application interface to answer
With;
It is updated using former account data of the current account data to the terminal applies.
Fourth aspect of the embodiment of the present invention provides a kind of terminal, it may include: processor and memory;Wherein, described to deposit
Reservoir is stored with computer program, and the computer program is suitable for being loaded by the processor and executing following steps:
The current account data of terminal applies is obtained from server based on application interface, and is obtained based on the application interface
Account number entrained by the current account data;
The current account data the corresponding terminal of the account number is sent to based on the application interface to answer
With;
It is updated using former account data of the current account data to the terminal applies.
In embodiments of the present invention, by obtaining the current account data of terminal applies from server based on application interface,
And account number entrained by current account data is obtained based on application interface, then current account data is sent out based on application interface
Terminal applies corresponding to account number are sent, are finally carried out more using former account data of the current account data to terminal applies
Newly.The corresponding terminal applies of current account data are analyzed by the unified application interface in account data synchronizer, and then right
Former account data in terminal applies is updated, and avoids the different application interface that server provides different terminal applies
It is handled respectively, the workload for reducing server improves the synchronous efficiency of account data.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Account data synchronous method provided in an embodiment of the present invention can be applied in the multi-application system of enterprise to difference
In the scene that the account data of application system synchronizes, such as: account data synchronizer is based on application interface from server
The current account data of terminal applies is obtained, and account entrained by the current account data is obtained based on the application interface
Mark, the account data synchronizer are based on the application interface again and the current account data are sent to the account mark
Know the corresponding terminal applies, is finally carried out more using former account data of the current account data to the terminal applies
Newly.The corresponding terminal applies of current account data are analyzed by the unified application interface in account data synchronizer, and then right
Former account data in terminal applies is updated, and avoids the different application interface that server provides different terminal applies
It is handled respectively, the workload for reducing server improves the synchronous efficiency of account data.
The present embodiments relate to account data synchronizer be also possible to computer, smart phone and mobile Internet
Its terminal device for having multi-application system such as equipment (MID).
Below in conjunction with attached drawing 1 and attached drawing 2, it is situated between in detail to account data synchronous method provided in an embodiment of the present invention
It continues.
Referring to Figure 1, for the embodiment of the invention provides a kind of flow diagrams of account data synchronous method.Such as Fig. 1
It is shown, the embodiment of the present invention the method may include following steps S101- step S103.
S101 is obtained the current account data of terminal applies from server based on application interface, and is connect based on the application
Mouth obtains account number entrained by the current account data;
Specifically, account data synchronizer can obtain the current account of terminal applies based on application interface from server
Data, it is to be understood that the application interface can be the unified software interface encapsulation package in the account synchronizer, institute
Stating current account data can be with the account information and user information (the i.e. account of user's needle oneself described in user's registration when terminal applies
Information set by number) etc., for example, the current account data can be user when the terminal applies are enterprise's mailbox
Email address and subscriber identity information (such as can be, the other users contact method in addition to mailbox, current position and
The information such as working experience).
Further, the account data synchronizer can obtain the current account data based on the application interface
Entrained account number, it is to be understood that the account number can be end belonging to the instruction current account data
The mark of the application type of application is held, for example, the account number can be currently when the terminal applies are enterprise's mailbox
The domain name of mail server in account data email address (domain name of user name@mail server).
The current account data is sent to the account number corresponding end based on the application interface by S102
End application;
It is understood that the account data synchronizer, which is based on the application interface, obtains the current account data
After the account number of carrying, the application interface can identify the application type of the corresponding terminal applies of the account number, into
And the current account data can be sent to the account mark based on the application interface by the account data synchronizer
Know the terminal applies of corresponding types.It is obtained for example, the account data synchronizer is based on the application interface from server
After taking the current account data of terminal applies, the application interface identifies described according to the account number of the current account data
Terminal applies be enterprise's mailbox, the account data synchronizer the current account data can be sent to enterprise's mailbox this
One terminal applies.
S103 is updated using former account data of the current account data to the terminal applies;
It is understood that the former account data of the available terminal applies of account data synchronizer, institute
Stating former account data can be the account data before terminal applies described in the account data synchronizer do not update.
Specifically, the account data synchronizer can be using the current account data to the original of the terminal applies
Account data is updated.Optionally, described in the account data synchronizer can be replaced using the current account data
Former account data realizes that the update to the former account data needs the application in company for example, the cell-phone number of Zhang is replaced
Its cell-phone number of synchronized update in system, then each terminal applies can be replaced using the current account data of the carrying new cell-phone number obtained
Change the former account data for carrying former cell-phone number.Optionally, the account data synchronizer can detecte the current account number
In with the presence or absence of with the unmatched account data of data in the former account data, for example, the current account data with
When there was only telephone number difference in the original account data, it is believed that telephone number is unmatched account data, can be only
Telephone number in former account data is replaced using the telephone number in current account data, other are constant.
It is understood that the unmatched account data is also possible to the account being not present in the former account data
Data (i.e. newly-increased account data), for example, needing to apply a work mailbox, the account data for new employee Zhang
The account data that this can be increased newly mailbox by synchronizer is added in former account data.It should be noted that when described current
When account data is empty, the account data synchronizer can carry out delete processing to the former account data, for example, Zhang
After subsidiary company is left office, the former account data in his all application systems in company should be all deleted.
In embodiments of the present invention, by obtaining the current account data of terminal applies from server based on application interface,
And account number entrained by current account data is obtained based on application interface, then current account data is sent out based on application interface
Terminal applies corresponding to account number are sent, are finally carried out more using former account data of the current account data to terminal applies
Newly.The corresponding terminal applies of current account data are analyzed by the unified application interface in account data synchronizer, and then right
Former account data in terminal applies is updated, and avoids the different application interface that server provides different terminal applies
It is handled respectively, the workload for reducing server improves the synchronous efficiency of account data.
Fig. 2 is referred to, for the embodiment of the invention provides the flow diagrams of another account data synchronous method.Such as figure
Shown in 2, the embodiment of the present invention the method may include following steps S201- step S207.
S201 is obtained based on application interface and is applied the corresponding account number of logging request, and applies logging request for described
It is sent to server;
Specifically, account data synchronizer can be obtained based on application interface applies the corresponding account mark of logging request
Know, and the application logging request is sent to server, it is to be understood that it is same that the application interface can be the account
The unified software interface encapsulation package in equipment is walked, the request that can be registration terminal application using logging request can be taken
Account number with the terminal applies to be logged in, the account number can indicate the application class for the terminal applies to be logged in
Type.
It is understood that the server can return after receiving the application logging request according to the account number
The corresponding logon rights data of the application logging request are returned, the logon rights data can indicate that the account data is synchronous
Whether equipment, which has permission, logs in terminal applies indicated by the account number.
Account according to the logon rights data entry terminal applies, and is synchronized based on the application interface and is asked by S202
It asks and is sent to the server;
Specifically, when the logon rights are statistics indicate that the account data synchrodata can log in the account number
When the terminal applies of instruction, the account data synchronizer can the terminal according to the logon rights data entry answer
With.
Further, after logging in the terminal applies, the account data synchronizer can be based on the application interface
Account synchronization request is sent to the server, it is to be understood that the server can be synchronized according to the account and be asked
The current account data for returning to the corresponding terminal applies of the account number is sought, the current account data can be with user's registration institute
Account information and user information (i.e. information set by the account of user's needle oneself) when stating terminal applies etc., for example, working as institute
State terminal applies be enterprise's mailbox when, the current account data can be the email address and subscriber identity information (example of user
Such as locate the other users contact method outside mailbox, current position and working experience information).It is understood that described
The account number account number corresponding with the login application request that the current account data that server returns carries is consistent.
S203 obtains account number entrained by the current account data based on the application interface;
Specifically, the account data synchronizer can obtain the current account data institute based on the application interface
The account number of carrying, it is to be understood that the account number can be terminal belonging to the instruction current account data
The mark of the application type of application, for example, the account number can be current account when the terminal applies are enterprise's mailbox
The domain name of mail server in number email address (domain name of user name@mail server).
The current account data is sent to the account number corresponding end based on the application interface by S204
End application;
It is understood that the account data synchronizer, which is based on the application interface, obtains the current account data
After the account number of carrying, the application interface can identify the application type of the corresponding terminal applies of the account number, into
And the current account data can be sent to the account mark based on the application interface by the account data synchronizer
Know the terminal applies of corresponding types.It is obtained for example, the account data synchronizer is based on the application interface from server
After taking the current account data of terminal applies, the application interface identifies described according to the account number of the current account data
Terminal applies be enterprise's mailbox, the account data synchronizer the current account data can be sent to enterprise's mailbox this
One terminal applies.
S205 obtains the former account data of the terminal applies;
Specifically, the former account data of the available terminal applies of account data synchronizer, the original account
Number can be the account data before terminal applies described in the account data synchronizer do not update.
S206, when exist in the current account data and the former account data in the unmatched account data of data
When, the former account data is updated using the unmatched account data;
It is understood that the account data synchronizer can detecte in the current account data with the presence or absence of with
The unmatched account data of data in the original account data, when existing in the current account data and the former account number
When the unmatched account data of data in, the account data synchronizer can use the unmatched account data
The former account data is updated, for example, only telephone number in the current account data and the former account data
When different, it is believed that telephone number is unmatched account data, it is possible to use only the telephone number in current account data
Instead of the telephone number in former account data, other are constant.
It is understood that the unmatched account data is also possible to the account being not present in the former account data
Data (i.e. newly-increased account data), for example, needing to apply a work mailbox, the account data for new employee Zhang
The account data that this can be increased newly mailbox by synchronizer is added in former account data.It should be noted that when described current
When account data is empty, the account data synchronizer can carry out delete processing to the former account data, for example, Zhang
After subsidiary company is left office, the former account data in his all application systems in company should be all deleted.
Optionally, the account data synchronizer can replace the former account data using the current account data
It realizes the update to the former account data, for example, the cell-phone number of Zhang is replaced, needs synchronous in the application system of company
Its cell-phone number is updated, then each terminal applies can carry former hand using the current account data replacement of the carrying new cell-phone number obtained
The former account data of machine number.
S207 detects the update of the former account data as a result, and returning the update result based on the application interface
It is back to server;
Specifically, the account data synchronizer can detect the former account data more based on the application interface
Newly as a result, for example, more whether the account data synchronizer can be based on the application interface detection former account data
It is new, it also can detecte the account data being updated in the former account data.
Further, the update result can be back to server, the service by the account data synchronizer
Account data synchronized result can be notified user after receiving the update result by device.
In embodiments of the present invention, it by returned data update result to server, and then notifies user, is account data
Synchronize the application effect for increasing and notifying immediately.
In embodiments of the present invention, by obtaining the current account data of terminal applies from server based on application interface,
And account number entrained by current account data is obtained based on application interface, then current account data is sent out based on application interface
Terminal applies corresponding to account number are sent, are finally carried out more using former account data of the current account data to terminal applies
Newly.The corresponding terminal applies of current account data are analyzed by the unified application interface in account data synchronizer, and then right
Former account data in terminal applies is updated, and avoids the different application interface that server provides different terminal applies
It is handled respectively, the workload for reducing server improves the synchronous efficiency of account data;It is updated and is tied by returned data
Fruit notifies user to server, synchronizes the application effect for increasing and notifying immediately for account data.
Below in conjunction with attached drawing 3- attached drawing 5, it is situated between in detail to account data synchronizer provided in an embodiment of the present invention
It continues.It should be noted that the attached equipment shown in fig. 5 of attached drawing 3-, the method for executing Fig. 1 of the present invention and embodiment illustrated in fig. 2,
For ease of description, only parts related to embodiments of the present invention are shown, disclosed by specific technical details, please refers to this hair
Bright Fig. 1 and embodiment shown in Fig. 2.
Fig. 3 is referred to, for the embodiment of the invention provides a kind of structural schematic diagrams of account data synchronizer.Such as Fig. 3
Shown, the account data synchronizer 1 of the embodiment of the present invention may include: data capture unit 11, data transmission unit
12 and data updating unit 13.
Data capture unit 11, for the current account data of terminal applies to be obtained from server based on application interface, and
Account number entrained by the current account data is obtained based on the application interface;
In the specific implementation, data capture unit 11 can obtain the current account of terminal applies based on application interface from server
Number, it is to be understood that the application interface can be the encapsulation of the unified software interface in the account synchronizer 1
Packet, the current account data can with described in user's registration when terminal applies account information and user information (user's needle from
Information set by oneself account) etc., for example, the current account data can be with when the terminal applies are enterprise's mailbox
It is that the email address of user and subscriber identity information (such as can be, the other users contact method in addition to mailbox, current duty
The information such as position and working experience).
Further, the data capture unit 11 can obtain the current account data institute based on the application interface
The account number of carrying, it is to be understood that the account number can be terminal belonging to the instruction current account data
The mark of the application type of application, for example, the account number can be current account when the terminal applies are enterprise's mailbox
The domain name of mail server in number email address (domain name of user name@mail server).
Data transmission unit 12, for the current account data to be sent to the account mark based on the application interface
Know the corresponding terminal applies;
It is understood that data capture unit 11 obtains what the current account data carried based on the application interface
After account number, the application interface can identify the application type of the corresponding terminal applies of the account number, in turn, data
The current account data can be sent to the account number corresponding types based on the application interface by transmission unit 12
The terminal applies.For example, the data capture unit 11 is current from server acquisition terminal applies based on the application interface
After account data, the application interface identifies that the terminal applies are enterprise according to the account number of the current account data
The current account data can be sent to this terminal applies of enterprise's mailbox by mailbox, the data transmission unit 12.
Data updating unit 13, for being carried out using former account data of the current account data to the terminal applies
It updates;
It is understood that the former account data of the available terminal applies of account data synchronizer 1, institute
Stating former account data can be the account data before terminal applies described in the account data synchronizer 1 do not update.
In the specific implementation, data updating unit 13 can be using the current account data to the former account of the terminal applies
Number is updated.Optionally, the data updating unit 13 can replace the former account using the current account data
Number realizes that the update to the former account data needs the application system in company for example, the cell-phone number of Zhang is replaced
Its cell-phone number of middle synchronized update, then each terminal applies can be taken using the current account data replacement of the carrying new cell-phone number obtained
Former account data with former cell-phone number.Optionally, the data updating unit 13, which can detecte in the current account data, is
No presence and the unmatched account data of data in the former account data, for example, the current account data and the original
When there was only telephone number difference in account data, it is believed that telephone number is unmatched account data, it is possible to use only when
Telephone number in preceding account data replaces the telephone number in former account data, other are constant.
It is understood that the unmatched account data is also possible to the account being not present in the former account data
Data (i.e. newly-increased account data), for example, needing to apply a work mailbox for new employee Zhang, the data update
The account data that this can be increased newly mailbox by unit 13 is added in former account data.It should be noted that working as the current account
When number is empty, the data updating unit 13 can carry out delete processing to the former account data, for example, Zhang is from public affairs
After department leaves office, the former account data in his all application systems in company should be all deleted.
In embodiments of the present invention, by obtaining the current account data of terminal applies from server based on application interface,
And account number entrained by current account data is obtained based on application interface, then current account data is sent out based on application interface
Terminal applies corresponding to account number are sent, are finally carried out more using former account data of the current account data to terminal applies
Newly.The corresponding terminal applies of current account data are analyzed by the unified application interface in account data synchronizer, and then right
Former account data in terminal applies is updated, and avoids the different application interface that server provides different terminal applies
It is handled respectively, the workload for reducing server improves the synchronous efficiency of account data.
Fig. 4 is referred to, for the embodiment of the invention provides the structural schematic diagrams of another account data synchronizer.Such as figure
Shown in 4, the account data synchronizer 1 of the embodiment of the present invention may include: data capture unit 11, data transmission unit
12, data updating unit 13, request transmitting unit 14 and result output unit 15.
Request transmitting unit 14 applies the corresponding account number of logging request for obtaining based on application interface, and by institute
It states and is sent to server using logging request;
In the specific implementation, request transmitting unit 14 can be obtained based on application interface applies the corresponding account mark of logging request
Know, and the application logging request is sent to server, it is to be understood that it is same that the application interface can be the account
The unified software interface encapsulation package in equipment 1 is walked, the request that can be registration terminal application using logging request can be taken
Account number with the terminal applies to be logged in, the account number can indicate the application class for the terminal applies to be logged in
Type.
It is understood that the server can return after receiving the application logging request according to the account number
The corresponding logon rights data of the application logging request are returned, the logon rights data can indicate that the account data is synchronous
Whether equipment 1, which has permission, logs in terminal applies indicated by the account number.
Data capture unit 11, for the current account data of terminal applies to be obtained from server based on application interface, and
Account number entrained by the current account data is obtained based on the application interface;
In the specific implementation, when the logon rights are statistics indicate that the account data synchrodata can log in the account
When identifying the terminal applies of instruction, data capture unit 11 is specifically used for the terminal according to the logon rights data entry and answers
With, and account synchronization request is sent to by the server based on the application interface.
It is understood that the server can be corresponding according to the account synchronization request return account number
The current account data of terminal applies, the current account data can with described in user's registration when terminal applies account information and
User information (i.e. information set by the account of user's needle oneself) etc., for example, when the terminal applies are enterprise's mailbox, institute
Stating current account data and can be the email address of user and subscriber identity information (such as can be, other use in addition to mailbox
The information such as family contact method, current position and working experience).It is understood that the current account that the server returns
The account number account number corresponding with the login application request that number carries is consistent.
Further, the data capture unit 11 can obtain the current account data institute based on the application interface
The account number of carrying, it is to be understood that the account number can be terminal belonging to the instruction current account data
The mark of the application type of application, for example, the account number can be current account when the terminal applies are enterprise's mailbox
The domain name of mail server in number email address (domain name of user name@mail server).
Data transmission unit 12, for the current account data to be sent to the account mark based on the application interface
Know the corresponding terminal applies;
It is taken it is understood that the data capture unit 11 is based on the application interface acquisition current account data
After the account number of band, the application interface can identify the application type of the corresponding terminal applies of the account number, in turn,
The current account data can be sent to the account number based on the application interface and correspond to class by data transmission unit 12
The terminal applies of type.For example, the data capture unit 11, which is based on the application interface, obtains terminal applies from server
After current account data, the application interface identifies that the terminal applies are according to the account number of the current account data
The current account data can be sent to this terminal applies of enterprise's mailbox by enterprise's mailbox, the data transmission unit 12.
Data updating unit 13, for being carried out using former account data of the current account data to the terminal applies
It updates;
In the specific implementation, data updating unit 13 can be using the current account data to the former account of the terminal applies
Number is updated.
Please also refer to Fig. 5, for the embodiment of the invention provides the structural schematic diagrams of data updating unit.As shown in figure 5,
The data updating unit 13 may include:
Data acquisition subelement 131, for obtaining the former account data of the terminal applies;
In the specific implementation, the former account data of the available terminal applies of data acquisition subelement 131, the original account
Number can be the account data before terminal applies described in the account data synchronizer do not update.
Data update subelement 132, for exist in the current account data and the former account data in number
When according to unmatched account data, the former account data is updated using the unmatched account data;
It whether there is in the current account data it is understood that the account data synchronizer 1 can detecte
With the unmatched account data of data in the former account data, when existing in the current account data and the former account
When the unmatched account data of data in data, data, which update subelement 132, can use the unmatched account data
The former account data is updated, for example, only telephone number in the current account data and the former account data
When different, it is believed that telephone number is unmatched account data, it is possible to use only the telephone number in current account data
Instead of the telephone number in former account data, other are constant.
It is understood that the unmatched account data is also possible to the account being not present in the former account data
Data (i.e. newly-increased account data), for example, needing to apply a work mailbox for new employee Zhang, the data update
The account data that this can be increased newly mailbox by subelement 132 is added in former account data.It should be noted that when described current
When account data is empty, the data, which update subelement 132, can carry out delete processing to the former account data, for example,
After certain subsidiary company is left office, the former account data in his all application systems in company should be all deleted.
Optionally, the data update subelement 132 can replace the former account number using the current account data
The factually existing update to the former account data needs same in the application system of company for example, the cell-phone number of Zhang is replaced
Step updates its cell-phone number, then each terminal applies can be carried former using the current account data replacement of the carrying new cell-phone number obtained
The former account data of cell-phone number.
As a result output unit 15, for detecting the update of the former account data based on the application interface as a result, and will
The update result is back to server;
In the specific implementation, result output unit 15 can detect the update of the former account data based on the application interface
As a result, for example, whether the result output unit 15 can be had updated based on the application interface detection former account data,
Also it can detecte the account data being updated in the former account data.
Further, the update result can be back to server, the server by the result output unit 15
Account data synchronized result can be notified into user after receiving the update result.
In embodiments of the present invention, it by returned data update result to server, and then notifies user, is account data
Synchronize the application effect for increasing and notifying immediately.
In embodiments of the present invention, by obtaining the current account data of terminal applies from server based on application interface,
And account number entrained by current account data is obtained based on application interface, then current account data is sent out based on application interface
Terminal applies corresponding to account number are sent, are finally carried out more using former account data of the current account data to terminal applies
Newly.The corresponding terminal applies of current account data are analyzed by the unified application interface in account data synchronizer, and then right
Former account data in terminal applies is updated, and avoids the different application interface that server provides different terminal applies
It is handled respectively, the workload for reducing server improves the synchronous efficiency of account data;It is updated and is tied by returned data
Fruit notifies user to server, synchronizes the application effect for increasing and notifying immediately for account data.
The embodiment of the invention also provides a kind of computer storage medium, the computer storage medium can store more
Item instruction, described instruction are suitable for being loaded by processor and executing the method and step such as above-mentioned Fig. 1 and embodiment illustrated in fig. 2, specifically
Implementation procedure may refer to illustrating for Fig. 1 and embodiment illustrated in fig. 2, herein without repeating.
Fig. 6 is referred to, for the embodiment of the invention provides a kind of structural schematic diagrams of terminal.As shown in fig. 6, the service
Device 1000 may include: at least one processor 1001, such as CPU, at least one network interface 1004, user interface 1003,
Memory 1005, at least one communication bus 1002.Wherein, communication bus 1002 is logical for realizing the connection between these components
Letter.Wherein, user interface 1003 may include display screen (Display), keyboard (Keyboard), and optional user interface 1003 is also
It may include standard wireline interface and wireless interface.Network interface 1004 optionally may include the wireline interface, wireless of standard
Interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to non-labile memory (non-
Volatile memory), a for example, at least magnetic disk storage.Memory 1005 optionally can also be that at least one is located at
Storage device far from aforementioned processor 1001.As shown in fig. 6, as can in a kind of memory 1005 of computer storage medium
To include operating system, network communication module, Subscriber Interface Module SIM and account data synchronization applications.
In terminal 1000 shown in Fig. 6, user interface 1003 is mainly used for providing the interface of input for user, obtains and uses
The data of family input;Network interface 1004 is used to carry out data communication with user terminal;And processor 1001 can be used for calling
The logging state stored in memory 1005 determines application program, and specifically executes following operation:
The current account data of terminal applies is obtained from server based on application interface, and is obtained based on the application interface
Account number entrained by the current account data;
The current account data the corresponding terminal of the account number is sent to based on the application interface to answer
With;
It is updated using former account data of the current account data to the terminal applies.
In one embodiment, the processor 1001 obtains terminal applies from server based on application interface in execution
Current account data, and before obtaining account number entrained by the current account data based on the application interface, also use
The operation below executing:
It is obtained based on application interface and applies the corresponding account number of logging request, and the application logging request is sent to
Server, so that the server returns to the corresponding logon rights data of the application logging request according to the account number.
In one embodiment, the processor 1001 obtains terminal applies from server based on application interface in execution
It is specific to execute following operation when current account data:
Account synchronization request is sent according to the logon rights data entry terminal applies, and based on the application interface
To the server, so that the server returns to the corresponding terminal applies of the account number according to the account synchronization request
Current account data.
In one embodiment, the processor 1001 is being executed using the current account data to the terminal applies
Former account data when being updated, it is specific to execute following operation:
Obtain the former account data of the terminal applies;
When there is account data unmatched with data in the former account data in the current account data, adopt
The former account data is updated with the unmatched account data.
In one embodiment, the processor 1001 is being executed using the current account data to the terminal applies
Former account data be updated after, be also used to execute following operation:
The update of the former account data is detected as a result, and the update result is back to clothes based on the application interface
Business device.
In embodiments of the present invention, by obtaining the current account data of terminal applies from server based on application interface,
And account number entrained by current account data is obtained based on application interface, then current account data is sent out based on application interface
Terminal applies corresponding to account number are sent, are finally carried out more using former account data of the current account data to terminal applies
Newly.The corresponding terminal applies of current account data are analyzed by the unified application interface in account data synchronizer, and then right
Former account data in terminal applies is updated, and avoids the different application interface that server provides different terminal applies
It is handled respectively, the workload for reducing server improves the synchronous efficiency of account data;It is updated and is tied by returned data
Fruit notifies user to server, synchronizes the application effect for increasing and notifying immediately for account data.
It should be noted that being stated that a series of actions for simple description for the above each method embodiment
Combination, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, and certain steps can be with
It is serially or simultaneously carried out using other.Secondly, those skilled in the art should understand that, embodiment described in this description belongs to
In preferred embodiment, related operation and unit are not necessarily essential to the invention.And in the above-described embodiments, to each
The description of a embodiment all emphasizes particularly on different fields, and does not have the part being described in detail in some embodiment, may refer to the correlation of other embodiments
Description.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.