Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart illustrating a method for synchronizing a login account according to an embodiment of the present disclosure, where the embodiment is suitable for a case of synchronizing a login account of a cloud application, and the method may be performed by a device for synchronizing a login account in a cloud server, where the device may be implemented in a software and/or hardware manner, and may be generally integrated in a terminal or a server having a data processing function. Specifically, referring to fig. 1, the method specifically includes the following steps:
step 110, extracting a user identifier included in a cloud device application request according to the cloud device application request sent by the target client, wherein the cloud device application request is used for requesting to use the target cloud application on the cloud device.
In this embodiment, the cloud device may be a logic device virtualized on a cloud server cluster by using a virtualization technology, such as a cloud mobile phone or a cloud computer. The cloud device may have a plurality of cloud applications, also called cloud Application programs (APPs), installed therein, such as cloud games, cloud music, and cloud office.
In this embodiment, optionally, when the user wants to use the target cloud application, the target cloud application may be selected from options of a plurality of cloud applications provided by the target client. After detecting that the target cloud application is selected by the user, the target client sends a request (namely a cloud equipment application request) for the user to use the target cloud application to the cloud server.
The target client can serve a program for cloud equipment installed in the terminal equipment used by the user. Optionally, after receiving a cloud device application request sent by a user through a target client, the cloud server may extract an application identifier of a target cloud application that the user wants to use and a user identifier from the request. The application identifier may be an application name of the target cloud application or an Identity Document (ID) of the target cloud application. The user identification may be account information of the user in the target client.
And 120, if the target login account file matched with the user identifier is determined to be locally stored, indicating the target cloud equipment pre-installed with the target cloud application to perform account recovery according to the target login account file.
In this embodiment, the cloud server may determine, according to the application identifier, a target cloud application that the user wants to use, then acquire, in the local storage space, a plurality of login account files that are respectively corresponding to a plurality of stored users under the target cloud application, compare the user identifier with the stored identifiers of the users, and if the user identifier is stored in the local storage space, use the login account file corresponding to the user identifier as the target login account file. The login account file may record login information of the user for the target cloud application, such as a login name and a login password.
In this step, if it is determined that the target login account file matched with the user identifier is locally stored, optionally, the cloud server may select a cloud device in an idle state from a plurality of cloud devices installed with the target cloud application as the target cloud device, and then send the target login account file and the application identifier of the target cloud application to the target cloud device.
In the related art, in order to avoid a user from performing complicated login operation on a cloud application, the relationship between the clients and the cloud equipment is generally bound, that is, each client corresponds to one cloud equipment, the method is easy to cause high idleness of the cloud equipment, and in the embodiment, the cloud server allocates appropriate cloud equipment to the clients, so that the idleness of the cloud equipment can be reduced, and the utilization rate of the cloud equipment is improved.
In practical application, when the cloud device finishes connection with the client every time, login information corresponding to the cloud application installed in the cloud device is also cleared. Therefore, after the target cloud equipment receives the target login account file and the application identifier of the target cloud application, the target cloud application can be determined according to the application identifier, and then the login information corresponding to the target cloud application is perfected according to the login information specified in the target login account file so as to recover the account of the target cloud application.
Step 130, under the condition that it is determined that the target cloud device completes account recovery, feeding back the device identifier of the target cloud device to the target client, so that the target client is prevented from logging into a target cloud application in the target cloud device.
In this embodiment, optionally, if the cloud server does not receive an account recovery failure instruction fed back by the target device within a preset time period, it may be determined that the target cloud device completes account recovery, and the device identifier of the target cloud device is fed back to the target client, so that the target client establishes a connection relationship with the target cloud device according to the device identifier. After the target client is connected with the target cloud device, the target client can enter the target cloud application without logging in.
In this embodiment, under a plurality of cloud applications can be stored in the cloud server, a plurality of login account files corresponding to a plurality of users respectively, when a user wants to use a target cloud application, the target login account file is selected from the plurality of login account files and matched with the user, and the target cloud device performs account recovery according to the target login account file, so that the user can be prevented from performing complicated account login operation on the cloud application, the time of the user entering the cloud application is reduced, and the experience of the user on the cloud application is improved.
In the related art, in order to avoid a complicated login operation of a user on a cloud application, a cloud device account number intermodal Software Development Kit (SDK) is also implanted into the cloud application, so that the maintenance cost of the cloud application is high.
Step 140, according to a cloud device release request sent by the target client, instructing the target cloud device to report a current login account file of the target cloud application, and replacing the target login account file with the received current login account file.
In this embodiment, when the user wants to end using the target cloud application, a cloud device release request may be sent to the cloud server through the target client. After receiving the cloud equipment release request, the cloud server may send a file reporting instruction to the target cloud equipment, and after receiving the file reporting instruction, the target cloud equipment acquires a file (i.e., a current login account file) where current login information corresponding to the target cloud application is located, and sends the current login account file to the cloud server.
After the cloud server acquires the current login account file, the current login account file can be used for replacing the target login account file. The advantage of the setting is that when the user modifies the login information (such as a login name or a login password) in the process of using the target cloud application, the cloud server stores the latest login information of the user, so that account recovery can be conveniently performed on the target cloud application according to the latest login information when the user uses the target cloud application next time.
According to the technical scheme of the embodiment, the user identification included in the cloud equipment application request is extracted according to the cloud equipment application request sent by the target client, if the target login account file matched with the user identification is determined to be locally stored, the target cloud equipment with the pre-installed target cloud application is instructed to perform account recovery according to the target login account file, under the condition that the target cloud equipment completes account recovery, the equipment identification of the target cloud equipment is fed back to the target client, so that the target client is prevented from logging in to enter the target cloud application in the target cloud equipment, according to the cloud equipment release request sent by the target client, the target cloud equipment is instructed to report the current login account file of the target cloud application, and the received current login account file is used for replacing the target login account file.
On the basis of the above embodiment, after the user identifier included in the cloud device application request is extracted, if the target login account file matching the user identifier is not locally stored, it may be determined that the user uses the target cloud application for the first time. In this case, a target cloud device may be selected from a plurality of cloud devices in which the target cloud application is installed, and the device identifier of the target cloud device is fed back to the target client, after the target client is connected with the target cloud device, the user may register login information in the target cloud application, and when the target cloud device detects that the user completes registration of the target cloud application, the login information of the user is sent to the cloud server, and the cloud server generates a login account file according to the login information.
In an embodiment of this embodiment, before instructing, by a target cloud device preinstalled with a target cloud application, to perform account recovery according to a target login account file, the method further includes: acquiring first geographical position information of terminal equipment adapted to the target client; and determining target cloud equipment in each cloud equipment according to the first geographical position information and second geographical position information of each cloud equipment pre-installed with the target cloud application.
The cloud equipment which is closest to the terminal equipment and is in an idle state in the cloud equipment can be selected as the target cloud equipment according to the first geographical position information and the second geographical position information of the cloud equipment. The benefit of this arrangement is: the distance between the terminal device and the target cloud device can be short, and the communication efficiency between the target client and the target cloud device is improved.
Fig. 2 is a schematic flow chart of another method for synchronizing a login account according to an embodiment of the present disclosure, which is a further refinement of the foregoing technical solution, and the technical solution in this embodiment may be combined with one or more of the foregoing embodiments. Specifically, referring to fig. 2, the method specifically includes the following steps:
step 210, extracting a user identifier included in a cloud device application request according to the cloud device application request sent by a target client, where the cloud device application request is used for requesting to use a target cloud application on a cloud device.
In an implementation manner of this embodiment, before extracting, according to a cloud device application request sent by a target client, a user identifier included in the cloud device application request, the method further includes:
step 201, responding to an online request of a target cloud application, installing an installation package of the target cloud application, and backing up and storing an installation file set before logging corresponding to an installation directory;
in this embodiment, before the target cloud application is online, the cloud server may install the installation package of the target cloud application to obtain an installation directory of the target cloud application, and combine installation files included in the installation directory to obtain an installation file set before login.
202, simulating login is carried out on the target cloud application by using a test login account file, and after the login is completed, a post-login installation file set corresponding to an installation directory is obtained;
in this step, the login account file is tested as a login account file registered by the cloud server in advance for the target cloud application. The cloud server can use the login name in the test login account file and the login password to perform simulated login on the target cloud application. And after the login is finished, combining all installation files included in the installation directory to obtain a post-login installation file set.
Step 203, comparing the file difference between the installation file set before login and the installation file set after login to obtain a difference file and the storage position of the difference file in the installation directory;
in this step, each installation file in the installation file set before login may be compared with each installation file in the installation file set after login, and if there is a changed installation file, the installation file is used as a difference file, and a storage location of the difference file in the installation directory is obtained. The installation file with changed file content can be used as a difference file, and the newly added installation file can also be used as a difference file.
Step 204, taking the file name of the differential file as the file name of the login account file, and forming a file list according to the file name of the login account file and the storage position of the login account file in the installation directory;
in this embodiment, after obtaining the difference file collectively from the pre-login installation file set and the post-login installation file set, it may be described that the difference file is related to the login information of the target cloud application, so that the difference file may be used as a login account file corresponding to the target cloud application, and the login information of the target cloud application may be recorded in the login account file. The server may form a file list according to the file name of the login account file and the storage location of the login account file in the installation directory, where the file name of each login account file in the file list corresponds to one storage location.
Step 205, distributing the file list to each cloud device installed with the target cloud application to instruct each cloud device to implement account recovery or account backup according to the file list.
By the aid of the set advantages, the installation files related to the login information of the target cloud application can be accurately determined by acquiring the difference files before and after the target cloud application is installed, and the target cloud equipment can conveniently perform account recovery or account backup on the target cloud application according to the installation files related to the login information of the target cloud application.
Step 220, if the target login account file matched with the user identifier is determined to be locally stored, an account restoration instruction is constructed according to the target login account file, and the account restoration instruction is sent to the target cloud equipment.
In this embodiment, a plurality of login account files corresponding to a plurality of users respectively under a target cloud application are pre-stored in the cloud server, and a file name of each login account file is the same as a file name of the difference file. If the cloud server inquires a target login account file from the plurality of login account files, an account restoration instruction is constructed according to the target login account file, and the account restoration instruction can include the target login account file.
After receiving the account restoration instruction, the target cloud device may extract a target login account file included in the account restoration instruction, search a storage location matched with the file name in a file list according to the file name of the target login account file, and write the target login account file into the storage location to perform account restoration on the target cloud application.
Step 230, under the condition that an account restoration completion instruction fed back by the target cloud device according to the account restoration instruction is received, determining that the target cloud device completes account restoration, and feeding back a device identifier of the target cloud device to the target client, so that the target client is prevented from logging into a target cloud application in the target cloud device.
In this embodiment, after the target cloud device completes writing the target login account file, an account restoration completion instruction may be fed back to the cloud server. The method has the advantages that the target cloud equipment feeds back the account recovery finishing instruction to the cloud server, so that the server can accurately know the account recovery condition of the target cloud application, and subsequent operation is facilitated.
Step 240, according to a cloud device release request sent by the target client, instructing the target cloud device to report a current login account file of the target cloud application, and replacing the target login account file with the received current login account file.
According to the technical scheme of the embodiment, the user identification included in the cloud equipment application request is extracted according to the cloud equipment application request sent by the target client, if the target login account file matched with the user identification is determined to be locally stored, an account restoration instruction is built according to the target login account file and sent to the target cloud equipment, under the condition that the account restoration completion instruction fed back by the target cloud equipment aiming at the account restoration instruction is received, the target cloud equipment is determined to complete account restoration, the equipment identification of the target cloud equipment is fed back to the target client, so that the target client is prevented from logging in to enter the target cloud application in the target cloud equipment, the target cloud equipment is instructed to report the current account login file of the target cloud application according to the cloud equipment release request sent by the target client, and the received current account login file is used for replacing the target login account file, so that the technical means that a user can be prevented from performing complicated account login operation on the cloud application, and the time of the user entering the cloud application is reduced.
Fig. 3 is a flowchart of another method for synchronizing a login account according to an embodiment of the present disclosure, where the embodiment is suitable for a case of synchronizing a login account of a cloud application, and the method may be performed by a device for synchronizing a login account in a cloud device, where the device may be implemented in a software and/or hardware manner, and may be generally integrated in a terminal or a server having a data processing function. Specifically, referring to fig. 1, the method specifically includes the following steps:
step 310, under the condition that an account number restoring instruction aiming at the target cloud application sent by the cloud server is received, extracting a target login account number file included in the account number restoring instruction.
The account restoration instruction is generated according to a cloud equipment application request sent by a target client, and the cloud equipment application request is used for requesting to use a target cloud application on cloud equipment.
In this embodiment, the account restoring instruction may include an application identifier of the target cloud application and a target login account file, and the application identifier and the target login account file may be separated by a preset separator. After the cloud equipment acquires the account restoration instruction, an application identifier and a target login account file can be extracted according to a preset separator, and a target cloud application is determined according to the application identifier.
And 320, performing account recovery on the target cloud application according to the target login account file, and feeding back an account recovery completion instruction to the cloud server under the condition that the account recovery is completed, so that the target client acquires the equipment identifier of the cloud equipment from the cloud server.
In this embodiment, optionally, the cloud device may complete login information corresponding to the target cloud application according to login information specified in the target login account file, so as to complete account recovery of the target cloud application. And under the condition of completing the account recovery, feeding back an account recovery finishing instruction to the cloud server, and feeding back the equipment identifier of the cloud equipment to the target client by the cloud server.
Step 330, responding to an application starting instruction of the target client aiming at the target cloud application, and starting the target cloud application according to the target login account file so that the target client can enter the target cloud application without login.
In this embodiment, after the target client is connected to the cloud device according to the device identifier, an application start instruction for the target cloud application may be triggered in the cloud device. After receiving the application starting instruction, the cloud device may start the target cloud application according to the login information after the target cloud application is completed by using the target login account file.
Step 340, obtaining a current login account file of the target cloud application according to an account backup instruction sent by the cloud server, and reporting the current login account file to the cloud server. The account backup instruction is generated according to a cloud equipment release request sent by a target client.
In this embodiment, after receiving an account backup instruction sent by a cloud server, a cloud device may acquire a file (that is, a current login account file) in which current login information of a target cloud application is located, and report the current login account file to the cloud server.
According to the technical scheme of the embodiment, under the condition that an account restoration instruction aiming at a target cloud application sent by a cloud server is received, a target login account file included in the account restoration instruction is extracted, the account restoration is carried out on the target cloud application according to the target login account file, under the condition that the account restoration is completed, an account restoration completion instruction is fed back to the cloud server, so that a target client side obtains an equipment identifier of cloud equipment from the cloud server, the target client side responds to an application starting instruction aiming at the target cloud application, the target cloud application is started according to the target login account file, so that the target client side is free from logging in the target cloud application, the current login account file of the target cloud application is obtained according to an account backup instruction sent by the cloud server, the current login account file is reported to the cloud server, tedious account login operation of a user on the cloud application can be avoided, and the time of the user for entering the cloud application is shortened.
The embodiment of the present disclosure is further detailed in the above embodiment, and the same or corresponding terms as those in the above embodiment are explained, and no further description is given to the embodiment of the present disclosure. Fig. 4 is a flowchart of a synchronization method for login accounts according to an embodiment of the present disclosure, where the method specifically includes the following steps:
step 410, under the condition that an account restoration instruction for the target cloud application sent by the cloud server is received, extracting a target login account file included in the account restoration instruction.
In an implementation manner of this embodiment, optionally, before step 410, the method further includes: after local installation of the target cloud application is completed, receiving a file list which is sent by a cloud server and corresponds to the target cloud application; wherein, the file list comprises: and the file name of the login account file and the storage position of the login account file in the installation directory of the target cloud application.
In this embodiment, before the cloud device installs the target cloud application, the cloud server performs simulated login on the target cloud application, compares an installation file before the target cloud application is logged in with an installation file after the target cloud application is logged in, confirms a difference file related to login information of the target cloud application, uses a file name of the difference file as a file name of a login account file, forms a file list according to the file name of the login account file and a storage location of the login account file in an installation directory, and distributes the file list to the cloud device after the cloud device completes local installation of the target cloud application.
The method has the advantage that the cloud equipment can conveniently and quickly acquire the position of the installation file related to the login information of the target cloud application according to the file list, so that account recovery or account backup can be conveniently carried out on the target cloud application.
And step 420, writing the target login account file into a matched storage position according to the file list in an installation directory of the target cloud application so as to perform account recovery on the target cloud application.
In this step, according to the file name of the target login account file, a storage location matched with the file name can be searched in the file list, and the target login account file is written into the storage location, so that account recovery is performed on the target cloud application.
The method has the advantages that the effect of the installation files at all positions in the installation directory corresponding to the target cloud application is pre-designated, the target login account file is written into the matched storage position in the installation directory, the target cloud application account can be successfully recovered, and the situation that the target cloud application fails to start is avoided.
Step 430, feeding back an account restoration completion instruction to the cloud server under the condition that the account restoration is completed, so that the target client acquires the device identifier of the cloud device from the cloud server.
Step 440, responding to an application starting instruction of the target client for the target cloud application, and starting the target cloud application according to the target login account file so that the target client is prevented from logging in to enter the target cloud application.
In an implementation manner of this embodiment, after the target cloud application is started according to the target login account file, the method further includes: and acquiring historical application data matched with the target login account file from an application server of the target cloud application, and locally loading the historical application data.
The historical data acquisition instruction can be sent to an application server of the target cloud application, and the historical data acquisition instruction can include a target login account file. After receiving the historical data acquisition instruction, the application server can search the historical application data matched with the target login account file according to the login information in the target login account file, and feed the historical application data back to the cloud equipment.
The historical application data can be historical behavior data of the user for the target cloud application. Taking a cloud game as an example, the historical application data may be a player position of the user in the cloud game, a login record, a game skin used by the user, and the like.
The method has the advantages that after the cloud equipment starts the target cloud application according to the target login account file, the historical application data matched with the current user are loaded, and poor use experience brought to the user by the fact that the historical behavior data of the user are lost can be avoided.
In the related art, historical application data of a user for a target cloud application is usually stored in a cloud server, the storage pressure of the cloud server is high due to the method, the historical application data is not stored in the cloud server of the embodiment, and the historical application data can be obtained from the application server of the target cloud application, so that the occupation of storage space in the cloud server can be reduced, and the storage cost of the cloud server is reduced.
And step 450, after receiving an account backup instruction sent by the cloud server, acquiring the current login account file at a matched storage position under the installation directory of the target cloud application according to the file list, and reporting the current login account file to the cloud server.
According to the method and the device, under the condition that an account restoration instruction for the target cloud application sent by a cloud server is received, a target login account file included in the account restoration instruction is extracted, under the condition that the account restoration instruction for the target cloud application is sent by the cloud server, the target login account file is written into a matched storage position according to a file list so as to perform account restoration on the target cloud application, under the condition that the account restoration is completed, an account restoration completion instruction is fed back to the cloud server so that a target client side can obtain an equipment identifier of cloud equipment from the cloud server, in response to an application starting instruction for the target cloud application from the target client side, the target cloud application is started according to the target login account file so that the target client side can not log in the target cloud application, after an account backup instruction sent by the cloud server is received, the current login account file is obtained according to the file list at the matched storage position under the installation directory of the target cloud application, and the current login account file is reported to the cloud server.
The embodiment of the disclosure further provides a synchronization device of the login account, which is used for executing the synchronization method of the login account.
Fig. 5 is a structural diagram of a device 500 for synchronizing login accounts according to an embodiment of the present disclosure, where the device includes: a user identification extraction module 510, an account recovery module 520, a device identification feedback module 530, and an account file replacement module 540.
The user identifier extracting module 510 is configured to extract a user identifier included in a cloud device application request according to a cloud device application request sent by a target client, where the cloud device application request is used to request that a target cloud application is used on a cloud device;
the account recovery module 520 is configured to instruct the target cloud device, which is pre-installed with the target cloud application, to perform account recovery according to the target login account file if it is determined that the target login account file matched with the user identifier is locally stored;
the device identifier feedback module 530 is configured to, when it is determined that the target cloud device completes account recovery, feed back a device identifier of the target cloud device to the target client, so that the target client is prevented from logging into a target cloud application in the target cloud device;
the account file replacing module 540 is configured to instruct the target cloud device to report a current login account file of the target cloud application according to a cloud device release request sent by the target client, and replace the target login account file with the received current login account file.
According to the technical scheme of the embodiment, the user identification included in the cloud equipment application request is extracted according to the cloud equipment application request sent by the target client, if the target login account file matched with the user identification is determined to be locally stored, the target cloud equipment with the pre-installed target cloud application is instructed to perform account recovery according to the target login account file, under the condition that the target cloud equipment completes account recovery, the equipment identification of the target cloud equipment is fed back to the target client, so that the target client is prevented from logging in to enter the target cloud application in the target cloud equipment, according to the cloud equipment release request sent by the target client, the target cloud equipment is instructed to report the current login account file of the target cloud application, and the received current login account file is used for replacing the target login account file.
On the basis of the foregoing embodiments, the account recovering module 520 further includes:
a location information obtaining unit, configured to obtain first geographic location information of a terminal device adapted to the target client;
the device determining unit is used for determining target cloud devices in the cloud devices according to the first geographical location information and second geographical location information of the cloud devices pre-installed with target cloud applications;
and the restoration instruction sending unit is used for constructing an account restoration instruction according to the target login account file and sending the account restoration instruction to the target cloud equipment.
A device identification feedback module 530 comprising: and the completion instruction receiving unit is used for determining that the target cloud equipment completes account recovery under the condition of receiving an account recovery completion instruction fed back by the target cloud equipment according to the account recovery instruction.
The device further comprises:
the installation file storage module is used for responding to an online request of the target cloud application, installing an installation package of the target cloud application, and backing up and storing an installation file set before login corresponding to the installation directory;
the simulation login module is used for performing simulation login on the target cloud application by using the test login account file, and acquiring a post-login installation file set corresponding to the installation directory after the login is completed;
the file comparison module is used for comparing the file difference between the installation file set before login and the installation file set after login to obtain a difference file and the storage position of the difference file in the installation directory;
the list generation module is used for taking the file name of the differential file as the file name of the login account file and forming a file list according to the file name of the login account file and the storage position of the login account file in the installation directory;
and the list distribution module is used for distributing the file list to each cloud device provided with the target cloud application so as to instruct each cloud device to realize account recovery or account backup according to the file list.
The synchronization device for the login account provided by the embodiment of the disclosure can execute the synchronization method for the login account provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
The embodiment of the disclosure further provides another login account synchronization device, which is used for executing the login account synchronization method.
Fig. 6 is a structural diagram of a device 600 for synchronizing login accounts according to an embodiment of the present disclosure, where the device includes: an account file extracting module 610, a finishing instruction sending module 620, an application starting module 630 and a current account acquiring module 640.
The account file extracting module 610 is configured to extract a target login account file included in an account restoration instruction when the account restoration instruction for a target cloud application sent by a cloud server is received; the account restoration instruction is generated according to a cloud equipment application request sent by a target client, and the cloud equipment application request is used for requesting to use a target cloud application on cloud equipment;
a finish instruction sending module 620, configured to perform account recovery on the target cloud application according to the target login account file, and feed back an account recovery finish instruction to the cloud server when the account recovery is completed, so that the target client obtains the device identifier of the cloud device from the cloud server;
an application starting module 630, configured to respond to an application starting instruction of a target client for the target cloud application, start the target cloud application according to the target login account file, so that the target client enters the target cloud application without logging in;
the current account acquisition module 640 is configured to acquire a current login account file of the target cloud application according to an account backup instruction sent by the cloud server, and report the current login account file to the cloud server; the account backup instruction is generated according to a cloud equipment release request sent by a target client.
According to the technical scheme of the embodiment, under the condition that an account restoration instruction aiming at a target cloud application sent by a cloud server is received, a target login account file included in the account restoration instruction is extracted, the account restoration is carried out on the target cloud application according to the target login account file, under the condition that the account restoration is completed, an account restoration completion instruction is fed back to the cloud server, so that a target client side obtains an equipment identifier of cloud equipment from the cloud server, the target client side responds to an application starting instruction aiming at the target cloud application, the target cloud application is started according to the target login account file, so that the target client side is free from logging in the target cloud application, the current login account file of the target cloud application is obtained according to an account backup instruction sent by the cloud server, the current login account file is reported to the cloud server, tedious account login operation of a user on the cloud application can be avoided, and the time of the user for entering the cloud application is shortened.
On the basis of the above embodiments, the apparatus further includes: the file list receiving module is used for receiving a file list which is sent by a cloud server and corresponds to the target cloud application after the local installation of the target cloud application is completed; wherein, the file list comprises: and the file name of the login account file and the storage position of the login account file in the installation directory of the target cloud application.
Wherein, finish the order sending module 620, include: and the file writing unit is used for writing the target login account file into a matched storage position according to the file list under the installation directory of the target cloud application so as to perform account recovery on the target cloud application.
The current account obtaining module 640 includes: and the file acquisition unit is used for acquiring the current login account file at a storage position matched with the installation directory of the target cloud application according to the file list.
The application launching module 630 includes: and the application data acquisition unit is used for acquiring historical application data matched with the target login account file from an application server of the target cloud application, and locally loading the historical application data.
The synchronization device for the login account provided by the embodiment of the disclosure can execute the synchronization method for the login account provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 7 illustrates a schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing AI chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 701 executes the respective methods and processes described above, such as the synchronization method of the login account. For example, in some embodiments, the synchronization method of the login account may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method for synchronizing login accounts described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the synchronization method of the login account in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), AI system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in this disclosure may be performed in parallel or sequentially or in a different order, as long as the desired results of the technical solutions provided by this disclosure can be achieved, and are not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.