Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a user point value reconciliation testing method which can automatically match various game rules to test the recharging effect.
The invention also provides a user integral value reconciliation test system with the user integral value reconciliation test method.
The invention also provides a computer readable storage medium with the user integral value reconciliation test method.
According to the embodiment of the first aspect of the invention, the method for testing the account of the user integral value comprises the following steps: s100, obtaining an account point balance snapshot before the account to be tested is recharged, obtaining recharging operation data of the account to be tested and order data after recharging is completed from a recharging service database, and obtaining bookkeeping running data after recharging from a recharging game database, wherein the recharging operation data comprises recharging games, recharging types and recharging amounts; s200, based on the recharging rules and the integral rules of the recharging game, carrying out recharging integral calculation according to the recharging operation data to obtain a game recharging data test value and an integral balance test value after the account to be tested is recharged; and S300, checking the order data and the bookkeeping running data based on the game recharging data test value and the point balance test value to obtain a reconciliation result.
The user integral value reconciliation test method provided by the embodiment of the invention at least has the following beneficial effects: based on the recharging rules and the point rules of the recharging game, the recharging and point data of the game are measured and compared with the actual data for checking, so that the detection efficiency can be effectively improved, the manpower and material resources are saved, and the healthy operation of a recharging system is ensured.
According to some embodiments of the invention, said step S200 comprises: s210, based on the recharging rule configuration, obtaining the game recharging data corresponding to the recharging type according to the recharging game and the recharging amount; s220, based on the first point rule configuration, obtaining a first point according to the recharging game, the recharging type and the recharging amount.
According to some embodiments of the invention, said step S200 further comprises: and S230, judging whether the recharging operation data meets a preset recharging time rule or not based on second integral rule configuration, and obtaining a second integral according to the first integral.
According to some embodiments of the invention, said step S200 further comprises: s240, calling a score rule function of the recharge game according to the score customization rule of the recharge game, and obtaining a third score according to the recharge operation data.
According to some embodiments of the present invention, the recharge rule and the credit rule of the recharge game are saved according to the validation period, and the recharge credit calculation is performed based on the valid recharge rule and the valid credit rule of the recharge game.
According to some embodiments of the invention, if the reconciliation result is inconsistent, a reconciliation review report is generated according to the game recharging data test value, the point balance test value, the order data and the accounting running data.
According to a second aspect of the invention, the user integral value reconciliation test system comprises: the recharging data extraction module is used for acquiring an account integral balance snapshot before the account to be detected is recharged, acquiring recharging operation data of the account to be detected and order data after recharging is completed from the recharging service database, and acquiring bookkeeping running data after recharging from the recharging game database, wherein the recharging operation data comprises recharging games, recharging types and recharging amount; the recharging calculation module is used for carrying out recharging integral calculation according to the recharging operation data based on the recharging rules and the integral rules of the recharging game to obtain a game recharging data test value and an integral balance test value after the account to be tested is recharged; and the checking and reconciliation module is used for checking the order data and the bookkeeping streamline data based on the game recharging data test value and the point balance test value to obtain a reconciliation result.
The user integral value reconciliation test system provided by the embodiment of the invention at least has the following beneficial effects: based on the recharging rules and the point rules of the recharging game, the recharging and point data of the game are measured and compared with the actual data for checking, so that the detection efficiency can be effectively improved, the manpower and material resources are saved, and the healthy operation of a recharging system is ensured.
According to some embodiments of the invention, further comprising: and the rechecking report generating module is used for generating a rechecking report according to the game recharging data test value, the point balance test value, the order data and the bookkeeping running water data if the reconciliation results are inconsistent.
The computer-readable storage medium according to an embodiment of the third aspect of the present invention has stored thereon a computer program which, when executed by a processor, implements the method of an embodiment of the first aspect of the present invention.
The computer-readable storage medium according to the embodiment of the invention has at least the following advantages: based on the recharging rules and the point rules of the recharging game, the recharging and point data of the game are measured and compared with the actual data for checking, so that the detection efficiency can be effectively improved, the manpower and material resources are saved, and the healthy operation of a recharging system is ensured.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention and are not to be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and more than, less than, more than, etc. are understood as excluding the present number, and more than, less than, etc. are understood as including the present number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
Referring to fig. 1, a method of an embodiment of the present invention includes: s100, obtaining an account point balance snapshot before the account to be detected of the recharging game is recharged, obtaining recharging operation data of the account to be detected and order data after recharging is completed from a recharging service database, and obtaining bookkeeping running data after recharging from a recharging game database, wherein the recharging operation data comprises the recharging game, recharging types and recharging amount; s200, based on the recharging rules and the integral rules of the recharging game, carrying out recharging integral calculation according to the recharging operation data to obtain a game recharging data test value and an integral balance test value after the account to be tested is recharged; and S300, checking the order data and the bookkeeping running data based on the game recharging data test value and the point balance test value to obtain a reconciliation result.
Fig. 2 is a flowchart of an embodiment of the present invention. Firstly, an account point balance snapshot before the account to be tested is recharged is obtained, wherein the snapshot comprises corresponding balances (such as game currency, game time and the like) and point balances of various recharging types of a target recharging game under the account to be tested. Then, obtaining recharging operation data of the account, including: recharge time, recharge game, recharge type, recharge channel, recharge amount, etc. Calculating the recharging type and amount of the game and the newly added points according to the recharging operation data and the recharging rules and point rules of the recharging game; and obtaining a recharging data test value and an integral balance test value of the corresponding recharging type after recharging according to the account number integral balance snapshot before recharging. Specifically, the recharge rules of the game are typically stored in the recharge service database in a recharge rule configuration, which, with reference to fig. 3, typically includes: game, recharging channel, recharging type, recharging denomination (or recharging amount), recharging result, channel commission charge coefficient and the like. One game can correspond to various recharging channels, various recharging types and various recharging amounts. According to the recharging rule configuration, the game recharging data corresponding to the recharging type can be obtained according to the recharging operation data of the player. The integration rules generally include the following three types: a generic first point rule configuration, a second point rule configuration defining a time frame or periodicity (e.g., doubling of points during holidays, addition of first value per month, etc.), and a point rule customized to the top-up game (typically represented by a hardcoded interface invoking the top-up game). And through the configuration of the first integral rule, the first integral can be obtained according to the recharging game, the recharging type and the recharging amount. And judging whether the recharging operation data meets a preset recharging time rule or not through second integral rule configuration, and obtaining a second integral according to the first integral. Calling a score rule function of the recharge game according to the score customizing rule of the recharge game, and obtaining a third score through the recharge operation data. It should be understood that not all games include the above three betting rules, for example: in the first game, only the first integral rule configuration is included, and the newly added integral of the user is the first integral; in the game B, the first integral rule configuration and the second integral rule configuration are included, and the newly added integral of the user is the second integral; in the third game, the third game comprises a first point rule configuration and a customized point rule, and the newly added points are the sum of the first points and the third points. The bonus rules for different games are various, and fig. 4 is an exemplary table of bonus rules in which bonus point customizing rules refer to the extension rules of the game of row 3B.
In some embodiments of the invention, the recharge rule and the credit rule of the recharge game have a certain effective period, the recharge rule and the credit rule of the recharge game can be stored in a time tag version mode according to the effective period, and the effective starting and ending time is recorded in the rule; and when the recharging is calculated, the effective recharging rule and the integral rule are obtained according to the recharging time of the recharging operation data to carry out recharging integral calculation.
After the game recharging data test value and the score test value are obtained, the order data in the recharging service database and the bookkeeping running data in the game database can be checked according to the two test values, and a reconciliation result is output. If the game recharging data in the order data is inconsistent with the test value, the recharging service database fails to check; and if the game recharging data recorded in the accounting stream data or the test values of the scores are inconsistent, the game database fails to check. In some games, a tally acquisition record is also maintained in the Redis repository to identify whether a particular source and tally have been taken, and a number of key values are updated in the Redis repository by customizing a tally callback function, such as: recharging records for the first time (the non-default time indicates that the records are recorded), recharging total points and promotion points across service areas, and if the total points and the promotion points are obtained, the total points and the promotion points cannot be repeatedly obtained; if the integral customization rules exist, the method further comprises the step of detecting whether the corresponding data in the corresponding Redis library is changed correctly. If not, the game database check fails. When the inconsistency of the check occurs, the inconsistent data and the data source are output in a report form for the relevant personnel to check.
Referring to fig. 5, the system according to the embodiment of the present invention includes: the rechargingdata extraction module 100 is configured to obtain an account point balance snapshot before recharging of the account to be tested, obtain recharging operation data of the account to be tested and order data after recharging is completed from the recharging service database, and obtain booked running data after recharging from the recharging game database, where the recharging operation data includes a recharging game, a recharging type, and a recharging amount; therecharging calculation module 200 is used for performing recharging score calculation according to the recharging operation data based on the recharging rules and the score rules of the recharging game to obtain a game recharging data test value and a score balance test value after the account to be tested is recharged; the checking andreconciliation module 300 checks the order data and the bookkeeping running data based on the game recharging data test value and the point balance test value to obtain a reconciliation result. Referring to fig. 2, the embodiment of the present invention further includes: a reviewreport generating module 400, configured to generate a review report according to the game recharging data test value, the credit balance test value, the order data, and the billing running data if the reconciliation result is inconsistent, where the report includes an inconsistent test value (at least one of the game recharging data test value and the credit balance test value), and includes the order data if the game recharging data in the order data is inconsistent with the test value; if the game recharging data or the testing value of the points recorded in the accounting flow data are inconsistent, the detailed contents of the accounting flow data are included, and the inconsistent places are marked in a remarkable way; in other embodiments, reviewreport generation module 400 identifies only the location and origin of the error. The reviewreport generation module 400 may also not be included in some embodiments of the present invention.
Although specific embodiments have been described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are equally within the scope of this disclosure. For example, any of the functions and/or processing capabilities described in connection with a particular device or component may be performed by any other device or component. In addition, while various exemplary implementations and architectures have been described in accordance with embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.
Certain aspects of the present disclosure are described above with reference to block diagrams and flowchart illustrations of systems, methods, apparatus and/or computer program products according to example embodiments. It will be understood that one or more blocks of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, respectively, can be implemented by executing computer-executable program instructions. Also, according to some embodiments, some blocks of the block diagrams and flow diagrams may not necessarily be performed in the order shown, or may not necessarily be performed in their entirety. In addition, additional components and/or operations beyond those shown in the block diagrams and flow diagrams may be present in certain embodiments.
Accordingly, blocks of the block diagrams and flowchart illustrations support combinations of means for performing the specified functions, combinations of elements or steps for performing the specified functions and program instruction means for performing the specified functions. It will also be understood that each block of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, can be implemented by special purpose hardware-based computer systems that perform the specified functions, elements or steps, or combinations of special purpose hardware and computer instructions.
Program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.
The software components may be encoded in any of a variety of programming languages. An illustrative programming language may be a low-level programming language, such as assembly language associated with a particular hardware architecture and/or operating system platform. Software components that include assembly language instructions may need to be converted by an assembler program into executable machine code prior to execution by a hardware architecture and/or platform. Another exemplary programming language may be a higher level programming language, which may be portable across a variety of architectures. Software components that include higher level programming languages may need to be converted to an intermediate representation by an interpreter or compiler prior to execution. Other examples of programming languages include, but are not limited to, a macro language, a shell or command language, a job control language, a scripting language, a database query or search language, or a report writing language. In one or more exemplary embodiments, a software component containing instructions of one of the above programming language examples may be executed directly by an operating system or other software component without first being converted to another form.
The software components may be stored as files or other data storage constructs. Software components of similar types or related functionality may be stored together, such as in a particular directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.