WO2022127674A1 - Method for checking account limit, device, checking system, and storage medium - Google Patents

Method for checking account limit, device, checking system, and storage medium Download PDF

Info

Publication number
WO2022127674A1
WO2022127674A1 PCT/CN2021/136571 CN2021136571W WO2022127674A1 WO 2022127674 A1 WO2022127674 A1 WO 2022127674A1 CN 2021136571 W CN2021136571 W CN 2021136571W WO 2022127674 A1 WO2022127674 A1 WO 2022127674A1
Authority
WO
WIPO (PCT)
Prior art keywords
account
verification
data
checking
quota
Prior art date
Application number
PCT/CN2021/136571
Other languages
French (fr)
Chinese (zh)
Inventor
张鹏
卢翔
王永
Original Assignee
网联清算有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 网联清算有限公司 filed Critical 网联清算有限公司
Publication of WO2022127674A1 publication Critical patent/WO2022127674A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Definitions

  • the present application relates to the field of financial technologies, and in particular, to a method, device, and verification system and storage medium for checking account limits.
  • the existing reserve fund system is a distributed account system, and the amount is dispersed among accounts at all levels.
  • the IDC account In order to ensure the stability and efficiency of the transaction, it is necessary to collect the quota received by the deposit sub-account through the deposit business into the data center (IDC) account, and then the IDC account will allocate the quota to multiple withdrawal sub-accounts , so that the gold withdrawal account can undertake the gold withdrawal business. This process is also called quota allocation.
  • Embodiments of the present application provide a method, a device, a verification system, and a storage medium for checking an account limit, so as to reduce the performance requirements of the verification task on the server and improve the verification efficiency.
  • an embodiment of the present application provides a method for checking account limits, wherein the method is executed by an execution node in a checking system, and the method includes:
  • the check result of the account limit of the first account is determined.
  • obtaining the quota transfer flow data for checking the account quota as the verification basic data of the first account includes:
  • the quota allocation flow data matching the batch ID to be verified is found as the verification basic data of the first account.
  • the identification of the batch to be checked is determined according to the checking time of the first account; the method further includes:
  • the verification time of the first account is updated.
  • the method further includes:
  • the step of acquiring, from the account database of the first account, the quota transfer flow data for performing account quota verification as the verification basic data of the first account is performed.
  • the method further includes:
  • the first difference flow data is recorded in the check compensation table of the first account, so that account limit compensation can be performed according to the check compensation table.
  • the method further includes:
  • the first account is a centralized platform account or a dedicated account
  • the method further includes: before sending the verification basic data of the first account to the first association execution node:
  • the account check result of the centralized platform account or the dedicated account is directly determined to be passed;
  • the second differential pipeline data in the check basic data indicated by the self-check result is used as the data to be sent to the first associated execution node, or the 2.
  • the difference flow data is recorded in the check compensation table of the centralized platform account or the special account, so that the account limit compensation can be performed according to the check compensation table.
  • the method further includes:
  • an embodiment of the present application further provides a method for checking account limits, wherein the method is executed by an execution node in a checking system, and the method includes:
  • the verification basic data of the third account is verified, and the verification result of the counterparty account of the third account is obtained;
  • the checking basic data of the third account is checked, and obtaining the counterparty account checking result of the third account includes:
  • the verification result of the counterparty account of the third account is determined. If it is passed, otherwise, it is determined that the verification result of the counterparty account of the third account is not passed.
  • an embodiment of the present application further provides a device for checking account limits, which is applied to an execution node in a checking system, wherein the device is used to implement any of the aforementioned methods.
  • an embodiment of the present application further provides a verification system, including a plurality of verification devices for account limits as described above.
  • embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs are used in a checking system including multiple application programs.
  • the execution node of the verification system executes, the execution node in the verification system is caused to execute any one of the aforementioned methods.
  • the method for checking the account limit in the embodiment of the present application can be performed by an execution node in the checking system.
  • the account database of the first account obtain the quota transfer flow data for performing account quota verification as the verification basic data of the first account; then send the verification basic data of the first account to the first association execution node, and receive the first association data.
  • the account quota is checked according to the dimension of the account database, and there is no need to read all the quota allocation flow data of all account databases into the memory of a single server for verification, which avoids the memory overflow of the server and greatly improves the quota allocation. Checking efficiency of flow data.
  • Fig. 1 is a schematic diagram of the allocation flow of an account limit in the prior art
  • Fig. 2 is the structural representation of a kind of reserve fund system in the prior art
  • FIG. 3 is a schematic flowchart of a method for checking quota transfer running water data in the prior art
  • FIG. 4 is a schematic flowchart of a method for checking an account limit in an embodiment of the application
  • FIG. 5 is a schematic diagram of the correspondence between a verification system and an account database in an embodiment of the application
  • FIG. 6 is a logical block diagram of checking an account limit in an embodiment of the application.
  • FIG. 7 is a schematic flowchart of another method for checking an account limit in an embodiment of the application.
  • Fig. 8 is a flow chart of checking the account limit of a first account when it assumes different roles in an embodiment of the application;
  • FIG. 9 is a schematic structural diagram of a device for checking account limits in an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another device for checking account limits in an embodiment of the application.
  • FIG. 11 is a schematic structural diagram of a verification system in an embodiment of the present application.
  • the account limit verification method of this application is mainly implemented by relying on the existing reserve fund system.
  • FIG. 2 a schematic diagram of the hierarchical structure of a reserve fund system is provided, and the reserve fund system mainly includes a first-level account, a second-level account and a third-level account.
  • the first-level account is the platform-level master account, which is mainly used to receive external remittance quota, and can allocate the external remittance quota to the second-level account;
  • the second-level account is used to receive the quota allocated by the first-level account, and can The received quota allocated by the first-level account is allocated to the third-level account;
  • the third-level account is used to undertake the transaction business facing the user.
  • the reserve fund system may also include a special account for collecting part or all of the amount from the second-level account, and releasing the collected amount to the first-level account.
  • the above-mentioned first-level accounts can also be referred to as centralized platform accounts, and are collectively referred to as centralized platform accounts hereinafter.
  • the second-level account can also be called an IDC account (ie, Internet Data Center, data center account), hereinafter collectively referred to as an IDC account
  • an IDC account can perform horizontal quota allocation and vertical quota allocation, wherein the vertical quota allocation includes receiving centralized platform accounts amount, the amount allocated to the withdrawal sub-account, and the amount received into the gold sub-account.
  • Horizontal quota allocation is the quota allocation between different IDC accounts, that is, the second-level accounts may include multiple, and multiple second-level accounts can transfer quotas to each other.
  • the third-level account can include a gold withdrawal sub-account and a gold deposit sub-account.
  • the gold withdrawal sub-account directly undertakes the gold withdrawal business and can receive the quota allocated by the IDC account.
  • the deposit sub-account directly undertakes the deposit business, and can collect the quota to the IDC account.
  • the prior art provides a method for checking the running water data of quota allocation.
  • the existing verification method is performing quota allocation.
  • the server performing the verification task will allocate the flow verification task according to the received quota, collect the quota transfer flow data of all databases, and read them all into the memory.
  • this scheme may have the following problems:
  • an embodiment of the present application provides a method for checking account limits.
  • the method is executed by an execution node in a checking system. As shown in FIG. 4 , the method includes the following steps S410 to S430:
  • Step S410 Acquire basic verification data of the first account from the account database of the first account, wherein the basic verification data of the first account refers to the quota transfer flow data used to verify the account quota.
  • the verification system in this embodiment of the present application may be a server cluster, including multiple execution nodes, each execution node may be regarded as a verification server, and each execution node is connected to an account database of an account respectively
  • the verification system in this embodiment of the present application may be a server cluster deployed separately for the verification task of account limit, and of course, for cost considerations, it may also be implemented by an existing application server.
  • the method for checking the account limit in the embodiment of the present application may be executed by multiple execution nodes in the checking system in parallel, so as to disperse the memory pressure faced by a server in the prior art when performing the checking task.
  • the account in the embodiment of the present application may refer to an account at any level in the reserve fund system, and each account corresponds to an account database for recording and storing the quota allocation flow data of the account.
  • the account databases corresponding to the gold deposit sub-accounts mentioned later may be collectively referred to as deposit databases
  • the account databases corresponding to gold withdrawal sub-accounts may be collectively referred to as gold withdrawal databases
  • the account databases corresponding to IDC accounts may be collectively referred to as IDC databases.
  • the quota transfer flow data for checking the account limit can be obtained from the account database of the first account as the basic data of the first account.
  • the corresponding flow will be generated.
  • the deposit database will correspondingly generate a quota deduction.
  • the IDC database will generate a corresponding quota deduction, and the withdrawal database will generate a corresponding quota increase.
  • the data specifically checked in the embodiment of the present application may be the quota allocation flow data in each account database.
  • Step S420 Send the verification basic data of the first account to the first association execution node, and receive the counterparty account verification result of the first account returned by the first association execution node.
  • a piece of quota transfer flow data will carry information such as target account ID, counterparty account ID, quota, quota transfer type (plus/minus), and transfer time.
  • the target account can be understood as an account whose account limit is currently being checked
  • the counterparty account can be understood as an associated account that has a quota allocation relationship with the target account.
  • the concepts of the two are relative, that is, It can be said that any account in the reserve fund system can be either the target account or the counterparty account of the target account.
  • the quota refers to the size of the transferred quota
  • the quota transfer type refers to whether to increase the quota or deduct the quota
  • the transfer time refers to the quota from the account. The time of the successful transfer.
  • the basic data of the first account can be sent to the execution node where the counterparty account ID is located, namely the first account ID, according to the counterparty account ID carried in the basic data of the first account.
  • the execution node where the counterparty account is located performs the check, and then receives the counterparty check result of the first account returned by the first associated execution node, so as to avoid reading all the quota transfer flow data into one server. memory overflow problem.
  • first associated execution node refers to the execution node where the counterparty account of the first account is located, and the concept of "associated execution node” is also relative. For example, there is a quota allocation relationship between the first account and the second account. For the first account, the execution node where the second account is located is the associated execution node of the first account, and for the second account, the first account The execution node where it is located is the associated execution node of the second account.
  • Step S430 Determine the account limit check result of the first account according to the check result of the counterparty account of the first account.
  • the check result of the counterparty account of the first account returned by the first association execution node may specifically be the result of the check pass and fail, and then the account limit check of the first account may be determined according to the check result of the counterparty account of the first account
  • the result is a check pass or fail.
  • the deposit database will record a flow of deduction of the quota, and the IDC account receives the amount collected from the deposit sub-account. After the quota, the quota will be added to the IDC account, and then the IDC database will record an increase in the quota.
  • the quota transfer flow data if there is data in the IDC database corresponding to the quota transfer flow data recorded in the deposit database, it means that the amount has been successfully transferred from the deposit sub-account to the IDC account. If the quota is not successfully transferred to the IDC account, follow-up measures need to be taken to ensure the integrity and consistency of the quota transfer flow data.
  • the existing verification scheme is to read all the quota allocation and flow data into the memory of one server for unified verification. During this period, there will be problems such as server memory overflow, which will affect the data verification process and may also cause problems. In the case of server downtime, the verification of all quota transfer flow data fails, and the verification needs to be performed again. However, in the embodiment of the present application, the account quota is verified according to the dimension of the account database, and there is no need to transfer the quota of all account databases to the flow data. All are read into the memory for verification, which avoids the server's memory overflow, and the downtime of one execution node will not affect the verification process of other execution nodes, which improves the verification efficiency of the quota allocation flow data as a whole.
  • the obtaining, from the account database of the first account, the quota transfer flow data for performing account quota verification as the verification basic data of the first account includes: from the account of the first account The quota allocation flow data matching the batch identifier to be verified is found in the database as the verification basic data of the first account.
  • the quota transfer running water data in each account database may be verified in multiple verification batches.
  • the length of the verification batch here can be flexibly set according to actual needs. Every 5 minutes serves as a check batch.
  • Each account database will record the current verification batch identifier that has been verified. Therefore, when obtaining the quota transfer flow data for account quota verification from the account database of the first account, the current batch to be verified can be determined first. identification, and then find out from the account database of the first account the quota transfer flow data matching the batch identification to be verified as the current data to be verified for the first account, that is, verification basic data.
  • the identification of the batch to be checked is determined according to the checking time of the first account; the method further includes: after obtaining the checking result of the account limit of the first account, checking the first account The check time is updated.
  • the verification batch identifier in the embodiment of the present application may be generated according to the verification time of the account. Since each piece of flow data will carry the allocation time, each time the data verification of a verification batch is completed, the verification can be performed according to the batch that has been verified. Transfer the running water data according to the quota, update the verification time of the first account, and use it as the basis for the next batch of verification. For example, assuming that the current verification time of the first account is 10:00 am, it means that the quota transfer flow data in the first account before 10:00 have been verified. This time, the transfer time can be adjusted at 10:00. From 00:00 to 10:05, the quota transfer and running water data within five minutes will be checked, and so on.
  • the method further includes: determining whether the check time of the first account satisfies the check condition; if the check condition is met, performing the process of obtaining the account used for checking from the account database of the first account
  • the quota transfer flow data of the quota verification is used as the step of verifying the basic data of the first account.
  • a buffer time such as 5 minutes, can be properly reserved to ensure that the quota transfer running water data in a verification batch can be verified.
  • the time interval between the checking time of the first account and the current actual time is greater than 5 minutes, then it is possible to continue to obtain the quota transfer flow data for checking the account quota from the account database of the first account as The step of checking the basic data of the first account; if it is not greater than the value, the above steps will not be performed, so as to prevent the individual quota transfer running water data from failing to be checked.
  • the method further includes: if the received counterparty account verification result of the first account returned by the first association execution node is failed, then according to the counterparty account of the first account Checking the result, determining the first difference flow data in the check basic data of the first account; recording the first difference flow data in the check compensation table of the first account, so that compensation can be made according to the check Table for account limit compensation.
  • the check result of the counterparty account of the first account returned by the first association execution node corresponding to the second account is failed, it means that the first account has at least one flow identifier of the quota transfer flow data that has not been found in the account database of the second account , that is, the second account did not successfully increase/deduct the amount carried in the transfer data. Therefore, at this time, it is possible to determine the amount that has not been found according to the check result of the counterparty account of the first account returned by the first associated execution node.
  • the method further includes: determining the status of the account database of the second account corresponding to the first association execution node; if the status of the account database of the second account is the offline status , then record the verification basic data of the first account into the verification basic data cache table of the first account, so that when the account database of the second account is in the online state, the verification basic data can be
  • the cache table checks the account limit of the first account.
  • the account database may need to be offline for maintenance from time to time.
  • the transfer and transfer of quota transfer flow data be performed.
  • Check so before checking the checking basic data of the first account, you can also determine the status of the account database of the second account corresponding to the first association execution node. If the status of the account database of the second account is offline , indicating that the account database cannot be accessed at this time, and thus the verification basic data of the first account cannot be verified. Therefore, the verification basic data of the first account can be recorded in the verification basic data cache table of the first account, so that the basic verification data of the first account can be recorded.
  • the basic data for checking the first account can be checked according to the checking basic data cache table.
  • the advantage of recording the verification basic data of the first account in the verification basic data compensation table is that after the account database of the second account is subsequently restored to use, there is no need to re-read the verification basic data of the first account into the memory, directly It is more efficient to call and check the data in the basic data compensation table.
  • each account database can be monitored uniformly by a public server, so that each execution node can obtain the status of each account database from the public server at any time, without the need for the execution nodes to inform each other of the status, which improves the overall check. Process efficiency.
  • the checking basic data of the first account if the status of the account database of the first account is found to be offline, then the data in the account database of the first account cannot be obtained at this time, and the account may not be obtained first.
  • the account quota of the database is checked, and it will be checked after subsequent recovery.
  • check compensation table and the check basic data cache table mentioned in the above-mentioned embodiments are set for each account.
  • the check compensation table and the check basic data cache table can be set in one account.
  • the general table is used for unified management.
  • two tables can also be set separately.
  • the specific setting can be flexibly adjusted by those skilled in the art according to actual needs, which is not specifically limited here.
  • the first account is a centralized platform account or a dedicated account
  • the method further includes: according to the centralized platform, before sending the verification basic data of the first account to the first association execution node.
  • the verification basic data of the account or the special account determines the self-verification result of the centralized platform account or the special account; if the self-verification result is passed, the account verification result of the centralized platform account or the special account is directly determined to be passed; if the self-verification result is passed If the result is not passed, the second differential pipeline data in the verification basic data indicated by the self-checking result is used as the data to be sent to the first associated execution node, or the second differential pipeline data is recorded. into the check compensation table of the centralized platform account or the dedicated account, so that account limit compensation can be performed according to the check compensation table.
  • the quota allocation of these accounts is a cross-database operation, so if the current account to be checked for quota is any of the above types of accounts, you can use the account according to the account.
  • the counterparty account ID carried in the verified quota transfer flow data will be sent directly to the execution node where the counterparty account is located for verification.
  • the quota allocation of the centralized platform account will not only involve cross-database operations, but also the quota allocation within the database.
  • the reserve system also includes special accounts.
  • the special accounts and the centralized platform accounts usually share a database. Therefore, for the quota allocation between the special accounts and the centralized platform accounts, then It will be recorded in a database, so if the current account for quota verification is a centralized platform account or a dedicated account, the quota transfer flow data recorded in the database can be divided into two categories according to the quota transfer ID, and then internal verification is performed, that is, self-verification. , if the self-check is passed, the account check result of the centralized platform account or the dedicated account is directly determined to be passed.
  • the second difference flow data is the quota transfer flow within the centralized platform account or special account, and then directly record the check compensation corresponding to the centralized platform account or special account In the table, for account quota compensation; another possibility is that the second differential flow data is the flow data that has a quota allocation relationship with other-level account databases (such as second-level accounts, third-level accounts, etc.).
  • the difference pipeline data is used as the data to be sent to the first associated execution node, so that the first associated execution node can externally check the second difference pipeline data.
  • the method further includes: receiving an account limit check task, and obtaining a limit for performing account limit check from the account database of the first account according to the account limit check task. Allocate the running water data as the step of checking the basic data of the first account.
  • the method for checking account limits may be executed in response to the issuance of a task for checking account limits.
  • the task server may send a certain task frequency, such as 5 minutes, to the execution node where each account database is located.
  • An account limit check task is issued, and each execution node can perform account limit check in parallel according to the received account limit check task.
  • a logical block diagram for checking the account limit is provided. First, determine the status of the account database of the first account. If the account database of the first account is offline, the account limit of the account database will not be checked. If the account database of the first account is online, the first account will In the account database of the first account, the quota transfer flow data used for checking the account quota is obtained as the verification basic data of the first account.
  • the account limit can be checked directly according to the account database of the second account corresponding to the first account.
  • the status of the account database is judged. If the status of the account database of the second account is offline, the verification basic data of the first account cannot be verified at this time, and the verification basic data of the first account can be recorded in the first account. Check the basic data cache table, and then check after the account database of the second account is restored to use; if the status of the account database of the second account is an online state, then send the check basic data of the first account to the corresponding account of the second account.
  • the first association execution node On the first association execution node, receive the check result of the counterparty account of the first account returned by the first association execution node corresponding to the second account, and update the account database of the first account if the check result of the counterparty account of the first account is passed If the verification time is not passed, the first difference flow data is determined according to the verification result of the counterparty account and recorded in the compensation verification table of the first account.
  • the quota transfer flow data recorded in the account database of the centralized platform account or the special account can be divided into two categories according to the quota transfer identifier, and then internal verification is performed, that is, self-verification. If it passes, it is directly determined that the account check result of the centralized platform account or the special account is passed. If the self-check fails, it can be further determined whether the second difference flow data is the quota transfer flow within the centralized platform account or the special account, or whether it is related to other levels.
  • the account database has the flow data of the quota allocation relationship.
  • the account database of other levels has flow data with a quota allocation relationship, it can be used as the data to be sent to the first associated execution node, so that the first associated execution node can externally check the second differential flow data.
  • the check time of the account database can be compared with the current actual time to determine whether the check time of the account database still satisfies the check conditions. Check the account limit, if it is satisfied, continue to perform the above checking process.
  • the embodiment of the present application also provides another method for checking account limits.
  • the method is executed by an execution node in the checking system. As shown in FIG. 7 , the method includes the following steps S710 to S730:
  • Step S710 Receive basic verification data of the third account sent by the second association execution node, wherein the basic verification data of the third account refers to quota transfer flow data used for verification of account quotas.
  • Step S720 Check the checking basic data of the third account according to the quota transfer flow data stored in the account database of the first account, and obtain the checking result of the counterparty account of the third account.
  • Step S730 Return the verification result of the counterparty account of the third account to the second association execution node.
  • the current execution node where the first account is located in this embodiment of the present application can send the verification of the first account to the first associated execution node where the second account is located.
  • Basic data you can also receive the verification basic data of the third account sent by the second association execution node where the third account is located, and then check the received third account in the account database of the first account corresponding to this execution node. The basic data is retrieved and matched to obtain the counterparty account verification result of the third account; finally, the counterparty account verification result of the third account is returned to the second associated execution node.
  • the verification basic data of the third account is verified, and the verification result of the counterparty account of the third account is obtained. Including: if in the verification basic data of the third account, the flow identifier of each piece of quota transfer flow data can be found in the limit transfer flow data of the first account, determining the counterparty account of the third account The verification result is passed, otherwise, the verification result of the counterparty account of the third account is determined to be failed.
  • the quota transfer flow data will also carry a flow identification (UUID), which can be regarded as a unique identification generated for a quota transfer record.
  • UUID flow identification
  • a running water ID such as 000000001 will be generated in the deposit database, and a running water of the quota deduction will be generated based on this, and then the running water logo will be pushed to the IDC account, and the IDC account will receive the 100,000 credit
  • the flow indicator pushed from the deposit sub-account A will be directly used as its own flow indicator to generate an increase in the amount of flow, so that the subsequent verification of the flow data of the quota transfer is carried out.
  • the transfer time recorded in the quota transfer flow is also generated by the deposit sub-account A and pushed to the IDC account, and the IDC account directly uses the transfer time pushed by the deposit sub-account A as the actual time when the quota transfer actually occurred, thus ensuring that The allocation times recorded in the two running waters are the same, that is, they are all within one verification batch.
  • the running water identifier of each piece of quota transfer running water data can be found in the quota allocation running water data of the first account, then it is determined to verify the quota allocation running water data of the third account Passed, otherwise it is determined that the verification of the quota transfer flow data for the third account has not passed. That is to say, for a quota transfer, on the premise that the quota transfer is successful, the running water marks recorded in the account databases of both parties should be the same, so that when checking, only the running water marks can be checked to ensure the verification efficiency. For other flow information in the quota transfer flow, such as quota, quota adjustment logo, etc., can not be checked or can be checked selectively, because in actual business scenarios, there is generally no problem with this flow information.
  • first account does not have fixed meanings, and are only set to distinguish different accounts when they assume different roles.
  • the "first associated execution node” and the “second associated execution node” are also set to distinguish accounts on different execution nodes when they assume different roles. For example, when the "first account” is used as the sender of the verification basic data, it can send the verification basic data of the first account to the first association execution node where the "second account” is located for verification, and receive the return of the first association execution node.
  • the "first account” When the "first account” is the receiver of the basic data for verification, it can receive the basic data of the third account sent by the second associated execution node where the "third account” is located for verification, and verify the results. Return to the second associated execution node. For ease of understanding, as shown in FIG. 8 , a flow chart of checking the account amount of the first account when it assumes different roles is provided.
  • the embodiment of the present application also provides an account limit verification device 900, which is applied to an execution node in a verification system.
  • the device 900 includes: a verification basic data acquisition unit 910 and a verification basic data sending unit 920 and the first check result determination unit 930 .
  • the verification basic data obtaining unit 910 is used to obtain the verification basic data of the first account from the account database of the first account, wherein the verification basic data of the first account refers to the quota transfer flow data used for checking the account quota ;
  • the verification basic data sending unit 920 is configured to send the verification basic data of the first account to the first association execution node, and receive the counterparty account verification result of the first account returned by the first association execution node;
  • the first verification result determination unit 930 is configured to determine the account limit verification result of the first account according to the verification result of the counterparty account of the first account.
  • the verification basic data acquisition unit 910 is specifically configured to: find out from the account database of the first account the quota transfer flow data matching the batch identifier to be verified as the first The reconciliation basic data of the account.
  • the identification of the batch to be checked is determined according to the check time of the first account; the device further includes: an update unit, configured to obtain the account limit check result of the first account after obtaining the check result of the account limit of the first account. , to update the checking time of the first account.
  • the apparatus further includes: a checking condition determining unit, configured to determine whether the checking time of the first account satisfies the checking condition; In an account database of an account, the step of acquiring the quota transfer flow data for performing account quota verification as the verification basic data of the first account.
  • the apparatus further includes: a verification basic data receiving unit, configured to receive verification basic data of a second account sent by the first association execution node, where the second account is compatible with the first association execution node.
  • a counterparty account to which an account performs quota transfer ;
  • a second verification result determination unit configured to determine the second verification based on the verification basic data of the second account and the quota transfer flow data stored in the account database of the first account.
  • the counterparty account verification result of the account; the verification result returning unit is configured to return the counterparty account verification result of the second account to the first associated execution node.
  • the second verification result determination unit is specifically configured to: if in the verification basic data of the second account, the running water identifier of each piece of quota transfer running water data can be stored in the first account If it is found in the quota transfer flow data of the second account, it is determined that the verification result of the counterparty account of the second account is passed; otherwise, the verification result of the counterparty account of the second account is determined to be failed.
  • the apparatus further includes: a first differential flow data determination unit, configured to: if the received counterparty account verification result of the first account returned by the first association execution node is failed, Then, according to the check result of the counterparty account of the first account, determine the first difference flow data in the check basic data of the first account; the difference flow data recording unit is used to record the first difference flow data to the In the check compensation table of the first account, the account limit compensation can be performed according to the check compensation table.
  • a first differential flow data determination unit configured to: if the received counterparty account verification result of the first account returned by the first association execution node is failed, Then, according to the check result of the counterparty account of the first account, determine the first difference flow data in the check basic data of the first account; the difference flow data recording unit is used to record the first difference flow data to the In the check compensation table of the first account, the account limit compensation can be performed according to the check compensation table.
  • the apparatus further includes: an account database state determination unit, configured to determine the state of the account database of the second account corresponding to the first association execution node; the checking basic data recording unit, using If the state of the account database of the second account is the offline state, then record the verification basic data of the first account in the verification basic data cache table of the first account, so that the second account's When the account database is in an online state, the account limit of the first account can be checked according to the checking basic data cache table.
  • an account database state determination unit configured to determine the state of the account database of the second account corresponding to the first association execution node
  • the checking basic data recording unit using If the state of the account database of the second account is the offline state, then record the verification basic data of the first account in the verification basic data cache table of the first account, so that the second account's When the account database is in an online state, the account limit of the first account can be checked according to the checking basic data cache table.
  • the first account is a centralized platform account or a dedicated account
  • the apparatus further includes: a self-check result determination unit, configured to determine according to the checking basic data of the centralized platform account or the dedicated account The self-check result of the centralized platform account or the special account; the account check result determination unit of the centralized platform is used to directly determine the account check result of the centralized platform account or the special account to be passed if the self-check result is passed; the second difference A pipeline data determination unit, configured to use the second difference pipeline data in the verification basic data indicated by the self-check result as the data to be sent to the first associated execution node if the self-check result is failed. data, or record the second difference flow data in the check compensation table of the centralized platform account or the dedicated account, so that account limit compensation can be performed according to the check compensation table.
  • the device further includes: a verification task receiving unit, configured to receive a verification task of the account limit, to perform the verification task from the account database of the first account according to the verification task of the account limit, to obtain the The step of using the quota transfer flow data for the account quota verification as the verification basic data of the first account.
  • a verification task receiving unit configured to receive a verification task of the account limit, to perform the verification task from the account database of the first account according to the verification task of the account limit, to obtain the The step of using the quota transfer flow data for the account quota verification as the verification basic data of the first account.
  • This embodiment of the present application further provides another apparatus 1000 for checking account limits.
  • the apparatus 1000 is executed by an execution node in a checking system, and the apparatus 1000 includes: a checking basic data receiving unit 1010, a checking The basic data checking unit 1020 and the checking result returning unit 1030, wherein:
  • the verification basic data receiving unit 1010 is configured to receive the verification basic data of the third account sent by the second association execution node, wherein the verification basic data of the third account refers to the quota transfer running water data for performing account quota verification;
  • the checking basic data checking unit 1020 is configured to transfer the running data according to the quota stored in the account database of the first account, check the checking basic data of the third account, and obtain the checking result of the counterparty account of the third account;
  • the verification result returning unit 1030 is configured to return the verification result of the counterparty account of the third account to the second association execution node.
  • the verification basic data verification unit 1020 is specifically configured to: if in the verification basic data of the third account, the running water identifier of each piece of quota transfer running water data can be stored in the first account If it is found in the quota transfer flow data of the third account, it is determined that the verification result of the counterparty account of the third account is passed; otherwise, the verification result of the counterparty account of the third account is determined to be failed.
  • the above device for checking account limits can implement each step of the method for checking account limits performed by the execution nodes in the checking system provided in the foregoing embodiments, and the relevant explanations about the checking methods for account limits are all applicable to account limits The verification device is not repeated here.
  • the verification system includes a plurality of devices for verifying account limits as described above, and the devices for checking account limits are specifically configured to execute:
  • the check result of the account limit of the first account is determined. Or, for executing:
  • the verification basic data of the third account is verified, and the verification result of the counterparty account of the third account is obtained;
  • the embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs include instructions, and the instructions, when included in a checking system including multiple application programs
  • the execution node in the verification system can be made to execute the method executed by the device for checking the account limit in the embodiment shown in FIG. 9 or FIG. 10 , and is specifically used to execute:
  • the check result of the account limit of the first account is determined. Or, for executing:
  • the verification basic data of the third account is verified, and the verification result of the counterparty account of the third account is obtained;
  • embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include forms of non-persistent memory, random access memory (RAM) and/or non-volatile memory in computer readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology.
  • Information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
  • the embodiments of the present application may be provided as a method, a system or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.

Abstract

A method for checking an account limit, a device (900, 1000), a checking system, and a storage medium. The method is executed by an execution node in a checking system and comprises: acquiring checking basic data of the first account from an account database of a first account, the checking basic data of the first account referring to limit allocation flow data for checking an account limit (S410); sending the checking basic data of the first account to a first associated execution node, and receiving a checking result, returned by the first associated execution node, of an account of the counterparty of the first account (S420); and according to the checking result of the account of the counterparty of the first account, determining an account limit checking result of the first account (S430). In said method, the account limit is checked according to the dimension of the account database, without the need of reading all the limit allocation flow data of all the account databases into a memory of a single server for checking, thereby avoiding the memory overflow of a server, and greatly improving the checking efficiency of the limit allocation flow data.

Description

账户额度的核对方法、装置及核对系统、存储介质Verification method, device, verification system and storage medium of account limit
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2020年12月17日提交中国专利局,申请号为202011498722.6,发明名称为“一种账户额度的核对方法、装置及核对系统、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 17, 2020, with the application number of 202011498722.6 and the invention titled "A method, device and verification system for checking account limits, and storage medium", all of which are The contents are incorporated herein by reference.
技术领域technical field
本申请涉及金融技术领域,尤其涉及一种账户额度的核对方法、装置及核对系统、存储介质。The present application relates to the field of financial technologies, and in particular, to a method, device, and verification system and storage medium for checking account limits.
背景技术Background technique
现有的备付金系统是一种分布式账户系统,额度分散在各级账户中。如图1所示,为了保证交易的稳定、高效进行,需要将入金子账户通过入金业务接收到的额度归集到数据中心(IDC)账户中,再由IDC账户将额度分配至多个出金子账户中,以使出金子账户能够承接出金业务,这个过程也称为额度调拨。The existing reserve fund system is a distributed account system, and the amount is dispersed among accounts at all levels. As shown in Figure 1, in order to ensure the stability and efficiency of the transaction, it is necessary to collect the quota received by the deposit sub-account through the deposit business into the data center (IDC) account, and then the IDC account will allocate the quota to multiple withdrawal sub-accounts , so that the gold withdrawal account can undertake the gold withdrawal business. This process is also called quota allocation.
在上述额度调拨过程中,由于是跨数据库的操作,因网络等不可控因素会导致额度落库失败,因此为了检查额度调拨的完整性,需要进行额度调拨的核对,检查借贷是否平衡。During the above quota allocation process, due to the cross-database operation, uncontrollable factors such as the network will cause the quota to fail to be placed in the warehouse. Therefore, in order to check the integrity of the quota allocation, it is necessary to check the quota allocation and check whether the loan is balanced.
然而发明人发现,现有的额度调拨流水的核对方法对执行核对任务的服务器性能要求较高,且核对效率不高。However, the inventors found that the existing method for checking the quota allocation flow has high requirements on the performance of the server performing the checking task, and the checking efficiency is not high.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种账户额度的核对方法、装置及核对系统、存储介质,以降低核对任务对服务器性能的要求,并提高核对效率。Embodiments of the present application provide a method, a device, a verification system, and a storage medium for checking an account limit, so as to reduce the performance requirements of the verification task on the server and improve the verification efficiency.
本申请实施例采用下述技术方案:The embodiment of the present application adopts the following technical solutions:
第一方面,本申请实施例提供一种账户额度的核对方法,其中,所述方法由核对系统中的执行节点执行,所述方法包括:In a first aspect, an embodiment of the present application provides a method for checking account limits, wherein the method is executed by an execution node in a checking system, and the method includes:
从第一账户的账户数据库中,获取第一账户的核对基础数据,其中所述第一账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据;Obtaining basic verification data of the first account from the account database of the first account, wherein the basic verification data of the first account refers to the quota transfer flow data used to verify the account quota;
将第一账户的核对基础数据发送至第一关联执行节点,接收第一关联执行节点返回的第一账户的对手账户核对结果;sending the verification basic data of the first account to the first association execution node, and receiving the counterparty account verification result of the first account returned by the first association execution node;
根据所述第一账户的对手账户核对结果,确定所述第一账户的账户额度核对结果。According to the check result of the counterparty account of the first account, the check result of the account limit of the first account is determined.
可选地,所述从第一账户的账户数据库中,获取用于进行账户额度核对的额度 调拨流水数据作为第一账户的核对基础数据包括:Optionally, from the account database of the first account, obtaining the quota transfer flow data for checking the account quota as the verification basic data of the first account includes:
从所述第一账户的账户数据库中查找出与待核对批次标识匹配的额度调拨流水数据作为所述第一账户的核对基础数据。From the account database of the first account, the quota allocation flow data matching the batch ID to be verified is found as the verification basic data of the first account.
可选地,所述待核对批次标识是根据第一账户的核对时间确定的;该方法还包括:Optionally, the identification of the batch to be checked is determined according to the checking time of the first account; the method further includes:
在得到所述第一账户的账户额度核对结果后,对第一账户的核对时间进行更新。After obtaining the account limit verification result of the first account, the verification time of the first account is updated.
可选地,所述方法还包括:Optionally, the method further includes:
确定第一账户的核对时间是否满足核对条件;Determine whether the check time of the first account satisfies the check condition;
在满足核对条件的情况下,执行从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据的步骤。Under the condition that the verification condition is satisfied, the step of acquiring, from the account database of the first account, the quota transfer flow data for performing account quota verification as the verification basic data of the first account is performed.
可选地,所述方法还包括:Optionally, the method further includes:
若接收到的所述第一关联执行节点返回的第一账户的对手账户核对结果为未通过,则根据所述第一账户的对手账户核对结果,确定所述第一账户的核对基础数据中的第一差异流水数据;If the received check result of the counterparty account of the first account returned by the first association execution node is failed, then according to the result of the counterparty account check of the first account, determine the check result in the basic check data of the first account. The first difference flow data;
将所述第一差异流水数据记录到所述第一账户的核对补偿表中,以使能够根据所述核对补偿表进行账户额度补偿。The first difference flow data is recorded in the check compensation table of the first account, so that account limit compensation can be performed according to the check compensation table.
可选地,所述方法还包括:Optionally, the method further includes:
确定与所述第一关联执行节点对应的第二账户的账户数据库的状态;determining the state of the account database of the second account corresponding to the first association execution node;
若所述第二账户的账户数据库的状态为下线状态,则将所述第一账户的核对基础数据记录到所述第一账户的核对基础数据缓存表中,以使在第二账户的账户数据库为上线状态的情况下,能够根据所述核对基础数据缓存表进行第一账户的账户额度核对。If the state of the account database of the second account is the offline state, record the verification basic data of the first account into the verification basic data cache table of the first account, so that the account in the second account When the database is in an online state, the account limit of the first account can be checked according to the checking basic data cache table.
可选地,所述第一账户为集中平台账户或专用账户,所述方法在将第一账户的核对基础数据发送至第一关联执行节点前还包括:Optionally, the first account is a centralized platform account or a dedicated account, and the method further includes: before sending the verification basic data of the first account to the first association execution node:
根据所述集中平台账户或专用账户的核对基础数据确定集中平台账户或专用账户的自核对结果;Determine the self-checking result of the centralized platform account or the special account according to the checking basic data of the centralized platform account or the special account;
若所述自核对结果为通过,则直接确定集中平台账户或专用账户的账户核对结果为通过;If the self-check result is passed, the account check result of the centralized platform account or the dedicated account is directly determined to be passed;
若所述自核对结果为未通过,则将所述自核对结果指示的所述核对基础数据中的第二差异流水数据作为待发送至所述第一关联执行节点的数据,或者将所述第二差异流水数据记录到所述集中平台账户或专用账户的核对补偿表中,以使能够根据所述核对补偿表进行账户额度补偿。If the self-check result is failed, the second differential pipeline data in the check basic data indicated by the self-check result is used as the data to be sent to the first associated execution node, or the 2. The difference flow data is recorded in the check compensation table of the centralized platform account or the special account, so that the account limit compensation can be performed according to the check compensation table.
可选地,所述方法还包括:Optionally, the method further includes:
接收账户额度的核对任务,以根据所述账户额度的核对任务执行从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核 对基础数据的步骤。Receive the checking task of the account limit, and perform the step of obtaining the limit transfer flow data for checking the account limit from the account database of the first account as the checking basic data of the first account according to the checking task of the account limit.
第二方面,本申请实施例还提供一种账户额度的核对方法,其中,所述方法由核对系统中的执行节点执行,所述方法包括:In a second aspect, an embodiment of the present application further provides a method for checking account limits, wherein the method is executed by an execution node in a checking system, and the method includes:
接收第二关联执行节点发送的第三账户的核对基础数据,其中所述第三账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据;Receive the basic verification data of the third account sent by the second association execution node, wherein the basic verification data of the third account refers to the quota transfer flow data used to verify the account quota;
根据第一账户的账户数据库中存储的额度调拨流水数据,对所述第三账户的核对基础数据进行核对,得到所述第三账户的对手账户核对结果;According to the quota transfer flow data stored in the account database of the first account, the verification basic data of the third account is verified, and the verification result of the counterparty account of the third account is obtained;
将所述第三账户的对手账户核对结果返回给所述第二关联执行节点。Return the verification result of the counterparty account of the third account to the second association execution node.
可选地,所述根据第一账户的账户数据库中存储的额度调拨流水数据,对所述第三账户的核对基础数据进行核对,得到所述第三账户的对手账户核对结果包括:Optionally, according to the quota transfer running data stored in the account database of the first account, the checking basic data of the third account is checked, and obtaining the counterparty account checking result of the third account includes:
若所述第三账户的核对基础数据中,每条额度调拨流水数据的流水标识均可在所述第一账户的额度调拨流水数据中查找到,则确定所述第三账户的对手账户核对结果为通过,否则确定所述第三账户的对手账户核对结果为未通过。If, in the verification basic data of the third account, the running water identifier of each piece of quota transfer running data can be found in the quota allocation running data of the first account, then the verification result of the counterparty account of the third account is determined. If it is passed, otherwise, it is determined that the verification result of the counterparty account of the third account is not passed.
第三方面,本申请实施例还提供一种账户额度的核对装置,应用于核对系统中的执行节点,其中,所述装置用于实现前述任一所述方法。In a third aspect, an embodiment of the present application further provides a device for checking account limits, which is applied to an execution node in a checking system, wherein the device is used to implement any of the aforementioned methods.
第四方面,本申请实施例还提供一种核对系统,包括多个如前所述的账户额度的核对装置。In a fourth aspect, an embodiment of the present application further provides a verification system, including a plurality of verification devices for account limits as described above.
第五方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的核对系统中的执行节点执行时,使得所述核对系统中的执行节点执行前述任一所述方法。In a fifth aspect, embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs are used in a checking system including multiple application programs. When the execution node of the verification system executes, the execution node in the verification system is caused to execute any one of the aforementioned methods.
本申请实施例采用的上述至少一个技术方案能够达到以下有益效果:本申请实施例的账户额度的核对方法,可以由核对系统中的执行节点来执行,在进行账户额度的核对时,可以先从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据;然后将第一账户的核对基础数据发送至第一关联执行节点,接收第一关联执行节点返回的第一账户的对手账户核对结果;最后根据第一账户的对手账户核对结果,确定第一账户的账户额度核对结果。本申请实施例按照账户数据库的维度进行账户额度的核对,无需将所有账户数据库的额度调拨流水数据全部读入单台服务器的内存中进行核对,避免了服务器的内存溢出,同时大大提高了额度调拨流水数据的核对效率。The above-mentioned at least one technical solution adopted in the embodiment of the present application can achieve the following beneficial effects: the method for checking the account limit in the embodiment of the present application can be performed by an execution node in the checking system. In the account database of the first account, obtain the quota transfer flow data for performing account quota verification as the verification basic data of the first account; then send the verification basic data of the first account to the first association execution node, and receive the first association data. The verification result of the counterparty account of the first account returned by the execution node; finally, the result of the account limit verification of the first account is determined according to the verification result of the counterparty account of the first account. In the embodiment of the present application, the account quota is checked according to the dimension of the account database, and there is no need to read all the quota allocation flow data of all account databases into the memory of a single server for verification, which avoids the memory overflow of the server and greatly improves the quota allocation. Checking efficiency of flow data.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the attached image:
图1为现有技术中一种账户额度的调拨流程示意图;Fig. 1 is a schematic diagram of the allocation flow of an account limit in the prior art;
图2为现有技术中一种备付金系统的结构示意图;Fig. 2 is the structural representation of a kind of reserve fund system in the prior art;
图3为现有技术中的额度调拨流水数据的核对方法的流程示意图;3 is a schematic flowchart of a method for checking quota transfer running water data in the prior art;
图4为本申请实施例中一种账户额度的核对方法的流程示意图;4 is a schematic flowchart of a method for checking an account limit in an embodiment of the application;
图5为本申请实施例中一种核对系统与账户数据库的对应关系示意图;5 is a schematic diagram of the correspondence between a verification system and an account database in an embodiment of the application;
图6为本申请实施例中一种账户额度的核对逻辑框图;FIG. 6 is a logical block diagram of checking an account limit in an embodiment of the application;
图7为本申请实施例中另一种账户额度的核对方法的流程示意图;FIG. 7 is a schematic flowchart of another method for checking an account limit in an embodiment of the application;
图8为本申请实施例中一种第一账户在承担不同角色时的账户额度的核对流程框图;Fig. 8 is a flow chart of checking the account limit of a first account when it assumes different roles in an embodiment of the application;
图9为本申请实施例中一种账户额度的核对装置的结构示意图;FIG. 9 is a schematic structural diagram of a device for checking account limits in an embodiment of the present application;
图10为本申请实施例中另一种账户额度的核对装置的结构示意图;FIG. 10 is a schematic structural diagram of another device for checking account limits in an embodiment of the application;
图11为本申请实施例中一种核对系统的结构示意图。FIG. 11 is a schematic structural diagram of a verification system in an embodiment of the present application.
具体实施例specific embodiment
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
以下结合附图,详细说明本申请各实施例提供的技术方案。The technical solutions provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
本申请的账户额度核对方法主要依托于现有的备付金系统来实现。如图2所示,提供了一种备付金系统的分层结构示意图,备付金系统中主要包括第一级账户、第二级账户和第三级账户。第一级账户为平台级主账户,主要用于接收外部汇入额度,并能够将外部汇入额度分配给第二级账户;第二级账户用于接收第一级账户分配的额度,并能够将接收到的第一级账户分配的额度分配给第三级账户;第三级账户用于承接面对用户的交易业务。备付金系统中还可以包括专用账户,用于从上述第二级账户中收集部分或全部额度,并将收集到的额度释放给上述第一级账户。The account limit verification method of this application is mainly implemented by relying on the existing reserve fund system. As shown in FIG. 2, a schematic diagram of the hierarchical structure of a reserve fund system is provided, and the reserve fund system mainly includes a first-level account, a second-level account and a third-level account. The first-level account is the platform-level master account, which is mainly used to receive external remittance quota, and can allocate the external remittance quota to the second-level account; the second-level account is used to receive the quota allocated by the first-level account, and can The received quota allocated by the first-level account is allocated to the third-level account; the third-level account is used to undertake the transaction business facing the user. The reserve fund system may also include a special account for collecting part or all of the amount from the second-level account, and releasing the collected amount to the first-level account.
一般地,上述第一级账户也可以称之为集中平台账户,以下统称为集中平台账户。第二级账户也可以称之为IDC账户(即Internet Data Center,数据中心账户),以下统称为IDC账户,IDC账户可以进行横向额度分配和纵向额度分配,其中,纵向额度分配包括接收集中平台账户的额度,向出金子账户分配的额度,接收入金子账户的额度。横向额度分配为不同IDC账户之间的额度划拨,也即第二级账户可以包括多个,多个第二级账户之间能够相互划拨额度。第三级账户可以包括出金子账户和入金子账户,出金子账户直接承接出金业务,可以接收IDC账户分配的额度。入金子账户直接承接入金业务,可以向IDC账户归集额度。Generally, the above-mentioned first-level accounts can also be referred to as centralized platform accounts, and are collectively referred to as centralized platform accounts hereinafter. The second-level account can also be called an IDC account (ie, Internet Data Center, data center account), hereinafter collectively referred to as an IDC account, an IDC account can perform horizontal quota allocation and vertical quota allocation, wherein the vertical quota allocation includes receiving centralized platform accounts amount, the amount allocated to the withdrawal sub-account, and the amount received into the gold sub-account. Horizontal quota allocation is the quota allocation between different IDC accounts, that is, the second-level accounts may include multiple, and multiple second-level accounts can transfer quotas to each other. The third-level account can include a gold withdrawal sub-account and a gold deposit sub-account. The gold withdrawal sub-account directly undertakes the gold withdrawal business and can receive the quota allocated by the IDC account. The deposit sub-account directly undertakes the deposit business, and can collect the quota to the IDC account.
为了检查额度在不同账户之间调拨的完整性,需要进行额度调拨的核对,现有 技术中提供了一种额度调拨流水数据的核对方法,如图3所示,现有的核对方法在进行额度调拨流水数据的核对时,针对的是所有需要进行额度调拨流水数据核对的数据库,执行核对任务的服务器会根据接收到的额度调拨流水核对任务,收集所有数据库的额度调拨流水数据并全部读入内存中统一进行核对,然而该方案可能会存在如下问题:In order to check the integrity of the quota allocation between different accounts, it is necessary to check the quota allocation. The prior art provides a method for checking the running water data of quota allocation. As shown in FIG. 3, the existing verification method is performing quota allocation. When verifying the transfer flow data, it is aimed at all the databases that need to check the quota transfer flow data. The server performing the verification task will allocate the flow verification task according to the received quota, collect the quota transfer flow data of all databases, and read them all into the memory. However, this scheme may have the following problems:
1)将所有数据库的额度调拨流水数据一起读入内存,在数据量较大的情况下,容易触发内存溢出。1) Read the quota allocation and running water data of all databases into the memory together. In the case of a large amount of data, it is easy to trigger memory overflow.
2)整个备付金系统的额度调拨流水数据只有一台服务器上的一个核对任务来进行核对处理,在数据量较大的情况下,会导致任务耗时增高,若执行任务的服务器在异常情况下宕机会导致当前整个系统要核对的额度调拨流水数据都核对失败。2) The quota allocation flow data of the entire reserve fund system is only checked and processed by one check task on one server. In the case of a large amount of data, the task time-consuming will increase. If the server executing the task is in an abnormal situation The downtime will cause the current data to be checked for the quota transfer and flow data to be checked for the entire system to fail.
基于此,本申请实施例提供了一种账户额度的核对方法,所述方法由核对系统中的执行节点执行,如图4所示,该方法包括如下步骤S410至步骤S430:Based on this, an embodiment of the present application provides a method for checking account limits. The method is executed by an execution node in a checking system. As shown in FIG. 4 , the method includes the following steps S410 to S430:
步骤S410,从第一账户的账户数据库中,获取第一账户的核对基础数据,其中所述第一账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据。Step S410: Acquire basic verification data of the first account from the account database of the first account, wherein the basic verification data of the first account refers to the quota transfer flow data used to verify the account quota.
如图5所示,本申请实施例的核对系统可以是一个服务器集群,其中包括多个执行节点,每个执行节点都可以看作是一个核对服务器,每个执行节点分别对接一个账户的账户数据库,本申请实施例的核对系统可以是针对账户额度的核对任务单独部署的服务器集群,当然出于成本的考虑,也可以由现有的应用服务器来实现。本申请实施例的账户额度的核对方法可以由核对系统中的多个执行节点并行执行,以分散现有技术中的一台服务器在执行核对任务时所面临的内存压力。需要说明的是,本申请实施例中的账户可以是指备付金系统中任意一个层级的账户,每一个账户都会对应一个账户数据库,用于对该账户的额度调拨流水数据进行记录和存储。为了便于理解,后续提及的入金子账户对应的账户数据库可以统称为入金数据库,出金子账户对应的账户数据库可以统称为出金数据库,IDC账户对应的账户数据库可以统称为IDC数据库。As shown in FIG. 5 , the verification system in this embodiment of the present application may be a server cluster, including multiple execution nodes, each execution node may be regarded as a verification server, and each execution node is connected to an account database of an account respectively , the verification system in this embodiment of the present application may be a server cluster deployed separately for the verification task of account limit, and of course, for cost considerations, it may also be implemented by an existing application server. The method for checking the account limit in the embodiment of the present application may be executed by multiple execution nodes in the checking system in parallel, so as to disperse the memory pressure faced by a server in the prior art when performing the checking task. It should be noted that the account in the embodiment of the present application may refer to an account at any level in the reserve fund system, and each account corresponds to an account database for recording and storing the quota allocation flow data of the account. For ease of understanding, the account databases corresponding to the gold deposit sub-accounts mentioned later may be collectively referred to as deposit databases, the account databases corresponding to gold withdrawal sub-accounts may be collectively referred to as gold withdrawal databases, and the account databases corresponding to IDC accounts may be collectively referred to as IDC databases.
在进行账户额度的核对时,可以先从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为该第一账户的基础数据。在实际业务场景下,额度在不同数据库之间进行调拨时,均会生成对应的流水,例如,在将入金子账户的额度成功归集到IDC账户时,入金数据库会对应生成一条额度扣减的流水,IDC数据库会对应生成一条额度增加的流水,在将IDC账户的额度成功分配到出金子账户时,IDC数据库会对应生成一条额度扣减的流水,出金数据库会对应生成一条额度增加的流水。因此本申请实施例具体核对的数据就可以是各账户数据库中的额度调拨流水数据。When checking the account limit, firstly, the quota transfer flow data for checking the account limit can be obtained from the account database of the first account as the basic data of the first account. In the actual business scenario, when the quota is transferred between different databases, the corresponding flow will be generated. For example, when the quota of the deposit sub-account is successfully collected to the IDC account, the deposit database will correspondingly generate a quota deduction. When the quota of the IDC account is successfully allocated to the withdrawal sub-account, the IDC database will generate a corresponding quota deduction, and the withdrawal database will generate a corresponding quota increase. . Therefore, the data specifically checked in the embodiment of the present application may be the quota allocation flow data in each account database.
步骤S420,将第一账户的核对基础数据发送至第一关联执行节点,接收第一关联执行节点返回的第一账户的对手账户核对结果。Step S420: Send the verification basic data of the first account to the first association execution node, and receive the counterparty account verification result of the first account returned by the first association execution node.
通常情况下,一条额度调拨流水数据中会携带有目标账户ID、对手账户ID、 额度、额度调拨类型(加/减)和调拨时间等信息。在本申请实施例中,目标账户可以理解为是当前要进行账户额度核对的账户,对手账户可以理解为与目标账户存在额度调拨关系的关联账户,二者的概念是相对而言的,也就是说,备付金系统中的任何一个账户既可以是目标账户,也可以是目标账户的对手账户,额度即调拨的额度大小,额度调拨类型即增加额度还是扣减额度,调拨时间即额度从账户成功转出的时间。Normally, a piece of quota transfer flow data will carry information such as target account ID, counterparty account ID, quota, quota transfer type (plus/minus), and transfer time. In the embodiment of this application, the target account can be understood as an account whose account limit is currently being checked, and the counterparty account can be understood as an associated account that has a quota allocation relationship with the target account. The concepts of the two are relative, that is, It can be said that any account in the reserve fund system can be either the target account or the counterparty account of the target account. The quota refers to the size of the transferred quota, the quota transfer type refers to whether to increase the quota or deduct the quota, and the transfer time refers to the quota from the account. The time of the successful transfer.
因此本申请实施例在得到第一账户的基础数据后,可以根据第一账户的基础数据中携带的对手账户ID,将第一账户的基础数据发送到该对手账户ID所在的执行节点即第一关联执行节点上,由对手账户所在的执行节点进行核对,然后接收该第一关联执行节点返回的第一账户的交易对手核对结果,从而可以避免将所有额度调拨流水数据全部读入一台服务器的内存中而造成内存溢出的问题。Therefore, after obtaining the basic data of the first account in the embodiment of the present application, the basic data of the first account can be sent to the execution node where the counterparty account ID is located, namely the first account ID, according to the counterparty account ID carried in the basic data of the first account. On the associated execution node, the execution node where the counterparty account is located performs the check, and then receives the counterparty check result of the first account returned by the first associated execution node, so as to avoid reading all the quota transfer flow data into one server. memory overflow problem.
需要说明的是,上述“第一关联执行节点”是指第一账户的对手账户所在的执行节点,“关联执行节点”的概念同样也是相对来说的。例如,第一账户和第二账户之间存在额度调拨关系,对于第一账户来说,第二账户所在的执行节点就是第一账户的关联执行节点,而对于第二账户来说,第一账户所在的执行节点就是第二账户的关联执行节点。It should be noted that the above-mentioned "first associated execution node" refers to the execution node where the counterparty account of the first account is located, and the concept of "associated execution node" is also relative. For example, there is a quota allocation relationship between the first account and the second account. For the first account, the execution node where the second account is located is the associated execution node of the first account, and for the second account, the first account The execution node where it is located is the associated execution node of the second account.
步骤S430,根据所述第一账户的对手账户核对结果,确定所述第一账户的账户额度核对结果。Step S430: Determine the account limit check result of the first account according to the check result of the counterparty account of the first account.
具体实施时,第一关联执行节点返回的第一账户的对手账户核对结果具体可以是核对通过和不通过的结果,进而可以根据第一账户的对手账户核对结果,确定第一账户的账户额度核对结果是核对通过还是不通过。During specific implementation, the check result of the counterparty account of the first account returned by the first association execution node may specifically be the result of the check pass and fail, and then the account limit check of the first account may be determined according to the check result of the counterparty account of the first account The result is a check pass or fail.
举例说明,对于入金子账户和IDC账户而言,在入金子账户将其额度归集到IDC账户后,入金数据库会记录一条额度扣减的流水,在IDC账户接收到入金子账户归集过来的额度后,会将额度加到IDC账户中,然后IDC数据库会记录一条额度增加的流水。在进行额度调拨流水数据的核对时,如果IDC数据库中存在与入金数据库中记录的额度调拨流水数据相对应的数据时,则说明该笔额度由入金子账户成功调拨到了IDC账户中,否则说明该笔额度没有成功调拨到IDC账户中,需要采取后续措施进行处理,以保证额度调拨流水数据的完整性和一致性。For example, for the deposit sub-account and the IDC account, after the deposit sub-account collects its quota to the IDC account, the deposit database will record a flow of deduction of the quota, and the IDC account receives the amount collected from the deposit sub-account. After the quota, the quota will be added to the IDC account, and then the IDC database will record an increase in the quota. When checking the quota transfer flow data, if there is data in the IDC database corresponding to the quota transfer flow data recorded in the deposit database, it means that the amount has been successfully transferred from the deposit sub-account to the IDC account. If the quota is not successfully transferred to the IDC account, follow-up measures need to be taken to ensure the integrity and consistency of the quota transfer flow data.
如前所述,现有的核对方案是将所有额度调拨流水数据全部读到一台服务器的内存中统一进行核对,这期间会面临服务器的内存溢出等问题,影响数据的核对进程,还可能会出现服务器宕机的情况,导致所有额度调拨流水数据的核对都失败,需要再重新进行核对,而本申请实施例按照账户数据库的维度进行账户额度的核对,无需将所有账户数据库的额度调拨流水数据全部读入内存中进行核对,避免了服务器的内存溢出,且一个执行节点的宕机,不会影响其它执行节点的核对进程,整体上提高了额度调拨流水数据的核对效率。As mentioned above, the existing verification scheme is to read all the quota allocation and flow data into the memory of one server for unified verification. During this period, there will be problems such as server memory overflow, which will affect the data verification process and may also cause problems. In the case of server downtime, the verification of all quota transfer flow data fails, and the verification needs to be performed again. However, in the embodiment of the present application, the account quota is verified according to the dimension of the account database, and there is no need to transfer the quota of all account databases to the flow data. All are read into the memory for verification, which avoids the server's memory overflow, and the downtime of one execution node will not affect the verification process of other execution nodes, which improves the verification efficiency of the quota allocation flow data as a whole.
在本申请的一个实施例中,所述从第一账户的账户数据库中,获取用于进行账 户额度核对的额度调拨流水数据作为第一账户的核对基础数据包括:从所述第一账户的账户数据库中查找出与待核对批次标识匹配的额度调拨流水数据作为所述第一账户的核对基础数据。In an embodiment of the present application, the obtaining, from the account database of the first account, the quota transfer flow data for performing account quota verification as the verification basic data of the first account includes: from the account of the first account The quota allocation flow data matching the batch identifier to be verified is found in the database as the verification basic data of the first account.
为了提高额度调拨流水数据的核对效率,本申请实施例可以分多个核对批次对各账户数据库中额度调拨流水数据进行核对,这里的核对批次的长短可以根据实际需求灵活设置,例如可以是每5分钟作为一个核对批次。每个账户数据库中会记录当前已核对完成的核对批次标识,因此在从第一账户的账户数据库中获取用于进行账户额度核对的额度调拨流水数据时,可以先确定当前的待核对批次标识,然后从第一账户的账户数据库中查找出与该待核对批次标识相匹配的额度调拨流水数据作为第一账户当前要核对的数据即核对基础数据。In order to improve the verification efficiency of the quota transfer running water data, in this embodiment of the present application, the quota transfer running water data in each account database may be verified in multiple verification batches. The length of the verification batch here can be flexibly set according to actual needs. Every 5 minutes serves as a check batch. Each account database will record the current verification batch identifier that has been verified. Therefore, when obtaining the quota transfer flow data for account quota verification from the account database of the first account, the current batch to be verified can be determined first. identification, and then find out from the account database of the first account the quota transfer flow data matching the batch identification to be verified as the current data to be verified for the first account, that is, verification basic data.
在本申请的一个实施例中,所述待核对批次标识是根据第一账户的核对时间确定的;该方法还包括:在得到所述第一账户的账户额度核对结果后,对第一账户的核对时间进行更新。In an embodiment of the present application, the identification of the batch to be checked is determined according to the checking time of the first account; the method further includes: after obtaining the checking result of the account limit of the first account, checking the first account The check time is updated.
本申请实施例的核对批次标识可以根据账户的核对时间来生成,由于每一条流水数据中都会携带有调拨时间,每完成一个核对批次的数据核对,可以根据已核对完成的这一批次的额度调拨流水数据,更新第一账户的核对时间,作为下一批次核对的基础。例如,假设当前第一账户的核对时间为上午10点00分,则说明在10点00分之前的第一账户中的额度调拨流水数据均已核对完成,本次则可以对调拨时间在10点00分-10点05分这五分钟内的额度调拨流水数据进行核对,以此类推。The verification batch identifier in the embodiment of the present application may be generated according to the verification time of the account. Since each piece of flow data will carry the allocation time, each time the data verification of a verification batch is completed, the verification can be performed according to the batch that has been verified. Transfer the running water data according to the quota, update the verification time of the first account, and use it as the basis for the next batch of verification. For example, assuming that the current verification time of the first account is 10:00 am, it means that the quota transfer flow data in the first account before 10:00 have been verified. This time, the transfer time can be adjusted at 10:00. From 00:00 to 10:05, the quota transfer and running water data within five minutes will be checked, and so on.
在本申请的一个实施例中,所述方法还包括:确定第一账户的核对时间是否满足核对条件;在满足核对条件的情况下,执行从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据的步骤。In an embodiment of the present application, the method further includes: determining whether the check time of the first account satisfies the check condition; if the check condition is met, performing the process of obtaining the account used for checking from the account database of the first account The quota transfer flow data of the quota verification is used as the step of verifying the basic data of the first account.
实际业务场景下,账户额度在从第一账户调拨到第二账户时,第一账户的账户数据库中会记录一笔额度扣减的流水,对应的实际时间为t1,但由于各执行节点之间存在时间差,第二账户的账户数据库在相应地记录一笔额度增加的流水时,对应的实际时间会变成t2(t2>t1),因此如果要在t1时间节点对第一账户的额度调拨流水数据进行实时核对,由于第二账户对应的执行节点的延迟,第一账户的额度实际上还没有落入到第二账户中,第二账户的账户数据库中也还没有生成相应的流水记录,这就会导致在t1时间节点第一账户的额度调拨流水数据无法在第二账户的账户数据库中找到相匹配的数据,进而导致无法核对。因此为了避免上述情况的产生,可以适当预留一段缓冲时间,如5分钟,以保证一个核对批次内的额度调拨流水数据都能够被核对到。In the actual business scenario, when the account quota is transferred from the first account to the second account, a flow of quota deduction will be recorded in the account database of the first account, and the corresponding actual time is t1. There is a time difference. When the account database of the second account records a corresponding increase in the amount of flow, the corresponding actual time will become t2 (t2>t1). Therefore, if you want to adjust the flow of the first account at the time node of t1. The data is checked in real time. Due to the delay of the execution node corresponding to the second account, the quota of the first account has not actually fallen into the second account, and the corresponding flow record has not been generated in the account database of the second account. As a result, at the time node t1, the quota transfer flow data of the first account cannot find matching data in the account database of the second account, and thus cannot be checked. Therefore, in order to avoid the above situation, a buffer time, such as 5 minutes, can be properly reserved to ensure that the quota transfer running water data in a verification batch can be verified.
具体实施时,如果第一账户的核对时间与当前的实际时间之前的时间间隔大于5分钟,则可以继续执行从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据的步骤;如果不大于,则不再执行上述步骤,避免个别额度调拨流水数据无法被核对。During the specific implementation, if the time interval between the checking time of the first account and the current actual time is greater than 5 minutes, then it is possible to continue to obtain the quota transfer flow data for checking the account quota from the account database of the first account as The step of checking the basic data of the first account; if it is not greater than the value, the above steps will not be performed, so as to prevent the individual quota transfer running water data from failing to be checked.
在本申请的一个实施例中,所述方法还包括:若接收到的所述第一关联执行节点返回的第一账户的对手账户核对结果为未通过,则根据所述第一账户的对手账户核对结果,确定所述第一账户的核对基础数据中的第一差异流水数据;将所述第一差异流水数据记录到所述第一账户的核对补偿表中,以使能够根据所述核对补偿表进行账户额度补偿。In an embodiment of the present application, the method further includes: if the received counterparty account verification result of the first account returned by the first association execution node is failed, then according to the counterparty account of the first account Checking the result, determining the first difference flow data in the check basic data of the first account; recording the first difference flow data in the check compensation table of the first account, so that compensation can be made according to the check Table for account limit compensation.
如果第二账户对应的第一关联执行节点返回的第一账户的对手账户核对结果为未通过,说明第一账户中至少有一条额度调拨流水数据的流水标识没有在第二账户的账户数据库中找到,也即第二账户没有成功增加/扣减这条额度调拨流水数据中携带的额度,因此这时可以根据第一关联执行节点返回的第一账户的对手账户核对结果,确定没有被找到的额度调拨流水数据,作为第一账户的第一差异流水数据,然后将第一差异流水数据记录到第一账户的核对补偿表中,以使后续能够根据核对补偿表对相应账户的账户额度进行补偿,保证额度调拨的完整性和一致性。If the check result of the counterparty account of the first account returned by the first association execution node corresponding to the second account is failed, it means that the first account has at least one flow identifier of the quota transfer flow data that has not been found in the account database of the second account , that is, the second account did not successfully increase/deduct the amount carried in the transfer data. Therefore, at this time, it is possible to determine the amount that has not been found according to the check result of the counterparty account of the first account returned by the first associated execution node. Allocate the running data as the first differential running data of the first account, and then record the first differential running data in the verification compensation table of the first account, so that the account quota of the corresponding account can be compensated according to the verification and compensation table in the future, Guarantee the integrity and consistency of quota allocation.
在本申请的一个实施例中,所述方法还包括:确定与所述第一关联执行节点对应的第二账户的账户数据库的状态;若所述第二账户的账户数据库的状态为下线状态,则将所述第一账户的核对基础数据记录到所述第一账户的核对基础数据缓存表中,以使在第二账户的账户数据库为上线状态的情况下,能够根据所述核对基础数据缓存表进行第一账户的账户额度核对。In an embodiment of the present application, the method further includes: determining the status of the account database of the second account corresponding to the first association execution node; if the status of the account database of the second account is the offline status , then record the verification basic data of the first account into the verification basic data cache table of the first account, so that when the account database of the second account is in the online state, the verification basic data can be The cache table checks the account limit of the first account.
在实际业务场景下,由于账户数据库故障等原因,账户数据库可能需要不定期地下线维修,而对于本申请实施例来说,只有账户数据库处于上线状态,才能够进行额度调拨流水数据的调取和核对,因此在对第一账户的核对基础数据进行核对之前,还可以先确定与第一关联执行节点对应的第二账户的账户数据库的状态,如果第二账户的账户数据库的状态为下线状态,说明该账户数据库此时无法访问,进而也就无法对第一账户的核对基础数据进行核对,因此可以将第一账户的核对基础数据记录到第一账户的核对基础数据缓存表中,以使在第二账户的账户数据库恢复使用后,能够根据核对基础数据缓存表对进行第一账户的核对基础数据进行核对。这里将第一账户的核对基础数据记录到核对基础数据补偿表中的好处是,在第二账户的账户数据库后续恢复使用后,无需再重新读取第一账户的核对基础数据到内存中,直接调用核对基础数据补偿表中的数据即可,效率更高。In an actual business scenario, due to account database failure and other reasons, the account database may need to be offline for maintenance from time to time. For this embodiment of the present application, only when the account database is online can the transfer and transfer of quota transfer flow data be performed. Check, so before checking the checking basic data of the first account, you can also determine the status of the account database of the second account corresponding to the first association execution node. If the status of the account database of the second account is offline , indicating that the account database cannot be accessed at this time, and thus the verification basic data of the first account cannot be verified. Therefore, the verification basic data of the first account can be recorded in the verification basic data cache table of the first account, so that the basic verification data of the first account can be recorded. After the account database of the second account is restored to use, the basic data for checking the first account can be checked according to the checking basic data cache table. The advantage of recording the verification basic data of the first account in the verification basic data compensation table is that after the account database of the second account is subsequently restored to use, there is no need to re-read the verification basic data of the first account into the memory, directly It is more efficient to call and check the data in the basic data compensation table.
对于各账户数据库的状态可以由一个公共服务器来统一进行监控,这样各执行节点都可以从该公共服务器中随时获取到各账户数据库的状态,无需执行节点之间相互进行状态告知,提高了整个核对流程的处理效率。The status of each account database can be monitored uniformly by a public server, so that each execution node can obtain the status of each account database from the public server at any time, without the need for the execution nodes to inform each other of the status, which improves the overall check. Process efficiency.
当然,在对第一账户的核对基础数据进行核对之前,如果发现第一账户的账户数据库的状态为下线状态,则此时无法获取第一账户的账户数据库中的数据,可以先不对该账户数据库的账户额度进行核对,待后续恢复使用后再进行核对。Of course, before checking the checking basic data of the first account, if the status of the account database of the first account is found to be offline, then the data in the account database of the first account cannot be obtained at this time, and the account may not be obtained first. The account quota of the database is checked, and it will be checked after subsequent recovery.
需要说明的是,上述实施例中提及的核对补偿表和核对基础数据缓存表均是针对每个账户设置的,具体实施时,可以将核对补偿表和核对基础数据缓存表设置在 一个账户的总表中来统一管理,当然,也可以分别设置两个表,具体如何设置,本领域技术人员可根据实际需求灵活调整,在此不作具体限定。It should be noted that the check compensation table and the check basic data cache table mentioned in the above-mentioned embodiments are set for each account. During specific implementation, the check compensation table and the check basic data cache table can be set in one account. The general table is used for unified management. Of course, two tables can also be set separately. The specific setting can be flexibly adjusted by those skilled in the art according to actual needs, which is not specifically limited here.
在本申请的一个实施例中,所述第一账户为集中平台账户或专用账户,所述方法在将第一账户的核对基础数据发送至第一关联执行节点前还包括:根据所述集中平台账户或专用账户的核对基础数据确定集中平台账户或专用账户的自核对结果;若所述自核对结果为通过,则直接确定集中平台账户或专用账户的账户核对结果为通过;若所述自核对结果为未通过,则将所述自核对结果指示的所述核对基础数据中的第二差异流水数据作为待发送至所述第一关联执行节点的数据,或者将所述第二差异流水数据记录到所述集中平台账户或专用账户的核对补偿表中,以使能够根据所述核对补偿表进行账户额度补偿。In an embodiment of the present application, the first account is a centralized platform account or a dedicated account, and the method further includes: according to the centralized platform, before sending the verification basic data of the first account to the first association execution node. The verification basic data of the account or the special account determines the self-verification result of the centralized platform account or the special account; if the self-verification result is passed, the account verification result of the centralized platform account or the special account is directly determined to be passed; if the self-verification result is passed If the result is not passed, the second differential pipeline data in the verification basic data indicated by the self-checking result is used as the data to be sent to the first associated execution node, or the second differential pipeline data is recorded. into the check compensation table of the centralized platform account or the dedicated account, so that account limit compensation can be performed according to the check compensation table.
对于入金子账户、IDC账户以及出金子账户来说,这些账户的额度调拨都是跨数据库的操作,因此如果当前要进行额度核对的账户为上述任意一种类型的账户,则可以根据该账户用于核对的额度调拨流水数据中携带的对手账户ID,将用于核对的额度调拨流水数据直接发送至对手账户所在的执行节点上进行核对。For deposit sub-accounts, IDC accounts and gold-withdrawal sub-accounts, the quota allocation of these accounts is a cross-database operation, so if the current account to be checked for quota is any of the above types of accounts, you can use the account according to the account. The counterparty account ID carried in the verified quota transfer flow data will be sent directly to the execution node where the counterparty account is located for verification.
而对于集中平台账户来说,集中平台账户的额度调拨不仅仅会涉及跨数据库的操作,还会涉及数据库内部的额度调拨。具体地,如前所述,备付金系统中还包括专用账户,在实际业务场景下,专用账户和集中平台账户通常共用一个数据库,因此对于专用账户和集中平台账户之间的额度调拨,则会记录在一个数据库中,所以如果当前要进行额度核对的账户为集中平台账户或者专用账户,则可以将数据库中记录的额度调拨流水数据按照额度调拨标识分成两类,然后进行内部核对即自核对,如果自核对通过,则直接确定集中平台账户或专用账户的账户核对结果为通过。For the centralized platform account, the quota allocation of the centralized platform account will not only involve cross-database operations, but also the quota allocation within the database. Specifically, as mentioned above, the reserve system also includes special accounts. In actual business scenarios, the special accounts and the centralized platform accounts usually share a database. Therefore, for the quota allocation between the special accounts and the centralized platform accounts, then It will be recorded in a database, so if the current account for quota verification is a centralized platform account or a dedicated account, the quota transfer flow data recorded in the database can be divided into two categories according to the quota transfer ID, and then internal verification is performed, that is, self-verification. , if the self-check is passed, the account check result of the centralized platform account or the dedicated account is directly determined to be passed.
如果自核对未通过,则可能存在以下两种情况:一种可能是第二差异流水数据是集中平台账户或专用账户内部的额度调拨流水,则直接记录到集中平台账户或专用账户对应的核对补偿表中,以进行账户额度补偿;另一种可能是第二差异流水数据是与其他层级账户数据库(如二级账户、三级账户等)存在额度调拨关系的流水数据,则可以将该第二差异流水数据,作为待发送至第一关联执行节点的数据,以使第一关联执行节点对该第二差异流水数据进行外部核对。If the self-check fails, there may be the following two situations: One may be that the second difference flow data is the quota transfer flow within the centralized platform account or special account, and then directly record the check compensation corresponding to the centralized platform account or special account In the table, for account quota compensation; another possibility is that the second differential flow data is the flow data that has a quota allocation relationship with other-level account databases (such as second-level accounts, third-level accounts, etc.). The difference pipeline data is used as the data to be sent to the first associated execution node, so that the first associated execution node can externally check the second difference pipeline data.
在本申请的一个实施例中,所述方法还包括:接收账户额度的核对任务,以根据所述账户额度的核对任务执行从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据的步骤。In an embodiment of the present application, the method further includes: receiving an account limit check task, and obtaining a limit for performing account limit check from the account database of the first account according to the account limit check task. Allocate the running water data as the step of checking the basic data of the first account.
本申请实施例的账户额度的核对方法可以响应于账户额度的核对任务的下发来执行,具体实施时,任务服务器可以按照一定任务下发频率如5分钟,向每个账户数据库所在的执行节点下发一个账户额度的核对任务,各执行节点根据接收到的账户额度的核对任务,可以同时并行执行账户额度的核对,相比于仅通过一个执行节点来处理所有账户数据库的额度核对任务来说,避免了执行节点的内存溢出,也避免了该执行节点在异常情况下宕机导致所有账户数据库的额度核对都失败的情 况,大大提高了账户额度的核对效率。The method for checking account limits according to the embodiment of the present application may be executed in response to the issuance of a task for checking account limits. During specific implementation, the task server may send a certain task frequency, such as 5 minutes, to the execution node where each account database is located. An account limit check task is issued, and each execution node can perform account limit check in parallel according to the received account limit check task. Compared with only one execution node to process the limit check task of all account databases , which avoids the memory overflow of the execution node, and also avoids the failure of the quota check of all account databases due to the downtime of the execution node under abnormal conditions, which greatly improves the check efficiency of account quota.
如图6所示,提供了一种账户额度的核对逻辑框图。首先确定第一账户的账户数据库的状态,如果第一账户的账户数据库为下线状态,则不对该账户数据库的账户额度进行核对,如果第一账户的账户数据库为在线状态,则从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据。As shown in FIG. 6 , a logical block diagram for checking the account limit is provided. First, determine the status of the account database of the first account. If the account database of the first account is offline, the account limit of the account database will not be checked. If the account database of the first account is online, the first account will In the account database of the first account, the quota transfer flow data used for checking the account quota is obtained as the verification basic data of the first account.
如果第一账户为入金子账户、IDC账户或者出金子账户中的任意一种,则可以直接根据第一账户对应的第二账户的账户数据库进行账户额度的核对,这里可以先对第二账户的账户数据库的状态进行判断,如果第二账户的账户数据库的状态为下线状态,此时无法对第一账户的核对基础数据进行核对,可以将第一账户的核对基础数据记录到第一账户的核对基础数据缓存表中,以待第二账户的账户数据库恢复使用后再核对;如果第二账户的账户数据库的状态为在线状态,则将第一账户的核对基础数据发送至第二账户对应的第一关联执行节点上,然后接收第二账户对应的第一关联执行节点返回的第一账户的对手账户核对结果,如果第一账户的对手账户核对结果为通过,则更新第一账户的账户数据库的核对时间,如果不通过,则根据对手账户核对结果确定第一差异流水数据并记录到第一账户的补偿核对表中。If the first account is any one of the gold deposit sub-account, IDC account or gold withdrawal sub-account, the account limit can be checked directly according to the account database of the second account corresponding to the first account. The status of the account database is judged. If the status of the account database of the second account is offline, the verification basic data of the first account cannot be verified at this time, and the verification basic data of the first account can be recorded in the first account. Check the basic data cache table, and then check after the account database of the second account is restored to use; if the status of the account database of the second account is an online state, then send the check basic data of the first account to the corresponding account of the second account. On the first association execution node, receive the check result of the counterparty account of the first account returned by the first association execution node corresponding to the second account, and update the account database of the first account if the check result of the counterparty account of the first account is passed If the verification time is not passed, the first difference flow data is determined according to the verification result of the counterparty account and recorded in the compensation verification table of the first account.
如果第一账户为集中平台账户或专用账户,则可以将集中平台账户或专用账户的账户数据库中记录的额度调拨流水数据按照额度调拨标识分成两类,然后进行内部核对即自核对,如果自核对通过,则直接确定集中平台账户或专用账户的账户核对结果为通过,如果自核对未通过,则可以进一步确定第二差异流水数据是集中平台账户或专用账户内部的额度调拨流水,还是与其他层级账户数据库存在额度调拨关系的流水数据,如果是集中平台账户或专用账户内部的额度调拨流水,则直接记录到集中平台账户或专用账户对应的核对补偿表中,以进行账户额度补偿;如果是与其他层级账户数据库存在额度调拨关系的流水数据,则可以将其作为待发送至第一关联执行节点的数据,以使第一关联执行节点对该第二差异流水数据进行外部核对。If the first account is a centralized platform account or a special account, the quota transfer flow data recorded in the account database of the centralized platform account or the special account can be divided into two categories according to the quota transfer identifier, and then internal verification is performed, that is, self-verification. If it passes, it is directly determined that the account check result of the centralized platform account or the special account is passed. If the self-check fails, it can be further determined whether the second difference flow data is the quota transfer flow within the centralized platform account or the special account, or whether it is related to other levels. The account database has the flow data of the quota allocation relationship. If it is the quota allocation flow within the centralized platform account or special account, it will be directly recorded in the verification compensation table corresponding to the centralized platform account or special account for account quota compensation; If the account database of other levels has flow data with a quota allocation relationship, it can be used as the data to be sent to the first associated execution node, so that the first associated execution node can externally check the second differential flow data.
每更新完一次账户数据库的核对时间,都可以将账户数据库的核对时间与当前实际时间进行比较,确定是否该账户数据库的核对时间是否仍然满足核对条件,如果不满足,则结束对该账户数据库的账户额度的核对,如果满足,则继续执行上述核对流程。Every time the check time of the account database is updated, the check time of the account database can be compared with the current actual time to determine whether the check time of the account database still satisfies the check conditions. Check the account limit, if it is satisfied, continue to perform the above checking process.
本申请实施例还提供了另一种账户额度的核对方法,所述方法由核对系统中的执行节点执行,如图7所示,所述方法包括如下的步骤S710至步骤S730:The embodiment of the present application also provides another method for checking account limits. The method is executed by an execution node in the checking system. As shown in FIG. 7 , the method includes the following steps S710 to S730:
步骤S710,接收第二关联执行节点发送的第三账户的核对基础数据,其中所述第三账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据。Step S710: Receive basic verification data of the third account sent by the second association execution node, wherein the basic verification data of the third account refers to quota transfer flow data used for verification of account quotas.
步骤S720,根据第一账户的账户数据库中存储的额度调拨流水数据,对所述第三账户的核对基础数据进行核对,得到所述第三账户的对手账户核对结果。Step S720: Check the checking basic data of the third account according to the quota transfer flow data stored in the account database of the first account, and obtain the checking result of the counterparty account of the third account.
步骤S730,将所述第三账户的对手账户核对结果返回给所述第二关联执行节点。Step S730: Return the verification result of the counterparty account of the third account to the second association execution node.
如前所述,由于目标账户和对手账户的概念是相对的,因此本申请实施例的第一账户所在的本执行节点除了可以向第二账户所在的第一关联执行节点发送第一账户的核对基础数据,还可以接收第三账户所在的第二关联执行节点发送过来的第三账户的核对基础数据,然后在本执行节点对应的第一账户的账户数据库中对接收到的第三账户的核对基础数据进行检索和匹配,进而得到第三账户的对手账户核对结果;最后再将第三账户的对手账户核对结果返回给第二关联执行节点。As mentioned above, since the concepts of the target account and the counterparty account are relative, the current execution node where the first account is located in this embodiment of the present application can send the verification of the first account to the first associated execution node where the second account is located. Basic data, you can also receive the verification basic data of the third account sent by the second association execution node where the third account is located, and then check the received third account in the account database of the first account corresponding to this execution node. The basic data is retrieved and matched to obtain the counterparty account verification result of the third account; finally, the counterparty account verification result of the third account is returned to the second associated execution node.
在本申请的一个实施例中,所述根据第一账户的账户数据库中存储的额度调拨流水数据,对所述第三账户的核对基础数据进行核对,得到所述第三账户的对手账户核对结果包括:若所述第三账户的核对基础数据中,每条额度调拨流水数据的流水标识均可在所述第一账户的额度调拨流水数据中查找到,则确定所述第三账户的对手账户核对结果为通过,否则确定所述第三账户的对手账户核对结果为未通过。In an embodiment of the present application, according to the quota transfer data stored in the account database of the first account, the verification basic data of the third account is verified, and the verification result of the counterparty account of the third account is obtained. Including: if in the verification basic data of the third account, the flow identifier of each piece of quota transfer flow data can be found in the limit transfer flow data of the first account, determining the counterparty account of the third account The verification result is passed, otherwise, the verification result of the counterparty account of the third account is determined to be failed.
通常情况下,额度调拨流水数据中还会携带有流水标识(UUID),该流水标识可以看做是对一次额度调拨记录所生成的唯一标识,例如,入金子账户A向IDC账户B归集了10万的额度,则在入金数据库中就会生成一个流水标识如000000001,并以此生成一条额度扣减的流水,然后将该流水标识推送给IDC账户,IDC账户在接收到这笔10万的额度并将该笔额度成功加到IDC账户上后,会将入金子账户A推送过来的流水标识直接作为自己的流水标识以生成一条额度增加的流水,这样后续在进行额度调拨流水数据的核对时,就可以根据额度调拨流水数据中的流水标识来进行核对。同样地,额度调拨流水中记录的调拨时间也是由入金子账户A生成后推送给IDC账户,IDC账户直接将入金子账户A推送过来的调拨时间作为自己的额度调拨实际发生的时间,进而可以保证两条流水中记录的调拨时间一致,即都在一个核对批次内。Under normal circumstances, the quota transfer flow data will also carry a flow identification (UUID), which can be regarded as a unique identification generated for a quota transfer record. If the quota is 100,000, a running water ID such as 000000001 will be generated in the deposit database, and a running water of the quota deduction will be generated based on this, and then the running water logo will be pushed to the IDC account, and the IDC account will receive the 100,000 credit After the quota is successfully added to the IDC account, the flow indicator pushed from the deposit sub-account A will be directly used as its own flow indicator to generate an increase in the amount of flow, so that the subsequent verification of the flow data of the quota transfer is carried out. , you can check the running water mark in the running water data according to the quota adjustment. Similarly, the transfer time recorded in the quota transfer flow is also generated by the deposit sub-account A and pushed to the IDC account, and the IDC account directly uses the transfer time pushed by the deposit sub-account A as the actual time when the quota transfer actually occurred, thus ensuring that The allocation times recorded in the two running waters are the same, that is, they are all within one verification batch.
具体实施时,如果第三账户的核对基础数据中,每一条额度调拨流水数据的流水标识都可以在第一账户的额度调拨流水数据中查找到,则确定对第三账户的额度调拨流水数据核对通过,否则确定对第三账户的额度调拨流水数据核对未通过。也就是说,对于一笔额度调拨来说,在额度调拨成功的前提下,双方账户数据库记录的流水标识应该是一样的,这样在进行核对时,仅核对流水标识就可以,保证核对效率。对于额度调拨流水中的其他的流水信息如额度、额度调整标识等可以不进行核对或者也可以选择性地核对,因为实际业务场景下,这些流水信息一般不会出现问题。During the specific implementation, if in the verification basic data of the third account, the running water identifier of each piece of quota transfer running water data can be found in the quota allocation running water data of the first account, then it is determined to verify the quota allocation running water data of the third account Passed, otherwise it is determined that the verification of the quota transfer flow data for the third account has not passed. That is to say, for a quota transfer, on the premise that the quota transfer is successful, the running water marks recorded in the account databases of both parties should be the same, so that when checking, only the running water marks can be checked to ensure the verification efficiency. For other flow information in the quota transfer flow, such as quota, quota adjustment logo, etc., can not be checked or can be checked selectively, because in actual business scenarios, there is generally no problem with this flow information.
需要说明的是,上述实施例中提及的“第一账户”、“第二账户”和“第三账户”不具有固定含义,仅仅是为了区分不同的账户在承担不同角色时而设置的,同理,“第一关联执行节点”和“第二关联执行节点”也是为了区分不同执行节点上的账户在承担不同角色时而设置的。比如“第一账户”在作为核对基础数据的发送 方时,可以将第一账户的核对基础数据发送给“第二账户”所在的第一关联执行节点进行核对,并接收第一关联执行节点返回的核对结果;“第一账户”在作为核对基础数据的接收方时,可以接收“第三账户”所在的第二关联执行节点发送过来的第三账户的核对基础数据进行核对,并将核对结果返回给第二关联执行节点。为了便于理解,如图8所示,提供了一种第一账户在承担不同角色时的账户额度的核对流程框图。It should be noted that the "first account", "second account" and "third account" mentioned in the above-mentioned embodiments do not have fixed meanings, and are only set to distinguish different accounts when they assume different roles. The "first associated execution node" and the "second associated execution node" are also set to distinguish accounts on different execution nodes when they assume different roles. For example, when the "first account" is used as the sender of the verification basic data, it can send the verification basic data of the first account to the first association execution node where the "second account" is located for verification, and receive the return of the first association execution node. When the "first account" is the receiver of the basic data for verification, it can receive the basic data of the third account sent by the second associated execution node where the "third account" is located for verification, and verify the results. Return to the second associated execution node. For ease of understanding, as shown in FIG. 8 , a flow chart of checking the account amount of the first account when it assumes different roles is provided.
本申请实施例还提供了一种账户额度的核对装置900,应用于核对系统中的执行节点,如图9所示,所述装置900包括:核对基础数据获取单元910、核对基础数据发送单元920和第一核对结果确定单元930。The embodiment of the present application also provides an account limit verification device 900, which is applied to an execution node in a verification system. As shown in FIG. 9, the device 900 includes: a verification basic data acquisition unit 910 and a verification basic data sending unit 920 and the first check result determination unit 930 .
核对基础数据获取单元910,用于从第一账户的账户数据库中,获取第一账户的核对基础数据,其中所述第一账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据;The verification basic data obtaining unit 910 is used to obtain the verification basic data of the first account from the account database of the first account, wherein the verification basic data of the first account refers to the quota transfer flow data used for checking the account quota ;
核对基础数据发送单元920,用于将第一账户的核对基础数据发送至第一关联执行节点,接收第一关联执行节点返回的第一账户的对手账户核对结果;The verification basic data sending unit 920 is configured to send the verification basic data of the first account to the first association execution node, and receive the counterparty account verification result of the first account returned by the first association execution node;
第一核对结果确定单元930,用于根据所述第一账户的对手账户核对结果,确定所述第一账户的账户额度核对结果。The first verification result determination unit 930 is configured to determine the account limit verification result of the first account according to the verification result of the counterparty account of the first account.
在本申请的一个实施例中,所述核对基础数据获取单元910具体用于:从所述第一账户的账户数据库中查找出与待核对批次标识匹配的额度调拨流水数据作为所述第一账户的核对基础数据。In an embodiment of the present application, the verification basic data acquisition unit 910 is specifically configured to: find out from the account database of the first account the quota transfer flow data matching the batch identifier to be verified as the first The reconciliation basic data of the account.
在本申请的一个实施例中,所述待核对批次标识是根据第一账户的核对时间确定的;该装置还包括:更新单元,用于在得到所述第一账户的账户额度核对结果后,对第一账户的核对时间进行更新。In an embodiment of the present application, the identification of the batch to be checked is determined according to the check time of the first account; the device further includes: an update unit, configured to obtain the account limit check result of the first account after obtaining the check result of the account limit of the first account. , to update the checking time of the first account.
在本申请的一个实施例中,所述装置还包括:核对条件确定单元,用于确定第一账户的核对时间是否满足核对条件;执行单元,用于在满足核对条件的情况下,执行从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据的步骤。In an embodiment of the present application, the apparatus further includes: a checking condition determining unit, configured to determine whether the checking time of the first account satisfies the checking condition; In an account database of an account, the step of acquiring the quota transfer flow data for performing account quota verification as the verification basic data of the first account.
在本申请的一个实施例中,所述装置还包括:核对基础数据接收单元,接收所述第一关联执行节点发送的第二账户的核对基础数据,所述第二账户是可与所述第一账户进行额度调拨的对手账户;第二核对结果确定单元,用于根据所述第二账户的核对基础数据和所述第一账户的账户数据库中存储的额度调拨流水数据,确定所述第二账户的对手账户核对结果;核对结果返回单元,用于将所述第二账户的对手账户核对结果返回给所述第一关联执行节点。In an embodiment of the present application, the apparatus further includes: a verification basic data receiving unit, configured to receive verification basic data of a second account sent by the first association execution node, where the second account is compatible with the first association execution node. A counterparty account to which an account performs quota transfer; a second verification result determination unit, configured to determine the second verification based on the verification basic data of the second account and the quota transfer flow data stored in the account database of the first account. The counterparty account verification result of the account; the verification result returning unit is configured to return the counterparty account verification result of the second account to the first associated execution node.
在本申请的一个实施例中,所述第二核对结果确定单元具体用于:若所述第二账户的核对基础数据中,每条额度调拨流水数据的流水标识均可在所述第一账户的额度调拨流水数据中查找到,则确定所述第二账户的对手账户核对结果为通过,否则确定所述第二账户的对手账户核对结果为未通过。In an embodiment of the present application, the second verification result determination unit is specifically configured to: if in the verification basic data of the second account, the running water identifier of each piece of quota transfer running water data can be stored in the first account If it is found in the quota transfer flow data of the second account, it is determined that the verification result of the counterparty account of the second account is passed; otherwise, the verification result of the counterparty account of the second account is determined to be failed.
在本申请的一个实施例中,所述装置还包括:第一差异流水数据确定单元,用于若接收到的所述第一关联执行节点返回的第一账户的对手账户核对结果为未通过,则根据所述第一账户的对手账户核对结果,确定所述第一账户的核对基础数据中的第一差异流水数据;差异流水数据记录单元,用于将所述第一差异流水数据记录到所述第一账户的核对补偿表中,以使能够根据所述核对补偿表进行账户额度补偿。In an embodiment of the present application, the apparatus further includes: a first differential flow data determination unit, configured to: if the received counterparty account verification result of the first account returned by the first association execution node is failed, Then, according to the check result of the counterparty account of the first account, determine the first difference flow data in the check basic data of the first account; the difference flow data recording unit is used to record the first difference flow data to the In the check compensation table of the first account, the account limit compensation can be performed according to the check compensation table.
在本申请的一个实施例中,所述装置还包括:账户数据库状态确定单元,用于确定与所述第一关联执行节点对应的第二账户的账户数据库的状态;核对基础数据记录单元,用于若所述第二账户的账户数据库的状态为下线状态,则将所述第一账户的核对基础数据记录到所述第一账户的核对基础数据缓存表中,以使在第二账户的账户数据库为上线状态的情况下,能够根据所述核对基础数据缓存表进行第一账户的账户额度核对。In an embodiment of the present application, the apparatus further includes: an account database state determination unit, configured to determine the state of the account database of the second account corresponding to the first association execution node; the checking basic data recording unit, using If the state of the account database of the second account is the offline state, then record the verification basic data of the first account in the verification basic data cache table of the first account, so that the second account's When the account database is in an online state, the account limit of the first account can be checked according to the checking basic data cache table.
在本申请的一个实施例中,所述第一账户为集中平台账户或专用账户,所述装置还包括:自核对结果确定单元,用于根据所述集中平台账户或专用账户的核对基础数据确定集中平台账户或专用账户的自核对结果;集中平台的账户核对结果确定单元,用于若所述自核对结果为通过,则直接确定集中平台账户或专用账户的账户核对结果为通过;第二差异流水数据确定单元,用于若所述自核对结果为未通过,则将所述自核对结果指示的所述核对基础数据中的第二差异流水数据作为待发送至所述第一关联执行节点的数据,或者将所述第二差异流水数据记录到所述集中平台账户或专用账户的核对补偿表中,以使能够根据所述核对补偿表进行账户额度补偿。In an embodiment of the present application, the first account is a centralized platform account or a dedicated account, and the apparatus further includes: a self-check result determination unit, configured to determine according to the checking basic data of the centralized platform account or the dedicated account The self-check result of the centralized platform account or the special account; the account check result determination unit of the centralized platform is used to directly determine the account check result of the centralized platform account or the special account to be passed if the self-check result is passed; the second difference A pipeline data determination unit, configured to use the second difference pipeline data in the verification basic data indicated by the self-check result as the data to be sent to the first associated execution node if the self-check result is failed. data, or record the second difference flow data in the check compensation table of the centralized platform account or the dedicated account, so that account limit compensation can be performed according to the check compensation table.
在本申请的一个实施例中,所述装置还包括:核对任务接收单元,用于接收账户额度的核对任务,以根据所述账户额度的核对任务执行从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据的步骤。In an embodiment of the present application, the device further includes: a verification task receiving unit, configured to receive a verification task of the account limit, to perform the verification task from the account database of the first account according to the verification task of the account limit, to obtain the The step of using the quota transfer flow data for the account quota verification as the verification basic data of the first account.
本申请实施例还提供了另一种账户额度的核对装置1000,如图10所示,所述装置1000由核对系统中的执行节点执行,所述装置1000包括:核对基础数据接收单元1010、核对基础数据核对单元1020和核对结果返回单元1030,其中:This embodiment of the present application further provides another apparatus 1000 for checking account limits. As shown in FIG. 10 , the apparatus 1000 is executed by an execution node in a checking system, and the apparatus 1000 includes: a checking basic data receiving unit 1010, a checking The basic data checking unit 1020 and the checking result returning unit 1030, wherein:
核对基础数据接收单元1010,用于接收第二关联执行节点发送的第三账户的核对基础数据,其中所述第三账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据;The verification basic data receiving unit 1010 is configured to receive the verification basic data of the third account sent by the second association execution node, wherein the verification basic data of the third account refers to the quota transfer running water data for performing account quota verification;
核对基础数据核对单元1020,用于根据第一账户的账户数据库中存储的额度调拨流水数据,对所述第三账户的核对基础数据进行核对,得到所述第三账户的对手账户核对结果;The checking basic data checking unit 1020 is configured to transfer the running data according to the quota stored in the account database of the first account, check the checking basic data of the third account, and obtain the checking result of the counterparty account of the third account;
核对结果返回单元1030,用于将所述第三账户的对手账户核对结果返回给所述第二关联执行节点。The verification result returning unit 1030 is configured to return the verification result of the counterparty account of the third account to the second association execution node.
在本申请的一个实施例中,所述核对基础数据核对单元1020具体用于:若所述第三账户的核对基础数据中,每条额度调拨流水数据的流水标识均可在所述第一账户的额度调拨流水数据中查找到,则确定所述第三账户的对手账户核对结果为通过,否则确定所述第三账户的对手账户核对结果为未通过。In an embodiment of the present application, the verification basic data verification unit 1020 is specifically configured to: if in the verification basic data of the third account, the running water identifier of each piece of quota transfer running water data can be stored in the first account If it is found in the quota transfer flow data of the third account, it is determined that the verification result of the counterparty account of the third account is passed; otherwise, the verification result of the counterparty account of the third account is determined to be failed.
能够理解,上述账户额度的核对装置,能够实现前述实施例中提供的由核对系统中的执行节点执行的账户额度的核对方法的各个步骤,关于账户额度的核对方法的相关阐释均适用于账户额度的核对装置,此处不再赘述。It can be understood that the above device for checking account limits can implement each step of the method for checking account limits performed by the execution nodes in the checking system provided in the foregoing embodiments, and the relevant explanations about the checking methods for account limits are all applicable to account limits The verification device is not repeated here.
图11是本申请的一个实施例的核对系统的结构示意图,所述核对系统包括多个如前所述的账户额度的核对装置,所述账户额度的核对装置具体用于执行:11 is a schematic structural diagram of a verification system according to an embodiment of the present application. The verification system includes a plurality of devices for verifying account limits as described above, and the devices for checking account limits are specifically configured to execute:
从第一账户的账户数据库中,获取第一账户的核对基础数据,其中所述第一账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据;Obtaining basic verification data of the first account from the account database of the first account, wherein the basic verification data of the first account refers to the quota transfer flow data used to verify the account quota;
将第一账户的核对基础数据发送至第一关联执行节点,接收第一关联执行节点返回的第一账户的对手账户核对结果;sending the verification basic data of the first account to the first association execution node, and receiving the counterparty account verification result of the first account returned by the first association execution node;
根据所述第一账户的对手账户核对结果,确定所述第一账户的账户额度核对结果。或者,用于执行:According to the check result of the counterparty account of the first account, the check result of the account limit of the first account is determined. Or, for executing:
接收第二关联执行节点发送的第三账户的核对基础数据,其中所述第三账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据;Receive the basic verification data of the third account sent by the second association execution node, wherein the basic verification data of the third account refers to the quota transfer flow data used to verify the account quota;
根据第一账户的账户数据库中存储的额度调拨流水数据,对所述第三账户的核对基础数据进行核对,得到所述第三账户的对手账户核对结果;According to the quota transfer flow data stored in the account database of the first account, the verification basic data of the third account is verified, and the verification result of the counterparty account of the third account is obtained;
将所述第三账户的对手账户核对结果返回给所述第二关联执行节点。Return the verification result of the counterparty account of the third account to the second association execution node.
本申请实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的核对系统中的执行节点执行时,能够使该核对系统中的执行节点执行图9或图10所示实施例中账户额度的核对装置执行的方法,并具体用于执行:The embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs include instructions, and the instructions, when included in a checking system including multiple application programs When executed by the execution node of , the execution node in the verification system can be made to execute the method executed by the device for checking the account limit in the embodiment shown in FIG. 9 or FIG. 10 , and is specifically used to execute:
从第一账户的账户数据库中,获取第一账户的核对基础数据,其中所述第一账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据;Obtaining basic verification data of the first account from the account database of the first account, wherein the basic verification data of the first account refers to the quota transfer flow data used to verify the account quota;
将第一账户的核对基础数据发送至第一关联执行节点,接收第一关联执行节点返回的第一账户的对手账户核对结果;sending the verification basic data of the first account to the first association execution node, and receiving the counterparty account verification result of the first account returned by the first association execution node;
根据所述第一账户的对手账户核对结果,确定所述第一账户的账户额度核对结果。或者,用于执行:According to the check result of the counterparty account of the first account, the check result of the account limit of the first account is determined. Or, for executing:
接收第二关联执行节点发送的第三账户的核对基础数据,其中所述第三账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据;Receive the basic verification data of the third account sent by the second association execution node, wherein the basic verification data of the third account refers to the quota transfer flow data used to verify the account quota;
根据第一账户的账户数据库中存储的额度调拨流水数据,对所述第三账户的核对基础数据进行核对,得到所述第三账户的对手账户核对结果;According to the quota transfer flow data stored in the account database of the first account, the verification basic data of the third account is verified, and the verification result of the counterparty account of the third account is obtained;
将所述第三账户的对手账户核对结果返回给所述第二关联执行节点。Return the verification result of the counterparty account of the third account to the second association execution node.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机 程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include forms of non-persistent memory, random access memory (RAM) and/or non-volatile memory in computer readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商 品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It will be appreciated by those skilled in the art that the embodiments of the present application may be provided as a method, a system or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are merely examples of the present application, and are not intended to limit the present application. Various modifications and variations of this application are possible for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the scope of the claims of this application.

Claims (13)

  1. 一种账户额度的核对方法,其中,所述方法由核对系统中的执行节点执行,所述方法包括:A method for checking account limits, wherein the method is executed by an execution node in a checking system, and the method includes:
    从第一账户的账户数据库中,获取第一账户的核对基础数据,其中所述第一账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据;Obtaining basic verification data of the first account from the account database of the first account, wherein the basic verification data of the first account refers to the quota transfer flow data used to verify the account quota;
    将第一账户的核对基础数据发送至第一关联执行节点,接收第一关联执行节点返回的第一账户的对手账户核对结果;sending the verification basic data of the first account to the first association execution node, and receiving the counterparty account verification result of the first account returned by the first association execution node;
    根据所述第一账户的对手账户核对结果,确定所述第一账户的账户额度核对结果。According to the check result of the counterparty account of the first account, the check result of the account limit of the first account is determined.
  2. 如权利要求1所述方法,其中,所述从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据包括:The method according to claim 1, wherein the obtaining, from the account database of the first account, the quota transfer flow data for performing account quota verification as the verification basic data of the first account comprises:
    从所述第一账户的账户数据库中查找出与待核对批次标识匹配的额度调拨流水数据作为所述第一账户的核对基础数据。From the account database of the first account, the quota allocation flow data matching the batch identifier to be verified is found as the verification basic data of the first account.
  3. 如权利要求2所述方法,其中,所述待核对批次标识是根据第一账户的核对时间确定的;该方法还包括:The method according to claim 2, wherein the identification of the batch to be checked is determined according to the checking time of the first account; the method further comprises:
    在得到所述第一账户的账户额度核对结果后,对第一账户的核对时间进行更新。After obtaining the account limit verification result of the first account, the verification time of the first account is updated.
  4. 如权利要求3所述方法,其中,所述方法还包括:The method of claim 3, wherein the method further comprises:
    确定第一账户的核对时间是否满足核对条件;Determine whether the check time of the first account satisfies the check condition;
    在满足核对条件的情况下,执行从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据的步骤。Under the condition that the verification condition is satisfied, the step of acquiring, from the account database of the first account, the quota transfer flow data for performing account quota verification as the verification basic data of the first account is performed.
  5. 如权利要求1所述方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    若接收到的所述第一关联执行节点返回的第一账户的对手账户核对结果为未通过,则根据所述第一账户的对手账户核对结果,确定所述第一账户的核对基础数据中的第一差异流水数据;If the received check result of the counterparty account of the first account returned by the first association execution node is failed, then according to the result of the counterparty account check of the first account, determine the check result in the basic check data of the first account. The first difference flow data;
    将所述第一差异流水数据记录到所述第一账户的核对补偿表中,以使能够根据所述核对补偿表进行账户额度补偿。The first difference flow data is recorded in the check compensation table of the first account, so that account limit compensation can be performed according to the check compensation table.
  6. 如权利要求1所述方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    确定与所述第一关联执行节点对应的第二账户的账户数据库的状态;determining the state of the account database of the second account corresponding to the first association execution node;
    若所述第二账户的账户数据库的状态为下线状态,则将所述第一账户的核对基础数据记录到所述第一账户的核对基础数据缓存表中,以使在第二账户的账户数据库为上线状态的情况下,能够根据所述核对基础数据缓存表进行第一账户的账户额度核对。If the state of the account database of the second account is the offline state, record the verification basic data of the first account into the verification basic data cache table of the first account, so that the account in the second account When the database is in an online state, the account limit of the first account can be checked according to the checking basic data cache table.
  7. 如权利要求1所述方法,其中,所述第一账户为集中平台账户或专用账户,所述方法在将第一账户的核对基础数据发送至第一关联执行节点前还包括:The method according to claim 1, wherein, the first account is a centralized platform account or a dedicated account, and before sending the verification basic data of the first account to the first association execution node, the method further comprises:
    根据所述集中平台账户或专用账户的核对基础数据确定集中平台账户或专用账户的自核对结果;Determine the self-checking result of the centralized platform account or the special account according to the checking basic data of the centralized platform account or the special account;
    若所述自核对结果为通过,则直接确定集中平台账户或专用账户的账户核对结果为通过;If the self-check result is passed, the account check result of the centralized platform account or the dedicated account is directly determined to be passed;
    若所述自核对结果为未通过,则将所述自核对结果指示的所述核对基础数据中的第二差异流水数据作为待发送至所述第一关联执行节点的数据,或者将所述第二差异流水数据记录到所述集中平台账户或专用账户的核对补偿表中,以使能够根据所述核对补偿表进行账户额度补偿。If the self-check result is failed, the second differential pipeline data in the check basic data indicated by the self-check result is used as the data to be sent to the first associated execution node, or the 2. The difference flow data is recorded in the check compensation table of the centralized platform account or the special account, so that the account limit compensation can be performed according to the check compensation table.
  8. 如权利要求1~7任一项所述方法,其中,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    接收账户额度的核对任务,以根据所述账户额度的核对任务执行从第一账户的账户数据库中,获取用于进行账户额度核对的额度调拨流水数据作为第一账户的核对基础数据的步骤。Receive the checking task of the account limit, and perform the step of obtaining, from the account database of the first account, the limit transfer running data for checking the account limit as the checking basic data of the first account according to the checking task of the account limit.
  9. 一种账户额度的核对方法,其中,所述方法由核对系统中的执行节点执行,所述方法包括:A method for checking account limits, wherein the method is executed by an execution node in a checking system, and the method includes:
    接收第二关联执行节点发送的第三账户的核对基础数据,其中所述第三账户的核对基础数据是指用于进行账户额度核对的额度调拨流水数据;Receive the basic verification data of the third account sent by the second association execution node, wherein the basic verification data of the third account refers to the quota transfer flow data used to verify the account quota;
    根据第一账户的账户数据库中存储的额度调拨流水数据,对所述第三账户的核对基础数据进行核对,得到所述第三账户的对手账户核对结果;According to the quota transfer flow data stored in the account database of the first account, the verification basic data of the third account is verified, and the verification result of the counterparty account of the third account is obtained;
    将所述第三账户的对手账户核对结果返回给所述第二关联执行节点。Return the verification result of the counterparty account of the third account to the second association execution node.
  10. 如权利要求9所述方法,其中,所述根据第一账户的账户数据库中存储的额度调拨流水数据,对所述第三账户的核对基础数据进行核对,得到所述第三账户的对手账户核对结果包括:The method according to claim 9, wherein, according to the quota transfer data stored in the account database of the first account, the verification basic data of the third account is verified to obtain the counterparty account verification of the third account Results include:
    若所述第三账户的核对基础数据中,每条额度调拨流水数据的流水标识均可在所述第一账户的额度调拨流水数据中查找到,则确定所述第三账户的对手账户核对结果为通过,否则确定所述第三账户的对手账户核对结果为未通过。If, in the verification basic data of the third account, the running water identifier of each piece of quota transfer running data can be found in the quota allocation running data of the first account, then the verification result of the counterparty account of the third account is determined. If it is passed, otherwise, it is determined that the verification result of the counterparty account of the third account is not passed.
  11. 一种账户额度的核对装置,应用于核对系统中的执行节点,其中,所述装置用于实现权利要求1~8之任一所述方法,或者权利要求9~10之任一所述方法。A device for checking account amount, applied to an execution node in a checking system, wherein the device is used to implement any one of the methods of claims 1 to 8, or any of the methods of claims 9 to 10.
  12. 一种核对系统,包括多个如权利要求11所述的账户额度的核对装置。A checking system, comprising a plurality of checking devices for account limits as claimed in claim 11 .
  13. 一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的核对系统中的执行节点执行时,使得所述核对系统中的执行节点执行所述权利要求1~8之任一所述方法,或者执行所述权利要求9~10之任一所述方法。A computer-readable storage medium storing one or more programs that, when executed by an execution node in a checking system including a plurality of application programs, cause the checking The execution node in the system executes the method according to any one of the claims 1-8, or executes the method according to any one of the claims 9-10.
PCT/CN2021/136571 2020-12-17 2021-12-08 Method for checking account limit, device, checking system, and storage medium WO2022127674A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011498722.6 2020-12-17
CN202011498722.6A CN114648408A (en) 2020-12-17 2020-12-17 Account amount checking method, account amount checking device, account amount checking system and storage medium

Publications (1)

Publication Number Publication Date
WO2022127674A1 true WO2022127674A1 (en) 2022-06-23

Family

ID=81990099

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/136571 WO2022127674A1 (en) 2020-12-17 2021-12-08 Method for checking account limit, device, checking system, and storage medium

Country Status (2)

Country Link
CN (1) CN114648408A (en)
WO (1) WO2022127674A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044015A1 (en) * 2003-08-19 2005-02-24 James Bracken Architecture for account reconciliation
CN109840837A (en) * 2017-11-27 2019-06-04 财付通支付科技有限公司 Processing method, device, computer-readable medium and the electronic equipment of financial data
CN110458556A (en) * 2019-07-02 2019-11-15 阿里巴巴集团控股有限公司 A kind of fund checking method, device, computer equipment and system architecture
CN110869962A (en) * 2017-07-06 2020-03-06 飒乐有限公司 Data collation based on computer analysis of data
CN111192147A (en) * 2020-04-10 2020-05-22 支付宝(杭州)信息技术有限公司 Block chain-based fund checking method and device, electronic equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044015A1 (en) * 2003-08-19 2005-02-24 James Bracken Architecture for account reconciliation
CN110869962A (en) * 2017-07-06 2020-03-06 飒乐有限公司 Data collation based on computer analysis of data
CN109840837A (en) * 2017-11-27 2019-06-04 财付通支付科技有限公司 Processing method, device, computer-readable medium and the electronic equipment of financial data
CN110458556A (en) * 2019-07-02 2019-11-15 阿里巴巴集团控股有限公司 A kind of fund checking method, device, computer equipment and system architecture
CN111192147A (en) * 2020-04-10 2020-05-22 支付宝(杭州)信息技术有限公司 Block chain-based fund checking method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN114648408A (en) 2022-06-21

Similar Documents

Publication Publication Date Title
CN108229943B (en) Block chain balance adjusting method and device and electronic equipment
KR101959153B1 (en) System for efficient processing of transaction requests related to an account in a database
WO2020173273A1 (en) Block chain smart contract-based payment collection record processing method and system
CN111478828B (en) Pressure testing method, device and system for block chain network
JP2017524190A (en) Data storage in case of database failure
US20050149601A1 (en) Method, system and computer program product for real-time data integrity verification
TW201802739A (en) Invoice title information change method, device and invoice management system
CN113886135A (en) Block chain data recovery method and device
WO2017008658A1 (en) Storage checking method and system for text data
CN105447707B (en) Data processing method and device
WO2022127674A1 (en) Method for checking account limit, device, checking system, and storage medium
CN110515555A (en) High reliability enterprise storage system and reading/writing method based on multichannel object storage service
CN107194712B (en) Method and device for recording change information of shared account and method and system for supplementing account of internal account
US20200294057A1 (en) Business processing method, apparatus, and equipment
TWM626531U (en) System for automatic account verification of funds transfer
CN116266328A (en) Account data checking method and device and electronic equipment
WO2016168509A1 (en) Fund recovery method and apparatus
CN111461864A (en) Transaction processing method and device
US11768806B1 (en) System and method for regular updates to computer-form files
CN113888322B (en) Credit evaluation method, system, storage medium and electronic equipment
CN112862428B (en) Supervision reporting system based on micro-service
CN111738815B (en) Accounting method, device, computer equipment and storage medium for financial information
WO2022127675A1 (en) Account limit data processing method and apparatus, and electronic device
CN117350840A (en) Account checking method, system, device, storage medium and electronic equipment
CN109255702B (en) Method and device for changing account opening mechanism

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21905603

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21905603

Country of ref document: EP

Kind code of ref document: A1