Automatic recharging method and device, electronic equipment and storage medium

By posting transactions on the funds management platform and using blockchain and ActiveMQ technologies, the problem of multiple top-ups caused by vulnerabilities in the business system was solved. This enabled consistent verification of top-up amounts and timely detection of fund losses, improving the security and accuracy of top-ups.

CN114219464BActive Publication Date: 2025-11-25PING AN PAY ELECTRONIC PAYMENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111556938.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-18
Publication Date
2025-11-25
Estimated Expiration
2041-12-18

AI Technical Summary

Technical Problem

In existing technologies, vulnerabilities in business systems during batch transfer operations may lead to customers making excessive deposits, resulting in low deposit security and poor timeliness of fund losses, making it difficult to detect in a timely manner.

Method used

By posting transactions on the fund management platform and clearing them in the business system, the recharge amount is ensured to match the deposit amount. Blockchain technology and the Dubbo framework are used to improve the flexibility and security of deposit notifications, and ActiveMQ is used for broadcasting to promptly detect and prevent fund losses.

Benefits of technology

It improves the accuracy and timeliness of recharge, ensures consistency between the recharge amount and the received amount, reduces the risk of financial loss, and enhances the security of recharge.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114219464B_ABST
    Figure CN114219464B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of artificial intelligence, and provides an automatic recharging method and device, electronic equipment and a storage medium, the method comprises the following steps: generating an entry notification based on a reserve fund entry request, and calling a fund management system to make an entry notification entry; the fund management system calls an account management system to perform a suspension operation, and obtains a suspension operation result; when the suspension operation result is a successful suspension operation, the fund management system is called to broadcast the suspension operation; when it is detected that the business system receives the broadcast, the fund management system is called to reconcile the entry notification; when it is detected that the entry notification reconciliation is successful, the account management system is called to execute the account cancellation and recharging processing according to the suspension order number in the suspension operation result. The application can improve the recharging accuracy by suspending the account in the fund management platform, canceling the account in the business system, and recharging when the recharging amount is consistent with the entry amount.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence technology, specifically to an automatic recharge method, device, electronic device, and storage medium. Background Technology

[0002] In payroll scenarios, customers first deposit funds into their accounts via bank transfer, and then the payroll company performs batch transfers to the customers. Current technology, when performing batch transfers, requires the message gateway to receive the deposit notification, instruct the funds management platform to place the order, and broadcast the current deposit notification to the business system. Upon receiving the broadcast, the business system inquires with the funds management platform to reconcile the funds. Once reconciliation is successful, the funds are deposited, and only after successful deposit is the batch transfer operation performed.

[0003] However, in current bulk transfer operations, the amount of customer recharge is entirely controlled by the business system. If the business system has a vulnerability, it may result in the customer being overcharged, leading to financial losses. This results in low recharge security. Furthermore, once a financial loss occurs, it can only be discovered during subsequent fund reconciliation, which is not timely. Summary of the Invention

[0004] In view of the above, it is necessary to propose an automatic recharge method, device, electronic device and storage medium. By posting the account on the fund management platform and clearing the account in the business system, the recharge is performed when the recharge amount matches the deposit amount, thereby improving the accuracy of the recharge.

[0005] A first aspect of the present invention provides an automatic recharge method, the method comprising:

[0006] In response to a received reserve fund deposit request, a deposit notification is generated based on the reserve fund deposit request;

[0007] Based on the aforementioned payment notification, the corresponding funds management system is invoked to place the payment notification order.

[0008] When the receipt notification is detected as completed, the funds management system calls the accounting system to perform the posting operation and obtains the posting operation result.

[0009] Based on the posting result code in the posting operation result, determine whether the posting operation result is successful.

[0010] When the result of the suspending operation is determined to be successful, the fund management system is invoked to broadcast the suspending operation.

[0011] When the business system detects that it has received the broadcast, the fund management system is invoked to reconcile the deposit notification.

[0012] When the successful reconciliation of the incoming payment notification is detected, the accounting system is invoked to perform the cancellation and recharge processing based on the outstanding account number in the outstanding account operation result.

[0013] Optionally, the step of invoking the corresponding funds management system to place the deposit notification based on the deposit notification includes:

[0014] Identify the block identifier of the funds management system in the receipt notification;

[0015] Obtain the corresponding block based on the block identifier, and call the corresponding fund management system's entry template from the block;

[0016] The billing information in the billing notification is matched with the billing template to obtain the billing statement, and the billing statement is stored in the block of the block marker code.

[0017] Optionally, the fund management system's call to the accounting system to perform the posting operation includes:

[0018] The funds management system uses the Dubbo framework to call the accounting system to perform posting operations based on the invoice.

[0019] The results of the suspense operation are reported to the accounting system, wherein the suspense operation results include the suspense result code and the suspense bill number.

[0020] Optionally, determining whether the accrual operation result is successful based on the accrual result code in the accrual operation result includes:

[0021] Identify the account closure result code in the account closure operation result;

[0022] When the accrual result code is an accrual success identifier, the accrual operation result is determined to be a successful accrual operation; or

[0023] When the posting result code is a posting failure identifier, the posting operation result is determined to be a posting operation failure.

[0024] Optionally, the step of broadcasting the accrued account operation through the fund management system includes:

[0025] The payment information in the payment notification and the account number in the account suspending operation are encapsulated into a message body, and the message body is broadcast using ActiveMQ.

[0026] Optionally, the step of calling the accounting system to perform the write-off and recharge processing based on the outstanding account number in the outstanding account operation result includes:

[0027] Based on the pending account number in the pending account operation result and the amount credited in the credit notification, the accounting system is invoked to perform the cancellation, and the recharge amount is displayed.

[0028] Compare the amount credited in the credit notification with the amount recharged;

[0029] When the amount credited in the credit notification matches the amount recharged, the accounting system is invoked to execute the recharge, and the cancellation and recharge processing results are returned to the business system; or

[0030] If the amount credited in the credit notification is inconsistent with the amount recharged, the recharge is terminated, and the cancellation and recharge processing results are returned to the business system.

[0031] Optionally, after generating the posting notification based on the reserve fund posting request, the method further includes:

[0032] The message gateway system is invoked to encapsulate the deposit notification into a message and send the message to the funds management platform.

[0033] A second aspect of the present invention provides an automatic recharge device, the device comprising:

[0034] The generation module is used to generate an inflow notification based on the received reserve fund inflow request in response to the received reserve fund inflow request.

[0035] The deposit notification order module is used to call the corresponding fund management system to place the deposit notification order based on the deposit notification.

[0036] The posting operation module is used to call the accounting system to perform the posting operation when the fund management system detects that the order of the deposit notification has been completed, and obtain the posting operation result.

[0037] The judgment module is used to determine whether the suspending operation result is successful based on the suspending result code in the suspending operation result;

[0038] The broadcast module is used to call the fund management system to broadcast the suspending operation when the result of the suspending operation is determined to be successful.

[0039] The reconciliation module is used to call the fund management system to reconcile the deposit notification when the business system detects that the broadcast has been received.

[0040] The cancellation and recharge module is used to call the accounting system to perform cancellation and recharge processing when the successful reconciliation of the incoming payment notification is detected, based on the pending account number in the pending account operation result.

[0041] A third aspect of the present invention provides an electronic device comprising a processor and a memory, wherein the processor is configured to implement the automatic recharge method by executing a computer program stored in the memory.

[0042] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the automatic recharge method.

[0043] In summary, the automatic recharge method, device, electronic device, and storage medium of this invention generate a deposit notification based on the reserve fund deposit request, and then call the corresponding fund management system to place the deposit notification order based on the deposit notification. Since different fund management systems have different deposit templates, matching the information in the deposit notification to the corresponding deposit template improves the flexibility of deposit notification order placement. When the deposit notification order placement is detected to be completed, the fund management system calls the accounting system to perform an account closure operation. When the account closure operation is successful, the fund management system broadcasts the account closure operation. During the broadcast, by encapsulating the deposit information in the deposit notification and the account closure number in the account closure operation into a message body and using ActiveMQ for broadcasting, the leakage of deposit information and account closure number is avoided, improving the security of broadcasting and thus improving the security of recharge. When the successful reconciliation of the incoming payment notification is detected, the accounting system is invoked according to the outstanding payment number in the outstanding payment operation result to perform the cancellation and recharge processing. Before recharging, the incoming payment amount and the recharge amount need to be checked to ensure the consistency between the recharge amount and the incoming payment amount. At the same time, it can promptly detect the problem of fund loss and improve the accuracy and timeliness of recharge. Attached Figure Description

[0044] Figure 1 This is a flowchart of the automatic recharge method provided in Embodiment 1 of the present invention.

[0045] Figure 2 This is a structural diagram of the automatic recharge device provided in Embodiment 2 of the present invention.

[0046] Figure 3 This is a schematic diagram of the structure of the electronic device provided in Embodiment 3 of the present invention. Detailed Implementation

[0047] To better understand the above-mentioned objects, features, and advantages of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

[0049] Example 1

[0050] Figure 1 This is a flowchart of the automatic recharge method provided in Embodiment 1 of the present invention.

[0051] In this embodiment, the automatic recharge method can be applied to electronic devices. For electronic devices that need to perform automatic recharge, the automatic recharge function provided by the method of this invention can be directly integrated into the electronic device, or it can be run in the electronic device in the form of a software development kit (SDK).

[0052] The embodiments of this invention can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that utilize digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0053] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, as well as machine learning and deep learning.

[0054] In this embodiment of the invention, the automatic recharge method can be applied to a recharge subsystem. Specifically, the recharge subsystem is communicatively connected to a message gateway system, a business system, a funds management platform, and an accounting system. When the bank receives the reserve funds from the client, it sends a reserve fund deposit notification to the message gateway system through a clearing institution. After receiving the reserve fund deposit notification, the message gateway system notifies the funds management platform. After receiving the reserve fund deposit notification, the funds management platform places an order based on the reserve fund deposit notification, resulting in a deposit notification order. When the deposit notification order is completed, the accounting system is invoked to post the deposit notification order. If the posting is successful, the current deposit operation is broadcast; if the posting fails, manual processing is switched.

[0055] In this embodiment, upon successful accrual of an account, the business system receives the broadcast notification of the current deposit operation from the funds management platform. It then calls the funds management platform to reconcile the current deposit notification. If reconciliation is successful, the accrual bill number is obtained from the deposit operation. If reconciliation fails, manual processing is initiated. In this embodiment, upon successful reconciliation, the business system receives a successful reconciliation return from the funds management platform. Based on the accrual bill number in the accrual operation, it calls the accounting system to execute the cancellation and recharge operations. Simultaneously, the accounting system verifies whether the accrual amount matches the recharge amount displayed during cancellation. If the accrual amount and recharge amount match, the customer is recharged. After successful recharge, the business system proceeds with the subsequent payment processing. If the accrual amount and recharge amount do not match, the recharge process is terminated.

[0056] like Figure 1 As shown, the automatic recharge method specifically includes the following steps. Depending on different needs, the order of the steps in this flowchart can be changed, and some steps can be omitted.

[0057] S11, in response to the received reserve fund deposit request, generate a deposit notification based on the reserve fund deposit request.

[0058] In this embodiment, for the payout scenario, the client initiates a reserve fund deposit request to the server. The client can be a smartphone, iPad, or other existing smart device. The server can have a recharge subsystem. During the recharge process, the client can send a reserve fund deposit request to the recharge subsystem, which is used to receive the reserve fund deposit request sent by the client.

[0059] In an optional embodiment, after generating the posting notification based on the reserve fund posting request, the method further includes:

[0060] The message gateway system is invoked to encapsulate the deposit notification into a message and send the message to the funds management platform.

[0061] In this embodiment, the security of the payment notification is improved by calling the message gateway system to encapsulate the payment notification into a message.

[0062] S12, based on the deposit notification, call the corresponding fund management system to place the deposit notification order.

[0063] In this embodiment, the funds management system is used to send out payment notifications.

[0064] In an optional embodiment, the step of invoking the corresponding funds management system to place the deposit notification based on the deposit notification includes:

[0065] Identify the block identifier of the funds management system in the receipt notification;

[0066] Obtain the corresponding block based on the block identifier, and call the corresponding fund management system's entry template from the block;

[0067] The billing information in the billing notification is matched with the billing template to obtain the billing statement, and the billing statement is stored in the block of the block marker code.

[0068] In this embodiment, the block identifier of the blockchain is used to uniquely identify the location information of the deposit notification stored in the corresponding block of the blockchain. Since the deposit bill contains deposit information, including the transaction number, transaction date, account name, deposit amount, account information and other information in the deposit notification, the security of the account information in the deposit bill is ensured by storing the deposit bill in the block corresponding to the block identifier of the blockchain.

[0069] In this embodiment, different fund management systems correspond to different deposit templates. By matching the information in the deposit notification to the corresponding deposit template, the flexibility of the deposit slip is improved. At the same time, storing the deposit slip in the block of the block marker code improves the security of the deposit slip.

[0070] S13, when the execution of the receipt notification is detected, the fund management system calls the accounting system to perform the posting operation and obtain the posting operation result.

[0071] In this embodiment, when the fund management platform's deposit notification is completed, the accounting system is invoked to perform the posting operation.

[0072] In an optional embodiment, the fund management system calling the accounting system to perform the posting operation includes:

[0073] The funds management system uses the Dubbo framework to call the accounting system to perform posting operations based on the invoice.

[0074] The results of the suspense operation are reported to the accounting system, wherein the suspense operation results include the suspense result code and the suspense bill number.

[0075] In this embodiment, the Dubbo framework refers to an open-source distributed service framework. Since the recharge system contains multiple systems, using an open-source distributed service framework to call the accounting system can improve the efficiency and accuracy of calling the accounting system.

[0076] S14. Based on the posting result code in the posting operation result, determine whether the posting operation result is successful.

[0077] In this embodiment, the posting result code is used as a unique identifier to determine whether the posting operation was successful.

[0078] In an optional embodiment, determining whether the accrual operation result is successful based on the accrual result code in the accrual operation result includes:

[0079] Identify the account closure result code in the account closure operation result;

[0080] When the accrual result code is an accrual success identifier, the accrual operation result is determined to be a successful accrual operation; or

[0081] When the posting result code is a posting failure identifier, the posting operation result is determined to be a posting operation failure.

[0082] In this embodiment, the successful posting indicator can be a green indicator displayed after posting, or a successful posting message returned; the failed posting indicator can be a red indicator displayed after posting, or a failed posting message returned.

[0083] S15, when it is determined that the result of the suspending operation is successful, the fund management system is invoked to broadcast the suspending operation.

[0084] In an optional embodiment, the step of broadcasting the accrued account operation through the funds management system includes:

[0085] The payment information in the payment notification and the account number in the account suspending operation are encapsulated into a message body, and the message body is broadcast using ActiveMQ.

[0086] In this embodiment, by encapsulating the deposit information in the deposit notification and the pending account number in the pending account operation into a message body, and broadcasting it using ActiveMQ, the leakage of deposit information and pending account number is avoided, the security of broadcasting is improved, and thus the security of recharge is improved.

[0087] S16, when the business system detects that it has received the broadcast, the fund management system is invoked to reconcile the deposit notification.

[0088] In this embodiment, when the funds management system receives the broadcast message body, the funds management system matches the deposit notification based on the message body.

[0089] S17, when the successful reconciliation of the incoming payment notification is detected, the accounting system is invoked to perform the cancellation and recharge processing based on the outstanding account number in the outstanding account operation result.

[0090] In this embodiment, when a notification of successful reconciliation from the business system is detected, the accounting system is invoked to process the cancellation and recharge of the outstanding account number. During cancellation, the recharge amount and the outstanding amount are checked to determine whether to proceed with the recharge based on the verification result, thereby improving the security of the recharge.

[0091] In an optional embodiment, the step of calling the accounting system to perform the write-off and recharge process based on the outstanding account number in the outstanding account operation result includes:

[0092] Based on the pending account number in the pending account operation result and the amount credited in the credit notification, the accounting system is invoked to perform the cancellation, and the recharge amount is displayed.

[0093] Compare the amount credited in the credit notification with the amount recharged;

[0094] When the amount credited in the credit notification matches the amount recharged, the accounting system is invoked to execute the recharge, and the cancellation and recharge processing results are returned to the business system; or

[0095] If the amount credited in the credit notification is inconsistent with the amount recharged, the recharge is terminated, and the cancellation and recharge processing results are returned to the business system.

[0096] In this embodiment, the amount received and the amount recharged need to be checked before recharging to ensure consistency between the recharge amount and the amount received. At the same time, it can promptly detect problems of fund loss and improve the accuracy and timeliness of recharge.

[0097] Furthermore, the method also includes:

[0098] When the failure to reconcile the incoming payment notification is detected, the process will switch to manual handling.

[0099] Furthermore, after invoking the accounting system to perform the write-off and recharge processing based on the outstanding bill number, the method further includes:

[0100] When the business system detects that it has received the cancellation and recharge processing results returned by the accounting system, the business system executes the payment disbursement process.

[0101] For example, suppose Company A pays 1 million RMB on behalf of Company B's employees. Company B first transfers 1 million RMB to Company A. After receiving the deposit notification, Company A's funds management platform first records 1 million RMB in the accounting system. After the record is successfully recorded, a broadcast is sent. When the business system receives the broadcast, it first cancels this deposit to prevent other business operations from using this deposit. After the cancellation is successful, the business system cancels the transaction in the accounting system and displays the canceled amount as 1 million RMB. Then, the accounting system transfers the 1 million RMB to Company B's account to pay the employees' salaries.

[0102] S18, when it is determined that the result of the posting operation is that the posting operation has failed, switch to manual processing.

[0103] In this embodiment, when it is determined that the accrual operation has failed, the process is switched to manual handling to analyze the failure and avoid inaccurate recharge amounts caused by continuing to recharge after the accrual operation has failed.

[0104] In this embodiment, by adding a cancellation mode to the recharge subsystem, the funds are cancelled on the fund management platform and cancelled in the business system. Only when the cancelled amount matches the cancelled amount will the subsequent recharge process proceed. The recharge amount is no longer controlled by a single system, but by multiple systems. Even if one system malfunctions, it can prevent fund losses to a certain extent and reduce the risk of fund loss. At the same time, the prevention and control of fund losses has been moved from post-event to pre-event, improving the timeliness of fund loss maintenance.

[0105] In summary, the automatic recharge method described in this embodiment generates a deposit notification based on the reserve fund deposit request, and then calls the corresponding fund management system to place the deposit notification order based on the deposit notification. Since different fund management systems have different deposit templates, matching the information in the deposit notification to the corresponding deposit template improves the flexibility of deposit notification order placement. When the deposit notification order placement is detected to be completed, the fund management system calls the accounting system to perform an account closure operation. When the account closure operation is successful, the fund management system broadcasts the account closure operation. During the broadcast, by encapsulating the deposit information in the deposit notification and the account closure number in the account closure operation into a message body and broadcasting using ActiveMQ, the leakage of deposit information and account closure number is avoided, improving broadcast security and thus enhancing recharge security. When the successful reconciliation of the incoming payment notification is detected, the accounting system is invoked according to the outstanding payment number in the outstanding payment operation result to perform the cancellation and recharge processing. Before recharging, the incoming payment amount and the recharge amount need to be checked to ensure the consistency between the recharge amount and the incoming payment amount. At the same time, it can promptly detect the problem of fund loss and improve the accuracy and timeliness of recharge.

[0106] Example 2

[0107] Figure 2 This is a structural diagram of the automatic recharge device provided in Embodiment 2 of the present invention.

[0108] In some embodiments, the automatic recharge device 20 may include multiple functional modules composed of program code segments. The program code of each program segment in the automatic recharge device 20 may be stored in the memory of the electronic device and executed by the at least one processor to perform (see details). Figure 1 (Description) Automatic recharge function.

[0109] In this embodiment of the invention, the automatic recharge device can be applied to a recharge subsystem. Specifically, the recharge subsystem is communicatively connected to a message gateway system, a business system, a funds management platform, and an accounting system. When the bank receives the reserve funds from the client, it sends a reserve fund deposit notification to the message gateway system through the clearing institution. After receiving the reserve fund deposit notification, the message gateway system notifies the funds management platform. After receiving the reserve fund deposit notification, the funds management platform places an order based on the reserve fund deposit notification, resulting in a deposit notification order. When the deposit notification order is completed, the accounting system is invoked to post the deposit notification order. If the posting is successful, the current deposit operation is broadcast; if the posting fails, manual processing is switched.

[0110] In this embodiment, when the accrual is successful, the business system receives the current accrual operation broadcast by the fund management platform, calls the fund management platform to reconcile the current accrual notification, and obtains the accrual account number from the accrual operation when the reconciliation is successful. If the reconciliation fails, it switches to manual processing.

[0111] In this embodiment, upon successful reconciliation, the business system receives a successful reconciliation notification from the funds management platform. Based on the outstanding account number in the outstanding account operation, it calls the accounting system to execute the cancellation and recharge operations. Simultaneously, the accounting system verifies whether the outstanding account amount matches the recharge amount displayed during cancellation. If the outstanding account amount and the recharge amount match, the customer is recharged. After successful recharge, the business system proceeds with the subsequent payment process. If the outstanding account amount and the recharge amount do not match, the recharge is terminated.

[0112] In this embodiment, the automatic recharge device 20 can be divided into multiple functional modules according to its functions. These functional modules may include: a generation module 201, an inflow notification module 202, an account accrual operation module 203, a judgment module 204, a broadcast module 205, a reconciliation module 206, and an account cancellation and recharge module 207. The module referred to in this invention is a series of computer-readable instruction segments that can be executed by at least one processor and perform a fixed function, stored in memory. In this embodiment, the functions of each module will be detailed in subsequent embodiments.

[0113] The generation module 201 is used to generate an inflow notification based on the received reserve fund inflow request in response to the received reserve fund inflow request.

[0114] In this embodiment, for the payout scenario, the client initiates a reserve fund deposit request to the server. The client can be a smartphone, iPad, or other existing smart device. The server can have a recharge subsystem. During the recharge process, the client can send a reserve fund deposit request to the recharge subsystem, which is used to receive the reserve fund deposit request sent by the client.

[0115] In an optional embodiment, after the generation module 201 generates a deposit notification based on the reserve fund deposit request, the method further includes:

[0116] The message gateway system is invoked to encapsulate the deposit notification into a message and send the message to the funds management platform.

[0117] In this embodiment, the security of the payment notification is improved by calling the message gateway system to encapsulate the payment notification into a message.

[0118] The deposit notification order module 202 is used to call the corresponding fund management system to place the deposit notification order based on the deposit notification.

[0119] In this embodiment, the funds management system is used to send out payment notifications.

[0120] In an optional embodiment, the deposit notification order placement module 202, based on the deposit notification, calls the corresponding funds management system to place the deposit notification, including:

[0121] Identify the block identifier of the funds management system in the receipt notification;

[0122] Obtain the corresponding block based on the block identifier, and call the corresponding fund management system's entry template from the block;

[0123] The billing information in the billing notification is matched with the billing template to obtain the billing statement, and the billing statement is stored in the block of the block marker code.

[0124] In this embodiment, the block identifier of the blockchain is used to uniquely identify the location information of the deposit notification stored in the corresponding block of the blockchain. Since the deposit bill contains deposit information, including the transaction number, transaction date, account name, deposit amount, account information and other information in the deposit notification, the security of the account information in the deposit bill is ensured by storing the deposit bill in the block corresponding to the block identifier of the blockchain.

[0125] In this embodiment, different fund management systems correspond to different deposit templates. By matching the information in the deposit notification to the corresponding deposit template, the flexibility of deposit notification placement is improved. At the same time, storing the deposit notification placement in the block of the block marker code improves the security of deposit notification placement.

[0126] The posting operation module 203 is used to call the accounting system to perform posting operation when the fund management system detects that the order of the deposit notification has been completed, and obtain the posting operation result.

[0127] In this embodiment, when the fund management platform's deposit notification is completed, the accounting system is invoked to perform the posting operation.

[0128] In an optional embodiment, the posting operation module 203 of the funds management system calls the accounting system to perform posting operations, including:

[0129] The funds management system uses the Dubbo framework to call the accounting system to perform posting operations based on the invoice.

[0130] The results of the suspense operation are reported to the accounting system, wherein the suspense operation results include the suspense result code and the suspense bill number.

[0131] In this embodiment, the Dubbo framework refers to an open-source distributed service framework. Since the recharge system contains multiple systems, using an open-source distributed service framework to call the accounting system can improve the efficiency and accuracy of calling the accounting system.

[0132] The judgment module 204 is used to determine whether the suspending operation result is successful based on the suspending result code in the suspending operation result.

[0133] In this embodiment, the posting result code is used as a unique identifier to determine whether the posting operation was successful.

[0134] In an optional embodiment, the determination module 204 determines whether the accrual operation result is successful based on the accrual result code in the accrual operation result, including:

[0135] Identify the account closure result code in the account closure operation result;

[0136] When the accrual result code is an accrual success identifier, the accrual operation result is determined to be a successful accrual operation; or

[0137] When the posting result code is a posting failure identifier, the posting operation result is determined to be a posting operation failure.

[0138] In this embodiment, the successful posting indicator can be a green indicator displayed after posting, or a successful posting message returned; the failed posting indicator can be a red indicator displayed after posting, or a failed posting message returned.

[0139] The broadcast module 205 is used to call the fund management system to broadcast the suspending operation when the result of the suspending operation is determined to be successful.

[0140] In an optional embodiment, the broadcast module 205 invoking the funds management system to broadcast the accrued account operation includes:

[0141] The payment information in the payment notification and the account number in the account suspending operation are encapsulated into a message body, and the message body is broadcast using ActiveMQ.

[0142] In this embodiment, by encapsulating the deposit information in the deposit notification and the pending account number in the pending account operation into a message body, and broadcasting it using ActiveMQ, the leakage of deposit information and pending account number is avoided, the security of broadcasting is improved, and thus the security of recharge is improved.

[0143] The reconciliation module 206 is used to call the fund management system to reconcile the deposit notification when the business system detects that the broadcast has been received.

[0144] In this embodiment, when the funds management system receives the broadcast message body, the funds management system matches the deposit notification based on the message body.

[0145] The cancellation and recharge module 207 is used to call the accounting system to perform cancellation and recharge processing when the successful reconciliation of the incoming payment notification is detected, based on the pending account number in the pending account operation result.

[0146] In this embodiment, when a notification of successful reconciliation from the business system is detected, the accounting system is invoked to process the cancellation and recharge of the outstanding account number. During cancellation, the recharge amount and the outstanding amount are checked to determine whether to proceed with the recharge based on the verification result, thereby improving the security of the recharge.

[0147] In an optional embodiment, the cancellation and recharge module 207 calls the accounting system to perform cancellation and recharge processing based on the outstanding account number in the outstanding account operation result, including:

[0148] Based on the pending account number in the pending account operation result and the amount credited in the credit notification, the accounting system is invoked to perform the cancellation, and the recharge amount is displayed.

[0149] Compare the amount credited in the credit notification with the amount recharged;

[0150] When the amount credited in the credit notification matches the amount recharged, the accounting system is invoked to execute the recharge, and the cancellation and recharge processing results are returned to the business system; or

[0151] If the amount credited in the credit notification is inconsistent with the amount recharged, the recharge is terminated, and the cancellation and recharge processing results are returned to the business system.

[0152] In this embodiment, the amount received and the amount recharged need to be checked before recharging to ensure consistency between the recharge amount and the amount received. At the same time, it can promptly detect problems of fund loss and improve the accuracy and timeliness of recharge.

[0153] Furthermore, when the failure to reconcile the incoming payment notification is detected, the process is switched to manual handling.

[0154] Furthermore, after the accounting system is invoked to perform the cancellation and recharge processing based on the bill number, when the business system detects that it has received the cancellation and recharge processing results returned by the accounting system, the business system executes the payout process.

[0155] For example, suppose Company A pays 1 million RMB on behalf of Company B's employees. Company B first transfers 1 million RMB to Company A. After receiving the deposit notification, Company A's funds management platform first records 1 million RMB in the accounting system. After the record is successfully recorded, a broadcast is sent. When the business system receives the broadcast, it first cancels this deposit to prevent other business operations from using this deposit. After the cancellation is successful, the business system cancels the transaction in the accounting system and displays the canceled amount as 1 million RMB. Then, the accounting system transfers the 1 million RMB to Company B's account to pay the employees' salaries.

[0156] Furthermore, if the result of the posting operation is determined to be a failure, the process is switched to manual handling.

[0157] In this embodiment, when it is determined that the accrual operation has failed, the process is switched to manual handling to analyze the failure and avoid inaccurate recharge amounts caused by continuing to recharge after the accrual operation has failed.

[0158] In this embodiment, by adding a cancellation mode to the recharge subsystem, the funds are cancelled on the fund management platform and cancelled in the business system. Only when the cancelled amount matches the cancelled amount will the subsequent recharge process proceed. The recharge amount is no longer controlled by a single system, but by multiple systems. Even if one system malfunctions, it can prevent fund losses to a certain extent and reduce the risk of fund loss. At the same time, the prevention and control of fund losses has been moved from post-event to pre-event, improving the timeliness of fund loss maintenance.

[0159] In summary, the automatic recharge device described in this embodiment generates a deposit notification based on the reserve fund deposit request, and then calls the corresponding fund management system to place the deposit notification order based on the deposit notification. Since different fund management systems have different deposit templates, matching the information in the deposit notification to the corresponding deposit template improves the flexibility of deposit notification order placement. When the deposit notification order placement is detected to be completed, the fund management system calls the accounting system to perform an account closure operation. When the account closure operation is successful, the fund management system broadcasts the account closure operation. During the broadcast, by encapsulating the deposit information in the deposit notification and the account closure number in the account closure operation into a message body and broadcasting using ActiveMQ, the leakage of deposit information and account closure number is avoided, improving broadcast security and thus enhancing the security of the recharge. When the successful reconciliation of the incoming payment notification is detected, the accounting system is invoked according to the outstanding payment number in the outstanding payment operation result to perform the cancellation and recharge processing. Before recharging, the incoming payment amount and the recharge amount need to be checked to ensure the consistency between the recharge amount and the incoming payment amount. At the same time, it can promptly detect the problem of fund loss and improve the accuracy and timeliness of recharge.

[0160] Example 3

[0161] See Figure 3 The diagram shown is a structural schematic of an electronic device provided in Embodiment 3 of the present invention. In a preferred embodiment of the present invention, the electronic device 3 includes a memory 31, at least one processor 32, at least one communication bus 33, and a transceiver 34.

[0162] Those skilled in the art should understand that Figure 3 The structure of the electronic device shown does not constitute a limitation of the embodiments of the present invention. It can be a bus structure or a star structure. The electronic device 3 may also include more or fewer other hardware or software than shown, or different component arrangements.

[0163] In some embodiments, the electronic device 3 is an electronic device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), programmable gate arrays (FPGAs), digital processors, and embedded devices. The electronic device 3 may also include client devices, including, but not limited to, any electronic product capable of human-computer interaction with a client via a keyboard, mouse, remote control, touchpad, or voice control device, such as personal computers, tablet computers, smartphones, and digital cameras.

[0164] It should be noted that the electronic device 3 is merely an example. Other existing or future electronic products that are suitable for this invention should also be included within the scope of protection of this invention and are incorporated herein by reference.

[0165] In some embodiments, the memory 31 is used to store program code and various data, such as the automatic recharge device 20 installed in the electronic device 3, and to achieve high-speed and automatic access to programs or data during the operation of the electronic device 3. The memory 31 includes read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0166] In some embodiments, the at least one processor 32 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits packaged with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The at least one processor 32 is the control unit of the electronic device 3, connecting various components of the entire electronic device 3 via various interfaces and lines. It executes programs or modules stored in the memory 31 and calls data stored in the memory 31 to perform various functions and process data of the electronic device 3.

[0167] In some embodiments, the at least one communication bus 33 is configured to enable communication between the memory 31 and the at least one processor 32, etc.

[0168] Although not shown, the electronic device 3 may also include a power supply (such as a battery) to power the various components. Optionally, the power supply may be logically connected to the at least one processor 32 via a power management device, thereby enabling functions such as charging, discharging, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 3 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.

[0169] It should be understood that the embodiments described are for illustrative purposes only and are not limited to this structure in the scope of the patent application.

[0170] The integrated unit implemented as a software functional module described above can be stored in a computer-readable storage medium. This software functional module, stored in a storage medium, includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) or processor to execute portions of the methods described in the various embodiments of the present invention.

[0171] In a further embodiment, combined with Figure 2 The at least one processor 32 can execute the operating device of the electronic device 3 and various installed applications (such as the automatic recharge device 20), program code, etc., for example, the various modules mentioned above.

[0172] The memory 31 stores program code, and the at least one processor 32 can call the program code stored in the memory 31 to execute related functions. For example, Figure 2 The modules described herein are program codes stored in the memory 31 and executed by the at least one processor 32, thereby realizing the functions of the modules to achieve the purpose of automatic recharge.

[0173] For example, the program code can be divided into one or more modules / units, which are stored in the memory 31 and executed by the processor 32 to complete this application. The one or more modules / units can be a series of computer-readable instruction segments capable of performing specific functions, which describe the execution process of the program code in the electronic device 3. For example, the program code can be divided into a generation module 201, an invoice notification module 202, an account reimbursement operation module 203, a judgment module 204, a broadcast module 205, a reconciliation module 206, and an account cancellation and recharge module 207.

[0174] In one embodiment of the present invention, the memory 31 stores a plurality of computer-readable instructions, which are executed by the at least one processor 32 to achieve the function of automatic recharge.

[0175] Specifically, the specific implementation method of the above instructions by the at least one processor 32 can be referred to Figure 1 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.

[0176] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.

[0177] Furthermore, the computer-readable storage medium may be non-volatile or volatile.

[0178] Furthermore, the computer-readable storage medium may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system, at least one application required for a function, etc.; and the data storage area may store data created based on the use of blockchain nodes, etc.

[0179] The blockchain referred to in this application is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.

[0180] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0181] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.

[0182] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be considered illustrative and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims. Furthermore, it is clear that the word "comprising" does not exclude other elements, and the singular does not exclude the plural. Multiple elements or devices recited in the present invention may also be implemented by a single element or device in software or hardware. The terms "first," "second," etc., are used to denote names and do not indicate any particular order.

[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. An automatic recharge method, characterized in that, The method includes: In response to a received reserve fund deposit request, a deposit notification is generated based on the reserve fund deposit request; The process of invoking the corresponding fund management system based on the deposit notification includes: identifying the block identifier of the fund management system in the deposit notification; obtaining the corresponding block based on the block identifier, and retrieving the deposit template of the corresponding fund management system from the block, wherein different fund management systems correspond to different deposit templates; matching the deposit information in the deposit notification to the deposit template to obtain the deposit statement, and storing the deposit statement in the block of the block identifier, wherein the deposit information includes: the transaction number, transaction date, account name, deposit amount, and account information in the deposit notification; When the receipt notification is detected as completed, the funds management system calls the accounting system to perform the posting operation and obtains the posting operation result. Based on the posting result code in the posting operation result, determine whether the posting operation result is successful. When the result of the suspending operation is determined to be successful, the fund management system is invoked to broadcast the suspending operation, including: encapsulating the deposit information in the deposit notification and the suspending account number in the suspending operation into a message body, and broadcasting the message body in ActiveMQ. When the business system detects that it has received the broadcast, the fund management system is invoked to reconcile the deposit notification. When the successful reconciliation of the incoming payment notification is detected, the accounting system is invoked based on the outstanding payment bill number in the outstanding payment operation result to perform the cancellation and recharge processing. This includes: invoking the accounting system to perform cancellation based on the outstanding payment bill number in the outstanding payment operation result and the incoming payment amount in the incoming payment notification, and displaying the recharge amount; comparing the incoming payment amount in the incoming payment notification with the recharge amount; when the incoming payment amount in the incoming payment notification and the recharge amount are consistent, the accounting system is invoked to perform the recharge, and the cancellation and recharge processing results are returned to the business system; or when the incoming payment amount in the incoming payment notification and the recharge amount are inconsistent, the recharge is terminated, and the cancellation and recharge processing results are returned to the business system; and When the failure to reconcile the incoming payment notification is detected, the process will switch to manual handling.

2. The automatic recharge method as described in claim 1, characterized in that, The fund management system calls the accounting system to perform the posting operation, including: The funds management system uses the Dubbo framework to call the accounting system to perform posting operations based on the invoice. The results of the suspense operation are reported to the accounting system, wherein the suspense operation results include the suspense result code and the suspense bill number.

3. The automatic recharge method as described in claim 1, characterized in that, The step of determining whether the accrual operation result is successful based on the accrual result code in the accrual operation result includes: Identify the account closure result code in the account closure operation result; When the accrual result code is an accrual success identifier, the accrual operation result is determined to be a successful accrual operation; or When the posting result code is a posting failure identifier, the posting operation result is determined to be a posting operation failure.

4. The automatic recharge method as described in claim 1, characterized in that, After generating the posting notification based on the reserve fund posting request, the method further includes: The message gateway system is invoked to encapsulate the deposit notification into a message and send the message to the funds management platform.

5. An automatic recharge device, characterized in that, The device includes: The generation module is used to generate an inflow notification based on the received reserve fund inflow request in response to the received reserve fund inflow request. The deposit notification order placement module is used to call the corresponding fund management system to place the deposit notification based on the deposit notification, including: identifying the block marker code of the fund management system in the deposit notification; obtaining the corresponding block based on the block marker code, and calling the deposit template of the corresponding fund management system from the block, wherein different fund management systems correspond to different deposit templates; matching the deposit information in the deposit notification to the deposit template to obtain the deposit bill, and storing the deposit bill in the block of the block marker code, wherein the deposit information includes: the transaction number, transaction date, account name, deposit amount, and account information in the deposit notification; The posting operation module is used to call the accounting system to perform the posting operation when the fund management system detects that the order of the deposit notification has been completed, and obtain the posting operation result. The judgment module is used to determine whether the suspending operation result is successful based on the suspending result code in the suspending operation result; The broadcast module is used to call the fund management system to broadcast the suspending operation when the result of the suspending operation is determined to be successful. This includes: encapsulating the deposit information in the deposit notification and the suspending account number in the suspending operation into a message body, and broadcasting the message body in ActiveMQ. The reconciliation module is used to call the fund management system to reconcile the deposit notification when the business system detects that the broadcast has been received. The deregistration and recharge module is used to, when the successful reconciliation of the incoming payment notification is detected, invoke the accounting system to perform deregistration and recharge processing based on the outstanding payment number in the outstanding payment operation result. This includes: invoking the accounting system to perform deregistration based on the outstanding payment number in the outstanding payment operation result and the incoming payment amount in the incoming payment notification, displaying the recharge amount; comparing the incoming payment amount in the incoming payment notification with the recharge amount; when the incoming payment amount in the incoming payment notification and the recharge amount are consistent, invoking the accounting system to perform recharge and returning the deregistration and recharge processing result to the business system; or when the incoming payment amount in the incoming payment notification and the recharge amount are inconsistent, terminating the recharge and returning the deregistration and recharge processing result to the business system; and When the failure to reconcile the incoming payment notification is detected, the process will switch to manual handling.

6. An electronic device, characterized in that, The electronic device includes a processor and a memory, the processor being configured to execute a computer program stored in the memory to implement the automatic recharge method as described in any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by the processor, it implements the automatic recharge method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Block chain consortium block chain-based bank clearing method

    CN107194798A

  • Fund settlement method and device and computer equipment

    CN112686659A