Data verification method, device, equipment and medium

The data verification method and device address the inefficiencies of existing systems by normalizing and verifying payment data quickly, ensuring fund balance and real-time transaction interception, thereby preventing financial losses.

CN113947395BActive Publication Date: 2024-12-17JP GLOBAL PAY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111208350.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-18
Publication Date
2024-12-17
Estimated Expiration
2041-10-18

AI Technical Summary

Technical Problem

Existing data verification methods in payment systems are time-consuming and costly, and lack real-time capabilities to prevent financial losses due to complex data interactions and inconsistencies across multiple subsystems.

Method used

A data verification method involving data normalization, configuration search, and flexible search to ensure data integrity, using a unified global order number and distributed locks to facilitate fast verification, and a data verification device with modules for judgment, normalization, and verification to intercept transactions in real-time.

Benefits of technology

Ensures fund balance and fast verification, supporting multiple payment scenarios with simple configuration and real-time interception of transactions, reducing the risk of financial losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947395B_ABST
    Figure CN113947395B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data verification method, device, equipment and medium, the method comprising: determining whether the data in the current order needs to be verified, if not, ending the process, if necessary, continuing with the subsequent data verification steps; before data verification, normalizing the data to be verified to obtain normalized data; using configuration search and flexible search methods to verify the normalized data to obtain verified data; judging whether the verified data meets the standard, if it meets, ending the process, if it does not meet, recursively and in reverse order to find a new normalized data and re-verify the step process. Compared with the solution of using the reconciliation system to verify the fund shortage by establishing different reconciliation scenarios, the present disclosure has the advantages of versatility, simple configuration, and real-time interception of short-payment transactions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and more specifically, to data verification methods, devices, equipment and media. Background Art

[0002] Nowadays, with the vigorous development of the Internet, more and more payment scenarios have emerged. As a third-party payment company, in order to provide users with more convenient payment services, various payment methods have emerged. The corresponding payment system also needs to establish more and more complex payment models to cope with it. However, a user's payment is actually a very complex data interaction process, which will be accompanied by multiple changes in information flow and capital flow data, and a small bug in the system may cause financial losses to users and companies. In order to solve the above problems, existing technologies such as QA strengthen data testing in the payment link, establish data reconciliation between front-end book systems such as transaction systems and bank channels, and accounting systems. However, these methods either consume a large amount of time and manpower costs or have great post-processing shortcomings. Therefore, it is very necessary to establish a public, stable, and real-time data verification prevention measure. Summary of the invention

[0003] To solve the technical problem that existing technology cannot meet users' data verification needs.

[0004] To achieve the above technical objectives, the present disclosure provides a data verification method, including:

[0005] Determine whether the data in the current order needs to be verified. If not, end the process. If necessary, continue with the subsequent data verification steps.

[0006] Before data verification, the data to be verified is normalized to obtain normalized data;

[0007] Verifying the normalized data by using configuration search and flexible search to obtain verified data;

[0008] Determine whether the verified data meets the standard. If it does, end the process. If it does not, recursively search in reverse order to find a new normalized data and re-verify the data.

[0009] Further, the step of determining whether data in the current order needs to be verified specifically includes:

[0010] If the data in the current order is unique, data verification is not allowed;

[0011] If the data in the current order is not unique, data verification will not be performed on the first data, but data verification will be performed on other data.

[0012] Furthermore, the normalization process specifically includes:

[0013] Process the data in the order number in a unified global order number;

[0014] Among them, all accounting records of an order in its cycle need to have the same accounting voucher number.

[0015] Further, the configuration search process specifically includes:

[0016] Find the data of the previous accounting order of the accounting data type that meets the conditions to be matched.

[0017] Furthermore, the flexible search process specifically includes:

[0018] Sort all order data to be recorded, and search in reverse order from back to front until an order data that meets the preset search rules is matched.

[0019] Furthermore, the preset search rules specifically include:

[0020] Find accounting data that conforms to the balance of debits and credits or data for entry-based accounting.

[0021] Furthermore, before determining whether data in the current order needs to be verified, the method further includes:

[0022] Perform data model abstraction on the data in the order to be verified.

[0023] In order to achieve the above technical objectives, the present disclosure can also provide a data verification device, including:

[0024] The first judgment module is used to determine whether the data in the current order needs to be verified. If not, the process ends; if yes, the subsequent data verification steps continue;

[0025] The data normalization module is used to normalize the data to be verified before data verification to obtain normalized data;

[0026] A data verification module, used to verify the normalized data by using configuration search and flexible search to obtain verified data;

[0027] The second judgment module is used to judge whether the verified data meets the standard. If it meets the standard, the process is terminated. If it does not meet the standard, a new normalized data is searched in reverse order recursively to re-verify the data.

[0028] In order to achieve the above technical objectives, the present disclosure can also provide a computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, it is used to implement the steps of the above data verification method.

[0029] To achieve the above technical objectives, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above data verification method when executing the computer program.

[0030] The beneficial effects of the present disclosure are:

[0031] The present disclosure can achieve:

[0032] 1) Ensure a balance of funds in the payment account itself

[0033] 2) Use the principle of double-entry bookkeeping and accounts with opposite debit and credit directions to write off the amount incurred to find the fund shortage

[0034] 3) Supports two methods: configuration search and flexible search to quickly match the withdrawal vouchers.

[0035] 4) A solution that meets various payment scenarios, is universal (meets the needs of multiple withdrawals with one deposit, and multiple intermediate account vouchers can be written off at one time), has simple configuration (flexible search actually only requires distinguishing whether the current entry is the first one), and has extremely fast verification (does not rely on the database if the cache is not invalidated during the whole process). It can also be used to intercept short-term transactions in real time to ensure the balance of funds. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic flow chart of the method of embodiment 1 of the present disclosure is shown;

[0037] Figure 2 A schematic diagram showing the structure of a device according to Embodiment 2 of the present disclosure is shown;

[0038] Figure 3 A structural schematic diagram of Example 4 of the present disclosure is shown. DETAILED DESCRIPTION

[0039] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0040] Various structural schematic diagrams according to embodiments of the present disclosure are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may further design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0041] With the emergence of more and more payment scenarios, both the number of payment methods and the complexity of a single payment method have greatly increased, and correspondingly more complex information flows and capital flows have also been generated in the payment system. In addition, since the current payment systems are all based on advanced microservice system architecture, although this has greatly improved the system scalability and stability of the basic service modules, multiple subsystems bring us more complex subsystem data consistency problems, and multiple subsystems determine that the existing reliable database transactions cannot be used to solve them. Therefore, to solve the problem of short funds, it is necessary not only to solve the problem of capital inflow and outflow balance between the own system and the external system, but also to deal with the problem of capital inflow and outflow balance of multiple subsystems in the own system. For these problems, some existing business technology solutions are to establish a reconciliation system to check the business orders of each upstream and downstream submodule, and then find out the consistency problems of business orders in various systems such as order status and amount. In addition, for external systems, it can be guaranteed by checking the channel front-end system and the bank test system. Obviously, this requires building a very complex reconciliation scenario for each business model, and it is impossible to intercept transaction instructions that will cause capital losses in real time.

[0042] The purpose of the present invention is to intercept the current accounting instruction and thus intercept the subsequent transaction instruction in real time when errors occur in the changes of capital flow and information flow during the mutual calls of various subsystems, resulting in an imbalance of capital entities.

[0043] Since payment is actually to complete the transfer of funds between different fund entities, for example, recharge is actually the deduction of card funds to the payment cash account. Since multiple subsystems are involved, two fund accounts will be generated.

[0044] Embodiment 1:

[0045] like Figure 1 As shown:

[0046] The present disclosure provides a data verification method, comprising:

[0047] S101: Determine whether the data in the current order needs to be verified. If not, end the process. If necessary, continue with the subsequent data verification steps.

[0048] S102: Before data verification, normalize the data to be verified to obtain normalized data;

[0049] S103: Verifying the normalized data by using configuration search and flexible search to obtain verified data;

[0050] S104: Determine whether the verified data meets the standard. If so, end the process. If not, recursively search in reverse order to find a new normalized data and re-verify the data.

[0051] Among them, the standards are:

[0052] (The amount of funds withdrawn in the order data + the current amount to be withdrawn) <= the amount of the accounting voucher in the order data.

[0053] Further, the step of determining whether data in the current order needs to be verified specifically includes:

[0054] If the data in the current order is unique, data verification is not allowed;

[0055] If the data in the current order is not unique, data verification will not be performed on the first data, but data verification will be performed on other data.

[0056] Furthermore, the normalization process specifically includes:

[0057] Process the data in the order number in a unified global order number;

[0058] Among them, all accounting records of an order in its cycle need to have the same accounting voucher number.

[0059] Further, the configuration search process specifically includes:

[0060] Find the data of the previous accounting order of the accounting data type that meets the conditions to be matched.

[0061] Furthermore, the flexible search process specifically includes:

[0062] Sort all order data to be recorded, and search in reverse order from back to front until an order data that meets the preset search rules is matched.

[0063] Furthermore, the preset search rules specifically include:

[0064] Find accounting data that conforms to the balance of debits and credits or data for entry-based accounting.

[0065] Furthermore, before determining whether data in the current order needs to be verified, the method further includes:

[0066] Perform data model abstraction on the data in the order to be verified.

[0067] The technical solution of the present disclosure is explained in detail below with reference to a specific example:

[0068] 1) Configure system permissions and accounting classification according to accounting types in the system:

[0069] ①Only one order is recorded and not verified

[0070] ② The first accounting order will not be verified, only the accounting voucher will be generated.

[0071] ③ It is necessary to conduct a full-process verification of the sufficient amount of funds voucher

[0072] 2) Unify the global order number:

[0073] It needs to be generated by the first system responsible for payment processing and then passed to the downstream processing system. In the future, each system will carry the order number for accounting during the life cycle of the order.

[0074] 3) There are other search methods in the third step, configuration search and flexible search. Configuration search: configure the preceding deposit entry for the accounting entry that needs withdrawal verification. This method is easy to understand but complex to configure. Flexible search: It is necessary to mark the accounting order to mark the accounting order of the accounting order. The atomic counter of redis is used here. In addition, in order to solve the problem that the amount cannot be accurately controlled when the upstream concurrently accounts to the downstream, redis is used to provide setnx to build a distributed lock, and a spin lock feature is provided to provide stronger performance. For sorting, the present invention uses the data type of zset for the accounting voucher in redis when the cache is not invalid, which actually utilizes the powerful caching function of redis and its natural sorting function. Therefore, the entire verification process is carried out in the cache to achieve the effect of extremely fast verification. This step is only responsible for finding a deposit accounting voucher that meets the current withdrawal accounting, regardless of whether the amount is sufficient.

[0075] 4) In the fourth step, you need to check the deposit voucher found in the third step to verify whether the amount is sufficient. Here you need to consider the withdrawals that have been successfully withdrawn and those that are still being processed.

[0076] 5) The last step is the post-bookkeeping processing operation, which caches the bookkeeping data that has been recorded, so as to avoid DB operations as much as possible in the whole process.

[0077] Embodiment 2:

[0078] like Figure 2 As shown,

[0079] The present disclosure can also provide a data verification device, including:

[0080] The first judgment module 201 is used to determine whether the data in the current order needs to be verified. If not, the process ends; if yes, the subsequent data verification steps continue;

[0081] The data normalization module 202 is used to normalize the data to be verified to obtain normalized data before data verification;

[0082] A data verification module 203 is used to verify the normalized data by using configuration search and flexible search to obtain verified data;

[0083] The second judgment module 204 is used to judge whether the verified data meets the standard. If it meets the standard, the process is terminated. If it does not meet the standard, a new normalized data is searched in reverse order and the data verification is repeated.

[0084] The first judgment module 201 is connected to the data normalization module 202 , the data verification module 203 and the second judgment module 204 in sequence.

[0085] Embodiment three:

[0086] The present disclosure can also provide a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, it is used to implement the steps of the above-mentioned data verification method.

[0087] The computer storage medium of the present disclosure may be implemented using semiconductor memory, magnetic core memory, magnetic drum memory or magnetic disk memory.

[0088] Semiconductor memory, mainly used in computers, has two types of semiconductor storage elements: Mos and bipolar. Mos elements have high integration, simple process but slow speed. Bipolar elements have complex process, high power consumption, low integration but fast speed. After the advent of NMos and CMos, Mos memory began to occupy a dominant position in semiconductor memory. NMos is fast, such as Intel's 1K-bit static random access memory with an access time of 45ns. CMos consumes less power, and the access time of 4K-bit CMos static memory is 300ns. The above-mentioned semiconductor memories are all random access memories (RAM), that is, new content can be read and written randomly during operation. Semiconductor read-only memory (ROM) can be read randomly but cannot be written during operation. It is used to store solidified programs and data. ROM is divided into two types: non-rewritable fuse read-only memory - PROM and rewritable read-only memory EPROM.

[0089] Magnetic core memory has the characteristics of low cost and high reliability, and has more than 20 years of practical experience. Magnetic core memory was widely used as main memory before the mid-1970s. Its storage capacity can reach more than 10 bits, and the fastest access time is 300ns. The capacity of typical magnetic core memory in the world is 4MS~8MB, and the access cycle is 1.0~1.5μs. After the rapid development of semiconductor storage to replace magnetic core memory as the main memory, magnetic core memory can still be used as a large-capacity expansion memory.

[0090] Magnetic drum storage is a magnetic recording external storage. Due to its fast information access speed and stable and reliable operation, although its capacity is small and it is gradually being replaced by disk storage, it is still used as an external storage for real-time process control computers and medium and large computers. In order to meet the needs of small and microcomputers, ultra-small magnetic drums have appeared, which are small in size, light in weight, highly reliable and easy to use.

[0091] Disk storage is a magnetic recording external storage. It has the advantages of both magnetic drum and tape storage, that is, its storage capacity is larger than that of magnetic drum, and its access speed is faster than that of tape storage. It can also be stored offline. Therefore, disks are widely used as large-capacity external storage in various computer systems. Disks are generally divided into two categories: hard disk and floppy disk storage.

[0092] There are many types of hard disk storage. From the structural point of view, it is divided into two types: removable and fixed. The removable disk platter can be replaced, while the fixed disk platter is fixed. Both removable and fixed disks have two types: multi-piece combination and single-piece structure, and can be divided into fixed head type and movable head type. Fixed head type disks have small capacity, low recording density and high access speed, but high cost. Movable head type disks have high recording density (up to 1000-6250 bits / inch), so they have large capacity, but the access speed is lower than that of fixed head disks. The storage capacity of disk products can reach hundreds of megabytes, with a bit density of 6250 bits per inch and a track density of 475 tracks per inch. Among them, multi-piece removable disk storage has a large off-body capacity because the disk group can be replaced, and it has large capacity and high speed. It can store large amounts of intelligence data and is widely used in online intelligence retrieval systems and database management systems.

[0093] Embodiment 4:

[0094] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned data verification method when executing the computer program.

[0095] Figure 3 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. Figure 3 As shown, the electronic device includes a processor, a storage medium, a memory and a network interface connected via a system bus. Among them, the storage medium of the computer device stores an operating system, a database and computer-readable instructions, and the database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a data verification method. The processor of the electrical device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute a data verification method. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art can understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0096] The electronic device includes but is not limited to smart phones, computers, tablet computers, wearable smart devices, artificial intelligence devices, mobile power supplies, etc.

[0097] In some embodiments, the processor may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing programs or modules stored in the memory (for example, executing remote data reading and writing programs, etc.), and calling data stored in the memory.

[0098] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory and at least one processor, etc.

[0099] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0100] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0101] Furthermore, the electronic device may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices.

[0102] Optionally, the electronic device may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0103] Furthermore, the computer-usable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0104] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0105] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0106] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0107] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, a person skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A data verification method, It is characterized in that include: Determine whether the data in the current order needs to be verified. If not, end the process. If necessary, continue with the subsequent data verification steps. Before data verification, the data to be verified is normalized to obtain normalized data; Verifying the normalized data by using configuration search and flexible search to obtain verified data; Determine whether the verified data meets the standard. If so, end the process. If not, recursively search in reverse order to find a new normalized data and re-verify the data. Determining whether data in the current order needs to be verified specifically includes: If the data in the current order is unique, data verification is not allowed; If the data in the current order is not unique, the first data will not be verified, but other data will be verified; The normalization process specifically includes: Process the data in the order number in a unified global order number; Among them, all accounting records of an order in its cycle need to have the same accounting voucher number.

2. The method according to claim 1, It is characterized in that The configuration search process specifically includes: Find the data of the previous accounting order of the accounting data type that meets the conditions to be matched.

3. The method according to claim 1, It is characterized in that The flexible search process specifically includes: Sort all order data to be recorded, and search in reverse order from back to front until an order data that meets the preset search rules is matched.

4. The method according to claim 3, It is characterized in that The preset search rules specifically include: Find accounting data that conforms to the balance of debits and credits or data for entry-based accounting.

5. The method according to any one of claims 1 to 4, It is characterized in that Before determining whether data in the current order needs to be verified, the method further includes: Perform data model abstraction on the data in the order to be verified.

6. A data verification device, It is characterized in that include: The first judgment module is used to determine whether the data in the current order needs to be verified. If not, the process ends; if yes, the subsequent data verification steps continue; The data normalization module is used to normalize the data to be verified before data verification to obtain normalized data; A data verification module, used to verify the normalized data by using configuration search and flexible search to obtain verified data; The second judgment module is used to judge whether the verified data meets the standard. If it meets the standard, the process is terminated. If it does not meet the standard, a new normalized data is searched in reverse order and the data verification is repeated. Determining whether data in the current order needs to be verified specifically includes: If the data in the current order is unique, data verification is not allowed; If the data in the current order is not unique, the first data will not be verified, but other data will be verified; The normalization process specifically includes: Process the data in the order number in a unified global order number; Among them, all accounting records of an order in its cycle need to have the same accounting voucher number.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps corresponding to the data verification method described in any one of claims 1 to 5 when executing the computer program.

8. A computer storage medium having computer program instructions stored thereon, It is characterized in that When the program instructions are executed by a processor, they are used to implement the steps corresponding to the data verification method described in any one of claims 1 to 5.