CN109391658B - Account data synchronization method and equipment, storage medium and terminal thereof - Google Patents

Account data synchronization method and equipment, storage medium and terminal thereof Download PDF

Info

Publication number
CN109391658B
CN109391658B CN201710678114.5A CN201710678114A CN109391658B CN 109391658 B CN109391658 B CN 109391658B CN 201710678114 A CN201710678114 A CN 201710678114A CN 109391658 B CN109391658 B CN 109391658B
Authority
CN
China
Prior art keywords
account data
data
application
account
current
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.)
Active
Application number
CN201710678114.5A
Other languages
Chinese (zh)
Other versions
CN109391658A (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.)
Shenzhen Bamboocloud Technology Co ltd
Original Assignee
Shenzhen Bamboocloud Technology 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 Shenzhen Bamboocloud Technology Co ltd filed Critical Shenzhen Bamboocloud Technology Co ltd
Priority to CN201710678114.5A priority Critical patent/CN109391658B/en
Publication of CN109391658A publication Critical patent/CN109391658A/en
Application granted granted Critical
Publication of CN109391658B publication Critical patent/CN109391658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/10Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network
    • H04L67/1095Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network for supporting replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes or user terminals or syncML
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication

Abstract

The embodiment of the invention discloses an account data synchronization method, equipment, a storage medium and a terminal thereof, wherein the method comprises the following steps: acquiring current account data of terminal application from a server based on an application interface, and acquiring an account identifier carried by the current account data based on the application interface; sending the current account data to the terminal application corresponding to the account identification based on the application interface; and updating the primary account data of the terminal application by adopting the current account data. By adopting the method and the device, the terminal application corresponding to the current account data is analyzed through the uniform application interface in the equipment, so that the workload of the server side can be reduced, and the efficiency of account data synchronization can be improved.

Description

Account data synchronization method and equipment, storage medium and terminal thereof
Technical Field
The invention relates to the technical field of computers, in particular to an account data synchronization method, equipment, a storage medium and a terminal.
Background
With the rapid development of the internet technology and the improvement of the enterprise informatization level, various enterprises also pay more and more attention to the informatization management of enterprise employees in order to reduce the enterprise cost and enhance the market competitiveness, and for an enterprise with more internal application systems, the account data of the employees in each application system is uniformly managed, so that the enterprise information safety can be effectively guaranteed. In the prior art, each application system provides its own application interface for the server to acquire the latest account data in the server, so as to realize unified management of the account data.
Disclosure of Invention
The embodiment of the invention provides an account data synchronization method and equipment, a storage medium and a terminal thereof.
A first aspect of an embodiment of the present invention provides an account data synchronization method, which may include:
acquiring current account data of terminal application from a server based on an application interface, and acquiring an account identifier carried by the current account data based on the application interface;
sending the current account data to the terminal application corresponding to the account identification based on the application interface;
and updating the primary account data of the terminal application by adopting the current account data.
In a possible design, before the obtaining, based on an application interface, current account data of a terminal application from a server and obtaining, based on the application interface, an account identifier carried by the current account data, the method further includes:
the method comprises the steps of obtaining an account identification corresponding to an application login request based on an application interface, and sending the application login request to a server so that the server returns login authority data corresponding to the application login request according to the account identification.
In one possible design, the obtaining, from the server, current account data of the terminal application based on the application interface includes:
and logging in the terminal application according to the login permission data, and sending an account number synchronization request to the server based on the application interface so that the server returns the current account number data of the terminal application corresponding to the account number identification according to the account number synchronization request.
In a possible design, the updating the primary account data of the terminal application by using the current account data includes:
acquiring primary account data of the terminal application;
and when account data which is not matched with the data in the primary account data exists in the current account data, updating the primary account data by adopting the unmatched account data.
In a possible design, after the updating the primary account data of the terminal application by using the current account data, the method further includes:
and detecting an updating result of the primary account data based on the application interface, and returning the updating result to the server.
A second aspect of the present invention provides an account data synchronization device, which may include:
the data acquisition unit is used for acquiring current account data of terminal application from a server based on an application interface and acquiring account identification carried by the current account data based on the application interface;
the data transmission unit is used for transmitting the current account data to the terminal application corresponding to the account identifier based on the application interface;
and the data updating unit is used for updating the primary account data of the terminal application by adopting the current account data.
In one possible design, further comprising:
the request sending unit is used for obtaining an account identifier corresponding to an application login request based on an application interface and sending the application login request to a server so that the server returns login authority data corresponding to the application login request according to the account identifier.
In one possible design, the data acquisition unit is specifically configured to,
and logging in the terminal application according to the login permission data, and sending an account number synchronization request to the server based on the application interface so that the server returns the current account number data of the terminal application corresponding to the account number identification according to the account number synchronization request.
In one possible design, the data update unit includes:
the data acquisition subunit is used for acquiring the primary account data of the terminal application;
and the data updating subunit is used for updating the primary account data by adopting the unmatched account data when account data unmatched with the data in the primary account data exists in the current account data.
In one possible design, further comprising:
and the result output unit is used for detecting the updating result of the primary account data based on the application interface and returning the updating result to the server.
A third aspect of embodiments of the present invention provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the following steps:
acquiring current account data of terminal application from a server based on an application interface, and acquiring an account identifier carried by the current account data based on the application interface;
sending the current account data to the terminal application corresponding to the account identification based on the application interface;
and updating the primary account data of the terminal application by adopting the current account data.
A fourth aspect of an embodiment of the present invention provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the steps of:
acquiring current account data of terminal application from a server based on an application interface, and acquiring an account identifier carried by the current account data based on the application interface;
sending the current account data to the terminal application corresponding to the account identification based on the application interface;
and updating the primary account data of the terminal application by adopting the current account data.
In the embodiment of the invention, the current account data of the terminal application is acquired from the server based on the application interface, the account identification carried by the current account data is acquired based on the application interface, the current account data is sent to the terminal application corresponding to the account identification based on the application interface, and finally the original account data of the terminal application is updated by adopting the current account data. The terminal application corresponding to the current account data is analyzed through the uniform application interface in the account data synchronization equipment, and then the original account data in the terminal application is updated, so that the server is prevented from respectively processing different application interfaces provided by different terminal applications, the workload of the server is reduced, and the efficiency of account data synchronization is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an account data synchronization method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another account data synchronization method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an account data synchronization device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another account data synchronization device according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a data update unit according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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 account data synchronization method provided by the embodiment of the invention can be applied to a scene of synchronizing account data of different application systems in multiple application systems of an enterprise, for example: the account data synchronization equipment acquires current account data of terminal application from a server based on an application interface, acquires an account identifier carried by the current account data based on the application interface, sends the current account data to the terminal application corresponding to the account identifier based on the application interface, and finally updates original account data of the terminal application by adopting the current account data. The terminal application corresponding to the current account data is analyzed through the uniform application interface in the account data synchronization equipment, and then the original account data in the terminal application is updated, so that the server is prevented from respectively processing different application interfaces provided by different terminal applications, the workload of the server is reduced, and the efficiency of account data synchronization is improved.
The account data synchronization device related to the embodiment of the invention can also be a computer, a smart phone, a Mobile Internet Device (MID) and other terminal devices with multiple application systems.
The account data synchronization method provided by the embodiment of the invention will be described in detail below with reference to fig. 1 and fig. 2.
Referring to fig. 1, a schematic flow chart of an account data synchronization method according to an embodiment of the present invention is provided. As shown in fig. 1, the method of the embodiment of the present invention may include the following steps S101 to S103.
S101, acquiring current account data of terminal application from a server based on an application interface, and acquiring account identification carried by the current account data based on the application interface;
specifically, the account data synchronization device may obtain current account data of the terminal application from the server based on an application interface, where it may be understood that the application interface may be a unified software interface encapsulation package in the account data synchronization device, and the current account data may be account information and user information (i.e., information set by a user for an account of the user) when the user registers the terminal application, for example, when the terminal application is an enterprise mailbox, the current account data may be a mailbox address and user identity information of the user (for example, information such as a contact mode of the user other than the mailbox, a current position, and work experience).
Further, the account data synchronization device may obtain an account identifier carried by the current account data based on the application interface, where it may be understood that the account identifier may be an identifier indicating an application type of a terminal application to which the current account data belongs, for example, when the terminal application is an enterprise mailbox, the account identifier may be a domain name of a mail server in a current account data mailbox address (a domain name of a username @ mail server).
S102, sending the current account data to the terminal application corresponding to the account identification based on the application interface;
it can be understood that, after the account data synchronization device obtains the account identifier carried by the current account data based on the application interface, the application interface may identify the application type of the terminal application corresponding to the account identifier, and then, the account data synchronization device may send the current account data to the terminal application of the type corresponding to the account identifier based on the application interface. For example, after the account data synchronization device obtains current account data of a terminal application from a server based on the application interface, the application interface identifies that the terminal application is an enterprise mailbox according to an account identifier of the current account data, and the account data synchronization device may send the current account data to the terminal application, which is an enterprise mailbox.
S103, updating the primary account data of the terminal application by adopting the current account data;
it can be understood that the account data synchronization device may obtain primary account data of the terminal application, where the primary account data may be account data of the terminal application in the account data synchronization device before the terminal application is updated.
Specifically, the account data synchronization device may update the primary account data of the terminal application by using the current account data. Optionally, the account data synchronization device may replace the original account data with the current account data to update the original account data, for example, when a certain mobile phone number is replaced, and the mobile phone number of the certain mobile phone number needs to be updated in an application system of a company synchronously, each terminal application may replace the original account data carrying the original mobile phone number with the obtained current account data carrying the new mobile phone number. Optionally, the account data synchronization device may detect whether account data that is not matched with data in the original account data exists in the current account data, for example, when only a phone number in the current account data is different from a phone number in the original account data, it may be considered that the phone number is the unmatched account data, and only the phone number in the current account data may be used to replace the phone number in the original account data, and the others are not changed.
It can be understood that the account data that does not match may also be account data that does not exist in the original account data (i.e., newly added account data), for example, for a new employee who needs to apply for a mailbox for work, the account data synchronization device may add the account data of the newly added mailbox to the original account data. It should be noted that, when the current account data is empty, the account data synchronization device may delete the primary account data, for example, after a certain slave company leaves, the primary account data in all application systems of the slave company should be deleted.
In the embodiment of the invention, the current account data of the terminal application is acquired from the server based on the application interface, the account identification carried by the current account data is acquired based on the application interface, the current account data is sent to the terminal application corresponding to the account identification based on the application interface, and finally the original account data of the terminal application is updated by adopting the current account data. The terminal application corresponding to the current account data is analyzed through the uniform application interface in the account data synchronization equipment, and then the original account data in the terminal application is updated, so that the server is prevented from respectively processing different application interfaces provided by different terminal applications, the workload of the server is reduced, and the efficiency of account data synchronization is improved.
Referring to fig. 2, a schematic flow chart of another account data synchronization method according to an embodiment of the present invention is provided. As shown in fig. 2, the method of the embodiment of the present invention may include the following steps S201 to S207.
S201, acquiring an account identifier corresponding to an application login request based on an application interface, and sending the application login request to a server;
specifically, the account data synchronization device may obtain an account identifier corresponding to the application login request based on an application interface, and send the application login request to the server, where it is understood that the application interface may be a uniform software interface encapsulation package in the account data synchronization device, the application login request may be a request for logging in the terminal application, and may carry the account identifier of the terminal application to be logged in, and the account identifier may indicate an application type of the terminal application to be logged in.
It can be understood that, after receiving the application login request, the server may return login permission data corresponding to the application login request according to the account id, where the login permission data may indicate whether the account data synchronization device has permission to log in the terminal application indicated by the account id.
S202, logging in a terminal application according to the login authority data, and sending an account number synchronization request to the server based on the application interface;
specifically, when the login permission data indicates that the account data synchronization data can log in the terminal application indicated by the account identifier, the account data synchronization device can log in the terminal application according to the login permission data.
Further, after logging in the terminal application, the account data synchronization device may send an account synchronization request to the server based on the application interface, and it may be understood that the server may return current account data of the terminal application corresponding to the account identifier according to the account synchronization request, where the current account data may be account information and user information (i.e., information set by the user with respect to an account of the user) when the user registers the terminal application, for example, when the terminal application is an enterprise mailbox, the current account data may be a mailbox address and user identity information of the user (e.g., information such as contact information of other users outside the mailbox, current position and work experience). It can be understood that the account id carried by the current account data returned by the server is consistent with the account id corresponding to the login application request.
S203, acquiring an account identifier carried by the current account data based on the application interface;
specifically, the account data synchronization device may obtain an account identifier carried by the current account data based on the application interface, where it may be understood that the account identifier may be an identifier indicating an application type of a terminal application to which the current account data belongs, for example, when the terminal application is an enterprise mailbox, the account identifier may be a domain name of a mail server in a current account data mailbox address (a domain name of a username @ mail server).
S204, based on the application interface, sending the current account data to the terminal application corresponding to the account identifier;
it can be understood that, after the account data synchronization device obtains the account identifier carried by the current account data based on the application interface, the application interface may identify the application type of the terminal application corresponding to the account identifier, and then, the account data synchronization device may send the current account data to the terminal application of the type corresponding to the account identifier based on the application interface. For example, after the account data synchronization device obtains current account data of a terminal application from a server based on the application interface, the application interface identifies that the terminal application is an enterprise mailbox according to an account identifier of the current account data, and the account data synchronization device may send the current account data to the terminal application, which is an enterprise mailbox.
S205, acquiring the primary account data of the terminal application;
specifically, the account data synchronization device may obtain primary account data of the terminal application, where the primary account data may be account data of the terminal application in the account data synchronization device before the terminal application is updated.
S206, when account data which is not matched with the data in the primary account data exists in the current account data, updating the primary account data by using the unmatched account data;
it can be understood that the account data synchronization device may detect whether account data that is not matched with data in the original account data exists in the current account data, and when account data that is not matched with data in the original account data exists in the current account data, the account data synchronization device may update the original account data with the unmatched account data, for example, when only a phone number is different in the current account data and the original account data, it may be considered that the phone number is unmatched account data, and only a phone number in the current account data may be used to replace a phone number in the original account data, and the others are not changed.
It can be understood that the account data that does not match may also be account data that does not exist in the original account data (i.e., newly added account data), for example, for a new employee who needs to apply for a mailbox for work, the account data synchronization device may add the account data of the newly added mailbox to the original account data. It should be noted that, when the current account data is empty, the account data synchronization device may delete the primary account data, for example, after a certain slave company leaves, the primary account data in all application systems of the slave company should be deleted.
Optionally, the account data synchronization device may replace the original account data with the current account data to update the original account data, for example, when a certain mobile phone number is replaced, and the mobile phone number of the certain mobile phone number needs to be updated in an application system of a company synchronously, each terminal application may replace the original account data carrying the original mobile phone number with the obtained current account data carrying the new mobile phone number.
S207, detecting an updating result of the primary account data based on the application interface, and returning the updating result to a server;
specifically, the account data synchronization device may detect an update result of the primary account data based on the application interface, for example, the account data synchronization device may detect whether the primary account data is updated based on the application interface, or may detect updated account data in the primary account data.
Further, the account data synchronization device may return the update result to the server, and the server may notify the user of the account data synchronization result after receiving the update result.
In the embodiment of the invention, the user is notified by returning the data updating result to the server, so that the application effect of instant notification is increased for account data synchronization.
In the embodiment of the invention, the current account data of the terminal application is acquired from the server based on the application interface, the account identification carried by the current account data is acquired based on the application interface, the current account data is sent to the terminal application corresponding to the account identification based on the application interface, and finally the original account data of the terminal application is updated by adopting the current account data. The terminal application corresponding to the current account data is analyzed through the uniform application interface in the account data synchronization equipment, so that the original account data in the terminal application is updated, the server is prevented from respectively processing different application interfaces provided by different terminal applications, the workload of the server is reduced, and the efficiency of account data synchronization is improved; and the user is notified by returning the data updating result to the server, so that the application effect of instant notification is increased for account data synchronization.
The account data synchronization device provided by the embodiment of the invention will be described in detail below with reference to fig. 3 to 5. It should be noted that the apparatuses shown in fig. 3-5 are used for executing the method according to the embodiment of the present invention shown in fig. 1 and 2, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the technology are not disclosed, please refer to the embodiment of the present invention shown in fig. 1 and 2.
Fig. 3 is a schematic structural diagram of an account data synchronization device according to an embodiment of the present invention. As shown in fig. 3, the account data synchronization device 1 according to the embodiment of the present invention may include: a data acquisition unit 11, a data transmission unit 12 and a data update unit 13.
The data acquisition unit 11 is configured to acquire current account data of a terminal application from a server based on an application interface, and acquire an account identifier carried by the current account data based on the application interface;
in a specific implementation, the data obtaining unit 11 may obtain current account data of a terminal application from a server based on an application interface, and it is understood that the application interface may be a unified software interface package in the account synchronization device 1, and the current account data may be account information and user information (i.e., information set by a user for an account of the user) when the user registers the terminal application, for example, when the terminal application is an enterprise mailbox, the current account data may be a mailbox address of the user and user identity information (e.g., information such as a contact way of the user other than the mailbox, a current position, and work experience).
Further, the data obtaining unit 11 may obtain an account id carried by the current account data based on the application interface, and it may be understood that the account id may be an id indicating an application type of a terminal application to which the current account data belongs, for example, when the terminal application is an enterprise mailbox, the account id may be a domain name of a mail server in a current account data mailbox address (a domain name of a username @ mail server).
The data transmission unit 12 is configured to send the current account data to the terminal application corresponding to the account identifier based on the application interface;
it can be understood that, after the data obtaining unit 11 obtains the account identifier carried by the current account data based on the application interface, the application interface may identify the application type of the terminal application corresponding to the account identifier, and further, the data transmission unit 12 may send the current account data to the terminal application of the type corresponding to the account identifier based on the application interface. For example, after the data obtaining unit 11 obtains the current account data of the terminal application from the server based on the application interface, the application interface identifies that the terminal application is an enterprise mailbox according to the account identifier of the current account data, and the data transmission unit 12 may send the current account data to the terminal application, which is an enterprise mailbox.
A data updating unit 13, configured to update the primary account data of the terminal application with the current account data;
it can be understood that the account data synchronization device 1 may obtain primary account data of the terminal application, where the primary account data may be account data of the terminal application in the account data synchronization device 1 before the terminal application is updated.
In a specific implementation, the data updating unit 13 may update the primary account data of the terminal application by using the current account data. Optionally, the data updating unit 13 may use the current account data to replace the original account data to update the original account data, for example, if a certain mobile phone number is replaced, and the mobile phone number of the certain mobile phone number needs to be updated synchronously in an application system of a company, each terminal application may use the obtained current account data carrying the new mobile phone number to replace the original account data carrying the original mobile phone number. Optionally, the data updating unit 13 may detect whether there is account data that does not match data in the original account data in the current account data, for example, if only phone numbers in the current account data and the original account data are different, it may be considered that phone numbers are unmatched account data, and only the phone number in the current account data may be used to replace the phone number in the original account data, and the others are not changed.
It can be understood that the unmatched account data may also be account data that does not exist in the original account data (i.e., newly added account data), for example, for a new employee who needs to apply for a mailbox for work, the data updating unit 13 may add the account data of the newly added mailbox to the original account data. It should be noted that, when the current account data is empty, the data updating unit 13 may perform deletion processing on the primary account data, for example, after a certain slave company leaves, the primary account data in all application systems of the slave company should be deleted.
In the embodiment of the invention, the current account data of the terminal application is acquired from the server based on the application interface, the account identification carried by the current account data is acquired based on the application interface, the current account data is sent to the terminal application corresponding to the account identification based on the application interface, and finally the original account data of the terminal application is updated by adopting the current account data. The terminal application corresponding to the current account data is analyzed through the uniform application interface in the account data synchronization equipment, and then the original account data in the terminal application is updated, so that the server is prevented from respectively processing different application interfaces provided by different terminal applications, the workload of the server is reduced, and the efficiency of account data synchronization is improved.
Referring to fig. 4, a schematic structural diagram of another account data synchronization device is provided in the embodiment of the present invention. As shown in fig. 4, the account data synchronization device 1 according to the embodiment of the present invention may include: a data acquisition unit 11, a data transmission unit 12, a data update unit 13, a request transmission unit 14, and a result output unit 15.
A request sending unit 14, configured to obtain an account identifier corresponding to an application login request based on an application interface, and send the application login request to a server;
in a specific implementation, the request sending unit 14 may obtain an account id corresponding to the application login request based on an application interface, and send the application login request to the server, where it is understood that the application interface may be a package of a unified software interface in the account synchronization device 1, the application login request may be a request for logging in the terminal application, and may carry the account id of the terminal application to be logged in, and the account id may indicate an application type of the terminal application to be logged in.
It can be understood that, after receiving the application login request, the server may return login permission data corresponding to the application login request according to the account id, where the login permission data may indicate whether the account data synchronization device 1 has permission to log in the terminal application indicated by the account id.
The data acquisition unit 11 is configured to acquire current account data of a terminal application from a server based on an application interface, and acquire an account identifier carried by the current account data based on the application interface;
in a specific implementation, when the login permission data indicates that the account data synchronization data can log in the terminal application indicated by the account identifier, the data obtaining unit 11 is specifically configured to log in the terminal application according to the login permission data, and send an account synchronization request to the server based on the application interface.
It can be understood that the server may return, according to the account synchronization request, current account data of the terminal application corresponding to the account identifier, where the current account data may be account information and user information (i.e., information set by the user for the account) when the user registers the terminal application, for example, when the terminal application is an enterprise mailbox, the current account data may be a mailbox address and user identity information of the user (for example, information such as a contact way of the user other than the mailbox, a current position, and work experience). It can be understood that the account id carried by the current account data returned by the server is consistent with the account id corresponding to the login application request.
Further, the data obtaining unit 11 may obtain an account id carried by the current account data based on the application interface, and it may be understood that the account id may be an id indicating an application type of a terminal application to which the current account data belongs, for example, when the terminal application is an enterprise mailbox, the account id may be a domain name of a mail server in a current account data mailbox address (a domain name of a username @ mail server).
The data transmission unit 12 is configured to send the current account data to the terminal application corresponding to the account identifier based on the application interface;
it can be understood that, after the data obtaining unit 11 obtains the account identifier carried by the current account data based on the application interface, the application interface may identify the application type of the terminal application corresponding to the account identifier, and further, the data transmission unit 12 may send the current account data to the terminal application of the type corresponding to the account identifier based on the application interface. For example, after the data obtaining unit 11 obtains the current account data of the terminal application from the server based on the application interface, the application interface identifies that the terminal application is an enterprise mailbox according to the account identifier of the current account data, and the data transmission unit 12 may send the current account data to the terminal application, which is an enterprise mailbox.
A data updating unit 13, configured to update the primary account data of the terminal application with the current account data;
in a specific implementation, the data updating unit 13 may update the primary account data of the terminal application by using the current account data.
Referring to fig. 5, a schematic structural diagram of a data update unit according to an embodiment of the present invention is provided. As shown in fig. 5, the data updating unit 13 may include:
a data obtaining subunit 131, configured to obtain primary account data of the terminal application;
in a specific implementation, the data obtaining subunit 131 may obtain primary account data of the terminal application, where the primary account data may be account data of the account data synchronization device before the terminal application is updated.
A data updating subunit 132, configured to, when account data that does not match data in the primary account data exists in the current account data, update the primary account data with the unmatched account data;
it can be understood that the account data synchronization device 1 may detect whether account data that does not match data in the primary account data exists in the current account data, and when account data that does not match data in the primary account data exists in the current account data, the data updating subunit 132 may update the primary account data with the unmatched account data, for example, when only a phone number is different in the current account data and the primary account data, it may be considered that the phone number is unmatched account data, and only a phone number in the current account data may be used to replace a phone number in the primary account data, and the others are not changed.
It is to be understood that the unmatched account data may also be account data that does not exist in the original account data (i.e. newly added account data), for example, for a new employee who needs to apply for a mailbox for work, the data updating subunit 132 may add the account data of the newly added mailbox to the original account data. It should be noted that, when the current account data is empty, the data updating subunit 132 may perform deletion processing on the primary account data, for example, after a certain slave company leaves, the primary account data in all application systems of the company should be deleted.
Optionally, the data updating subunit 132 may use the current account data to replace the original account data to update the original account data, for example, if a certain mobile phone number is replaced, and the mobile phone number of the certain mobile phone number needs to be updated in an application system of a company synchronously, each terminal application may use the obtained current account data carrying the new mobile phone number to replace the original account data carrying the original mobile phone number.
A result output unit 15, configured to detect an update result of the primary account data based on the application interface, and return the update result to the server;
in a specific implementation, the result output unit 15 may detect an update result of the primary account data based on the application interface, for example, the result output unit 15 may detect whether the primary account data is updated based on the application interface, or may detect updated account data in the primary account data.
Further, the result output unit 15 may return the update result to the server, and the server may notify the user of the account data synchronization result after receiving the update result.
In the embodiment of the invention, the user is notified by returning the data updating result to the server, so that the application effect of instant notification is increased for account data synchronization.
In the embodiment of the invention, the current account data of the terminal application is acquired from the server based on the application interface, the account identification carried by the current account data is acquired based on the application interface, the current account data is sent to the terminal application corresponding to the account identification based on the application interface, and finally the original account data of the terminal application is updated by adopting the current account data. The terminal application corresponding to the current account data is analyzed through the uniform application interface in the account data synchronization equipment, so that the original account data in the terminal application is updated, the server is prevented from respectively processing different application interfaces provided by different terminal applications, the workload of the server is reduced, and the efficiency of account data synchronization is improved; and the user is notified by returning the data updating result to the server, so that the application effect of instant notification is increased for account data synchronization.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 1 and fig. 2, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 and fig. 2, which are not described herein again.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 6, the server 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 6, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an account data synchronization application program.
In the terminal 1000 shown in fig. 6, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the network interface 1004 is used for data communication with the user terminal; the processor 1001 may be configured to call the login status determination application stored in the memory 1005, and specifically perform the following operations:
acquiring current account data of terminal application from a server based on an application interface, and acquiring an account identifier carried by the current account data based on the application interface;
sending the current account data to the terminal application corresponding to the account identification based on the application interface;
and updating the primary account data of the terminal application by adopting the current account data.
In an embodiment, before performing the steps of acquiring current account data of a terminal application from a server based on an application interface, and acquiring an account identifier carried by the current account data based on the application interface, the processor 1001 is further configured to perform the following operations:
the method comprises the steps of obtaining an account identification corresponding to an application login request based on an application interface, and sending the application login request to a server so that the server returns login authority data corresponding to the application login request according to the account identification.
In an embodiment, when the processor 1001 acquires current account data of a terminal application from a server based on an application interface, the following operations are specifically performed:
and logging in the terminal application according to the login permission data, and sending an account number synchronization request to the server based on the application interface so that the server returns the current account number data of the terminal application corresponding to the account number identification according to the account number synchronization request.
In an embodiment, when the processor 1001 updates the primary account data of the terminal application by using the current account data, the following operation is specifically performed:
acquiring primary account data of the terminal application;
and when account data which is not matched with the data in the primary account data exists in the current account data, updating the primary account data by adopting the unmatched account data.
In one embodiment, after performing the updating of the primary account data of the terminal application with the current account data, the processor 1001 is further configured to:
and detecting an updating result of the primary account data based on the application interface, and returning the updating result to the server.
In the embodiment of the invention, the current account data of the terminal application is acquired from the server based on the application interface, the account identification carried by the current account data is acquired based on the application interface, the current account data is sent to the terminal application corresponding to the account identification based on the application interface, and finally the original account data of the terminal application is updated by adopting the current account data. The terminal application corresponding to the current account data is analyzed through the uniform application interface in the account data synchronization equipment, so that the original account data in the terminal application is updated, the server is prevented from respectively processing different application interfaces provided by different terminal applications, the workload of the server is reduced, and the efficiency of account data synchronization is improved; and the user is notified by returning the data updating result to the server, so that the application effect of instant notification is increased for account data synchronization.
It should be noted that, for the sake of simplicity, the above method embodiments are described as a series of acts, but those skilled in the art should understand that the present invention is not limited by the described order of acts, and some steps may be performed in other orders or simultaneously. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no single feature or element is essential to the invention. In the above embodiments, the descriptions of the embodiments have respective emphasis, and reference may be made to related descriptions of other embodiments for parts that are not described in detail in a certain embodiment.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (12)

1. An account data synchronization method is characterized by comprising the following steps:
acquiring current account data of a terminal application from a server based on an application interface, and acquiring an account identifier carried by the current account data based on the application interface, wherein the account identifier is used for indicating an identifier of an application type of the terminal application to which the current account data belongs;
sending the current account data to the terminal application corresponding to the account identification based on the application interface;
and updating the primary account data of the terminal application by adopting the current account data.
2. The method of claim 1, wherein before the obtaining current account data of the terminal application from the server based on the application interface and obtaining the account id carried by the current account data based on the application interface, the method further comprises:
the method comprises the steps of obtaining an account identification corresponding to an application login request based on an application interface, and sending the application login request to a server so that the server returns login authority data corresponding to the application login request according to the account identification.
3. The method of claim 2, wherein the obtaining current account data of the terminal application from the server based on the application interface comprises:
and logging in the terminal application according to the login permission data, and sending an account number synchronization request to the server based on the application interface so that the server returns the current account number data of the terminal application corresponding to the account number identification according to the account number synchronization request.
4. The method of claim 1, wherein the updating the primary account data of the terminal application with the current account data comprises:
acquiring primary account data of the terminal application;
and when account data which is not matched with the data in the primary account data exists in the current account data, updating the primary account data by adopting the unmatched account data.
5. The method of claim 1, wherein after updating the primary account data of the terminal application with the current account data, the method further comprises:
and detecting an updating result of the primary account data based on the application interface, and returning the updating result to the server.
6. An account data synchronization apparatus, comprising:
the data acquisition unit is used for acquiring current account data of the terminal application from a server based on an application interface and acquiring an account identifier carried by the current account data based on the application interface, wherein the account identifier is used for indicating an identifier of an application type of the terminal application to which the current account data belongs;
the data transmission unit is used for transmitting the current account data to the terminal application corresponding to the account identifier based on the application interface;
and the data updating unit is used for updating the primary account data of the terminal application by adopting the current account data.
7. The apparatus of claim 6, further comprising:
the request sending unit is used for obtaining an account identifier corresponding to an application login request based on an application interface and sending the application login request to a server so that the server returns login authority data corresponding to the application login request according to the account identifier.
8. The device according to claim 7, characterized in that the data acquisition unit is specifically adapted to,
and logging in the terminal application according to the login permission data, and sending an account number synchronization request to the server based on the application interface so that the server returns the current account number data of the terminal application corresponding to the account number identification according to the account number synchronization request.
9. The apparatus of claim 6, wherein the data update unit comprises:
the data acquisition subunit is used for acquiring the primary account data of the terminal application;
and the data updating subunit is used for updating the primary account data by adopting the unmatched account data when account data unmatched with the data in the primary account data exists in the current account data.
10. The apparatus of claim 6, further comprising:
and the result output unit is used for detecting the updating result of the primary account data based on the application interface and returning the updating result to the server.
11. A computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform the steps of:
acquiring current account data of a terminal application from a server based on an application interface, and acquiring an account identifier carried by the current account data based on the application interface, wherein the account identifier is used for indicating an identifier of an application type of the terminal application to which the current account data belongs;
sending the current account data to the terminal application corresponding to the account identification based on the application interface;
and updating the primary account data of the terminal application by adopting the current account data.
12. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the steps of:
acquiring current account data of a terminal application from a server based on an application interface, and acquiring an account identifier carried by the current account data based on the application interface, wherein the account identifier is used for indicating an identifier of an application type of the terminal application to which the current account data belongs;
sending the current account data to the terminal application corresponding to the account identification based on the application interface;
and updating the primary account data of the terminal application by adopting the current account data.
CN201710678114.5A 2017-08-10 2017-08-10 Account data synchronization method and equipment, storage medium and terminal thereof Active CN109391658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710678114.5A CN109391658B (en) 2017-08-10 2017-08-10 Account data synchronization method and equipment, storage medium and terminal thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710678114.5A CN109391658B (en) 2017-08-10 2017-08-10 Account data synchronization method and equipment, storage medium and terminal thereof

Publications (2)

Publication Number Publication Date
CN109391658A CN109391658A (en) 2019-02-26
CN109391658B true CN109391658B (en) 2021-08-27

Family

ID=65415238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710678114.5A Active CN109391658B (en) 2017-08-10 2017-08-10 Account data synchronization method and equipment, storage medium and terminal thereof

Country Status (1)

Country Link
CN (1) CN109391658B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905295B (en) * 2021-03-31 2021-10-15 掌阅科技股份有限公司 Data intercommunication method, computing device and computer storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9160795B2 (en) * 2011-06-10 2015-10-13 Alcatel Lucent Method to synchronize content across networks
CN106354507A (en) * 2016-08-30 2017-01-25 江苏车置宝信息科技股份有限公司 Enterprise-level application management system and method for operating same

Also Published As

Publication number Publication date
CN109391658A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
KR102105636B1 (en) Installing application remotely
US9600476B2 (en) Acquiring information dynamically regarding a hardware component in the cloud computing system while on the floor of the data center
KR20130142961A (en) Automatic application updates
CN109154968B (en) System and method for secure and efficient communication within an organization
CN108737325B (en) Multi-tenant data isolation method, device and system
US10205813B2 (en) Method and system for detecting abnormal contact information and server
CN107133309B (en) Method and device for storing and querying process example, storage medium and electronic equipment
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
JP6972417B2 (en) Mobile devices, systems, access methods, and programs
US9584671B2 (en) Techniques to transform network resource requests to zero rated network requests
CN107679871B (en) List management method, device, system and computer readable storage medium
US9854035B2 (en) Maintaining state synchronization of an application between computing devices as well as maintaining state synchronization of common information between different applications without requiring periodic synchronization
US20150120607A1 (en) System and method for customer event email consolidation and delivery
CN109450885B (en) Network data interception method and device, electronic equipment and storage medium
CN109087097B (en) Method and device for updating same identifier of chain code
CN107918617B (en) Data query method and device
US20170061361A1 (en) On-line fellowship enhancement system for off-line company organization
CN108881107B (en) Distributed resource allocation method, device and system
US20190286678A1 (en) Resource distribution based upon search signals
CN104301358A (en) Copied content processing method and device
KR101574423B1 (en) Method and apparatus for managing participating information of terminal
JP6556558B2 (en) User terminal, management server, information management system, user terminal control method, and management server control method
KR101395464B1 (en) Phonebook information providing terminal and method for providing phonebook information
CN111045928A (en) Interface data testing method, device, terminal and storage medium
CN112925628A (en) Service management method and device

Legal Events

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