Data processing methods, apparatus, servers, and computer-readable storage media
By introducing a link configuration table and general query and processing units into the anti-cheat platform, the problems of high game access timeliness and maintenance costs have been solved, achieving efficient data processing and structure transformation, and improving game access efficiency and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2022-12-05
- Publication Date
- 2026-05-26
AI Technical Summary
In existing technologies, anti-cheat platforms need to rewrite their anti-cheat logic when integrating new games, resulting in longer integration times, higher code maintenance costs, and differences in data structures between different games affecting user experience.
By introducing a link configuration table and a general query and processing unit into the anti-cheat platform, the data query and structure transformation logic is abstracted, generating and executing cheat data query statements, and converting the initial data structure into the target data structure, thus reducing the complexity of the code logic.
It significantly improved the timeliness of game access, reduced the maintenance costs and workload of the anti-cheat platform, and enhanced the user experience.
Smart Images

Figure CN116036611B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data processing method, apparatus, server, and computer-readable storage medium. Background Technology
[0002] In the era of online games, cheating not only reduces the fun of games but also affects their functionality, leading to player churn. Currently, anti-cheat data platforms support access to multiple games and display cheating data from multiple dimensions. However, because different games support multiple data sources and different data structures, and the display metrics also differ between games, each time a new game is integrated, the corresponding anti-cheat logic for that game needs to be rewritten, resulting in long game integration times and high code maintenance costs. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a data processing method, apparatus, server and computer-readable storage medium, which can effectively reduce the time required to access games and reduce the maintenance cost of anti-cheat data source platforms.
[0004] In a first aspect, embodiments of the present invention provide a data processing method applied to an anti-cheat data source platform. The anti-cheat data source platform stores a link configuration table containing link information for multiple games. The method includes: if a cheat data query request is received, obtaining target link information corresponding to a game identifier carried in the cheat data query request from the link configuration table; generating a cheat data query statement based on the target link information, executing the cheat data query statement, and querying an initial data query result from the target data source corresponding to the game identifier; wherein the current data structure of the initial data query result is related to the target data source; and converting the initial data query result from the current data structure to the target data structure to obtain the target data query result.
[0005] Secondly, embodiments of the present invention also provide a data processing apparatus applied to an anti-cheat data source platform. The anti-cheat data source platform stores a link configuration table containing link information for multiple games. The apparatus includes: a link information acquisition module, configured to, upon receiving a cheat data query request, acquire target link information corresponding to a game identifier carried in the cheat data query request from the link configuration table; a statement execution module, configured to generate a cheat data query statement based on the target link information, execute the cheat data query statement, and query an initial data query result from the target data source corresponding to the game identifier; wherein the current data structure of the initial data query result is related to the target data source; and a structure conversion module, configured to convert the initial data query result from the current data structure to a target data structure to obtain a target data query result.
[0006] Thirdly, embodiments of the present invention also provide a server, including a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method described in any of the first aspects.
[0007] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method described in any of the first aspects.
[0008] The data processing method, apparatus, server, and computer-readable storage medium provided in this invention are applied to an anti-cheat data source platform. The platform stores a link configuration table containing link information for multiple games. If a cheat data query request is received, the target link information corresponding to the game identifier carried in the query request is retrieved from the link configuration table. A cheat data query statement is generated based on the target link information and executed. The initial data query result is retrieved from the target data source corresponding to the game identifier. Finally, the initial data query result is transformed from the current data structure to the target data structure to obtain the target data query result. This method, through abstraction of data query and structure transformation, and the application of link configuration tables, effectively reduces the code logic required to query cheat data for different games, alleviates the workload and maintenance difficulty of the anti-cheat data source platform, and significantly improves game access timeliness and reduces the maintenance cost of the platform.
[0009] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0010] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0011] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0012] Figure 1 This is a schematic diagram of a game access process provided in an embodiment of the present invention;
[0013] Figure 2 A flowchart illustrating a data processing method provided in an embodiment of the present invention;
[0014] Figure 3 This is a functional diagram of a general query unit provided in an embodiment of the present invention;
[0015] Figure 4 This is a functional diagram of a general processing unit provided in an embodiment of the present invention;
[0016] Figure 5 A flowchart illustrating another data processing method provided in an embodiment of the present invention;
[0017] Figure 6 A flowchart illustrating another data processing method provided in an embodiment of the present invention;
[0018] Figure 7 This is a schematic diagram of the structure of a data processing device provided in an embodiment of the present invention;
[0019] Figure 8 This is a schematic diagram of the structure of a server provided in an embodiment of the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] Successful display of anti-cheat data, verification of cheat evidence, and assistance to operations in identifying cheats are crucial aspects of the anti-cheat process. The anti-cheat data source platform server is built on the Flask framework, supporting integration with multiple games and multi-dimensional display of cheat data. Furthermore, considering that different games support various data sources and different data structures, the data query methods and data processing algorithms of the anti-cheat data source platform server also need to be diversified. Currently, the anti-cheat data source platform server application, built on the Flask framework, requires customized processing methods for multiple games, different data sources, and different data table structures, such as the following... Figure 1 The diagram illustrates a game integration process. Each time a new game is integrated, the corresponding anti-cheat logic needs to be rewritten, resulting in long integration times and high code maintenance costs. Furthermore, since the processing logic for all games resides in the same application, updates to the customization requirements of one game will affect the scope of other games, thus degrading the user experience.
[0022] Based on this, the present invention provides a data processing method, apparatus, server, and computer-readable storage medium, which can effectively reduce the time required to access games and reduce the maintenance cost of anti-cheat data source platforms.
[0023] To facilitate understanding of this embodiment, a data processing method disclosed in this embodiment will first be described in detail. The method is applied to an anti-cheat data source platform. The anti-cheat data source platform stores a link configuration table, which stores link information corresponding to multiple games. See [link to relevant documentation]. Figure 2 The diagram shows a data processing method, which mainly includes the following steps S202 to S206:
[0024] Step S202: If a cheat data query request is received, retrieve the target link information corresponding to the game identifier carried in the cheat data query request from the link configuration table. The cheat data query request carries a game identifier (also known as a game unique identifier). In one embodiment, the anti-cheat data source platform is configured with multiple functional units, including at least a general query unit and a general processing unit, and the logic of the general query unit and the general processing unit is abstracted. Since queries from different data sources have customized methods for initializing links and query rules, this embodiment of the invention abstracts a general query unit for different data sources, and dynamically retrieves the target link information corresponding to the game identifier from the link configuration table through the general query unit.
[0025] Step S204: Generate a cheat data query statement based on the target link information, and execute the cheat data query statement to retrieve the initial data query results from the target data source corresponding to the game identifier. The current data structure of the initial data query results is related to the target data source. In one implementation, configuration information such as query metrics, filter fields, and aggregation dimensions can be dynamically obtained, and a link can be initialized according to the target connection. The link and the aforementioned configuration information are then encapsulated to obtain a complete cheat data query statement. Executing the cheat data query statement retrieves the corresponding initial data query results from the target data source.
[0026] Step S206: The initial data query result is transformed from the current data structure to the target data structure to obtain the target data query result. In one implementation, the client may have different data structure requirements, and the data structure of the initial data query result returned by different data sources is different. Therefore, the target data structure is determined according to the data structure requirements, and the initial data query result is transformed from the current data structure to the target data structure through a general processing unit to obtain the target data query result that meets the client's requirements.
[0027] The data processing method provided in this invention, through the abstraction of data query and structure transformation, and the application of link configuration tags, can effectively reduce the code logic required to query cheat data of different games, reduce the workload and maintenance difficulty required to maintain the anti-cheat data source platform, thereby significantly improving the game access timeliness and reducing the maintenance cost of the anti-cheat data source platform.
[0028] For a better understanding of the aforementioned general query unit, see [link to documentation]. Figure 3 The diagram illustrates the function of a general query unit. First, it initializes the link; then, it encapsulates the complete query statement; and finally, it executes the query statement. Based on this, this embodiment of the invention provides an implementation method for obtaining initial data query results using a general query unit, as shown in steps 1 to 4 below:
[0029] Step 1: Retrieve the target link information corresponding to the game identifier carried in the anti-cheat data query request from the link configuration table. In one implementation, when a game connects to the anti-cheat data source platform, it can initialize the game's link information in a MySQL configuration table (i.e., the aforementioned link configuration table). The query unit can then query this configuration table based on the game's unique identifier to obtain the corresponding target link information. Furthermore, the target link information can be cached in memory so that it can be retrieved directly from memory during subsequent queries, avoiding frequent access to and queries of the MySQL configuration table.
[0030] Step 2: Determine the query link based on the target link information using the query general unit. In one implementation, the query general unit can initialize the link using the target connection information to obtain the query link. In a specific implementation, when a cheat data query request is received, the query general unit can initialize a connection pool based on the link information and allocate a connection object from the connection pool for querying. Furthermore, when the query is complete, the query general unit will return the connection object to the connection pool for allocation in the next query request. When initializing the connection pool, a dedicated connection pool initialization tool in Python can be used, and the target link information from the MySQL configuration table can be passed as a parameter to the corresponding location in the `create_engine` tool. This allows different game configurations to use different link information and initialize corresponding connection pools.
[0031] Step 3: Retrieve the configuration information corresponding to the game identifier from the linked configuration table by querying the general unit. This configuration information includes one or more of the following: query metrics, filter fields, and aggregation dimensions. Aggregation dimensions refer to aggregation based on a target dimension (such as time). For example, if each player logs into the device once a day, one record is saved. If the business requirement is to display the total number of times all players log into the device each day, then the aggregation dimension would be date. Additionally, metrics that support addition, deletion, and modification operations can also be provided.
[0032] Step 4: Encapsulate the query link and configuration information using the query general unit to obtain the external data query statement.
[0033] For a better understanding of the aforementioned general processing unit, please refer to [link / reference]. Figure 4The diagram illustrates the function of a general processing unit. First, it queries different data sources to return the original data structure. Then, it unifies the data structure and finally processes it again according to front-end requirements. Based on this, this embodiment of the invention provides an implementation method for transforming the data structure of the initial data query result using a general processing unit. The general processing unit can perform a first structural transformation on the initial data query result to convert it from the current data structure to a unified data structure, and a second structural transformation on the initial data query result to convert it from the unified data structure to the target data structure. The general processing unit is configured with multiple first transformation algorithms and second transformation algorithms. In specific implementation, a target first transformation algorithm corresponding to the target data source can be determined from the first transformation algorithms, and the target first transformation algorithm can be used to perform a first structural transformation on the initial data query result. Similarly, a target second transformation algorithm corresponding to the target data structure can be determined from the second transformation algorithms, and the target second transformation algorithm can be used to perform a second structural transformation on the initial data query result.
[0034] This invention unifies the data structure by processing common units. For example, the initial data query result from a MySQL data source has a data structure of A, the initial data query result from a Hive data source has a data structure of B, and the client requires a data structure of D. A first transformation algorithm is encapsulated for the MySQL data source to transform the data structure from A to C, and another first transformation algorithm is encapsulated for the Hive data source to transform the data structure from B to C. Finally, a second transformation algorithm is encapsulated to transform the data structure from C to D. This invention performs secondary structure transformations to better reuse some repetitive logic (such as the logic for transforming the data structure from C to D).
[0035] Furthermore, this embodiment of the invention upgrades the architecture of the aforementioned anti-cheat data source platform. The main upgrade involves using GitLab for remote maintenance of each functional unit within the platform and utilizing Python's importlib module for package import. For specific implementation details, please refer to steps a through c below:
[0036] Step a: For each functional unit configured in the anti-cheat data source platform, determine whether the current code file corresponding to that functional unit in the preset code repository has been updated. If yes, proceed to step b; otherwise, proceed to step c. The preset code repository can be the GitLab platform.
[0037] Optionally, the link configuration table also stores the code fetch time and code update time for each functional unit. Therefore, by comparing the code fetch time and code update time for each functional unit, it can be determined whether the code file corresponding to that functional unit in the preset code repository has been updated. In practical applications, the link configuration table maintains whether each functional unit under each game has fetched code from the GitLab platform, the code fetch time, and the GitLab platform's code update time. Therefore, it can detect whether the current code file needs to be updated based on the code fetch time and code update time.
[0038] Step b involves pulling the updated code file corresponding to the functional unit from the preset code repository to the specified path, and then reloading and updating the functional unit based on the updated code file stored in the specified path. In practical applications, when the code on the GitLab platform is updated, the application will automatically pull the latest code to the specified path and have it reloaded and updated by the importlib module.
[0039] Step c: If the code file corresponding to the functional unit in the preset code repository has not been updated, import the package for the functional unit based on the current code file stored in the specified path. In practical applications, the code of each functional unit of the anti-cheating data source platform is synchronized to the GitLab platform, and then dynamically imported using Python's importlib module according to the user's selection and operation.
[0040] This invention, through remote maintenance using GitLab and importing packages using Python's importlib module, ensures application stability and high availability without requiring service restarts.
[0041] For example, taking the processing of general units as an example, this embodiment of the invention provides an application example of dynamic packet import, see [link to relevant documentation]. Figure 5 The flowchart of another data processing method shown here mainly includes the following steps S502 to S514:
[0042] Step S502: Invoke the general processing unit.
[0043] Step S504: Determine if the code for processing the general unit is the latest version. If yes, proceed to step S508; otherwise, proceed to step S506.
[0044] Step S506: Pull the latest version of the code from the GitLab platform.
[0045] Step S508: Determine whether the general processing unit has been imported and whether it is the latest version. If yes, proceed to step S512; otherwise, proceed to step S510.
[0046] Step S510: Import or reload the importlib module.
[0047] Step S512: Obtain the name of the method to be executed from the return value of the imported package or overload and call it.
[0048] Step S514, data returned.
[0049] For ease of understanding, this invention also provides an application example of the data processing method in the embodiments, see [link to example]. Figure 6 The diagram illustrates the workflow of an anti-cheat data source platform. The platform's server-side configuration includes a general query module and a general processing module, both supporting multiple data sources. The data processing method provided in this embodiment abstracts the query methods for different data sources, configures data through a configuration table, and retrieves the database connection to be initialized, query table name, filter fields, and aggregated metrics for each dimension from the configuration table. Furthermore, it abstracts a set of general data processing algorithms for use by various games. By abstracting the data query and processing algorithms and using the configuration table, much of the code logic is reduced, alleviating the workload and maintenance difficulty for programmers and significantly improving game integration efficiency. In addition, the data processing method provided in this embodiment uses GitLab for remote maintenance of each module and Python's importlib module for runtime import, enabling user-independent updates, dynamic service loading, and high application availability. By utilizing GitLab and importlib for code maintenance and dynamic service loading, the overall application stability is greatly improved, resulting in a better user experience.
[0050] Regarding the data processing method provided in the foregoing embodiments, this embodiment of the invention provides a data processing device. The device is applied to an anti-cheat data source platform. The anti-cheat data source platform stores a link configuration table, which stores link information corresponding to multiple games. (See [link to previous document]). Figure 7 The diagram shows the structure of a data processing device, which mainly includes the following parts:
[0051] The link information acquisition module 702 is used to obtain the target link information corresponding to the game identifier carried in the cheat data query request from the link configuration table if a cheat data query request is received.
[0052] The statement execution module 704 is used to generate a cheat data query statement based on the target link information, and execute the cheat data query statement to query the initial data query result from the target data source corresponding to the game identifier; wherein, the current data structure of the initial data query result is related to the target data source;
[0053] The structure conversion module 706 is used to convert the initial data query results from the current data structure to the target data structure to obtain the target data query results.
[0054] The data processing device provided in this embodiment of the invention can effectively reduce the code logic required to query cheat data of different games by abstracting data query and structure transformation and applying link configuration tags. This reduces the workload and maintenance difficulty required to maintain the anti-cheat data source platform, thereby significantly improving the game access timeliness and reducing the maintenance cost of the anti-cheat data source platform.
[0055] In one implementation, the functional units configured in the anti-cheat data source platform include a general query unit; the statement execution module 704 is further configured to: determine the query link based on the target link information through the general query unit; and obtain the configuration information corresponding to the game identifier from the link configuration table through the general query unit; wherein the configuration information includes one or more of query indicators, filter fields, and aggregation dimensions; and encapsulate the query link and configuration information through the general query unit to obtain the cheat data query statement.
[0056] In one embodiment, the functional units configured in the anti-cheating data source platform further include a general processing unit; the structure conversion module 706 is also used to: perform a first structure conversion on the initial data query result through the general processing unit to convert it from the current data structure to a unified data structure, and perform a second structure conversion on the initial data query result to convert it from the unified data structure to the target data structure.
[0057] In one embodiment, the general processing unit is configured with multiple first conversion algorithms and second conversion algorithms; the structure conversion module 706 is further configured to: determine a target first conversion algorithm corresponding to the target data source from the first conversion algorithms, and perform a first structure conversion on the initial data query result using the target first conversion algorithm; the structure conversion module 706 is further configured to: determine a target second conversion algorithm corresponding to the target data structure from the second conversion algorithms, and perform a second structure conversion on the initial data query result using the target second conversion algorithm.
[0058] In one embodiment, the above-mentioned device further includes an update module, configured to: for each functional unit configured in the anti-cheating data source platform, determine whether the current code file corresponding to the functional unit in the preset code repository has been updated; if so, pull the updated code file corresponding to the functional unit from the preset code repository to a specified path, and reload update the functional unit based on the updated code file stored in the specified path.
[0059] In one implementation, the link configuration table also stores the code pull time and code update time corresponding to each functional unit; the update module is also used to: compare the code pull time and code update time corresponding to the functional unit, and determine whether the code file corresponding to the functional unit in the preset code repository has been updated based on the comparison result.
[0060] In one implementation, the update module is further configured to: if the code file corresponding to the functional unit in the preset code repository has not been updated, import the package for the functional unit based on the current code file stored in the specified path.
[0061] The device provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.
[0062] This invention provides a server, specifically, the server includes a processor and a storage device; the storage device stores a computer program, which is executed by the processor when it runs:
[0063] A data processing method is applied to an anti-cheat data source platform. The platform stores a link configuration table containing link information for multiple games. The method includes: if a cheat data query request is received, retrieving the target link information corresponding to the game identifier carried in the query request from the link configuration table; generating a cheat data query statement based on the target link information, executing the query statement, and retrieving initial data query results from the target data source corresponding to the game identifier; wherein the current data structure of the initial data query results is related to the target data source; and converting the initial data query results from the current data structure to the target data structure to obtain the target data query results.
[0064] In one implementation, the functional units configured in the anti-cheat data source platform include a general query unit; the step of generating a cheat data query statement based on target link information includes: determining the query link according to the target link information through the general query unit; and obtaining the configuration information corresponding to the game identifier from the link configuration table through the general query unit; wherein the configuration information includes one or more of query indicators, filter fields, and aggregation dimensions; and encapsulating the query link and configuration information through the general query unit to obtain the cheat data query statement.
[0065] In one embodiment, the functional units configured in the anti-cheating data source platform further include a general processing unit; the step of converting the initial data query result from the current data structure to the target data structure includes: performing a first structural conversion on the initial data query result through the general processing unit to convert it from the current data structure to a unified data structure, and performing a second structural conversion on the initial data query result to convert it from the unified data structure to the target data structure.
[0066] In one embodiment, the general processing unit is configured with multiple first transformation algorithms and second transformation algorithms; the step of performing a first structural transformation on the initial data query result includes: determining a target first transformation algorithm corresponding to the target data source from the first transformation algorithms, and performing a first structural transformation on the initial data query result using the target first transformation algorithm; the step of performing a second structural transformation on the initial data query result includes: determining a target second transformation algorithm corresponding to the target data structure from the second transformation algorithms, and performing a second structural transformation on the initial data query result using the target second transformation algorithm.
[0067] In one implementation, after the step of receiving a cheat data query request, the method further includes: for each functional unit configured in the anti-cheat data source platform, determining whether the current code file corresponding to the functional unit in the preset code repository has been updated; if so, pulling the updated code file corresponding to the functional unit from the preset code repository to a specified path, and reloading and updating the functional unit based on the updated code file stored in the specified path.
[0068] In one implementation, the link configuration table also stores the code pull time and code update time corresponding to each functional unit; the step of determining whether the code file corresponding to the functional unit in the preset code repository has been updated includes: comparing the code pull time and code update time corresponding to the functional unit, and determining whether the code file corresponding to the functional unit in the preset code repository has been updated based on the comparison result.
[0069] In one implementation, the method further includes: if the code file corresponding to the functional unit in the preset code repository has not been updated, importing the package for the functional unit based on the current code file stored in the specified path.
[0070] The server provided in this embodiment of the invention, through the abstraction of data query and structure transformation, and the application of link configuration tags, can effectively reduce the code logic required to query cheat data of different games, reduce the workload and maintenance difficulty required to maintain the anti-cheat data source platform, thereby significantly improving the game access timeliness and reducing the maintenance cost of the anti-cheat data source platform.
[0071] Figure 8This is a schematic diagram of the structure of a server provided in an embodiment of the present invention. The server 100 includes: a processor 80, a memory 81, a bus 82, and a communication interface 83. The processor 80, the communication interface 83, and the memory 81 are connected through the bus 82. The processor 80 is used to execute executable modules, such as computer programs, stored in the memory 81.
[0072] The memory 81 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 83 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.
[0073] Bus 82 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0074] The memory 81 is used to store programs. After receiving an execution instruction, the processor 80 executes the program. The method executed by the device for defining the flow process disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 80 or implemented by the processor 80.
[0075] The processor 80 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 80 or by software instructions. The processor 80 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 81. The processor 80 reads the information in memory 81 and, in conjunction with its hardware, completes the steps of the above method.
[0076] The computer program product of the readable storage medium provided in the embodiments of the present invention includes a computer-readable storage medium storing program code, wherein the program code includes instructions that can be executed:
[0077] A data processing method is applied to an anti-cheat data source platform. The platform stores a link configuration table containing link information for multiple games. The method includes: if a cheat data query request is received, retrieving the target link information corresponding to the game identifier carried in the query request from the link configuration table; generating a cheat data query statement based on the target link information, executing the query statement, and retrieving initial data query results from the target data source corresponding to the game identifier; wherein the current data structure of the initial data query results is related to the target data source; and converting the initial data query results from the current data structure to the target data structure to obtain the target data query results.
[0078] In one implementation, the functional units configured in the anti-cheat data source platform include a general query unit; the step of generating a cheat data query statement based on target link information includes: determining the query link according to the target link information through the general query unit; and obtaining the configuration information corresponding to the game identifier from the link configuration table through the general query unit; wherein the configuration information includes one or more of query indicators, filter fields, and aggregation dimensions; and encapsulating the query link and configuration information through the general query unit to obtain the cheat data query statement.
[0079] In one embodiment, the functional units configured in the anti-cheating data source platform further include a general processing unit; the step of converting the initial data query result from the current data structure to the target data structure includes: performing a first structural conversion on the initial data query result through the general processing unit to convert it from the current data structure to a unified data structure, and performing a second structural conversion on the initial data query result to convert it from the unified data structure to the target data structure.
[0080] In one embodiment, the general processing unit is configured with multiple first transformation algorithms and second transformation algorithms; the step of performing a first structural transformation on the initial data query result includes: determining a target first transformation algorithm corresponding to the target data source from the first transformation algorithms, and performing a first structural transformation on the initial data query result using the target first transformation algorithm; the step of performing a second structural transformation on the initial data query result includes: determining a target second transformation algorithm corresponding to the target data structure from the second transformation algorithms, and performing a second structural transformation on the initial data query result using the target second transformation algorithm.
[0081] In one implementation, after the step of receiving a cheat data query request, the method further includes: for each functional unit configured in the anti-cheat data source platform, determining whether the current code file corresponding to the functional unit in the preset code repository has been updated; if so, pulling the updated code file corresponding to the functional unit from the preset code repository to a specified path, and reloading and updating the functional unit based on the updated code file stored in the specified path.
[0082] In one implementation, the link configuration table also stores the code pull time and code update time corresponding to each functional unit; the step of determining whether the code file corresponding to the functional unit in the preset code repository has been updated includes: comparing the code pull time and code update time corresponding to the functional unit, and determining whether the code file corresponding to the functional unit in the preset code repository has been updated based on the comparison result.
[0083] In one implementation, the method further includes: if the code file corresponding to the functional unit in the preset code repository has not been updated, importing the package for the functional unit based on the current code file stored in the specified path.
[0084] The readable storage medium provided in this embodiment of the invention, through the abstraction of data query and structure transformation, and the application of link configuration tags, can effectively reduce the code logic required to query cheat data of different games, reduce the workload and maintenance difficulty required to maintain the anti-cheat data source platform, thereby significantly improving the game access timeliness and reducing the maintenance cost of the anti-cheat data source platform.
[0085] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0086] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A data processing method, characterized in that, The method is applied to an anti-cheat data source platform, which stores a link configuration table containing link information for multiple games. The method includes: If a cheat data query request is received, retrieve the target link information corresponding to the game identifier carried in the cheat data query request from the link configuration table; Based on the target link information, a cheat data query statement is generated and executed to query the initial data query result from the target data source corresponding to the game identifier; wherein, the current data structure of the initial data query result is related to the target data source; The initial data query results are transformed from the current data structure to the target data structure to obtain the target data query results; The functional units configured in the anti-cheat data source platform include a general query unit; the step of generating a cheat data query statement based on the target link information includes: The query general unit determines the query link based on the target link information; In addition, the configuration information corresponding to the game identifier is obtained from the link configuration table through the general query unit; wherein, the configuration information includes one or more of query metrics, filter fields, and aggregation dimensions; The query link and configuration information are encapsulated and processed by the general query unit to obtain the external data query statement; The functional units configured in the anti-cheating data source platform also include a general processing unit; the step of converting the initial data query result from the current data structure to the target data structure includes: The general processing unit performs a first structural transformation on the initial data query result to convert it from the current data structure to a unified data structure, and then performs a second structural transformation on the initial data query result to convert it from the unified data structure to the target data structure.
2. The method according to claim 1, characterized in that, The general processing unit is configured with multiple first conversion algorithms and second conversion algorithms; The step of performing a structural transformation on the initial data query result includes: From the first conversion algorithm, a target first conversion algorithm corresponding to the target data source is determined, and the target first conversion algorithm is used to perform a structural conversion on the initial data query result; The step of performing a secondary structure transformation on the initial data query results includes: From the second transformation algorithm, a target second transformation algorithm corresponding to the target data structure is determined, and the target second transformation algorithm is used to perform a secondary structure transformation on the initial data query result.
3. The method according to any one of claims 1-2, characterized in that, After the step of receiving a plugin data query request, the method further includes: For each functional unit configured in the anti-cheat data source platform, determine whether the current code file corresponding to that functional unit in the preset code repository has been updated; If so, the updated code file corresponding to the functional unit is pulled from the preset code repository to the specified path, and the functional unit is reloaded and updated based on the updated code file stored in the specified path.
4. The method according to claim 3, characterized in that, The link configuration table also stores the code fetch time and code update time corresponding to each of the functional units; The step of determining whether the code file corresponding to the functional unit in the preset code repository has been updated includes: Compare the code retrieval time and the code update time corresponding to the functional unit, and determine whether the code file corresponding to the functional unit in the preset code repository has been updated based on the comparison result.
5. The method according to claim 3, characterized in that, The method further includes: If the code file corresponding to the functional unit in the preset code repository has not been updated, the functional unit is imported based on the current code file stored in the specified path.
6. A data processing apparatus, characterized in that, The device is applied to an anti-cheat data source platform, which stores a link configuration table containing link information for multiple games. The device includes: The link information acquisition module is used to obtain the target link information corresponding to the game identifier carried in the cheat data query request from the link configuration table if a cheat data query request is received. The statement execution module is used to generate a cheat data query statement based on the target link information, and execute the cheat data query statement to query the initial data query result from the target data source corresponding to the game identifier; wherein, the current data structure of the initial data query result is related to the target data source; The structure conversion module is used to convert the initial data query result from the current data structure to the target data structure to obtain the target data query result; The functional units configured in the anti-cheat data source platform include a general query unit; the statement execution module is further configured to: determine a query link based on the target link information through the general query unit; and obtain configuration information corresponding to the game identifier from the link configuration table through the general query unit; wherein, the configuration information includes one or more of query indicators, filter fields, and aggregation dimensions; and encapsulate the query link and the configuration information through the general query unit to obtain a cheat data query statement; The functional units configured in the anti-cheating data source platform also include a general processing unit; the structure conversion module is further configured to: perform a first structure conversion on the initial data query result through the general processing unit to convert it from the current data structure to a unified data structure, and perform a second structure conversion on the initial data query result to convert it from the unified data structure to the target data structure.
7. A server, characterized in that, The method includes a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method described in any one of claims 1 to 5.