Account entry method, device, computer equipment and storage medium

By generating accounting messages in the trading system and using message middleware to perform targeted accounting processing, the problem of low account accounting efficiency in the existing technology is solved, and fast and timely accounting operations are achieved.

CN109472577BInactive Publication Date: 2024-08-23CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811123785.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-09-26
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing trading system has low efficiency for account entry operations. It usually adopts the T+1 method, that is, the account is received on the second working day, which cannot meet users' high requirements for timeliness.

Method used

Generate accounting messages by detecting transaction payment operations, import them into the preset message middleware, and process them by the corresponding accounting threads. Use dedicated or general message middleware to perform targeted accounting operations based on account frequency and priority to improve accounting. processing efficiency.

Benefits of technology

Efficient processing of account entry is achieved, and the entry operation can be completed in real time or within a short period of time to meet the user's timeliness needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109472577B
    Figure CN109472577B
Patent Text Reader

Abstract

The present application relates to an account entry method, device, computer equipment and storage medium. The method relates to a step-by-step message queue technology, including: detecting a transaction payment operation, generating a corresponding entry message; importing the entry message into a corresponding preset message middleware; querying a preset entry thread corresponding to the message middleware; extracting the entry message from the message middleware through the entry thread; and performing an entry operation according to the entry thread and the entry message. The method is used to perform targeted entry processing on the entry message corresponding to the preset message middleware and the entry thread, effectively improving the processing efficiency of account entry.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an account entry method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of computer technology, more and more business service systems are implemented through the Internet. For example, the convenience of online shopping services provided by e-commerce platforms has attracted more and more people. The transaction volume of online payments has continued to increase, and the amount of data processed by the transaction system for account entry and exit has also increased. However, people's requirements for the timeliness of account processing are getting higher and higher.

[0003] At present, the trading system usually adopts the T+1 method for account entry operations, that is, the entry is processed on the second working day to avoid high-frequency access to the account. However, this method requires the second working day to arrive, and the account entry efficiency is low. Summary of the invention

[0004] Based on this, it is necessary to provide an account entry method, device, computer equipment and storage medium that can improve the efficiency of account entry processing in response to the above technical problems.

[0005] A method for depositing money into an account, the method comprising:

[0006] Detect transaction payment operations and generate corresponding account entry messages;

[0007] Import the account entry message into the corresponding preset message middleware;

[0008] Query the preset account entry thread corresponding to the message middleware;

[0009] Extract the entry message from the message middleware through the entry thread;

[0010] Perform posting operations based on posting threads and posting messages.

[0011] In one embodiment, the message middleware includes dedicated message middleware, and the step of importing the account entry message into the corresponding preset message middleware includes:

[0012] Determine the account to be credited based on the credit message;

[0013] Match the accounts to be deposited with the preset hot account list;

[0014] When the account to be credited is determined to be a hot account according to the matching result, query the preset dedicated message middleware corresponding to the account to be credited;

[0015] Import the incoming account messages into the dedicated message middleware.

[0016] In one embodiment, before the step of importing the account entry message into the dedicated message middleware, the method further includes:

[0017] Obtain historical and predicted account entry data for the accounts to be entered;

[0018] Based on the historical account entry data and the predicted account entry data, the entry frequency information of the account to be entered is obtained;

[0019] Determine the middleware parameters according to the account entry frequency information, and build a dedicated message middleware based on the middleware parameters.

[0020] In one embodiment, the step of importing the account entry message into the dedicated message middleware includes:

[0021] Determine the payment account corresponding to the transaction payment operation based on the incoming message;

[0022] Get the preset priority list of accounts to be credited;

[0023] Determine the payment account entry priority according to the entry priority table;

[0024] The incoming message is imported into the dedicated message middleware according to the payment account's incoming priority.

[0025] In one embodiment, the message middleware includes a general message middleware, and after the step of determining the account to be credited according to the credit message, further includes:

[0026] When it is determined according to the matching result that the account to be credited is a non-hotspot account, the crediting message is imported into the general message middleware.

[0027] In one embodiment, before the step of performing the accounting operation according to the accounting thread and the accounting message, the method further includes:

[0028] Obtain the current message digest based on the incoming message extracted from the message middleware;

[0029] Get the original message digest of the entry message. The original message digest is obtained based on the entry message before it is imported into the message middleware.

[0030] Compare the current message digest with the original message digest;

[0031] When the comparison result is inconsistent, return to the step of importing the entry message into the corresponding preset message middleware.

[0032] In one embodiment, after the step of performing the accounting operation according to the accounting thread and the accounting message, the method further includes:

[0033] When the preset entry reconciliation conditions are met, the entry operation data of the entry thread is obtained, and the entry operation data includes an entry message of successful entry operation;

[0034] Match the entry message with the entry message of successful entry operation;

[0035] When the matching results are inconsistent, return to the step of importing the entry message into the corresponding preset message middleware.

[0036] An account entry device, comprising:

[0037] The account entry message generation module is used to detect the transaction payment operation and generate the corresponding account entry message;

[0038] The account entry message import module is used to import the account entry message into the corresponding preset message middleware;

[0039] The account entry thread query module is used to query the preset account entry thread corresponding to the message middleware;

[0040] An entry message extraction module is used to extract entry messages from the message middleware through the entry thread;

[0041] The accounting operation module is used to perform accounting operations according to the accounting threads and accounting messages.

[0042] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0043] Detect transaction payment operations and generate corresponding account entry messages;

[0044] Import the account entry message into the corresponding preset message middleware;

[0045] Query the preset account entry thread corresponding to the message middleware;

[0046] Extract the entry message from the message middleware through the entry thread;

[0047] Perform posting operations based on posting threads and posting messages.

[0048] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0049] Detect transaction payment operations and generate corresponding account entry messages;

[0050] Import the account entry message into the corresponding preset message middleware;

[0051] Query the preset account entry thread corresponding to the message middleware;

[0052] Extract the entry message from the message middleware through the entry thread;

[0053] Perform posting operations based on posting threads and posting messages.

[0054] The above-mentioned account entry method, device, computer equipment and storage medium generate corresponding entry messages according to the detected transaction payment operation, and import the entry messages into the preset message middleware, and then the entry thread corresponding to the message middleware performs entry operation on the entry message in the message middleware to realize the account entry processing. In the account entry process, the entry message is targetedly processed by the corresponding preset message middleware and the entry thread, which effectively improves the processing efficiency of account entry. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is an application scenario diagram of an account entry method in an embodiment;

[0056] Figure 2 A flowchart of an account entry method in one embodiment;

[0057] Figure 3 A flowchart of steps for constructing a dedicated message middleware in one embodiment;

[0058] Figure 4 A flowchart of an account entry method in another embodiment;

[0059] Figure 5 It is a structural block diagram of an account entry device in one embodiment;

[0060] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0062] The account entry method provided by this application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. After detecting that the terminal 102 generates an account entry message when performing a transaction payment operation, the server 104 receives the account entry message and imports the account entry message into the preset message middleware, and then the account entry thread corresponding to the message middleware performs an account entry operation on the account entry message in the message middleware to realize the account entry processing. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0063] In one embodiment, Figure 2 As shown, an account entry method is provided, which is applied to Figure 1 Taking the server 104 in the example as an example, the following steps are included:

[0064] Step S201: Detect the transaction payment operation and generate a corresponding account entry message.

[0065] The server 104 monitors the transaction affairs of the distributed account system, and when a payment operation is monitored, it generates an entry message corresponding to the payment operation. The entry message may include, but is not limited to, entry-related information such as the entry account, the entry amount, and the entry items. In this embodiment, when a transaction payment operation is detected, the entry account information, the entry amount, and the order number, currency, project and other entry item information in the payment operation are obtained, and a corresponding entry message is generated, and the account entry operation is subsequently performed according to the entry message. In specific applications, the obtained payment operation-related information can also be encrypted before generating the entry message, and a predetermined format entry message is generated through the encrypted code, and the data is subsequently transmitted and processed through the entry message to ensure the security of data transaction data.

[0066] Step S203: Import the account entry message into the corresponding preset message middleware.

[0067] Among them, the message middleware is used to transmit the account entry message, which may include a message queue, such as ActiveMQ, RabbitMQ, ZeroMQ, Kafka, MetaMQ, RocketMQ and other types of message queues. The received account entry message is forwarded and processed through the message queue, which can ensure the reliability of the account entry operation of the account entry message. The message middleware can be preset in correspondence with the account entry account. For example, for a hot account entry account with a high concurrent number of account entry and a high time priority, a corresponding dedicated message middleware can be specially set up. The dedicated message middleware only processes the account entry message involving the account entry account; and for an account entry account with a low concurrent number and a low time priority, the account entry message of the corresponding account entry account can be processed by the general message middleware. In this embodiment, the obtained account entry message is imported into the corresponding preset message middleware, such as a dedicated message middleware or a general message middleware.

[0068] Step S205: query the preset account entry thread corresponding to the message middleware.

[0069] The account entry thread is a task thread that extracts account entry messages from the message middleware and performs stacking operations on the stacked messages. The account entry thread can be set corresponding to the message middleware, such as including a reading thread set corresponding to the account entry message format in the message middleware, so as to improve the processing efficiency of the account entry thread on the account entry message. Specifically, after the account entry message is imported into the corresponding message middleware, the corresponding account entry thread is queried according to the message middleware.

[0070] Step S207: extracting the account entry message from the message middleware through the account entry thread.

[0071] After obtaining the stacking thread corresponding to the message middleware, the accounting message is processed through the accounting thread. Specifically, according to the accounting thread, the accounting message is extracted from the message middleware. The accounting message can be directly extracted from the message middleware in sequence, or further configured by setting the accounting message extraction condition, and the accounting message that meets the extraction condition is extracted from the message middleware for processing.

[0072] Step S209: Perform an accounting operation according to the accounting thread and the accounting message.

[0073] After obtaining the entry message through the entry message, the entry operation is performed on the entry message according to the entry thread, thereby realizing the entry processing of the entry message.

[0074] In the above-mentioned account entry method, a corresponding entry message is generated according to the detected transaction payment operation, and the entry message is imported into the preset message middleware, and then the entry thread corresponding to the message middleware performs an entry operation on the entry message in the message middleware to realize the account entry processing. In the account entry process, the entry message is targetedly processed by the corresponding preset message middleware and the entry thread, which effectively improves the processing efficiency of the account entry.

[0075] In one embodiment, the message middleware includes a dedicated message middleware, and the step of importing the account entry message into the corresponding preset message middleware includes: determining the account to be entered according to the account entry message; matching the account to be entered with a preset hot account list; when the account to be entered is determined to be a hot account according to the matching result, querying the preset dedicated message middleware corresponding to the account to be entered; and importing the account entry message into the dedicated message middleware.

[0076] The message middleware can be set up in correspondence with each account to be credited. For hot accounts to be credited, the corresponding dedicated message middleware can be set, and the capacity and format of the dedicated message middleware can be configured according to the needs of the accounts to be credited. For general accounts to be credited, they can be processed by the general dedicated message middleware to realize the division of accounts to be credited, and the crediting messages can be processed by the corresponding message middleware, effectively improving the processing efficiency of the crediting messages.

[0077] In this embodiment, the message middleware includes a dedicated message middleware, which is set for the hotspot account to be credited. When the obtained crediting message is imported into the corresponding preset message middleware, the account to be credited is determined according to the crediting message. For example, the account to be credited can be directly extracted from the crediting message. In an account system with high data security requirements, the crediting message does not directly carry the account to be credited, but includes an account identifier corresponding to the account to be credited. Then, according to the account identifier, according to the preset mapping conditions, the corresponding account to be credited can be queried and determined. After determining the account to be credited corresponding to the crediting message, it is determined whether the account to be credited is a hotspot account. Specifically, the account to be credited can be matched with the preset hotspot account list. Among them, the hotspot account list can be obtained based on the historical crediting data analysis of each account in the account system. For example, the number of outgoing operations in the account unit time can be calculated. When it exceeds the preset hotspot account threshold, it is determined to be a hotspot account and added to the hotspot account list. By matching the account to be credited with the preset hot account list, it can be determined whether the account to be credited involved in the credit message is a hot account. If so, the preset dedicated message middleware corresponding to the account to be credited is queried, and the credit message is imported into the retrieved dedicated message middleware.

[0078] In this embodiment, according to the hot accounts with high concurrent account entry numbers, dedicated message middleware is correspondingly set to process the account entry messages, thereby ensuring the processing efficiency of the account entry messages corresponding to the hot accounts.

[0079] In one embodiment, before the step of importing the account entry message into the dedicated message middleware, a step of constructing the dedicated message middleware is also included, specifically including:

[0080] S301: Obtain historical account entry data and predicted account entry data of the account to be entered.

[0081] The dedicated message middleware is set up in correspondence with the hotspot accounts to be credited. When building, the historical account data and predicted account data of the accounts to be credited are obtained from the account system or each business system. Among them, the historical account data records the historical account operations of the corresponding accounts to be credited, and its historical account demand can be obtained; the predicted account data can be the predicted account demand proactively proposed by the accounts to be credited. For example, a certain account to be credited will have promotional activities in the future, which will improve certain performance, the number of concurrent account operations will increase, and further analysis will be used to obtain the predicted account demand. Through this predicted account demand, combined with the historical account data of the account to be credited, it can be used to determine the parameters of the message middleware, and further build the corresponding dedicated message middleware that meets the needs.

[0082] S303: Obtaining the entry frequency information of the account to be entered based on the historical entry data and the predicted entry data.

[0083] After obtaining the historical account entry data and the predicted account entry data, the account entry frequency information of the account to be entered is further determined. Specifically, the historical account entry demand can be determined based on the historical account entry data, and then the predicted account entry demand can be determined based on the predicted account entry data, and the account entry frequency information is obtained by combining the historical account entry demand and the predicted account entry demand. Among them, the historical account entry demand and the predicted account entry demand can both be the frequency of account entry operations within a unit of time, that is, the historical account entry demand can be the historical account entry frequency, and the predicted account entry demand can be the predicted account entry frequency. According to the sum of the historical account entry frequency and the predicted account entry frequency, the account entry frequency information of the account to be entered is obtained. In this embodiment, the account entry frequency information combines the historical account entry data and the predicted account entry data of the account to be entered, ensures the pertinence of the constructed dedicated message middleware, and is conducive to the rapid processing of the account entry message by the dedicated message middleware.

[0084] S305: Determine middleware parameters according to the account entry frequency information, and construct dedicated message middleware according to the middleware parameters.

[0085] After obtaining the frequency information of the account to be credited, the middleware parameters are determined according to the frequency information, and the dedicated message middleware corresponding to the account to be credited is further constructed according to the obtained middleware parameters. The frequency information of crediting combines the historical crediting data and the predicted crediting data of the account to be credited, accurately reflects the actual crediting demand of the account to be credited, and reflects the capacity demand of the corresponding dedicated message middleware. In this embodiment, according to the frequency information of crediting, the middleware parameters are determined, such as the middleware throughput, and according to the middleware parameters, the corresponding dedicated message middleware is constructed, and the obtained dedicated message middleware can effectively meet the crediting demand of the corresponding account to be credited. In addition, the format parameters of the crediting message corresponding to the account to be credited can be further obtained, and the crediting message format of the constructed dedicated message middleware can be further updated according to the format parameters to ensure the processing efficiency of the crediting message by the dedicated message middleware.

[0086] In this embodiment, the historical account entry data and predicted account entry data of the account to be entered are integrated to construct the corresponding dedicated message middleware, which ensures the pertinence of the constructed dedicated message middleware and can effectively meet the entry requirements of the corresponding account to be entered, which is conducive to the rapid processing of the entry message by the dedicated message middleware.

[0087] In one embodiment, the step of importing the account entry message into the dedicated message middleware includes: determining the payment account corresponding to the transaction payment operation according to the account entry message; obtaining a preset account entry priority table for the account to be entered; determining the account entry priority of the payment account according to the account entry priority table; and importing the account entry message into the dedicated message middleware according to the account entry priority of the payment account.

[0088] When importing the account entry message into the message middleware, the priority of the payment account corresponding to the account entry message can be sorted, and the account entry message with the previous order can be imported into the message middleware first, so that it may be read by the account entry thread first and perform the account entry operation later. In this embodiment, taking the step of importing the account entry message of the hotspot account to be entered into the corresponding dedicated message middleware as an example, the payment account corresponding to the transaction payment operation is first determined according to the account entry message, and the information of the payment account can be directly extracted from the account entry message. After obtaining the payment account, the preset account entry priority table is queried, and the account entry priority table can be set according to the account system, business system or account to be entered. For example, for the hotspot account to be entered in this embodiment, the account entry priority table is set for the account to be entered, which is created according to each payment account that generates a transaction payment with the account to be entered; and for the general message middleware, the account entry priority table can be set based on the account system or business system according to all payment accounts. After obtaining the account entry priority table of the account to be entered, the stack message is imported into the corresponding dedicated message middleware according to the account entry priority of the payment account recorded in the account entry priority table.

[0089] In this embodiment, by prioritizing the payment accounts corresponding to each transaction payment operation, it is possible to prioritize the processing of urgent and important account entry messages, which can effectively ensure the efficiency of the account entry processing of urgent and priority account entry messages.

[0090] In one embodiment, the message middleware includes universal message middleware, and after the step of determining the account to be credited according to the credit message, it further includes: when it is determined according to the matching result that the account to be credited is a non-hotspot account, importing the credit message into the universal message middleware.

[0091] In this embodiment, the message middleware includes a general message middleware. When it is determined that the account to be credited is a non-hotspot account according to the crediting message, specifically, the account to be credited is matched with the preset hotspot account list. The matching result determines that the account to be credited is a non-hotspot account. If the match fails, it indicates that the account to be credited is not in the hotspot account list and is a non-hotspot account. At this time, the general message middleware can be queried and the crediting message can be imported into the general message middleware. Among them, the general message middleware can be created by the account system or the business system according to the default middleware parameters to be applicable to the crediting message processing of various accounts to be credited. In specific applications, when the crediting message of the non-hotspot account to be credited is imported into the general message middleware, it can also be sorted according to the priority of the payment account corresponding to the crediting message, and the crediting message in the previous order is preferentially imported into the message middleware, so that it may be preferentially read by the crediting thread in the future and perform the crediting operation, thereby effectively ensuring the crediting processing efficiency of the emergency priority crediting message.

[0092] In one embodiment, before the step of performing an accounting operation according to the accounting thread and the accounting message, the method further includes: obtaining a current message digest according to the accounting message extracted from the message middleware; obtaining an original message digest of the accounting message, wherein the original message digest is obtained according to the accounting message before being imported into the message middleware; comparing the current message digest with the original message digest; and when the comparison result is inconsistent, returning to the step of importing the accounting message into the corresponding preset message middleware.

[0093] When the account entry message is transmitted and forwarded through the message middleware, for example, for a distributed processing account system or business system, the account entry message generation and the message middleware may be implemented by different distributed structure devices. In the process of transmitting and forwarding the account entry message, it is necessary to prevent the account entry message from being truncated or tampered with. Specifically, the integrity of the account entry message can be ensured through the message digest. Among them, the message digest is a fixed-length value that uniquely corresponds to a message or text. It is generated by a one-way hash encryption function acting on the message. If the account entry message is changed during the transmission and forwarding process, such as being truncated or tampered with, then by comparing the newly generated digest of the received account entry message with the original digest, it can be known whether the message has been changed, thereby ensuring the integrity of the account entry message.

[0094] In this embodiment, before performing an accounting operation according to an accounting thread and an accounting message, a current message digest is obtained according to an accounting message extracted from a message middleware. On the other hand, an original message digest of an accounting message obtained according to the accounting message before being imported into the message middleware is obtained, and then the current message digest is compared with the original message digest. When the comparison result is consistent, it can be determined that the accounting message has not been changed in the transmission and forwarding process before and after being imported into the message middleware, and the accounting message imported into the message middleware is complete; and when the comparison result is inconsistent, the accounting message imported into the message middleware is incomplete, and the accounting message may be truncated or tampered during the transmission and forwarding process. At this time, the step of importing the accounting message into the corresponding preset message middleware is returned to re-import the generated accounting message into the message middleware. By comparing the corresponding message digests before and after the accounting message is imported into the message middleware, the integrity of the accounting message can be effectively ensured in the distributed processing system, and the accounting operation can be performed according to the accounting message.

[0095] In one embodiment, after the step of performing an accounting operation according to the accounting thread and the accounting message, the method further includes: when a preset accounting reconciliation condition is met, obtaining accounting operation data of the accounting thread, the accounting operation data including an accounting message of a successful accounting operation; matching the accounting message with the accounting message of a successful accounting operation; when the matching result is inconsistent, returning to the step of importing the accounting message into the corresponding preset message middleware.

[0096] After obtaining the entry thread corresponding to the message middleware, the entry operation is performed according to the entry thread and the entry message, and the entry processing of the entry message is realized. In order to ensure the consistency of the funds in the account system, it is necessary to reconcile the entry operation. In this embodiment, after the entry operation is performed according to the entry thread and the entry message, it is detected whether the preset entry reconciliation condition is met. The entry reconciliation condition can be set according to the reconciliation requirements of the account system or the account to be entered, such as T+1 reconciliation every other day. When the preset entry reconciliation condition is met, the entry operation data of the entry thread is obtained, and the entry operation data includes the entry message of the successful entry operation, and the entry message is matched with the entry message of the successful entry operation. If the matching results are consistent, it indicates that the reconciliation is successful and the entry operation is successful; when the matching results are inconsistent, it indicates that the entry operation fails. At this time, the entry message can be imported into the corresponding preset message middleware to achieve the re-entry processing of the entry message until the reconciliation is successful.

[0097] In this embodiment, by setting the account reconciliation conditions, when the account reconciliation conditions are met, the account entry message is matched with the account entry message of the successful account entry operation to achieve reconciliation processing of the account entry message, which can ensure that the account entry message is successfully accounted and processed, and ensure the consistency of funds in the account system.

[0098] In one embodiment, Figure 4 As shown, a method for entering an account is provided, comprising the following steps:

[0099] Step S401: Detect the transaction payment operation and generate the corresponding account entry message;

[0100] Step S402: determining the account to be credited according to the crediting message;

[0101] Step S403: Determine whether it is a hotspot account; if so, execute step S404, otherwise execute step S409;

[0102] Step S404: querying the preset dedicated message middleware corresponding to the account to be credited;

[0103] Step S405: determining the payment account corresponding to the transaction payment operation according to the account entry message;

[0104] Step S406: obtaining a preset priority list of accounts to be credited;

[0105] Step S407: Determine the payment priority of the payment account according to the payment priority table;

[0106] Step S408: importing the payment message into the dedicated message middleware according to the payment priority of the payment account;

[0107] Step S409: Import the account entry message into the general message middleware.

[0108] In this embodiment, when the server 104 monitors the payment operation by monitoring the transaction, it generates an account entry message, which includes the account entry account, the account entry amount, the account entry items and other account entry related information. The message middleware includes a dedicated message middleware and a general message middleware. When the obtained account entry message is imported into the corresponding preset message middleware, the account to be entered is determined according to the account entry message, and it is determined whether the account to be entered is a hot account. Specifically, the account to be entered can be matched with the preset hot account list. If so, the preset dedicated message middleware corresponding to the account to be entered is queried, and the account entry message is imported into the found dedicated message middleware; if not, the account entry message is imported into the general message middleware.

[0109] When importing the payment messages into the corresponding message middleware, they are sorted according to the priority of the payment accounts to which they correspond, and the payment messages with the earlier order are imported into the message middleware first, so that they may be read by the payment thread first and the payment operation may be performed later. Figure 4 Only the steps of importing the account entry message into the dedicated message middleware are shown, while the corresponding steps of importing the general message middleware are marked. Specifically, first determine the payment account corresponding to the transaction payment operation according to the account entry message, query the preset account entry priority table, which is set according to the account system, business system or the account to be entered, and finally import the stack message into the corresponding dedicated message middleware according to the account entry priority of the payment account recorded in the account entry priority table. By prioritizing the payment accounts corresponding to each transaction payment operation, it is possible to prioritize the processing of urgent and important account entry messages, which can effectively ensure the efficiency of the account entry processing of urgent priority account entry messages.

[0110] Step S410: obtaining a current message digest according to the entry message extracted from the message middleware;

[0111] Step S411: obtaining the original message digest of the entry message, where the original message digest is obtained based on the entry message before being imported into the message middleware;

[0112] Step S412: Determine whether the current message digest is consistent with the original message digest; if so, execute step S413, otherwise execute step S408;

[0113] Step S413: querying the preset account entry thread corresponding to the message middleware;

[0114] Step S414: extracting the account entry message from the message middleware through the account entry thread;

[0115] Step S415: Perform an accounting operation according to the accounting thread and the accounting message.

[0116] This embodiment is applied to a distributed account system. When the account entry message is transmitted and forwarded through the message middleware, the account entry message generation and the message middleware may be implemented by different distributed structure devices. In the process of transmitting and forwarding the account entry message, it is necessary to prevent the account entry message from being truncated or tampered with. Specifically, the integrity of the account entry message can be ensured through the message digest.

[0117] Specifically, before performing an accounting operation according to an accounting thread and an accounting message, a current message digest is obtained according to an accounting message extracted from a message middleware. On the other hand, an original message digest of an accounting message obtained according to the accounting message before being imported into the message middleware is obtained, and then the current message digest and the original message digest are compared. When the comparison results are consistent, it can be determined that the accounting message has not been changed in the transmission and forwarding process before and after being imported into the message middleware, and the accounting message imported into the message middleware is complete. Then, the accounting thread preset corresponding to the message middleware is queried, and then the accounting message is extracted from the message middleware through the accounting thread, and finally the accounting operation is performed according to the accounting thread and the accounting message. If the comparison results of the current message digest and the original message digest are inconsistent, the accounting message imported into the message middleware is incomplete, and the accounting message may be truncated or tampered during the transmission and forwarding process. At this time, the step of importing the accounting message into the corresponding preset message middleware is returned to re-import the generated accounting message into the message middleware.

[0118] In this embodiment, by comparing the corresponding message digests before and after the entry message is imported into the message middleware, the integrity of the entry message can be effectively ensured in the distributed processing system, ensuring that the entry operation can be performed according to the entry message.

[0119] Step S416: When the account entry and reconciliation conditions are met, reconciliation processing is performed.

[0120] In this embodiment, after the entry operation is performed according to the entry thread and the entry message, it is detected whether the preset entry reconciliation condition is met. The entry reconciliation condition is the next day reconciliation of T+1, and the entry operation data of the entry thread is obtained. The entry operation data includes the entry message of the successful entry operation, and the entry message is matched with the entry message of the successful entry operation. If the matching results are consistent, it indicates that the reconciliation is successful and the entry operation is successful; when the matching results are inconsistent, it indicates that the entry operation fails. At this time, the entry message can be imported into the steps in the corresponding preset message middleware to realize the re-entry processing of the entry message until the reconciliation is successful. By setting the entry reconciliation condition, when the entry reconciliation condition is met, the entry message is matched with the entry message of the successful entry operation to realize the reconciliation processing of the entry message, which can ensure that the entry message is successfully entered and the consistency of the funds in the account system is ensured.

[0121] It should be understood that although Figure 2-4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0122] In one embodiment, Figure 5 As shown, an account entry device is provided, comprising: an entry message generating module 501, an entry message importing module 503, an entry thread query module 505, an entry message extracting module 507 and an entry operation module 509, wherein:

[0123] The account entry message generation module 501 is used to detect the transaction payment operation and generate the corresponding account entry message;

[0124] The account entry message importing module 503 is used to import the account entry message into the corresponding preset message middleware;

[0125] The account entry thread query module 505 is used to query the account entry thread preset corresponding to the message middleware;

[0126] The account entry message extraction module 507 is used to extract the account entry message from the message middleware through the account entry thread;

[0127] The accounting operation module 509 is used to perform accounting operations according to the accounting thread and the accounting message.

[0128] The above-mentioned account entry device generates a corresponding entry message according to the detected transaction payment operation through the entry message generation module, imports the entry message into the preset message middleware through the entry message import module, and then performs an entry operation on the entry message in the message middleware through the entry operation module by the entry thread corresponding to the message middleware, thereby realizing the entry processing of the account. In the account entry process, the entry message is processed in a targeted manner through the corresponding preset message middleware and the entry thread, which effectively improves the processing efficiency of the account entry.

[0129] In one embodiment, the message middleware includes a dedicated message middleware, and the account entry message import module 503 includes an account determination unit, a hot account matching unit, a dedicated middleware query unit and a dedicated middleware import unit, wherein: the account determination unit is used to determine the account to be entered according to the account entry message; the hot account matching unit is used to match the account to be entered with a preset hot account list; the dedicated middleware query unit is used to query the preset dedicated message middleware corresponding to the account to be entered when the account to be entered is determined to be a hot account according to the matching result; the dedicated middleware import unit is used to import the account entry message into the dedicated message middleware.

[0130] In one embodiment, it also includes an account entry data acquisition module, an account entry frequency determination module and a dedicated middleware construction module, wherein: the account entry data acquisition module is used to obtain historical account entry data and predicted account entry data of the account to be entered; the account entry frequency determination module is used to obtain the account entry frequency information of the account to be entered based on the historical account entry data and the predicted account entry data; the dedicated middleware construction module is used to determine the middleware parameters according to the account entry frequency information, and construct the dedicated message middleware according to the middleware parameters.

[0131] In one embodiment, the dedicated middleware import unit includes a payment account determination subunit, a priority form query subunit, a priority determination subunit and a dedicated middleware import subunit, wherein: the payment account determination subunit is used to determine the payment account corresponding to the transaction payment operation according to the account entry message; the priority form query subunit is used to obtain the preset account entry priority table of the account to be entered; the priority determination subunit is used to determine the account entry priority of the payment account according to the account entry priority table; the dedicated middleware import subunit is used to import the account entry message into the dedicated message middleware according to the account entry priority of the payment account.

[0132] In one embodiment, the payment message importing module 503 further includes a general middleware importing unit, which is used to import the payment message into the general message middleware when it is determined that the account to be paid into is a non-hotspot account according to the matching result.

[0133] In one embodiment, it also includes a current summary determination module, an original summary acquisition module, a summary pair module and a message re-import first module, wherein: the current summary determination module is used to obtain the current message summary according to the account entry message extracted from the message middleware; the original summary acquisition module is used to obtain the original message summary of the account entry message, and the original message summary is obtained according to the account entry message before being imported into the message middleware; the summary pair module is used to compare the current message summary with the original message summary; the message re-import module is used to return to the step of importing the account entry message into the corresponding preset message middleware when the comparison results are inconsistent.

[0134] In one embodiment, it also includes an accounting operation data acquisition module, an accounting message matching module and a message re-import second module, wherein: the accounting operation data acquisition module is used to obtain the accounting operation data of the accounting thread when the preset accounting reconciliation condition is met, and the accounting operation data includes the accounting message of the successful accounting operation; the accounting message matching module is used to match the accounting message with the accounting message of the successful accounting operation; the message re-import second module is used to return to the step of importing the accounting message into the corresponding preset message middleware when the matching results are inconsistent.

[0135] The specific definition of the account entry device can be found in the definition of the account entry method above, which will not be repeated here. Each module in the above-mentioned account entry device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0136] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an account entry method is implemented.

[0137] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0138] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0139] Detect transaction payment operations and generate corresponding account entry messages;

[0140] Import the account entry message into the corresponding preset message middleware;

[0141] Query the preset account entry thread corresponding to the message middleware;

[0142] Extract the entry message from the message middleware through the entry thread;

[0143] Perform posting operations based on posting threads and posting messages.

[0144] In one embodiment, the message middleware includes a dedicated message middleware, and the processor further implements the following steps when executing the computer program: determining the account to be credited according to the credit message; matching the account to be credited with a preset hot account list; when the account to be credited is determined to be a hot account according to the matching result, querying the preset dedicated message middleware corresponding to the account to be credited; and importing the credit message into the dedicated message middleware.

[0145] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining historical account entry data and predicted account entry data of the account to be entered; obtaining account entry frequency information of the account to be entered based on the historical account entry data and the predicted account entry data; determining middleware parameters based on the account entry frequency information, and building a dedicated message middleware based on the middleware parameters.

[0146] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining the payment account corresponding to the transaction payment operation based on the account entry message; obtaining a preset account entry priority table for the account to be entered; determining the account entry priority of the payment account based on the account entry priority table; and importing the account entry message into the dedicated message middleware according to the account entry priority of the payment account.

[0147] In one embodiment, the message middleware includes universal message middleware, and when the processor executes the computer program, the following steps are further implemented: when it is determined according to the matching result that the account to be credited is a non-hotspot account, the crediting message is imported into the universal message middleware.

[0148] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining a current message digest based on the account entry message extracted from the message middleware; obtaining an original message digest of the account entry message, where the original message digest is obtained based on the account entry message before being imported into the message middleware; comparing the current message digest with the original message digest; and when the comparison result is inconsistent, returning to the step of importing the account entry message into the corresponding preset message middleware.

[0149] In one embodiment, when the processor executes the computer program, the following steps are further implemented: when a preset accounting reconciliation condition is met, the accounting operation data of the accounting thread is obtained, the accounting operation data including an accounting message of a successful accounting operation; the accounting message is matched with an accounting message of a successful accounting operation; when the matching result is inconsistent, the processor returns to the step of importing the accounting message into the corresponding preset message middleware.

[0150] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0151] Detect transaction payment operations and generate corresponding account entry messages;

[0152] Import the account entry message into the corresponding preset message middleware;

[0153] Query the preset account entry thread corresponding to the message middleware;

[0154] Extract the entry message from the message middleware through the entry thread;

[0155] Perform posting operations based on posting threads and posting messages.

[0156] In one embodiment, the message middleware includes a dedicated message middleware, and when the computer program is executed by the processor, the following steps are also implemented: determining the account to be credited according to the credit message; matching the account to be credited with a preset hot account list; when the account to be credited is determined to be a hot account according to the matching result, querying the preset dedicated message middleware corresponding to the account to be credited; and importing the credit message into the dedicated message middleware.

[0157] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining historical account entry data and predicted account entry data of the account to be entered; obtaining account entry frequency information of the account to be entered based on the historical account entry data and the predicted account entry data; determining middleware parameters based on the account entry frequency information, and building a dedicated message middleware based on the middleware parameters.

[0158] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining the payment account corresponding to the transaction payment operation based on the account entry message; obtaining a preset account entry priority table for the account to be entered; determining the account entry priority of the payment account based on the account entry priority table; and importing the account entry message into the dedicated message middleware according to the account entry priority of the payment account.

[0159] In one embodiment, the message middleware includes universal message middleware, and when the computer program is executed by the processor, the following steps are also implemented: when it is determined according to the matching result that the account to be credited is a non-hotspot account, the crediting message is imported into the universal message middleware.

[0160] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a current message digest based on the account entry message extracted from the message middleware; obtaining an original message digest of the account entry message, where the original message digest is obtained based on the account entry message before being imported into the message middleware; comparing the current message digest with the original message digest; when the comparison result is inconsistent, returning to the step of importing the account entry message into the corresponding preset message middleware.

[0161] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when a preset accounting reconciliation condition is met, the accounting operation data of the accounting thread is obtained, the accounting operation data including an accounting message of a successful accounting operation; the accounting message is matched with an accounting message of a successful accounting operation; when the matching result is inconsistent, the step of importing the accounting message into the corresponding preset message middleware is returned.

[0162] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0163] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0164] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for depositing money into an account, the method comprising: Detect transaction payment operations and generate corresponding account entry messages; Importing the entry message into the corresponding preset message middleware; Querying the preset account entry thread corresponding to the message middleware; Extracting the entry message from the message middleware through the entry thread; Obtaining a current message digest according to the account entry message extracted from the message middleware; The current message digest is generated by applying a one-way hash encryption function to the account entry message; Obtaining an original message digest of the account entry message, wherein the original message digest is obtained based on the one-way hash encryption function according to the account entry message before being imported into the message middleware; Comparing the current message digest with the original message digest; When the comparison results are consistent, performing an accounting operation according to the accounting thread and the accounting message; when the comparison results are inconsistent, returning to the step of importing the accounting message into the corresponding preset message middleware; When a preset account entry and reconciliation condition is met, obtaining account entry operation data of the account entry thread, wherein the account entry operation data includes an account entry message indicating that the account entry operation is successful; Matching the account entry message with the account entry message of successful account entry operation; When the matching results are consistent, it is determined that the entry operation for the entry message is successful; when the matching results are inconsistent, the process returns to the step of importing the entry message into the corresponding preset message middleware.

2. The method according to claim 1, characterized in that: The message middleware includes dedicated message middleware, and the step of importing the entry message into the corresponding preset message middleware includes: Determine the account to be credited according to the crediting message; Matching the account to be credited with a preset hotspot account list; When it is determined according to the matching result that the account to be credited is a hot account, querying the dedicated message middleware preset corresponding to the account to be credited; The account entry message is imported into the dedicated message middleware.

3. The method according to claim 2, characterized in that Before the step of importing the entry message into the dedicated message middleware, the method further includes: Obtaining historical account entry data and predicted account entry data of the account to be entered; Obtaining the entry frequency information of the account to be entered according to the historical entry data and the predicted entry data; The middleware parameters are determined according to the account entry frequency information, and the dedicated message middleware is constructed according to the middleware parameters.

4. The method according to claim 3, characterized in that The step of importing the entry message into the dedicated message middleware comprises: Determining the payment account corresponding to the transaction payment operation according to the account entry message; Obtaining a preset priority list of accounts to be credited; Determining the payment priority of the payment account according to the payment priority table; The payment message is imported into the dedicated message middleware according to the payment priority of the payment account.

5. The method according to claim 2, characterized in that: The message middleware includes a general message middleware, and after the step of determining the account to be credited according to the crediting message, further includes: When it is determined according to the matching result that the account to be credited is a non-hotspot account, the crediting message is imported into the universal message middleware.

6. The method according to any one of claims 1 to 5, characterized in that: The entry message includes entry account information and entry item information; the entry item information includes entry amount, order number, currency information and project information.

7. The method according to any one of claims 1 to 5, characterized in that: The message middleware includes a message queue, and the message queue includes at least one type of ActiveMQ, RabbitMQ, ZeroMQ, Kafka, MetaMQ or RocketMQ.

8. An account entry device, characterized in that: The device comprises: The account entry message generation module is used to detect the transaction payment operation and generate the corresponding account entry message; An account entry message importing module, used to import the account entry message into the corresponding preset message middleware; An account entry thread query module, used to query the account entry thread preset corresponding to the message middleware; An account entry message extraction module, used for extracting the account entry message from the message middleware through the account entry thread; A current digest determination module, configured to obtain a current message digest according to the account entry message extracted from the message middleware; the current message digest is generated by applying a one-way hash encryption function to the account entry message; An original digest acquisition module, used to acquire an original message digest of the account entry message, wherein the original message digest is obtained based on the one-way Hash encryption function according to the account entry message before being imported into the message middleware; A summary comparison module, used to compare the current message summary with the original message summary; an account entry operation module, used to perform an account entry operation according to the account entry thread and the account entry message when the comparison results are consistent; The message is re-imported into the first module, which is used to return to the step of importing the entry message into the corresponding preset message middleware when the comparison result is inconsistent; An accounting operation data acquisition module, used for acquiring the accounting operation data of the accounting thread when a preset accounting reconciliation condition is met, wherein the accounting operation data includes an accounting message indicating that the accounting operation is successful; An account entry message matching module, used for matching the account entry message with the account entry message of successful account entry operation; The message is re-imported into the second module, which is used to determine that the account entry operation for the account entry message is successful when the matching results are consistent; when the matching results are inconsistent, return to the step of importing the account entry message into the corresponding preset message middleware.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.