Data updating method and device, equipment, medium and program product

Unified storage and management of business data updates in the game system through bitmaps solves the problem of complexity and high cost of data updates in the game system, achieves efficient data management without stopping the server for updates, and improves user experience.

CN118662915APending Publication Date: 2024-09-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310304495.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-20
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In game systems, existing technology requires each system to independently maintain and update its data, which results in increased data update complexity and high repeated development costs. It also requires stopping the server to update the database, which affects the user experience.

Method used

By using bitmaps to uniformly store the data update status of business types, determine the business types that have not been updated and update the data, reducing the complexity of data updates and repeated development costs, without the need to stop the service for updates.

Benefits of technology

It achieves unified management of data updates, reduces the complexity and cost of business data updates, improves user experience, and avoids repeated data updates and development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118662915A
    Figure CN118662915A
Patent Text Reader

Abstract

The invention discloses a data updating method and device, equipment, a medium and a program product, and belongs to the field of man-machine interaction. The method comprises the following steps: acquiring a bitmap of a first account; the bitmap comprises state information corresponding to business data of different business types of the first account, and the state information is used for representing a data updating condition of the business data; determining a first service type from different service types according to state information in the bitmap; the first service type is at least one service type which is not subjected to data updating; performing data updating on the first service data corresponding to the first service type to obtain updated data of the first account; and after the data is successfully updated, updating the bitmap of the first account. According to the scheme, the complexity of data updating can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of human-computer interaction, and in particular to a data updating method, device, equipment, medium and program product. Background Art

[0002] In the game system, there is usually only a single copy of the player's system data stored in the database. The system data includes at least one of the ranking system data, rank system data, and reward system data. During the operation of the game, system function adjustments or program failures (bugs) often occur, and some of the player's system data needs to be updated once. For example: in the ranking system, if the calculation method of the ranking points changes, the ranking points of each player need to be recalculated based on the new calculation method.

[0003] In the related art, different systems in the game need to maintain their own system data. When the system data needs to be updated, each system needs to update the data itself.

[0004] However, since there are a large number of systems in the game, the data update requirements for each system are increasing, and the methods in related technologies increase the complexity of data updating. Summary of the invention

[0005] The present application provides a data updating method, device, equipment, medium and program product. The technical solution is as follows:

[0006] According to one aspect of the present application, a data updating method is provided, the method comprising:

[0007] Acquire a bitmap of the first account; the bitmap includes status information corresponding to business data of different business types of the first account, and the status information is used to characterize data update status of the business data;

[0008] Determine a first service type from the different service types according to the status information in the bitmap; the first service type is at least one service type for which data is not updated;

[0009] Updating first business data corresponding to the first business type to obtain updated data of the first account;

[0010] After the data is updated successfully, the bitmap of the first account is updated.

[0011] According to another aspect of the present application, a data updating device is provided, the device comprising:

[0012] An acquisition module, used to acquire a bitmap of the first account; the bitmap includes status information corresponding to business data of different business types of the first account, and the status information is used to characterize data update status of the business data;

[0013] A determination module, configured to determine a first service type from the different service types according to the status information in the bitmap; the first service type is at least one service type for which data is not updated;

[0014] An updating module, configured to update the first service data corresponding to the first service type to obtain updated data of the first account;

[0015] The updating module is further configured to update the bitmap of the first account after the data is successfully updated.

[0016] According to another aspect of the present application, a computer device is provided, the computer device comprising: a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the data updating method as described above.

[0017] According to another aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the data updating method as described above.

[0018] According to another aspect of the present application, a computer program product is provided, which includes computer instructions stored in a computer-readable storage medium, and a processor obtains the computer instructions from the computer-readable storage medium, so that the processor loads and executes to implement the data update method as described above.

[0019] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0020] By obtaining a bitmap of the first account; the bitmap includes status information corresponding to the business data of different business types of the first account, and the status information is used to characterize the data update status of the business data; according to the status information in the bitmap, the first business type is determined from the different business types, and then the first business data corresponding to the first business type is updated to obtain the updated data of the first account; after the data update is successful, the bitmap of the first account is updated. The scheme of the embodiment of the present application realizes the data update status of the business data corresponding to the business type in a unified manner through a bitmap, so that the data update status is easy to maintain, and does not need to be maintained by the business system to which the business type belongs. Moreover, it can reduce the complexity of business data update, and can also reduce the cost of repeated update and repeated development of business data, and there is no need to stop the service to update the data, which can also improve the user experience to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 A structural block diagram of a computer system provided by an exemplary embodiment is shown;

[0023] Figure 2 A schematic diagram showing a data updating method provided by an exemplary embodiment is shown;

[0024] Figure 3 A flow chart showing a data updating method provided by an exemplary embodiment;

[0025] Figure 4 A flow chart showing a data updating method provided by an exemplary embodiment;

[0026] Figure 5 A flow chart showing a data updating method provided by an exemplary embodiment;

[0027] Figure 6 A schematic diagram showing a data updating method provided by an exemplary embodiment is shown;

[0028] Figure 7 A schematic diagram showing a data updating method provided by an exemplary embodiment is shown;

[0029] Figure 8 A schematic diagram showing a data updating method provided by an exemplary embodiment is shown;

[0030] Fig. 9A structural block diagram of a data updating device provided by an exemplary embodiment is shown;

[0031] Fig.10 A structural block diagram of a computer device provided by an exemplary embodiment is shown. DETAILED DESCRIPTION

[0032] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0034] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0035] It should be noted that before collecting relevant data of users / players (such as ranking system data, rank system data, reward system data, real-name information, battle statistics, bullet information, etc.) and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window or output voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining user-related data after obtaining the user's confirmation operation on the prompt interface or pop-up window, otherwise (that is, when the user's confirmation operation on the prompt interface or pop-up window is not obtained), the relevant steps of obtaining user-related data are terminated, that is, the user's relevant data is not obtained. In other words, all user data collected by this application are collected with the user's consent and authorization, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

[0036] It should be understood that, although the terms first, second, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0037] First, the nouns involved in the embodiments of the present application are briefly introduced:

[0038] Database: A collection of large amounts of data that is organized, shareable, and uniformly managed and stored in computer devices for a long period of time.

[0039] Bitmap: is a data structure in which each bit can be used to store a certain state.

[0040] Business system: refers to the gameplay and functions provided in the game. Optionally, the business system includes at least one of a ranking system, a battle damage system, a reward system, and a rank system.

[0041] Business type: Each business in the business system is defined as a business type. The same business system can correspond to multiple business types. For example, in the ranking system, ranking calculation method 1 is business type 1, ranking calculation method 2 is business type 2, and ranking calculation method 3 is business type 3.

[0042] Virtual environment: is a virtual environment displayed or provided by the client when it is running on the terminal. The virtual environment can be a simulation of the real world, a semi-simulated and semi-fictitious three-dimensional world, or a purely fictitious three-dimensional world. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment. Optionally, the virtual environment is also used for a virtual environment battle between at least two virtual characters, and there are virtual resources in the virtual environment that can be used by at least two virtual characters. Optionally, the virtual environment includes symmetrical lower left corner area and upper right corner area, and virtual characters belonging to two hostile camps occupy one of the areas respectively.

[0043] Virtual character: refers to an movable object in a virtual environment. The movable object may be at least one of a virtual person, a virtual animal, and a cartoon character. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual character may be a three-dimensional virtual model, and each virtual character has its own shape and volume in the three-dimensional virtual environment, and occupies a part of the space in the three-dimensional virtual environment. Optionally, the virtual character is a three-dimensional character constructed based on three-dimensional human skeleton technology, and the virtual character achieves different external images by wearing different skins. In some implementations, the virtual character may also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application.

[0044] Figure 1 The structure block diagram of a computer system provided by an exemplary embodiment of the present application is shown. The computer system can be implemented as a system architecture of a data updating method. The computer system 100 includes: a terminal 120 and a server 140.

[0045] The terminal 120 may be an electronic device such as a mobile phone, a tablet computer, a vehicle terminal (vehicle computer), a wearable device, a PC (Personal Computer), an unmanned reservation terminal, etc. The terminal 120 may be installed with a client for running a target application, and the target application may be a target application that supports a virtual environment and provides a data update function, or may be other applications that provide a data update function, which is not limited in this application.

[0046] Optionally, the target application may be any one of a battle royale shooting game, a virtual reality (VR) client, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online tactical competitive game (MOBA), and a simulation game (SLG), and this application does not limit this. In addition, the target application in this application includes but is not limited to an App (Application, application) installed in the terminal 120, a mini-program, etc., and may also be in the form of a web page.

[0047] Server 140 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. Server 140 may be a backend server of the above-mentioned target application, used to provide backend services for the client of the target application.

[0048] For example, the terminal 120 sends the business type that needs to be updated to the server 140, and the server 140 updates the business data corresponding to the business type. Then, the server 140 sends the updated data to the terminal 120, and the terminal 120 displays the updated data on the display interface of the target application after receiving the updated data.

[0049] Among them, cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to realize data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which is used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.

[0050] In some embodiments, the above-mentioned server can also be implemented as a node in a blockchain system. Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product service layer, and the application service layer.

[0051] The terminal 120 and the server 140 may communicate with each other via a network, such as a wired or wireless network.

[0052] The data updating method provided in the embodiment of the present application can be executed by a computer device in each step. A computer device refers to an electronic device with data calculation, processing and storage capabilities. Figure 1 Taking the implementation environment of the scheme shown as an example, the data update method can be executed by the terminal 120 (such as the client of the target application installed and running in the terminal 120 executes the data update method), or the data update method can be executed by the server 140, or the terminal 120 and the server 140 can interact and cooperate to execute it, and this application does not limit this.

[0053] Those skilled in the art will appreciate that the number of the terminals 120 may be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals 120, or a greater number. The embodiment of the present application does not limit the number and device type of the terminals.

[0054] The data update method provided in the embodiments of the present application can be applied to, but is not limited to, at least one of the following scenarios: virtual reality applications, three-dimensional map programs, first-person shooter games (First-Person Shooting Game, FPS), third-person shooter games (Third-Person Shooting Game, TPS), multiplayer online tactical competitive games (Multiplayer Online Battle Arena Games, MOBA), multiplayer gun battle survival games, etc.

[0055] In the related art, there are two ways to update player data in the game:

[0056] The first method is to directly stop the service to update the database, that is, every time there is a need to update player data, a Structured Query Language (SQL) script for data update will be written in advance, the game server will be stopped before the data is updated, and the script will be updated in batches for all player data in the database. After the data update is completed, the game service will be resumed. The processing method is briefly described as follows:

[0057] Step 1. Stop the game service;

[0058] Step 2. Back up the game database;

[0059] Step 3. Execute the SQL script to update the database;

[0060] Step 4. If the database update is successful, resume the game service; if the database update fails, restore the database from the backup library and try again, then return to step 1.

[0061] The second method: Each business system in the game handles data updates by itself, that is, different business systems decide the time and method of updating data by themselves, and record and maintain the game data update status by themselves. The processing method is briefly described as follows:

[0062] Step 1. Business system X updates data;

[0063] Step 2. Determine whether it has been processed;

[0064] Step 3. If the business data has not been processed, process it; if it has been processed, execute step 5;

[0065] Step 4. Update the business processing status;

[0066] Step 5. End.

[0067] There are some defects and shortcomings in both of the above methods:

[0068] The first method: Directly updating the database requires stopping the game service before updating, which will cause the game service to be unavailable for a certain period of time. In addition, it takes a very long time to fully update the player data. If an error occurs during the process, the database will be abnormal, and you need to prepare for database backup and recovery in advance. This solution is very time-consuming, complicated to operate, and risky.

[0069] The second method: Different business systems need to maintain their own status data and update logic, and these data and logic are usually similar for different business systems. If each functional system redoes the status data and update logic, there will be a lot of duplication of work, which seriously reduces development efficiency.

[0070] The embodiment of the present application provides a data update method that can achieve database operation without stopping service, and different business systems can directly reuse it without the need to maintain status data themselves, thereby reducing the complexity of data updates in the business system and reducing the cost of repeated updates and repeated development between different business systems.

[0071] Figure 2 A schematic diagram of a data updating method provided by an exemplary embodiment of the present application is shown. The data updating method of this embodiment is briefly described below:

[0072] Bitmap

[0073] In this embodiment, a bitmap is used to uniformly store the data update status of the business data of different business types of the player's account in the game. The bitmap includes status information corresponding to the business data of different business types, and the status information is used to characterize the data update status of the business data. The bitmap includes at least two rows, which store the business type and the status information respectively, and the number of columns of the bitmap is the same as the number of business types. Optionally, when a new business type appears in the game system, a new column is created in the bitmap, and the column stores the new business type and its corresponding status information.

[0074] like Figure 2 As shown, a client of a game is installed and run in a computer device 10. In the game system 20 of the game, the business system of the first account includes a ranking system 21, a rank system 22, a reward system 23, a battle damage system 24, and the like. Taking the example that each business system includes two business types, the ranking system 21 includes a recalculation ranking (211) and a recalculation ranking V2 (212), wherein the recalculation ranking (211) indicates that the ranking is calculated using the ranking calculation method V1, and the recalculation ranking V2 (212) indicates that the ranking is calculated using the ranking calculation method V2, and the ranking calculation method V2 is different from the ranking calculation method V1. The rank system 22 includes a recalculation rank (221) and a recalculation rank V2 (222). The reward system 23 includes a reward issuance (231) and a reward issuance V2 (232), wherein the reward issuance (231) and the reward issuance V2 (232) are different in at least one of the number, type, and issuance time of the corresponding rewards. The battle damage system 24 includes recalculated battle damage 241 and recalculated battle damage V2 (242).

[0075] like Figure 2 As shown, a bitmap 30 of the first account is established based on the business system, business type and status information of the first account in the above-mentioned game system 20. Position 1 of the bitmap 30 stores the status information corresponding to the recalculated ranking list (211) in the ranking list system 21, and the status information includes a value of 1, which means that the account has used the ranking list calculation method V1 corresponding to the recalculated ranking list (211) to calculate the ranking list and obtain the recalculated ranking list. Position 2 of the bitmap 30 stores the status information corresponding to the recalculated rank (221) in the rank system 22, position 3 of the bitmap 30 stores the status information corresponding to the issuance of rewards (231) of the reward system 23, position 4 of the bitmap 30 stores the status information corresponding to the recalculated battle damage (241) of the battle damage system 24, and position 5 of the bitmap 30 stores the status information corresponding to the recalculated battle damage V2 (241) of the battle damage system 24, and the status information includes a value of 0, which means that the account has not used the recalculated battle damage calculation method V2 of the recalculated battle damage V2 (241) to recalculate the battle damage.

[0076] Data update method

[0077] like Figure 2 As shown, the computer device 10 obtains the bitmap 30 of the first account; the bitmap includes status information corresponding to the business data of different business types of the first account, and the status information is used to characterize the data update status of the business data; then, the computer device 10 determines the first business type from the different business types according to the status information in the bitmap 30, wherein the first business type is at least one business type that has not been updated. For example, the first business type 31 is the recalculated battle damage V2 corresponding to position 5 of the bitmap 30 of the first account. Then, the computer device 10 updates the first business data corresponding to the first business type and obtains the updated data corresponding to the first account, that is, the recalculated battle damage data obtained by the recalculated battle damage calculation method V2 using the recalculated battle damage V2. Finally, after the data is successfully updated, the computer device 10 updates the bitmap 30 of the first account, that is, updates the status information corresponding to the recalculated battle damage V2 at position 5 in the bitmap 30 to 1.

[0078] In summary, the data update method provided in the embodiment of the present application is to obtain a bitmap of the first account; the bitmap includes status information corresponding to the business data of different business types of the first account, and the status information is used to characterize the data update status of the business data; according to the status information in the bitmap, the first business type is determined from the different business types; then, the first business data corresponding to the first business type is updated to obtain the updated data of the first account; after the data update is successful, the bitmap of the first account is updated. The scheme of the embodiment of the present application realizes the unified storage of the data update status of the business data corresponding to the business type through the bitmap, so that the data update status is easy to maintain, and there is no need for the business system to which the business type belongs to maintain it by itself, and it can reduce the complexity of business data update, and can also reduce the cost of repeated update and repeated development of business data, and there is no need to stop the service to update the data, which can also improve the user experience to a certain extent.

[0079] Figure 3 A flowchart of a data updating method provided by an exemplary embodiment of the present application is shown, in which the method is applied to Figure 1 Taking the terminal 120 or the client of the target application installed on the terminal 120 as an example, the method includes:

[0080] Step 220, obtaining a bitmap of the first account; the bitmap includes status information corresponding to business data of different business types of the first account, and the status information is used to represent data update status of the business data.

[0081] The first account refers to the account registered by the player in the game. The business system refers to the gameplay and functions provided in the game, and each business in the business system is defined as a business type. That is, different gameplay and functions in the game correspond to different business systems, and different businesses included in the business system correspond to different business types.

[0082] For example, the game system may provide players with the function of viewing rankings, where the rankings are calculated based on the total game points, or the rankings are determined based on the game points of the previous game, or the rankings are initialized after the end of the first season. The business system included in the game system is a ranking system, and there are three business types: business type 1 is to calculate the rankings based on the total game points, business type 2 includes calculating the rankings based on the game points of the previous game, and business type 3 includes initializing the rankings after the end of the first season.

[0083] A bitmap is a data structure. Each bit in the bitmap is used to store a certain state. In this embodiment, the bitmap stores state information of different business types and business data corresponding to the business types. The state information is used to characterize the data update status of the business data.

[0084] In this embodiment, all different business types in the game system are stored in the bitmap in an enumeration manner. In the bitmap, different business types can be arranged randomly or in the order of the business systems to which the business types belong. In the case of arranging in the order of the business systems to which the business types belong, different business systems can be arranged randomly, and different business types corresponding to the same business system can be arranged randomly.

[0085] Exemplarily, the business type in the bitmap may be stored according to at least one of the name, keyword, and identifier of the business type. The state information in the bitmap includes a first state value and a second state value, the first state value is a value used to characterize that the business type has not been updated with data, and the second state value is a value used to characterize that the business type has been updated with data, the first state value includes 0, and the second state value includes 1.

[0086] Exemplarily, a schematic diagram of a bitmap for state storage provided by an exemplary embodiment of the present application is shown in Table 1. The bitmap includes two rows, the first row represents the business type, which is stored according to the name of each business type, and the second row represents the state information, which is stored as 0 or 1. The number of columns of the bitmap is consistent with the number of business types, and one column stores one business type.

[0087] Table 1: Schematic diagram of bitmap

[0088] Business Type Recalculating the damage Initialize rank information Reward reissue Recalculate Damage V2 … Status Information 1 1 1 0 …

[0089] Optionally, when the game system includes a service type to be updated, a bitmap of the first account is obtained. The service type to be updated refers to at least one service type among different service types in the game system. In this case, the first account does not need to log in to the game system, and the computer device directly obtains the bitmap of the first account to perform a subsequent data update process.

[0090] Optionally, when the first account is logged in, the bitmap of the first account is obtained. In this case, when the player logs in the first account in the computer device, the computer device obtains the bitmap of the first account and performs a subsequent data update process.

[0091] Optionally, when the first account is logged in and the first account triggers the start of a business system to which at least one of the different business types belongs, the bitmap of the first account is obtained. In this case, when the player logs in to the first account in the computer device and starts a business system in the game system, the computer device obtains the bitmap of the first account and subsequently performs a data update process for the business system. For example: the player logs in to the first account and clicks on the ranking system, then the computer device obtains the bitmap of the first account and subsequently performs a data update process for the ranking system.

[0092] Optionally, when the first account is logged in and the business system of at least one of the different business types is initialized, the bitmap of the first account is obtained. In this case, when the player logs in to the first account in the computer device and the business system of at least one business type needs to be initialized, the computer device obtains the bitmap of the first account and subsequently performs a data update process for at least one business system. For example: the player logs in to the first account, and the ranking system and the rank system need to be initialized, then the computer device obtains the bitmap of the first account and subsequently performs a data update process for the ranking system and the rank system to initialize the system.

[0093] Step 240: Determine a first service type from different service types according to the status information in the bitmap; the first service type is at least one service type that has not been updated with data.

[0094] Exemplarily, according to the status information in the bitmap, a first service type is determined from different service types, and the first service type is at least one service type for which data is not updated.

[0095] Optionally, the status information in the bitmap includes a first status value, where the first status value is a value used to characterize that the service type has not performed data update, and the service type corresponding to the first status value may be determined as the first service type.

[0096] Step 260: Update the first business data corresponding to the first business type to obtain updated data of the first account.

[0097] Updated data refers to data obtained after updating the first business data corresponding to the first business type. For example, if the first business type is to use the total game points to calculate the ranking list, then the updated data refers to the ranking list calculation result obtained by using the total game points to calculate the ranking list.

[0098] Exemplarily, the first service data corresponding to the first service type is updated to obtain updated data of the first account. Optionally, when the computer device updates data, it may update only one service type at a time, or may update multiple service types at the same time.

[0099] Step 280: After the data is updated successfully, update the bitmap of the first account.

[0100] Exemplarily, after the data is updated successfully, the bitmap of the first account is updated. Optionally, updating the bitmap of the first account includes updating the status information corresponding to the first service type in the bitmap.

[0101] In some embodiments, updating the bitmap of the first account may also be updating the service type in the bitmap. When a new service type is set in the game system, the new service type is newly created in the bitmap, as well as the status information corresponding to the new service type. For example, if the new service type in the ranking system is to initialize the ranking after the end of the second season, the new service type is newly created in the bitmap, and the status information corresponding to the new service type is stored accordingly.

[0102] It should be noted that for a business type, the data update of the business data of the business type in this embodiment is a one-time update. For example, when a parameter is added to the ranking score calculation formula in the ranking system, the ranking score of each player needs to be recalculated based on the new ranking score calculation formula, and only recalculated once.

[0103] In summary, the data update method provided in the embodiment of the present application is to obtain a bitmap of the first account; the bitmap includes status information corresponding to the business data of different business types of the first account, and the status information is used to characterize the data update status of the business data; according to the status information in the bitmap, the first business type is determined from the different business types; then, the first business data corresponding to the first business type is updated to obtain the updated data of the first account; after the data update is successful, the bitmap of the first account is updated. The scheme of the embodiment of the present application realizes the unified storage of the data update status of the business data corresponding to the business type through the bitmap, so that the data update status is easy to maintain, and there is no need for the business system to which the business type belongs to maintain it by itself, and it can reduce the complexity of business data update, and can also reduce the cost of repeated update and repeated development of business data, and there is no need to stop the service to update the data, which can also improve the user experience to a certain extent.

[0104] In some embodiments, this embodiment provides a unified data update method for different business systems. The difference in data update of different business systems lies in the difference in calculation logic. For example, the calculation logic of recalculating combat damage needs to calculate the combat damage value based on the player's statistical data and the new version of the recalculation combat damage calculation formula, and the initialization of rank information needs to calculate the historical highest rank information based on the player's historical season rank data.

[0105] For example, Figure 4 A schematic diagram of a data updating method provided by an exemplary embodiment of the present application is shown. The above step 260 may optionally include the following steps 320 and 340:

[0106] Step 320, determining a data processing function corresponding to the first service type; the data processing function is registered based on the operation logic of the service type.

[0107] The data processing function (DealFunc) is registered based on the operation logic of the business type.

[0108] Exemplarily, different business types correspond to different operation logics, that is, different business types correspond to different data processing functions, and each business type provides a separate data processing function for instructing the computer device to execute the operation logic within each business type.

[0109] Optionally, the operation logic of each service type indicates at least one of the data content, type, size, time period, and calculation formula required for the data update process of the service type.

[0110] Exemplarily, a data processing function corresponding to the first service type is determined.

[0111] Step 340: Update the first business data corresponding to the first business type based on the operation logic indicated by the data processing function to obtain updated data of the first account.

[0112] Exemplarily, based on the operation logic indicated by the data processing function, the first business data corresponding to the first business type is updated to obtain updated data of the first account.

[0113] In this embodiment, by determining the data processing function corresponding to the first service type and updating the first service data corresponding to the first service type based on the operation logic indicated by the data processing function, the efficiency and accuracy of data updating can be improved.

[0114] In some embodiments, the bitmap includes enumeration values, different service types in the bitmap correspond to different enumeration values, and one enumeration value is associated with one service type in the bitmap. Optionally, the enumeration value can be represented by at least one of a numerical value, a symbol, and a letter.

[0115] Please continue reading Figure 4 , the above step 320 may include the following steps 322 and 324:

[0116] Step 322: call the data update interface to obtain the business registration table.

[0117] The data update interface is a unified player data update interface provided in this embodiment, and the data update process of different accounts of players and different business types of different accounts can call this data update interface.

[0118] An exemplary, unified data update interface is defined as follows:

[0119] int update_role_version(enum tagENUM_ROLE_VERSION eType,LPROLEpstRole,int iParam,void*pstParam)

[0120] The business registry includes multiple business units, each of which includes a business type and a data processing function corresponding to the business type, and the business type in the business registry is associated with the business type in the bitmap through an enumeration value. Exemplarily, the data update interface is called to obtain the business registry.

[0121] Step 324, based on the enumeration value corresponding to the first business type in the bitmap, obtain the data processing function corresponding to the enumeration value from the business registration table; wherein the business registration table includes multiple business units, each of the multiple business units includes a business type and a data processing function corresponding to the business type.

[0122] Exemplarily, based on the enumeration value corresponding to the first business type in the bitmap, the business type corresponding to the enumeration value in the business registration table and the business unit where the business type is located are determined, and the data processing function included in the business unit is determined as the data processing function corresponding to the first business type.

[0123] In some embodiments, the data processing function corresponding to the business type can be an empty function to meet the requirement that some business types do not have specific operation logic and only need to mark the status information corresponding to the business type. For example, the business system includes a reward system, and the business type includes issuing rewards. There is no need for calculation to issue rewards. It only needs to mark the corresponding status information in the bitmap after the computer device executes the business of issuing rewards.

[0124] Exemplarily, a data processing function corresponding to the first service type is determined. When the data processing function is an empty function, the computer device executes a first service corresponding to the first service type, and updates a bitmap of the first account after the first service is successfully executed.

[0125] In this embodiment, the business type is supported to customize the registration of data processing functions. The business registration table can also realize the unified storage and management of data processing functions corresponding to the business types, which can improve the accuracy and efficiency of determining the data processing functions.

[0126] In some embodiments, it is necessary to determine whether the service data corresponding to the service type needs to be updated based on the status information in the bitmap. Figure 5 A flowchart of a data updating method provided by an exemplary embodiment of the present application is shown. The above step 240 includes the following steps 420 and 440:

[0127] Step 420: Determine the status information corresponding to each service type in the bitmap.

[0128] Step 440: When the state information includes a first state value, determine the service type corresponding to the first state value as the first service type; wherein the first state value is a value used to indicate that the service type has not been updated.

[0129] Exemplarily, when the status information includes a first status value, the service type corresponding to the first status value is determined as the first service type; wherein the first status value is a value used to characterize that the service type has not been updated with data. The first status value includes 0. That is, when the status information corresponding to the service type is 0, it indicates that the service type needs to be updated with data.

[0130] Optionally, a traversal method is adopted to traverse the status information corresponding to each service type in the different service types in the bitmap to determine whether the status information includes the first status value.

[0131] In some embodiments, please refer to Figure 5 Based on the above steps 420 and 440, step 240 may further optionally include the following steps 460:

[0132] Step 460: When the state information includes at least two first state values ​​and the business types corresponding to the at least two first state values ​​belong to the same business system, determine the highest version of the business type as the first business type.

[0133] The version of a service type can be represented by the timestamp of the service type. The closer the timestamp is to the current time point, the newer the version of the service type is.

[0134] Exemplarily, when the state information includes at least two first state values, and the business types corresponding to the at least two first state values ​​belong to the same business system, the highest version of the business type is determined as the first business type. The highest version of the business type refers to the business type whose timestamp is closest to the current time point.

[0135] For example, the ranking system includes two business types. Business type 1 initializes the ranking after the end of the first season, with a timestamp of March. Business type 2 initializes the ranking after the end of the second season, with a timestamp of June. The current time point is July, so the version of business type 2 is the latest version. When the status information corresponding to business type 1 and business type 2 is both 0, business type 2 is determined as the first business type that needs to update data.

[0136] The method of this embodiment can improve the accuracy of determining the first service type that needs data update and avoid repeated data update.

[0137] In some embodiments, when the data is updated successfully, the corresponding status information in the bitmap of the first account needs to be updated. Figure 5 , the above step 280 can be implemented as the following steps 520:

[0138] Step 520: after the data is updated successfully, the state information corresponding to the first service type in the bitmap is updated to a second state value; wherein the second state value is a value used to indicate that the service type has undergone data update.

[0139] Exemplarily, the first service data of the first service type is updated, and after the data is successfully updated, the state information corresponding to the first service type in the bitmap is updated to the second state value. The second state value is a value used to characterize that the service type has been updated, and the second state value includes 1. That is, the state information corresponding to the first service type is updated from 0 to 1.

[0140] In this embodiment, by updating the bitmap, timely marking of status information can be achieved. When the bitmap is used subsequently, the corresponding status information can be quickly determined, which improves data processing efficiency and avoids repeated updates of business data.

[0141] In some optional implementations, the above step 280 may further include at least one of the following steps:

[0142] In some embodiments, when the maintenance duration of the status information in the bitmap exceeds a duration threshold and the status information includes a second status value, the service type corresponding to the status information is deleted from the bitmap.

[0143] The maintenance duration refers to the duration during which the status information does not change. The duration threshold refers to the maximum value of the maintenance duration, which can be set according to actual technical needs.

[0144] Optionally, different service types may be set with different duration thresholds, which are negatively correlated with the historical update frequency of the service type. For example, in a reward system, service type 1 includes issuing daily rewards, service type 2 includes issuing season rewards, and the update frequency of service type 1 is higher than that of service type 2. Then the duration threshold of service type 1 is lower than that of service type 2.

[0145] Exemplarily, when the maintenance duration of the status information in the bitmap exceeds the duration threshold and the status information includes a second status value, the service type corresponding to the status information is deleted from the bitmap. The second status value is a value used to characterize that the service type has undergone data update. That is, for a service type in the bitmap that has undergone data update, when the maintenance duration of the status information of the service type exceeds the duration threshold, the service type can be deleted from the bitmap to save the storage space occupied by the bitmap.

[0146] In some embodiments, when at least two of the different service types in the bitmap belong to the same service system, the service type with the lowest version and status information including the second status value among the at least two service types is deleted from the bitmap.

[0147] Optionally, when at least two of the different service types in the bitmap belong to the same service system, the service type with the lowest version and status information including the second status value among the at least two service types is deleted from the bitmap.

[0148] For example: in the rank system, business type 1 includes recalculating the rank using the rank calculation formula V1, and business type 2 includes recalculating the rank using the rank calculation formula V2. The version of business type 1 is lower than the version of business type 2. Assuming that business type 1 and business type 2 both correspond to the second state information, business type 1 can be deleted from the bitmap and the latest version of business type 2 can be retained to save storage space occupied by the bitmap.

[0149] In some embodiments, different service types in the bitmap are reordered based on the status information in the bitmap; wherein the ordering priority of the service type corresponding to the first status value is higher than the ordering priority of the service type corresponding to the second status value.

[0150] Reordering refers to reordering the positions of different service types in the bitmap. For example, a service type is located in the 10th column of the bitmap before reordering, and the service type may be located in the 2nd column of the bitmap after reordering.

[0151] Exemplarily, based on the status information in the bitmap, different service types in the bitmap are reordered; wherein the ordering priority of the service type corresponding to the first status value is higher than the ordering priority of the service type corresponding to the second status value. That is, the service type corresponding to the first status value is reordered first, and after the service type corresponding to the first status value is reordered, the service type corresponding to the second status value is reordered.

[0152] Optionally, the service type corresponding to the first state value in the bitmap is arranged before the service type corresponding to the second state value. When traversing the bitmap to determine the service type that needs data update, the traversal time can be effectively reduced, and the efficiency of determining the service type that needs data update can be improved.

[0153] Optionally, the service type corresponding to the first state value in the bitmap is arranged after the service type corresponding to the second state value. When updating the bitmap or deleting the service type in the bitmap, it is possible to quickly determine which service types need to be deleted, thereby improving the efficiency of updating the bitmap and saving storage space occupied by the bitmap.

[0154] In some embodiments, the second account refers to a portion of the first account, and the second account may be at least one of a celebrity account, a master account, and a star account.

[0155] A star account refers to an account of a star player, including but not limited to public figures, entertainers, etc. A master account refers to an account of a player whose account activity, account level, equipment level, ranking, and rank are at least one of the top N in the server. A star account refers to an account whose credit star rating exceeds the star threshold. A star account includes at least one of a player star account and a character star account. A player star account means that the player's account is a star account, and a character star account means that one or more virtual characters under the player's account are star accounts. For a player, he can have a player star account, and under the player star account, he can also have one or more character star accounts.

[0156] In some embodiments, the second account may be identified and determined in at least one of the following ways.

[0157] Optionally, the account registration information of the first account is obtained, the account information includes real-name information, and whether the first account is the second account is determined according to the real-name information in the account registration information. For example, when the account registration information is obtained and the real-name information in the account registration information is in the real-name information configuration table, the first account is determined to be a celebrity account, that is, the first account is determined to be the second account. The real-name information configuration table is pre-configured with real-name information corresponding to at least one of the public and the entertainer.

[0158] Optionally, the computer device is installed and running with a first recognition model, and the first recognition model is used to recognize celebrity accounts. The training data of the first recognition model includes sample celebrity account registration information and label information thereof, and the sample celebrity account registration information includes at least one of the account nickname and real name information of the sample celebrity account. Exemplarily, the account registration information of the first account is obtained, and the account registration information of the first account is input into the first recognition model, the account registration information includes at least one of the account nickname and real name information, the first recognition model extracts information features of the account registration information, and classifies the account registration information based on the information features to obtain a classification result of the account registration information of the first account, wherein the classification result includes one of the first account being a celebrity account and the first account not being a celebrity account.

[0159] Optionally, when the first account is in a live broadcast state, the bullet screen information of the first account is obtained, wherein the bullet screen information includes at least one of text and images, and the semantic similarity between the bullet screen information and the preset celebrity account information is calculated, and when the semantic similarity exceeds a similarity threshold, the first account is determined to be a celebrity account. The preset celebrity account information includes at least one of the name, nickname, fan nickname, text introduction corresponding to the participating works, character introduction and promotional images of public personnel and entertainers.

[0160] Optionally, obtain the battle statistics of the first account, the battle statistics include at least one of the account activity, account level, equipment level and quantity, historical game information, historical rank information, and historical ranking information, and determine whether the first account is the second account based on the battle statistics. For example, if the account activity in the battle statistics of the first account exceeds the average activity, and at least one of the account level, equipment level and quantity, number of game wins in a historical time period, rank ranking, and ranking ranking is ranked in the top N of the entire server, it indicates that the first account is a master account, that is, the first account is determined to be the second account.

[0161] Optionally, whether the first account is the second account is determined based on at least one of the total number of second status values ​​included in the bitmap and the data update time of the business type corresponding to the second status value. For example, when the total number of second status values ​​included in the bitmap of the first account exceeds the quantity threshold, and the data update time of the business type corresponding to the second status value is closest to the time when the business type is newly created in the bitmap, it indicates that the account activity of the first account exceeds the average activity, indicating that the first account is a master account, that is, the first account is determined to be the second account.

[0162] Optionally, the computer device is installed and running with a second recognition model, and the second recognition model is used to identify the master account. The training data of the second recognition model includes the battle statistics information and label information of the sample master account, and the battle statistics information of the sample master account includes at least one of the account activity, account level, equipment level and quantity, historical game information, historical rank information, and historical ranking information of the sample master account. Exemplarily, the battle statistics information of the first account is obtained, and the battle statistics information of the first account is input into the second recognition model. The battle statistics information of the first account includes at least one of the account activity, account level, equipment level and quantity, historical game information, historical rank information, and historical ranking information of the first account. The second recognition model extracts the information features of the battle statistics information, and outputs the probability value of the first account being a master account based on the information features. Wherein, when the probability value exceeds the probability threshold, the first account is determined to be a master account.

[0163] Optionally, when the first account is in a live broadcast state, the bullet screen information of the first account is obtained, wherein the bullet screen information includes at least one of text and images, and the semantic similarity between the bullet screen information and the preset master account information is calculated, and when the semantic similarity exceeds the similarity threshold, the first account is determined to be a master account. The preset master account information includes at least one of keywords and images, and the keywords include "master", "ranked first", "ranked top N", etc., and the images include images containing the above keywords and different title images corresponding to different full-server rankings, etc.

[0164] Optionally, the credit star information of the first account is obtained, the credit star information includes at least one of a game credit star and a character credit star, and whether the first account is the second account is determined based on the credit star information. For example, if the game credit star of the first account exceeds a first star threshold, and the virtual character credit star corresponding to the virtual character owned by the first account exceeds at least one of a second star threshold, the first account is determined to be a star account, that is, the first account is determined to be the second account.

[0165] Optionally, the computer device is installed and running with a third recognition model, and the third recognition model is used to identify star accounts. The training data of the third recognition model includes game credit star information of sample player star accounts and character credit star information of sample character star accounts and their respective label information. Game credit star information includes various behavior information of players in the game, such as: skill release behavior, team battle participation behavior, gain acquisition behavior, tower pushing behavior, and soldier line clearing behavior. The character credit star information includes various behavior information of the owned virtual character, such as at least one of the skill release behavior, team battle participation behavior, gain acquisition behavior, tower pushing behavior, and soldier line clearing behavior of the virtual character.

[0166] Exemplarily, the credit star information of the first account is obtained, the credit star information of the first account includes at least one of the game credit star and the character credit star, the credit star information of the first account is input into the third recognition model, the third recognition model extracts the information features of the credit star information, and outputs a first probability value that the first account is a player star account and a second probability value that the virtual character owned by the first account is a character star account based on the information features. Wherein, if at least one of the first probability value exceeds the first probability threshold and the second probability value exceeds the second probability threshold is satisfied, the first account is determined to be a star account.

[0167] In a possible implementation, the method may further optionally include: when logging into the second account, obtaining a bitmap of the second account, the bitmap also including a second business type, and status information corresponding to second business data of the second business type; based on the status information corresponding to the second business data of the second business type, updating the second business data to obtain updated data of the second account; wherein the second business type refers to an exclusive business type of the second account.

[0168] Exemplarily, the second service type refers to the exclusive service type of the second account. For example, in the reward system, virtual props are only issued to the second account, and the exclusive service type of the second account in the bitmap is issuing virtual props.

[0169] Optionally, based on the status information corresponding to the second business data of the second business type, when the status information includes the first status value, the second business data is updated using a data processing function corresponding to the second business data to obtain updated data of the second account.

[0170] In the above embodiment, the account type, bitmap and data update mode of different accounts can also be set, so that the data update method of this embodiment is more flexible and targeted.

[0171] The data updating method provided in the embodiment of the present application is described below with reference to a schematic diagram.

[0172] For example, Figure 6 A schematic diagram of a data updating method provided by an exemplary embodiment of the present application is shown. Figure 6 The data statistics display interface 60 of the first account currently logged in in the game is shown. The nickname of the first account is displayed in the display area 61. The display interface 60 also displays business data of various business types of the first account. The displayed business data include: combat loss rate 62, team participation rate 63, number of gold coins obtained per minute 64, hero damage caused / round 65, hero damage suffered / round 66, and defense tower damage caused / round 67.

[0173] The embodiment of the present application provides a method of uniformly saving the business data processing status using a bitmap, and uniformly standardizing the business data update process using a business registration table, and supports customized operation requirements of different businesses.

[0174] ·Bitmap uniformly saves business status

[0175] First, for the current business scenario, the way to update business data is determined by each business, and different business systems only need to save information about whether the data has been processed, without saving specific data information. If different business systems add fields to save the processing status, then it will be necessary to add many different fields to the player storage structure to identify the function, which will waste storage space and increase the cost of understanding, and different business systems will need to repeat the same operation.

[0176] Since we only need to record the processing status of each service, we only need 1 bit to mark each status as 0 or 1. Based on this, in this embodiment, a bitmap data structure is used to uniformly save the processing status of services. The processing status of different systems can be shared and stored in the same int field. An int64 integer can mark the status information of 64 systems, which can greatly save memory.

[0177] In this embodiment, a set of enumerations is designed to associate each bit of the bitmap with a service type, so that query and modification operations can be performed conveniently. The bitmap can be shown in Table 2 below.

[0178] Table 2: Schematic diagram of bitmap

[0179] Number of digits 1 2 3 4 … Business Type Recalculating the damage Initialize rank information Reward reissue Recalculate Damage V2 … Status Information 1 1 1 0 …

[0180] Unified data processing methods

[0181] In addition to using bitmaps to uniformly save the update status of each business, the basic process for analyzing such business scenarios that require compatible processing is the same. It simply determines whether the game data needs to be processed, then processes the data, and finally marks the processing completed. Figure 7 A schematic diagram of an exemplary data updating method provided by the present application is shown, and the data updating process is briefly described as follows:

[0182] 711. Log in to the first account;

[0183] 712. Determine whether data needs to be updated according to the bitmap status of the first account; if data needs to be updated, execute 713; if data does not need to be updated, execute 715;

[0184] 713. Determine data processing logic and update data;

[0185] 714. After the data is updated successfully, mark the bitmap;

[0186] 715. End.

[0187] In the data update process, the difference lies in the different "data processing logic". For example, the processing logic of recalculating damage needs to calculate the damage value based on the player's statistical data and the new version of the formula, and the initialization of rank information needs to calculate the historical highest rank information based on the player's historical season rank data. Other than that, the other logic is the same, for example, judging whether processing is required based on the bitmap status, and marking the bitmap after data processing is completed.

[0188] In this embodiment, the above processes are unified and abstracted into a general data processing framework. The data processing framework encapsulates the unified operation part and supports customized data processing functions for different businesses. A registry is used to support different businesses to use the data processing framework. The business registry includes multiple business units, and the data structure of each business unit includes a business type and a data processing function.

[0189] Among them, the business type (Type) is the registered business type. Each business in the business system is defined as a type. This type can not only identify a unique business, but also be associated with the enumeration value required for bitmap storage. The business-defined data processing function (DealFunc) is a data processing function provided by each business separately to execute the internal operation logic of each business. This function can be registered as an empty function to meet the needs of some businesses that do not have specific operation logic and only need to mark a state.

[0190] Based on this, after completing the unified status judgment and marking, and supporting different business registrations of customized data processing functions, after the business is registered, when processing data, you only need to call the unified player data update interface, and after passing in the corresponding type definition, you can implement the general player data update operation. The unified data update interface is defined as follows:

[0191] int update_role_version(enum tagENUM_ROLE_VERSION eType,LPROLEpstRole,int iParam,void*pstParam)

[0192] Figure 8 A schematic diagram of a data updating method provided by an exemplary embodiment of the present application is shown. The overall framework and calling process of data updating in this embodiment are briefly described as follows:

[0193] 721. Receive data update request;

[0194] 722. Determine whether the service type indicated by the data update request has been marked with a bitmap; if the bitmap has not been marked (the state in the bitmap is 0), execute 723; if the bitmap has been marked (the state in the bitmap is 1), execute 725;

[0195] 723. Update the business data of the business type; illustratively, according to the business type, obtain the data processing function from the business registration table 730; the business registration table 730 includes multiple business units, taking business unit 731 and business unit 732 as examples, business unit 731 includes business type 1 and its data processing function 1, business unit 732 includes business type 2 and its data processing function 2, and according to the operation logic indicated by the data processing function, update the business data of the business type to obtain updated data;

[0196] 724. Mark bitmap;

[0197] 725. End.

[0198] Usage examples

[0199] First, define a unique enumeration for each service. This enumeration is associated with each bit of the bitmap storage structure, and the enumeration is defined as follows:

[0200] <macrosgroup name="ENUM ROLE VERSION" desc="RoleVersion version compatibility type">

[0201] <macro name="ROLE VERSION TYPE NONE" value="0" desc="Minimum value, invalid value" / >

[0202] <macro name="ROLE VERSION RECALC KDA ALL" value="1" desc="Recalculate radar chart kda - career" / >

[0203] <macro name="ROLE VERSION RECALA KDA_SEASON" value="2" desc="Recalculate radar chart kda - current season" / >

[0204] <macro name="ROLE VERSION RECALC KDAALL V2" value="3" desc="Recalculate radar chart kda - career - correct negative numbers" / >

[0205] <macro name="ROLE VERSION RECALAKDA SEASON V2" value="4" desc="Recalculate radar chart kda - current season - correct negative numbers" / >

[0206] <macro name="ROLE VERSION_INIT HISTORY_MAX GRADE" value="5" desc="Initialize the highest rank information of old players" / >

[0207] <macro name="ROLE VERSION INIT RECENT USE HERO" value="6" desc="Initialize the record of frequently used heroes of old players" / >

[0208] <macro name="ROLE VERSION REINIT FFA" value="7" desc="Re - initialize ROW old player FFA data" / >

[0209] <macro name="ROLE VERSION IDIP FIRST MODIFY NAME" value="8" desc="First modified name by IDIP" / >

[0210] <macro name="ROLE VERSION NPE TASK STATUS" value="9" desc="Initialize the NPE task status for old players" / >

[0211] <macro name="ROLE VERSION NPE TASK STATUS AGAIN" value="10" desc="Initialize the NPE task status for old players before 1G" / >

[0212] <macro name="ROLE_VERSION ADJUST FFA1G" value="11" desc="Offset the FFA for old players" / >

[0213] <macro name="ROLE VERSION ISSUE SEASON SKIN BORDER" value="12" desc="Reissue the inner frame of the season skin" / >

[0214] <macro name="ROLE VERSION 2D USER RETURN EXTDATA" value="13" desc="2D version short-term return expansion data compatibility" / >

[0215] <macro name="ROLE VERSTON BATTLE POS POHER value="14" desc="Version update split path score bullet upgrade" / >

[0216] Each service registers the corresponding data processing function in the unified service registry. The registered data processing function supports registering an empty function. When registering an empty function, there will be no additional calculation logic in this embodiment. It is only to save a processing status for the service and support the service to use this embodiment flexibly. The service registry is as follows:

[0217] Role version processing method

[0218] Each version will only be executed once in the role life cycle and can be used to execute some processes that only need to be executed once in the role life cycle.

[0219] It can be mainly used for persistent data recovery / recalculation.

[0220] It should be noted that there seems to be a formatting issue in the original text for the tag in ID=18 where there is an extra "value=" within the "name=" attribute which might need to be corrected in the original source for a more proper translation.{ROLE_VERSION_RECALC_KDA_ALL,(LPEUNC_ROLEDEAL)radar_reca lc_role_kda},

[0221] {ROLE_VERSION_RECALA_KDA_SEASON,(LPEUNC_ROLEDEAL)radar_recalc_role_kda},

[0222] {ROLE_VERSION_RECALC_KDA_ALL_V2,(LPEUNC_ROLEDEAL)radar_recalc_role_kda},

[0223] {ROLE_VERSION_RECALA_KDA_SEASON_V2,(LPEUNC_ROLEDEAL)r adar_recalc_role_kda},

[0224] {ROLE_VERSION_INIT_HISTORY_MAX_GRADE,(LPEUNC_ROLEDEAL)init_history_max_grade},

[0225] {ROLE_VERSION_INIT_RECENT_USE_HERO,(LPFUNC_ROLEDEAL)init_recent_use_hero},

[0226] {ROLE_VERSION_REINIT_FEA,NULL},

[0227] {ROLE_VERSION_IDIP_FIRST_MODIFY_NAME,NULL},

[0228] {ROLE_VERSION_NPE_TASK_STATUS,(LPEUNC_ROLEDEAL)role_versi on_npe_task_status},

[0229] {ROLE_VERSION_NPE_TASK_STATUS_AGAIN,NULL},

[0230] {ROLE_VERSION_ADJUST_FEA_1G,NULL},

[0231] {ROLE_VERSIONISSUE_SEASONSKIN_BORDER,NULL},

[0232] {ROLE_VERSION_2D_USER_RETURN EXTDATA,(LPFUNC_ROLEDEAL)init_user_return ext_data for_2d.

[0233] Taking the return tag data compatibility requirement as an example, the business first defines the enumeration value "ROLE_VERSION_2D_USER_RETURN_EXTDATA" of this requirement and registers the data processing function. When the business needs it (that is, when the system is initialized as shown below), call the unified player data update interface "update_role_version", and the data update framework will automatically find and call the data processing function "init_user_return_ext_data_for_2d" registered by this business according to the passed enumeration value to process the business data and mark the processing status of the business in the bitmap. The business call is as follows:

[0234] / / Initialize label data

[0235] void zone user_label_init(LPROLE pstRole)

[0236] / / First, make it compatible with the old data

[0237] if{! check_role_version(pstRole,ROLE VERSION 2D USER RETURN EXTDATA)

[0238] update role version(ROLE VERSION 2D USER RETURN EXTDATA,pstRole,0,NULL};

[0239] From the above usage examples, it can be seen that this embodiment unifies the player data update processing method and state storage, customizes the player data update specifications, and provides a simple and easy-to-use operation interface, reducing the repeated development costs of different businesses. Compared with the method of stopping the service to update the database, this embodiment does not need to stop the service to update the player database, which greatly reduces the service stop processing time and reduces the complexity and risk of player data update operations. Compared with different business systems updating data and saving update status by themselves, this embodiment provides a unified state maintenance and a unified data update interface through a registration and use method, reducing the repeated development costs between different businesses.

[0240] For example, Fig. 9The structure block diagram of a data updating device provided by an exemplary embodiment of the present application is shown. The data updating device 800 includes:

[0241] The acquisition module 810 is used to acquire a bitmap of the first account; the bitmap includes status information corresponding to business data of different business types of the first account, and the status information is used to represent the data update status of the business data.

[0242] The determination module 820 is used to determine a first service type from the different service types according to the status information in the bitmap; the first service type is at least one service type that has not undergone data update.

[0243] The updating module 830 is configured to update the first service data corresponding to the first service type to obtain updated data of the first account.

[0244] The updating module 830 is further configured to update the bitmap of the first account after the data is successfully updated.

[0245] Acquire a bitmap of the first account; the bitmap includes status information corresponding to business data of different business types of the first account, and the status information is used to characterize data update status of the business data;

[0246] Determine a first service type from the different service types according to the status information in the bitmap; the first service type is at least one service type for which data is not updated;

[0247] Updating first business data corresponding to the first business type to obtain updated data of the first account;

[0248] After the data is updated successfully, the bitmap of the first account is updated.

[0249] In some embodiments, the updating module 830 is used to:

[0250] Determine a data processing function corresponding to the first service type; the data processing function is registered based on the operation logic of the service type;

[0251] Based on the operation logic indicated by the data processing function, the first business data corresponding to the first business type is updated to obtain the updated data of the first account.

[0252] In some embodiments, the bitmap includes enumeration values, and the different service types in the bitmap correspond to different enumeration values.

[0253] In some embodiments, the updating module 830 is used to:

[0254] Call the data update interface to obtain the business registration table;

[0255] Based on the enumeration value corresponding to the first service type in the bitmap, acquiring the data processing function corresponding to the enumeration value from the service registration table;

[0256] The service registration table includes a plurality of service units, and each of the plurality of service units includes a service type and a data processing function corresponding to the service type.

[0257] In some embodiments, the determining module 820 is used to:

[0258] Determine status information corresponding to each of the different service types in the bitmap;

[0259] In a case where the state information includes a first state value, determining a service type corresponding to the first state value as the first service type;

[0260] The first status value is a value used to indicate that the service type has not performed data update.

[0261] In some embodiments, the determining module 820 is further configured to:

[0262] When the state information includes at least two of the first state values, and the service types corresponding to the at least two of the first state values ​​belong to the same service system, the service type with the highest version is determined as the first service type.

[0263] In some embodiments, the updating module 830 is used to:

[0264] After the data is updated successfully, updating the state information corresponding to the first service type in the bitmap to a second state value;

[0265] The second status value is a value used to indicate that the service type has undergone data update.

[0266] In some embodiments, the updating module 830 is used to:

[0267] When the maintenance duration of the state information in the bitmap exceeds a duration threshold and the state information includes the second state value, the service type corresponding to the state information is deleted from the bitmap.

[0268] In some embodiments, the updating module 830 is used to:

[0269] In the case that at least two of the different service types in the bitmap belong to the same service system, the service type with the lowest version among the at least two service types and whose status information includes the second status value is deleted from the bitmap.

[0270] In some embodiments, the updating module 830 is used to:

[0271] Based on the status information in the bitmap, the different service types in the bitmap are reordered; wherein the ordering priority of the service type corresponding to the first status value is higher than the ordering priority of the service type corresponding to the second status value.

[0272] In some embodiments, the acquisition module 810 is used to:

[0273] When the first account is logged in, the bitmap of the first account is obtained.

[0274] In some embodiments, the acquisition module 810 is used to:

[0275] When the first account is logged in and the first account triggers the start of a service system to which at least one service type among the different service types belongs, the bitmap of the first account is obtained.

[0276] In some embodiments, the acquisition module 810 is used to:

[0277] When the first account is logged in and a service system where at least one of the different service types is located is initialized, the bitmap of the first account is obtained.

[0278] In some embodiments, the acquisition module 810 is further used to:

[0279] When the second account is logged in, a bitmap of the second account is obtained, where the bitmap also includes a second service type and status information corresponding to second service data of the second service type.

[0280] In some embodiments, the updating module 830 is further configured to:

[0281] Based on the status information corresponding to the second service data of the second service type, updating the second service data to obtain updated data of the second account;

[0282] The second service type refers to an exclusive service type of the second account.

[0283] It should be noted that the specific limitations in the embodiments of the one or more data updating devices provided above can refer to the limitations of the data updating method above, and will not be repeated here. Each module of the above device can be implemented in whole or in part by software, hardware, and a combination thereof. Each module can be embedded in or independent of the processor of the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0284] Fig.10 A structural block diagram of a computer device provided by an exemplary embodiment of the present application is shown.

[0285] The computer device 1000 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), or an MP4 player (Moving Picture Experts Group Audio Layer IV). The computer device 1000 may also be called a user device, a portable terminal, or other names.

[0286] Typically, the computer device 1000 includes a processor 1001 and a memory 1002 .

[0287] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0288] The memory 1002 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the data update method provided in the embodiment of the present application.

[0289] In some embodiments, the computer device 1000 may further include: a peripheral device interface 1003 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1004 , a touch display screen 1005 , a camera 1006 , an audio circuit 1007 and a power supply 1008 .

[0290] The peripheral device interface 1003 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0291] The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0292] The touch display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. The touch display screen 1005 is used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the touch display screen 1005 may be one, and the front panel of the computer device 1000 is set; in other embodiments, the touch display screen 1005 may be at least two, which are respectively set on different surfaces of the computer device 1000 or are folded; in some embodiments, the touch display screen 1005 may be a flexible display screen, which is set on a curved surface or a folded surface of the computer device 1000. Even, the touch display screen 1005 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The touch display screen 1005 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

[0293] The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize the shooting of photos or videos. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0294] The audio circuit 1007 is used to provide an audio interface between the user and the computer device 1000. The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1000. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1007 may also include a headphone jack.

[0295] The power supply 1008 is used to power various components in the computer device 1000. The power supply 1008 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1008 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0296] In some embodiments, the computer device 1000 further includes one or more sensors 1009 , including but not limited to: an acceleration sensor 1010 , a gyroscope sensor 1011 , a pressure sensor 1012 , an optical sensor 1013 , and a proximity sensor 1014 .

[0297] The acceleration sensor 1010 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1000. For example, the acceleration sensor 1010 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1001 can control the touch display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1010. The acceleration sensor 1010 can also be used for collecting game or user motion data.

[0298] The gyro sensor 1011 can detect the body direction and rotation angle of the computer device 1000, and the gyro sensor 1011 can cooperate with the acceleration sensor 1010 to collect the user's 3D actions on the computer device 1000. The processor 1001 can implement the following functions based on the data collected by the gyro sensor 1011: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0299] The pressure sensor 1012 can be set on the side frame of the computer device 1000 and / or the lower layer of the touch display screen 1005. When the pressure sensor 1012 is set on the side frame of the computer device 1000, it can detect the user's grip signal of the computer device 1000, and perform left and right hand recognition or shortcut operation according to the grip signal. When the pressure sensor 1012 is set on the lower layer of the touch display screen 1005, it can control the operability control on the UI interface according to the user's pressure operation on the touch display screen 1005. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0300] The optical sensor 1013 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the touch display screen 1005 according to the ambient light intensity collected by the optical sensor 1013. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is reduced. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1013.

[0301] The proximity sensor 1014, also called a distance sensor, is usually arranged on the front of the computer device 1000. The proximity sensor 1014 is used to collect the distance between the user and the front of the computer device 1000. In one embodiment, when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually decreasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually increasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-off state to the screen-on state.

[0302] Those skilled in the art will understand that Fig.10 The structure shown in the figure does not constitute a limitation on the computer device 1000, and the computer device 1000 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0303] In an exemplary embodiment, the present application provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a computer device, it is used to implement the data updating method provided by the above method embodiment.

[0304] The present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the data updating method provided by the above method embodiment.

[0305] The present application provides a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data updating method provided by the above method embodiment.

[0306] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0307] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned computer-readable storage medium may be a read-only memory, a disk or an optical disk, etc.

[0308] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0309] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A data updating method, characterized in that: The method comprises: Acquire a bitmap of the first account; the bitmap includes status information corresponding to business data of different business types of the first account, and the status information is used to characterize data update status of the business data; Determine a first service type from the different service types according to the status information in the bitmap; the first service type is at least one service type for which data is not updated; Updating first business data corresponding to the first business type to obtain updated data of the first account; After the data is updated successfully, the bitmap of the first account is updated.

2. The method according to claim 1, characterized in that The updating of the first business data corresponding to the first business type to obtain updated data of the first account includes: Determine a data processing function corresponding to the first service type; the data processing function is registered based on the operation logic of the service type; Based on the operation logic indicated by the data processing function, the first business data corresponding to the first business type is updated to obtain the updated data of the first account.

3. The method according to claim 2, characterized in that The bitmap includes enumeration values, and the different service types in the bitmap correspond to different enumeration values; The determining of the data processing function corresponding to the first service type includes: Call the data update interface to obtain the business registration table; Based on the enumeration value corresponding to the first service type in the bitmap, acquiring the data processing function corresponding to the enumeration value from the service registration table; The service registration table includes a plurality of service units, and each of the plurality of service units includes a service type and a data processing function corresponding to the service type.

4. The method according to any one of claims 1 to 3, characterized in that: The determining, according to the state information in the bitmap, a first service type from the different service types comprises: Determine status information corresponding to each of the different service types in the bitmap; In a case where the state information includes a first state value, determining a service type corresponding to the first state value as the first service type; The first status value is a value used to indicate that the service type has not performed data update.

5. The method according to claim 4, characterized in that The method further comprises: When the state information includes at least two of the first state values, and the service types corresponding to the at least two of the first state values ​​belong to the same service system, the service type with the highest version is determined as the first service type.

6. The method according to any one of claims 1 to 5, characterized in that: After the data is successfully updated, updating the bitmap of the first account includes: After the data is updated successfully, updating the state information corresponding to the first service type in the bitmap to a second state value; The second status value is a value used to indicate that the service type has undergone data update.

7. The method according to claim 6, characterized in that After the data is successfully updated, updating the bitmap of the first account further includes at least one of the following steps: When the maintenance duration of the state information in the bitmap exceeds a duration threshold and the state information includes the second state value, deleting the service type corresponding to the state information from the bitmap; In a case where at least two of the different service types in the bitmap belong to the same service system, deleting the service type of the lowest version among the at least two service types and whose status information includes the second status value from the bitmap; Based on the status information in the bitmap, the different service types in the bitmap are reordered; wherein the ordering priority of the service type corresponding to the first status value is higher than the ordering priority of the service type corresponding to the second status value.

8. The method according to any one of claims 1 to 7, characterized in that: The step of obtaining the bitmap of the first account comprises at least one of the following steps: When logging into the first account, obtaining the bitmap of the first account; When the first account is logged in and the first account triggers the start of a service system to which at least one service type among the different service types belongs, acquiring the bitmap of the first account; When the first account is logged in and a service system of at least one service type among the different service types is initialized, the bitmap of the first account is obtained.

9. The method according to claim 8, characterized in that The method further comprises: When logging in to the second account, obtaining a bitmap of the second account, the bitmap further comprising a second service type and status information corresponding to second service data of the second service type; Based on the status information corresponding to the second service data of the second service type, updating the second service data to obtain updated data of the second account; The second service type refers to an exclusive service type of the second account.

10. A data updating device, characterized in that: The device comprises: An acquisition module, used to acquire a bitmap of the first account; the bitmap includes status information corresponding to business data of different business types of the first account, and the status information is used to characterize data update status of the business data; A determination module, configured to determine a first service type from the different service types according to the status information in the bitmap; the first service type is at least one service type for which data is not updated; An updating module, configured to update the first service data corresponding to the first service type to obtain updated data of the first account; The updating module is further configured to update the bitmap of the first account after the data is successfully updated.

11. A computer device, characterized in that: The computer device comprises: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the data updating method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the data updating method according to any one of claims 1 to 9.

13. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor obtains the computer instructions from the computer-readable storage medium, so that the processor loads and executes them to implement the data updating method as described in any one of claims 1 to 9.