Data processing method and device

文档序号:791925 发布日期:2021-04-13 浏览:40次 中文

阅读说明:本技术 一种数据处理方法及装置 (Data processing method and device ) 是由 周启立 姚双喜 于 2020-12-25 设计创作,主要内容包括:本申请提供一种数据处理方法及装置,其中所述数据处理方法包括:接收登录终端发送的登录请求,所述登录请求中包含登录账号以及所述登录终端的第一标识信息,查询镜像仓库中存储的与所述登录账号关联的全量镜像数据,并根据所述第一标识信息获取所述登录终端存储的与所述登录账号关联的终端业务数据,验证所述全量镜像数据与所述终端业务数据是否一致,在验证结果为不一致的情况下,将所述全量镜像数据同步至所述登录终端,以使用所述全量镜像数据覆盖所述终端业务数据。(The application provides a data processing method and a data processing device, wherein the data processing method comprises the following steps: receiving a login request sent by a login terminal, wherein the login request comprises a login account and first identification information of the login terminal, inquiring full mirror image data which are stored in a mirror image warehouse and are associated with the login account, acquiring terminal service data which are stored in the login terminal and are associated with the login account according to the first identification information, verifying whether the full mirror image data are consistent with the terminal service data, and synchronizing the full mirror image data to the login terminal under the condition that a verification result is inconsistent so as to use the full mirror image data to cover the terminal service data.)

1. A data processing method, comprising:

receiving a login request sent by a login terminal, wherein the login request comprises a login account and first identification information of the login terminal;

inquiring the full mirror image data which is stored in a mirror image warehouse and is associated with the login account, and acquiring the terminal service data which is stored by the login terminal and is associated with the login account according to the first identification information;

verifying whether the total mirror image data is consistent with the terminal service data;

and under the condition that the verification result is inconsistent, synchronizing the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.

2. The data processing method according to claim 1, wherein before receiving the login request sent by the login terminal, the method further comprises:

and acquiring and storing incremental service data which is generated in an offline state and is associated with the login account.

3. The data processing method of claim 2, wherein the synchronizing the full volume mirrored data to the login terminal to overlay the terminal traffic data with the full volume mirrored data comprises:

pushing the incremental business data serving as a mirror image to be stored to the mirror image warehouse so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and generate updated full mirror image data;

and synchronizing the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.

4. The data processing method of claim 2, further comprising:

and under the condition that the verification result is consistent, pushing the incremental business data serving as the mirror image to be stored to the mirror image warehouse, and synchronizing the incremental business data to the login terminal.

5. The data processing method according to claim 1, wherein before receiving the login request sent by the login terminal, the method further comprises:

acquiring incremental business data which are generated in an offline state and are associated with the login account, and adding a timestamp to the incremental business data;

and pushing the incremental business data and the timestamp as a mirror image to be stored to the mirror image warehouse, so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and the timestamp, and generate updated full mirror image data.

6. The data processing method of claim 5, wherein querying the full amount of mirrored data stored in the mirrored repository in association with the login account comprises:

acquiring time information corresponding to the last log-out of the login account;

determining a target timestamp according to the time information, and inquiring mirror image data corresponding to the target timestamp stored in a mirror image warehouse;

correspondingly, the verifying whether the full volume mirror image data is consistent with the terminal service data includes:

and verifying whether the mirror image data is consistent with the terminal service data.

7. The data processing method of claim 6, wherein the synchronizing the full volume mirrored data to the login terminal to overlay the terminal traffic data with the full volume mirrored data comprises:

and synchronizing the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.

8. The data processing method of claim 6, further comprising:

and synchronizing the incremental business data to the login terminal under the condition that the verification results are consistent.

9. The data processing method according to claim 1, further comprising, after receiving the login request sent by the login terminal:

inquiring second identification information of a login terminal used by the last login of the login account;

verifying whether the first identification information is consistent with the second identification information;

and under the condition that the verification result is inconsistent, inquiring the full mirror image data which is stored in a mirror image warehouse and is associated with the login account, and synchronizing the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.

10. The data processing method of claim 1, further comprising:

receiving a business operation request submitted by a user through the login terminal;

determining difference service data according to the service operation request;

and synchronizing the difference service data serving as incremental data to the login terminal.

11. A data processing apparatus, comprising:

the system comprises a receiving module, a login module and a display module, wherein the receiving module is configured to receive a login request sent by a login terminal, and the login request comprises a login account and first identification information of the login terminal;

the query module is configured to query full mirror image data which are stored in a mirror image warehouse and are associated with the login account, and acquire terminal service data which are stored by the login terminal and are associated with the login account according to the first identification information;

the verification module is configured to verify whether the full mirror image data is consistent with the terminal service data;

and the synchronization module is configured to synchronize the full amount of mirror image data to the login terminal under the condition that the verification result is inconsistent, so that the full amount of mirror image data is used for covering the terminal service data.

12. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-10 when executing the instructions.

13. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 10.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, a computing device, and a computer-readable storage medium.

Background

With the rapid development of network technology, the online games gradually have a greater proportion in the leisure and entertainment lives of users, which greatly enriches the leisure and entertainment lives of users, and the online games can include online games for one person and for many people.

As the number of selectable game terminals is increased (such as mobile phones, computers and the like), game data generated by users using different terminals cannot be synchronized in real time at different terminals, and only when the game terminals are detected to be replaced by the users, the game service providers manually synchronize the historical game data of the users to the replaced game terminals; or after the user logs in the game account, if the historical game data of the user is detected to be damaged, the game service provider manually synchronizes the historical game data of the user to the game terminal, and because the data volume of the game data is continuously increased, the data synchronization is performed in such a way, although the requirements of the user can be solved to a certain extent, the problem of low data synchronization efficiency also exists, and the game experience of the user is influenced.

Disclosure of Invention

In view of this, embodiments of the present application provide a data processing method and apparatus, a computing device, and a computer-readable storage medium, so as to solve technical defects in the prior art.

According to a first aspect of embodiments of the present application, there is provided a data processing method, including:

receiving a login request sent by a login terminal, wherein the login request comprises a login account and first identification information of the login terminal;

inquiring the full mirror image data which is stored in a mirror image warehouse and is associated with the login account, and acquiring the terminal service data which is stored by the login terminal and is associated with the login account according to the first identification information;

verifying whether the total mirror image data is consistent with the terminal service data;

and under the condition that the verification result is inconsistent, synchronizing the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.

Optionally, before receiving the login request sent by the login terminal, the method further includes:

and acquiring and storing incremental service data which is generated in an offline state and is associated with the login account.

Optionally, the synchronizing the full volume mirror data to the login terminal to use the full volume mirror data to overlay the terminal service data includes:

pushing the incremental business data serving as a mirror image to be stored to the mirror image warehouse so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and generate updated full mirror image data;

and synchronizing the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.

Optionally, the data processing method further includes:

and under the condition that the verification result is consistent, pushing the incremental business data serving as the mirror image to be stored to the mirror image warehouse, and synchronizing the incremental business data to the login terminal.

Optionally, before receiving the login request sent by the login terminal, the method further includes:

acquiring incremental business data which are generated in an offline state and are associated with the login account, and adding a timestamp to the incremental business data;

and pushing the incremental business data and the timestamp as a mirror image to be stored to the mirror image warehouse, so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and the timestamp, and generate updated full mirror image data.

Optionally, the querying the full amount of mirror data associated with the login account stored in the mirror repository includes:

acquiring time information corresponding to the last log-out of the login account;

determining a target timestamp according to the time information, and inquiring mirror image data corresponding to the target timestamp stored in a mirror image warehouse;

correspondingly, the verifying whether the full volume mirror image data is consistent with the terminal service data includes:

and verifying whether the mirror image data is consistent with the terminal service data.

Optionally, the synchronizing the full volume mirror data to the login terminal to use the full volume mirror data to overlay the terminal service data includes:

and synchronizing the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.

Optionally, the data processing method further includes:

and synchronizing the incremental business data to the login terminal under the condition that the verification results are consistent.

Optionally, after receiving the login request sent by the login terminal, the method further includes:

inquiring second identification information of a login terminal used by the last login of the login account;

verifying whether the first identification information is consistent with the second identification information;

and under the condition that the verification result is inconsistent, inquiring the full mirror image data which is stored in a mirror image warehouse and is associated with the login account, and synchronizing the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.

Optionally, the data processing method further includes:

receiving a business operation request submitted by a user through the login terminal;

determining difference service data according to the service operation request;

and synchronizing the difference service data serving as incremental data to the login terminal.

According to a second aspect of embodiments of the present application, there is provided a data processing apparatus including:

the system comprises a receiving module, a login module and a display module, wherein the receiving module is configured to receive a login request sent by a login terminal, and the login request comprises a login account and first identification information of the login terminal;

the query module is configured to query full mirror image data which are stored in a mirror image warehouse and are associated with the login account, and acquire terminal service data which are stored by the login terminal and are associated with the login account according to the first identification information;

the verification module is configured to verify whether the full mirror image data is consistent with the terminal service data;

and the synchronization module is configured to synchronize the full amount of mirror image data to the login terminal under the condition that the verification result is inconsistent, so that the full amount of mirror image data is used for covering the terminal service data.

According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the data processing method when executing the instructions.

According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the data processing method.

In the embodiment of the application, a login request sent by a login terminal is received, the login request comprises a login account and first identification information of the login terminal, full mirror image data which is stored in a mirror image warehouse and is associated with the login account is inquired, terminal service data which is stored in the login terminal and is associated with the login account is obtained according to the first identification information, whether the full mirror image data is consistent with the terminal service data or not is verified, and the full mirror image data is synchronized to the login terminal under the condition that a verification result is inconsistent so as to cover the terminal service data with the full mirror image data;

the full-amount mirror image data are automatically synchronized to the login terminal by verifying whether the full-amount mirror image data in the mirror image warehouse are consistent with the terminal service data stored by the login terminal or not and under the condition that the verification result is inconsistent, so that the full-amount mirror image data are used for covering the terminal service data, and the full-amount mirror image data synchronization mode is automatically carried out, thereby being beneficial to improving the data synchronization efficiency and improving the game service experience of users.

Drawings

FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;

FIG. 2 is a schematic diagram of a data processing method provided by an embodiment of the present application;

FIG. 3 is a flow chart of a data processing method provided by an embodiment of the present application;

FIG. 4 is an interaction diagram of a data processing method provided in an embodiment of the present application;

fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application.

Detailed Description

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.

The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.

It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application.

In the present application, a data processing method and apparatus, a computing device, and a computer-readable storage medium are provided, which are described in detail in the following embodiments one by one.

FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present application. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.

Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.

In one embodiment of the present application, the above-mentioned components of the computing device 100 and other components not shown in fig. 1 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.

Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.

A schematic diagram of a data processing method provided in an embodiment of the present description is shown in fig. 2, where a server receives a login request sent by a user through a login terminal, queries full mirror image data associated with a login account and stored in a mirror image warehouse, acquires terminal service data associated with the login account and stored in the login terminal according to identification information carried in the login request, and verifies whether the full mirror image data is consistent with the terminal service data; under the condition that the verification result is inconsistent, the server synchronizes the full amount of mirror image data to the login terminal so as to use the full amount of mirror image data to cover the terminal game data; or, under the condition that the verification results are consistent, the server receives an operation request submitted by a user through the login terminal, determines the difference data according to the operation request, and synchronizes the difference data serving as the incremental data to the login terminal.

The full-amount mirror image data are automatically synchronized to the login terminal by verifying whether the full-amount mirror image data in the mirror image warehouse are consistent with the terminal service data stored by the login terminal or not and under the condition that the verification result is inconsistent, so that the full-amount mirror image data are used for covering the terminal service data, and the full-amount mirror image data synchronization mode is automatically carried out, thereby being beneficial to improving the data synchronization efficiency and improving the service experience of a user.

Wherein the processor 120 may perform the steps of the data processing method shown in fig. 3. Fig. 3 shows a flow chart of a data processing method according to an embodiment of the present application, comprising steps 302 to 308.

Step 302, receiving a login request sent by a login terminal, where the login request includes a login account and first identification information of the login terminal.

As more and more game terminals (such as mobile phones, computers and the like) can be selected by users, the game data generated by the users using different terminals can not be synchronized in real time at different terminals, and the game service provider can only manually synchronize the historical game data of the users to the replaced game terminals under the condition that the game terminals are detected to be replaced by the users; or after the user logs in the game account, if the historical game data of the user is detected to be damaged, the game service provider manually synchronizes the historical game data of the user to the game terminal, and because the data volume of the game data is continuously increased, the data synchronization is performed in such a way, although the requirements of the user can be solved to a certain extent, the problem of low data synchronization efficiency also exists, and the game experience of the user is influenced.

Based on this, the data processing method provided by the embodiment of the application is applied to a server, and is used for querying full mirror image data stored in a mirror image warehouse and associated with a login account by receiving a login request sent by a login terminal, wherein the login request comprises the login account and first identification information of the login terminal, acquiring terminal service data stored in the login terminal and associated with the login account according to the first identification information, verifying whether the full mirror image data is consistent with the terminal service data, and synchronizing the full mirror image data to the login terminal under the condition that a verification result is inconsistent so as to use the full mirror image data to cover the terminal service data;

the full-amount mirror image data are automatically synchronized to the login terminal by verifying whether the full-amount mirror image data in the mirror image warehouse are consistent with the terminal service data stored by the login terminal or not and under the condition that the verification result is inconsistent, so that the full-amount mirror image data are used for covering the terminal service data, and the full-amount mirror image data synchronization mode is automatically carried out, thereby being beneficial to improving the data synchronization efficiency and improving the service experience of a user.

Specifically, the login account is an account obtained by a user through registration and related to a target service, where the target service may be a game service, a payment service, or a social service, and the like, and is not limited herein, the user may send a login request to a server through the login terminal, and after the login is successful, the user may perform a related operation on the target service through the login terminal.

In addition, a login request sent by a user to a server through a login terminal comprises a login account and first identification information of the login terminal, the server can inquire mirror image data which are stored in a mirror image warehouse and are associated with the login account through the login account, and inquire terminal service data which are stored in the login terminal and are associated with the login account through the first identification information.

Step 304, inquiring the full mirror image data stored in the mirror image warehouse and associated with the login account, and acquiring the terminal service data stored by the login terminal and associated with the login account according to the first identification information.

Specifically, Mirroring (Mirroring) is a type of redundancy, where data on one disk has an identical copy on another disk, i.e., Mirroring. In the application, the full amount of mirror image data associated with the login account stored in the mirror image warehouse of the server is a copy of the historical service data associated with the login account, so that the full amount of mirror image data stored in the mirror image warehouse should be substantially identical to the terminal service data stored in the login terminal.

However, considering that a user may replace a login terminal, or a situation that terminal service data is damaged or changed may occur, after receiving a login request sent by the user through the login terminal, the server may query, through the login account, mirror data associated with the login account stored in a mirror repository, query, through the first identification information, terminal service data associated with the login account stored in the login terminal, and verify the mirror data and the terminal service data to ensure consistency between the two.

Step 306, verifying whether the total mirror data is consistent with the terminal service data.

Specifically, the verification is to compare the full mirror image data with the terminal service data, as mentioned above, in order to avoid that the service operation of the user is affected due to the fact that the user changes the login terminal or the terminal service data stored in the login terminal is damaged or changed, the application obtains and verifies the consistency of the full mirror image data and the terminal service data after receiving the login request of the user, and the full mirror image data or the synchronous incremental mirror image data are selected to be synchronized to the login terminal according to the verification result.

And 308, synchronizing the full mirror image data to the login terminal under the condition that the verification result is inconsistent so as to use the full mirror image data to cover the terminal service data.

Specifically, the full volume mirror image data and the terminal service data are compared, and when the comparison result is that the full volume mirror image data stored in the mirror image warehouse in the server is not consistent with the terminal service data, the probability that the full volume mirror image data stored in the server is modified or damaged is low, so that the terminal service data stored in the login terminal is damaged or modified with a high probability, and in order not to affect the service operation of the user, the historical service data of the user, namely the full volume mirror image service data, needs to be synchronized to the login terminal so as to cover the terminal service data with the full volume mirror image data, and after the synchronization is completed, the user can perform related service operation based on the historical service data.

In addition, except that the comparison result is inconsistent due to the fact that the terminal service data stored in the login terminal is damaged or changed, the situation that the comparison is inconsistent also exists when the login terminal is replaced by the user, and therefore after the login request of the user is received, whether the login terminal is replaced by the user needs to be determined according to the identification information of the login terminal carried in the login request, and the method can be specifically realized by the following steps:

inquiring second identification information of a login terminal used by the last login of the login account;

verifying whether the first identification information is consistent with the second identification information;

and under the condition that the verification result is inconsistent, inquiring the full mirror image data which is stored in a mirror image warehouse and is associated with the login account, and synchronizing the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.

In particular, since the service data generated by the user using different login terminals cannot be synchronized in real time at each login terminal, therefore, in order to avoid the user from changing the login terminal, since the history service data associated with the login account is not stored in the changed login terminal, or the stored historical service data associated with the login account is lost, so that the service processing process of the user is not changed, the user experience is influenced, after the login request sent by the user is received, whether the user replaces the login terminal can be determined according to the identification information of the login terminal carried in the login request, the method comprises the steps of inquiring second identification information of a login terminal used by the last login of the login account, and determining whether the user changes the login terminal or not by comparing the first identification information with the second identification information.

If the fact that the user replaces the login terminal is determined according to the comparison result, the full amount of mirror image data which are stored in a mirror image warehouse of the server and are associated with the login account need to be inquired, the full amount of mirror image data are synchronized to the login terminal, and the efficiency of data synchronization is improved in a mode of automatically synchronizing the full amount of mirror image data, so that the service experience of the user is improved.

In addition, when the login account of the user is not logged in (offline), a part of service data may still be generated, and this part of service data may be regarded as offline data, because the login account is in an offline state, the login terminal of the user cannot receive the offline data, and this part of offline data is received and stored by the server, that is, before receiving the login request sent by the login terminal, the method further includes: and acquiring and storing incremental service data which is generated in an offline state and is associated with the login account.

Taking the service as a game service as an example, after a user goes offline (an account is not logged in), the generated game data is offline data, for example, after the user a goes offline, the user B sends an application for adding a game friend to the user a, and the application information is offline data for the user a.

Further, when the server receives a login request of a user and verifies that the full mirror image data is consistent with the terminal service data, the server synchronizes the offline data serving as the incremental service data to the login terminal, pushes the incremental service data serving as the mirror image to be stored to the mirror image warehouse, updates the full mirror image data by using the incremental service data, and verifies the terminal service data of the user login terminal by using the updated full mirror image data after receiving the login request of the user again.

In addition, when a server receives a login request of a user and verifies that the full-volume mirror image data is inconsistent with the terminal service data, the incremental service data can be pushed to the mirror image warehouse as a mirror image to be stored, so that the full-volume mirror image data stored in the mirror image warehouse is updated based on the incremental service data, updated full-volume mirror image data is generated, and the updated full-volume mirror image data is synchronized to the login terminal so as to cover the terminal service data with the updated full-volume mirror image data.

Through the mode of automatically carrying out full-volume mirror image data synchronization, the efficiency of data synchronization is favorably improved, and therefore the service experience of a user is improved.

In this embodiment of the present application, before receiving a login request sent by a login terminal, the method further includes:

acquiring incremental business data which are generated in an offline state and are associated with the login account, and adding a timestamp to the incremental business data;

and pushing the incremental business data and the timestamp as a mirror image to be stored to the mirror image warehouse, so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and the timestamp, and generate updated full mirror image data.

Specifically, as described above, a part of the service data may still be generated when the login account of the user is not logged in (offline), the part of the service data may be regarded as offline data, because the login account is offline, the login terminal of the user cannot receive the offline data, and the part of the offline data is received and stored by the server, and because the mirror image data associated with the login account and the timestamp corresponding to the generation time of the mirror image data are stored in the mirror image warehouse, after the server acquires the offline data, the server may add the timestamp corresponding to the generation time of the offline data to the offline data, and may transmit the incremental service data and the timestamp of the offline data to the mirror image warehouse for storage as the incremental service data, and updating the full mirror image data stored in the mirror image warehouse based on the incremental business data and the timestamp to generate updated full mirror image data.

Further, querying the full amount of mirror image data associated with the login account stored in the mirror image warehouse may specifically be implemented in the following manner:

acquiring time information corresponding to the last log-out of the login account;

determining a target timestamp according to the time information, and inquiring mirror image data corresponding to the target timestamp stored in a mirror image warehouse;

correspondingly, the verifying whether the full volume mirror image data is consistent with the terminal service data includes:

and verifying whether the mirror image data is consistent with the terminal service data.

Further, the full volume mirror image data is synchronized to the login terminal so as to use the full volume mirror image data to cover the terminal service data, which can be specifically realized by the following means:

and synchronizing the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.

Specifically, the full-volume mirror image data stored in the mirror image warehouse is updated based on the incremental business data and the timestamp of the incremental business data, after the updated full-volume mirror image data is generated, under the condition that a login request sent by a user through a login terminal is received, since the login terminal of the user cannot receive offline data when the login account is in an offline state, the business data generated before the login account of the user logs out from the login last time can be compared, namely, a target timestamp is determined according to the time information corresponding to the last login log out of the login account, and the mirror image data corresponding to the target timestamp stored in the mirror image warehouse is inquired, so that whether the mirror image data is consistent with the terminal business data stored in the login terminal or not is verified.

Under the condition that the verification results are inconsistent, synchronizing the updated full mirror image data stored in a mirror image warehouse of the server to the login terminal so as to use the updated full mirror image data to cover the terminal service data; or, synchronizing the incremental business data in the mirror repository of the server to the login terminal under the condition that the verification results are consistent.

By means of automatic synchronization of full mirror image data or incremental business data, data synchronization efficiency is improved, and service experience of users is improved.

In the embodiment of the application, after receiving a login request of a user and determining that the login state of the login account is successful, a service operation request of the user can be received, and after updating service data according to the service operation request, the changed service data is synchronized to a login terminal as incremental data, which can be specifically realized by the following modes:

receiving a business operation request submitted by a user through the login terminal;

determining difference service data according to the service operation request;

and synchronizing the difference service data serving as incremental data to the login terminal.

Still taking the service as a game service as an example, after a game account of a user a successfully logs in, if a game item purchase request sent by the user a through the login terminal is received, a server needs to calculate and update game item information owned by the user a and remaining game resource values of the user a according to game item identification information carried in the game item purchase request and game resource values consumed for purchasing the game items, and synchronize an update result to the game terminal as incremental game data.

According to the data processing method provided by the embodiment of the application, a login request sent by a login terminal is received, the login request comprises a login account and first identification information of the login terminal, full mirror image data which are stored in a mirror image warehouse and are associated with the login account are inquired, terminal service data which are stored in the login terminal and are associated with the login account are obtained according to the first identification information, whether the full mirror image data are consistent with the terminal service data or not is verified, and the full mirror image data are synchronized to the login terminal under the condition that the verification result is inconsistent, so that the full mirror image data are used for covering the terminal service data;

the full-amount mirror image data are automatically synchronized to the login terminal by verifying whether the full-amount mirror image data in the mirror image warehouse are consistent with the terminal service data stored by the login terminal or not and under the condition that the verification result is inconsistent, so that the full-amount mirror image data are used for covering the terminal service data, and the full-amount mirror image data synchronization mode is automatically carried out, thereby being beneficial to improving the data synchronization efficiency and improving the service experience of a user.

Fig. 4 shows an interaction diagram of a data processing method according to an embodiment of the present application, which is described by taking the game service as an example, and includes steps 402 to 416.

In step 402, the server obtains and stores incremental game data generated in an offline state and associated with the game account of the user.

In step 404, the server receives a game account login request sent by the user through the login terminal.

Specifically, the game account login request includes a game account and first identification information of the login terminal.

At step 406, the server queries the full amount of mirrored game data stored in the mirrored repository in association with the game account.

Step 408, the server obtains terminal game data associated with the game account stored by the login terminal according to the first identification information.

In step 410, the server verifies whether the full amount of mirror image game data is consistent with the terminal game data.

In step 412, the server receives the game operation request submitted by the user through the login terminal if the verification result is consistent.

In step 414, the server determines difference game data according to the game operation request.

Step 416, the server synchronizes the difference game data as incremental game data to the login terminal.

In addition, when the verification result is inconsistent, the server synchronizes the full amount of mirror image game data to the login terminal so as to use the full amount of mirror image game data to overwrite the terminal game data.

This application is through the terminal game data unanimity of the total amount mirror image recreation data in the verification mirror image warehouse with the storage of login terminal to under the inconsistent condition of verification result, will total amount mirror image recreation data automatic synchronization extremely login terminal, in order to use total amount mirror image recreation data covers terminal game data carries out the synchronous mode of total amount mirror image recreation data automatically, is favorable to promoting the synchronous efficiency of data, thereby promotes user's game service and experiences.

Corresponding to the above method embodiment, the present application further provides an embodiment of a data processing apparatus, and fig. 5 shows a schematic structural diagram of the data processing apparatus according to an embodiment of the present application. As shown in fig. 5, the apparatus 500 includes:

a receiving module 502, configured to receive a login request sent by a login terminal, where the login request includes a login account and first identification information of the login terminal;

the query module 504 is configured to query full mirror image data associated with the login account and stored in a mirror image warehouse, and acquire terminal service data associated with the login account and stored in the login terminal according to the first identification information;

a verification module 506 configured to verify whether the full volume mirror data is consistent with the terminal service data;

a synchronization module 508 configured to synchronize the full volume mirror data to the login terminal to use the full volume mirror data to overlay the terminal service data in case that the verification result is inconsistent.

Optionally, the data processing apparatus further includes:

and the incremental business data acquisition module is configured to acquire and store the incremental business data which is generated in an offline state and is associated with the login account.

Optionally, the synchronization module 508 includes:

the pushing submodule is configured to push the incremental business data serving as a mirror image to be stored to the mirror image warehouse, so that the full mirror image data stored in the mirror image warehouse is updated based on the incremental business data, and updated full mirror image data is generated;

and the synchronization submodule is configured to synchronize the updated full volume mirror image data to the login terminal so as to use the updated full volume mirror image data to cover the terminal service data.

Optionally, the data processing apparatus further includes:

and the first incremental business data synchronization module is configured to push the incremental business data serving as a mirror image to be stored to the mirror image warehouse and synchronize the incremental business data to the login terminal under the condition that the verification result is consistent.

Optionally, the data processing apparatus further includes:

the adding module is configured to acquire incremental business data which are generated in an offline state and are associated with the login account, and add a timestamp to the incremental business data;

and the data updating module is configured to push the incremental business data and the timestamp as a mirror image to be stored to the mirror image warehouse, so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and the timestamp, and generate updated full mirror image data.

Optionally, the query module 504 includes:

the time information acquisition sub-module is configured to acquire time information corresponding to the last login logout of the login account;

the query submodule is configured to determine a target timestamp according to the time information and query mirror image data corresponding to the target timestamp stored in a mirror image warehouse;

accordingly, the verification module 506 includes:

and the verification sub-module is configured to verify whether the mirror image data is consistent with the terminal service data.

Optionally, the synchronization module 508 includes:

and the full mirror image data synchronization submodule is configured to synchronize the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.

Optionally, the data processing apparatus further includes:

and the second incremental business data synchronization module is configured to synchronize the incremental business data to the login terminal under the condition that the verification result is consistent.

Optionally, the data processing apparatus further includes:

the second identification information query module is configured to query second identification information of a login terminal used by the last login of the login account;

an identification information verification module configured to verify whether the first identification information and the second identification information are consistent;

and the data query module is configured to query full mirror image data which is stored in a mirror image warehouse and is associated with the login account under the condition that the verification result is inconsistent, and synchronize the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.

Optionally, the data processing apparatus further includes:

the request receiving module is configured to receive a service operation request submitted by a user through the login terminal;

the difference business data determining module is configured to determine difference business data according to the business operation request;

and the difference service data synchronization module is configured to synchronize the difference service data to the login terminal as incremental data.

It should be noted that the components in the device claims should be understood as functional blocks which are necessary to implement the steps of the program flow or the steps of the method, and each functional block is not actually defined by functional division or separation. The device claims defined by such a set of functional modules are to be understood as a functional module framework for implementing the solution mainly by means of a computer program as described in the specification, and not as a physical device for implementing the solution mainly by means of hardware.

An embodiment of the present application further provides a computing device, which includes a memory, a processor, and computer instructions stored in the memory and executable on the processor, and the processor implements the steps of the data processing method when executing the instructions.

An embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, and the instructions, when executed by a processor, implement the steps of the data processing method as described above.

The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the data processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the data processing method.

The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.

It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:游戏控制方法、装置、设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类