Transaction processing method and device

By analyzing and uniformly processing the authorization information of multiple sub-transactions, the problem of multiple authorization processing in the existing technology is solved, and the efficiency of transaction processing is improved.

CN112396522BActive Publication Date: 2024-12-13CHINA CONSTRUCTION BANK
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202011303564.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-19
Publication Date
2024-12-13
Estimated Expiration
2040-11-19

AI Technical Summary

Technical Problem

In the prior art, multiple outbound transactions require multiple authorization processing, resulting in high complexity and repetition of authorization processing and low overall transaction processing efficiency.

Method used

When receiving the total transaction, the total transaction process is analyzed, multiple sub-transactions are initiated, and the sub-response message information is added to the pre-established exchange area. The preset response identifier is set based on the authorization information and warning information in the exchange area, and the result is obtained. The final total response message realizes the unified processing of multiple sub-transaction authorization information.

Benefits of technology

By processing authorization information of multiple transactions at one time, the complexity and repetition of authorization processing are reduced and the efficiency of transaction processing is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112396522B_ABST
    Figure CN112396522B_ABST
Patent Text Reader

Abstract

The present invention discloses a transaction processing method and device, wherein the method comprises: when receiving a total transaction, parsing the total transaction process, initiating multiple sub-transactions according to the parsing result, and sending each sub-transaction to a corresponding microservice or host; receiving sub-response message information returned by the corresponding microservice or host; when determining that the sub-response message information contains authorization information and / or warning information, adding the sub-response message information to an exchange area; when determining that the number of authorization information in the exchange area is greater than one, setting a preset response identifier for the total response message corresponding to the total transaction; according to the preset response identifier, and the authorization information and / or warning information in the exchange area, obtaining the final total response message, and processing the total transaction according to the total response message. The present invention can realize the unified processing of multiple sub-transaction authorization information, and only needs to be authorized once, and the complexity and repeatability of authorization processing are low, thereby improving the efficiency of transaction processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a transaction processing method and device. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.

[0003] At present, a total transaction usually involves sending multiple sub-transactions, such as multiple outbound call transactions to the corresponding microservices or hosts. Because the traditional core system will pop up authorization information on the front end after processing each outbound call transaction, and let the authorized personnel handle it. Multiple outbound call transactions need to be processed multiple times, so the authorization processing is complex and repetitive, and the total transaction processing efficiency is also low. Summary of the invention

[0004] An embodiment of the present invention provides a transaction processing method for reducing the complexity and duplication of authorization processing, thereby improving the efficiency of transaction processing. The method includes:

[0005] When receiving the total transaction, parse the total transaction process, initiate multiple sub-transactions based on the parsed results, and send each sub-transaction to the corresponding microservice or host;

[0006] Receive the sub-response message information returned by the corresponding microservice or host;

[0007] When it is determined that the sub-response message information includes authorization information and / or warning information, the sub-response message information is added to a pre-established exchange area, and the steps of obtaining a final total response message are performed: when it is determined that the number of authorization information in the exchange area is greater than one, a preset response identifier is set for the total response message corresponding to the total transaction; and the final total response message is obtained according to the preset response identifier and the authorization information and / or warning information in the exchange area;

[0008] The total transaction is processed according to the final total response message.

[0009] The embodiment of the present invention further provides a transaction processing device for reducing the complexity and duplication of authorization processing, thereby improving the efficiency of transaction processing, the device comprising:

[0010] The initiating unit is used to parse the total transaction process when receiving the total transaction, initiate multiple sub-transactions according to the parsing results, and send each sub-transaction to the corresponding microservice or host;

[0011] A receiving unit, used to receive sub-response message information returned by the corresponding microservice or host;

[0012] A total response message determination unit is used for, when determining that the sub-response message information contains authorization information and / or warning information, adding the sub-response message information to a pre-established exchange area, and executing the steps of obtaining a final total response message: when determining that the number of authorization information in the exchange area is greater than one, setting a preset response identifier for the total response message corresponding to the total transaction; obtaining the final total response message according to the preset response identifier and the authorization information and / or warning information in the exchange area;

[0013] The processing unit is used to process the total transaction according to the final total response message.

[0014] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned transaction processing method when executing the computer program.

[0015] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above transaction processing method.

[0016] In the embodiment of the present invention, the transaction processing scheme, compared with the technical scheme in the prior art that requires multiple authorization processes, has high complexity and repeatability in authorization processing, and has low total transaction processing efficiency, is as follows: when receiving a total transaction, the total transaction process is parsed, and according to the parsing result, multiple sub-transactions are initiated, and each sub-transaction is sent to a corresponding microservice or host; sub-response message information returned by the corresponding microservice or host is received; when it is determined that the sub-response message information contains authorization information and / or warning information, the sub-response message information is added to a pre-established exchange area, and the steps of obtaining a final total response message are performed: when it is determined that the number of authorization information in the exchange area is greater than one, a preset response identifier is set for the total response message corresponding to the total transaction; according to the preset response identifier, and the authorization information and / or warning information in the exchange area, a final total response message is obtained; according to the final total response message, the total transaction is processed, and unified processing of authorization information of multiple sub-transactions can be achieved, and only one authorization is required, and the complexity and repeatability of authorization processing are low, thereby improving the efficiency of transaction processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0018] Figure 1A flowchart of a transaction processing method according to an embodiment of the present invention;

[0019] Figure 2 A schematic diagram of the principle of transaction processing in an embodiment of the present invention;

[0020] Figure 3 A schematic diagram of the structure of a transaction processing device in an embodiment of the present invention;

[0021] Figure 4 A schematic diagram of the structure of a transaction processing device in another embodiment of the present invention;

[0022] Figure 5 It is a schematic diagram of the structure of a transaction processing device in another embodiment of the present invention. DETAILED DESCRIPTION

[0023] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0024] Before introducing the embodiments of the present invention, technical terms involved in the embodiments of the present invention are first introduced.

[0025] 1. The model is an important part of the distributed integration agent. Each transaction will generate a series of XML files containing logical mappings. It implements the call and processing between various microservices by parsing the mapping, coordinates the various microservices, and realizes a complete business process.

[0026] 2. Warning information is a prompt message that does not affect the transaction result during the transaction execution (indicating that the transaction is successful and does not need to be reversed) but requires attention; for example, the response code returned during the execution of the transaction A0182S501 (deposit of 10% discount pass for private current deposits) is WOKA01820007, which means that the passbook has been reported lost. However, the status of the transaction is 00 (successful status).

[0027] The inventor discovered the following technical problem: When a complete transaction is integrated and processed by a distributed integration agent, each outbound call transaction not only converts the request body and other contents through the model, but also sends a request message to the corresponding microservice or host through the integration layer according to different transaction codes, and the integration layer processes the response message of the microservice or host accordingly. The authorization information is in the response header of the response message. In the centralized system of the old system, each outbound call transaction encounters authorization information, and the authorization manager must confirm it once. Multiple outbound call transactions must be confirmed, so multiple confirmations are required.

[0028] Since the invention discovered the problems existing in the prior art, a transaction processing solution was proposed. In this solution, authorization is performed in a distributed centralized agent through model parsing of the outbound call response transaction message, and multiple outbound call transaction authorization information is processed uniformly. When the final result requires authorization verification, the authorization manager only needs to authorize it once, which reduces the complexity of the program and improves efficiency.

[0029] Specifically, in the traditional old system, transactions are executed in a serial manner after one transaction is executed. Now, in the distributed system, transactions are returned for processing after each transaction is executed, and then the next transaction is executed. In order to process the authorization information of multiple transactions, it is not prompted multiple times on the front end to reduce the complexity of the system. Therefore, it is necessary to process it in the response message returned by each transaction. Because a complete transaction contains multiple outbound transactions, each transaction may contain one or more response information, and in addition to the authorization information, there will be other error codes, such as warning information and error information. This kind of aggregated response information often makes authorization more complicated. Therefore, the response header of the response message returned by each outbound call will be processed and placed in the exchange area. After multiple outbound calls are processed, it will return to the front-end page to prompt the authorization manager to operate. Then these authorization information needs to be processed centrally. When the sub-transaction processes the response message, a memory exchange area will be established to store the total response message information to be returned. Then the total response message header is processed according to the response header and authorization information of each response message. That is, with the distributed core system processing, even if there are multiple authorization messages for multiple outbound transactions, only one prompt will be given, which greatly improves efficiency. The following is a detailed introduction to the transaction processing solution.

[0030] Figure 1 FIG. 1 is a flow chart of a transaction processing method in an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0031] Step 101: When receiving the total transaction, parse the total transaction process, initiate multiple sub-transactions based on the parsing results, and send each sub-transaction to the corresponding microservice or host;

[0032] Step 102: Receive the sub-response message information returned by the corresponding microservice or host;

[0033] Step 103: when it is determined that the sub-response message information includes the authorization information and / or the warning information, the sub-response message information is added to the pre-established exchange area, and the steps of obtaining the final total response message are performed: when it is determined that the number of the authorization information in the exchange area is greater than one, a preset response identifier is set for the total response message corresponding to the total transaction; according to the preset response identifier, and the authorization information and / or the warning information in the exchange area, the final total response message is obtained;

[0034] Step 104: Process the total transaction according to the final total response message.

[0035] In the embodiment of the present invention, the transaction processing method, compared with the technical solutions in the prior art that require multiple authorization processes, have high complexity and repeatability in authorization processing, and have low overall transaction processing efficiency, can achieve unified processing of authorization information for multiple sub-transactions, only requires authorization once, has low complexity and repeatability in authorization processing, and thus improves the efficiency of transaction processing.

[0036] In specific implementation, the transaction processing method provided by the embodiment of the present invention can be applied to distributed system scenarios of calling and processing between microservices and distributed integration agent integration processing, such as the WeChat platform and the various application applets it includes, etc.

[0037] In specific implementation, the sub-transactions in the embodiment of the present invention may include outbound call transactions and inbound call transactions.

[0038] In specific implementation, the sub-response message information may be included in the following Figure 2 The final total response message may include a total response message (such as Figure 2 The total return message in the message header and message body information, the message header may include: a preset response identifier (for example Figure 2 The response code 9999999999999) and the authorization identifier corresponding to each authorization information (such as the authorization code in Table 1 below, i.e., the authorization code), and the warning identifier (warning code) if any will also be included. The message body information of the total response message may include: authorization information and / or warning information, etc.

[0039] In specific implementation, the total transaction in the embodiment of the present invention refers to a complete transaction, which may correspond to multiple sub-transactions (outbound call transactions and inbound call transactions).

[0040] In one embodiment, Figure 2 As shown, the transaction processing method may further include:

[0041] When it is determined that the number of the authorization information in the exchange area is one, the authorization identifier corresponding to the one authorization information is used as the response identifier of the total response message;

[0042] The final total response message is obtained according to the response identifier of the total response message and the authorization information and / or warning information in the exchange area.

[0043] When implementing it, Figure 2 As shown, in this embodiment, the final total response message may include a total response message (such as Figure 2The message header and message body information of the total response message (the total return message in the above) may include: the response identifier of the total response message (the authorization identifier corresponding to the authorization information), that is, the response code (such as the authorization code in Table 1 below, that is, the authorization code: YACA01811523, etc.). The above implementation method of obtaining the final total response message further improves the efficiency of transaction processing.

[0044] In one embodiment, Figure 2 As shown, the transaction processing method may further include:

[0045] When it is determined that there is only one warning message in the exchange area, the warning identifier corresponding to the warning message is used as the response identifier of the total response message;

[0046] The final total response message is obtained according to the response identifier of the total response message and the warning information in the exchange area.

[0047] In specific implementation, in this embodiment, the final total response message may include a total response message (such as Figure 2 The message header and message body information of the total response message (the total return message in the above) may include: the response identifier of the total response message (the warning identifier corresponding to the warning information), that is, the response code (the warning identifier, such as the warning code mentioned below: WOKA01820007, etc.). The above implementation method of obtaining the final total response message further improves the efficiency of transaction processing.

[0048] In one embodiment, Figure 2 As shown, the transaction processing method may further include:

[0049] When it is determined that there are only more than one warning messages in the exchange area, a preset response identifier is set for the total response message;

[0050] According to the preset response identifier and all warning information in the exchange area, a final total response message is obtained.

[0051] In specific implementation, in this embodiment, the final total response message may include a total response message (such as Figure 2 The message header and message body information of the total return message in the above method can include: a preset response identifier, that is, a response code (which can also be: 9999999999999, and a warning identifier and a warning code corresponding to each warning message). The above implementation method of obtaining the final total response message further improves the efficiency of transaction processing.

[0052] In one embodiment, Figure 2 As shown, when it is determined that the response message information contains authorization information and / or warning information, adding the response message information to the pre-established exchange area may include:

[0053] When it is determined that the response message information includes the authorization information and / or the warning information, adding the response message information to the pre-established exchange area;

[0054] The duplicate authorization information or warning information in the exchange area is removed to obtain the authorization information and / or warning information in the exchange area.

[0055] During specific implementation, the present invention also removes duplicate authorization information or warning information in the exchange area, obtains the authorization information and / or warning information in the exchange area, and further improves the efficiency of transaction processing.

[0056] In one embodiment, Figure 2 As shown, the transaction processing method may further include:

[0057] When it is determined that the sub-response message does not contain the authorization information and / or the warning information, determining whether the corresponding sub-transaction is successfully processed;

[0058] After determining that the sub-transaction processing is successful, a sub-transaction processing success response identifier is obtained, and the step of obtaining the final total response message is performed; the final total response message also includes the sub-transaction processing success response identifier.

[0059] When implementing it, Figure 2 As shown, after determining that the sub-transaction processing is successful, a sub-transaction processing success response identifier (for example, the response code mentioned below: 000000000000) is obtained, and the step of obtaining the final total response message is performed, which further improves the efficiency of transaction processing; the final total response message also includes the sub-transaction processing success response identifier, that is, 000000000000 can be added to the total response message (for example, Figure 2 In the message header of the total return message).

[0060] In one embodiment, Figure 2 As shown, the transaction processing method may further include: after determining that the sub-transaction has not been processed successfully, ending the overall transaction and feeding back an error message.

[0061] When implementing it, Figure 2 As shown, after determining that the sub-transaction has not been processed successfully, the total transaction is terminated and error information, such as an error code, is fed back, further improving the efficiency of transaction processing.

[0062] In order to facilitate understanding of how to implement the present invention, the transaction processing scheme of the present invention is generally introduced below.

[0063] When a complete transaction is integrated and processed by the distributed integration agent, each outbound transaction converts the request body and other contents through the model. The model is an important part of the distributed integration agent. Each transaction will generate a series of XML files containing logical mappings, which implement the call and processing between various microservices by parsing the mapping, coordinate the various microservices, and realize a complete business process. The integration layer also sends request messages to the corresponding microservices or hosts according to different outbound transaction codes, and the integration layer processes the response messages of the microservices or hosts accordingly. The authorization information is in the response header of the response message (sub-response message).

[0064] The response message (sub-response message) returned by each outbound transaction will be parsed first. If the message contains authorization or warning information, it will be added to the exchange area, and then the duplicate authorization information or warning information will be removed. Warning information is a prompt message that does not affect the transaction result during the transaction execution (indicating that the transaction is successful and does not need to be reversed) but needs attention; for example, the response code returned during the execution of transaction A0182S501 (deposit of one-off pass for private current deposits) is warning code WOKA01820007, which means that the passbook has been reported lost. However, the status of the transaction is 00 (successful status). If the response message is a successful response code 000000000000, the next transaction will be processed; if it is an abnormal information, it will be directly thrown and the response message will be directly returned.

[0065] Finally, the response code of the response message is set according to whether the number of response information (authorization code, warning code) in the exchange area is greater than one. If there is only one, set this response information as the response code. If there are multiple, set it to 99999999999 (preset response identifier) ​​according to the specification, and then add the authorization information and warning information of the exchange area, set it to the response header, and the total transaction is completed.

[0066] In order to facilitate understanding of how to implement the present invention, the following Figure 2 The transaction processing method in the embodiment of the present invention is described in detail with examples.

[0067] Example 1: After the transaction is completed, the response message contains only one authorization message, and the response code is the authorization code:

[0068] Transaction A0182S501 starts to execute. The model analyzes the first transaction, which is A1051097 (internal account accounting) calling the host. After processing, the response code returned is the authorization code YACA01821502 (the customer's cumulative foreign currency cash deposits on the day are greater than or equal to 5000.00 USD, which requires authorization); then the second transaction is M0182S501 calling the microservice internally, and the response code returned after processing is 000000000000 (success); then the sub-transaction of A0182S501 ends, and the response code returned is YACA01821502, and the response description is that the customer's cumulative foreign currency cash deposits on the day are greater than or equal to 5000.00 USD, which requires authorization.

[0069] Example 2: After the transaction is completed, the response message contains only multiple authorization information, and the response code is 9999999999999:

[0070] Transaction A0182S501 starts to execute. The model analyzes the first transaction, which is A1051097 (internal account accounting) that calls the host. After processing, the response code returned is the authorization code YACA01821502 (the customer's cumulative foreign currency cash deposits on that day are greater than or equal to 5000.00 USD, which requires authorization); then the second transaction is M0182S501 that calls the microservice, and after processing, the response code returned is YACA018215023 (authorization code); then the sub-transaction of A0182S501 ends, and the response code returned is 9999999999999, and the response description is Multi Error Inf / / / ormation; and the response header contains these two authorization codes, and any warning codes will also be included.

[0071] Example 3: After the transaction is completed, the response message contains authorization information and an error code. The response code is the error code:

[0072] Transaction A0182S501 starts to execute. The model analyzes the first transaction, which is A1051097 (internal account bookkeeping) calling the host. The response code returned after processing is the authorization code YACA01821502 (the customer's cumulative foreign currency cash deposits on that day are greater than or equal to 5000.00 USD, which requires authorization); then the second transaction is M0182S501 calling the microservice, which returns the response code YCEA01823085 (error code, indicating that the transaction currency does not match the internal account currency); at this time, the A0182S501 transaction ends directly and throws an exception, returning a response code of YCEA01823085, with a response description that the transaction currency does not match the internal account currency, and the response header does not contain the information of YACA01821502 (from this, it can be seen that the priority of the error code is higher than the authorization code, and the priority of the authorization code is higher than the warning code).

[0073] For ease of understanding, the following example defines the authorization information structure as shown in Table 1:

[0074] Authorization attribute number Authorization attribute name Authorization Code Transaction ID 0001 The amount of RMB transferred from public to private card is greater than the parameter and authorization is required YACA01811523 A01831701 0002 The amount of RMB transferred from public to private accounts is greater than the parameter and authorization is required YACA01811524 A01831701 0003 The amount of foreign currency transferred from public to private accounts is greater than the parameter and authorization is required YACA01811529 A01831701 0004 Authorization is required for transferring foreign currency from public to private cards YACA01811521 A01831701 0005 The cumulative cash withdrawal amount on the day exceeds the limit and requires authorization YACA01811522 A01831701 0006 The remaining amount after partial withdrawal is not a large deposit and requires authorization YACA01811504 A01833301 0007 The account opening amount is not a large deposit and authorization is required YACA01811505 A01833301 0008 Authorization is required for partial withdrawal in advance YACA01811506 A01833301

[0075] Table 1

[0076] Of course, the authorization information can include more items, not just those shown in Table 1 above. The number of authorization information codes can cover the authorization instances required by the business scenarios, as well as the authorization scenarios required for future development, and has the characteristics of completeness and extensibility. The relationship between the authorization information and the sub-response message can be understood: the authorization information is in the message header of the sub-response message, and multiple authorization information will be stored in the message header field, and different response codes will be changed according to the number of authorization information. Reasonably merge different authorization information to obtain the total response message.

[0077] In summary, the transaction processing method provided by the embodiment of the present invention has the following advantages:

[0078] 1. Efficient merging and processing based on different authorization information.

[0079] 2. Reasonably handle the relationship between response messages and authorization information.

[0080] 3. It can reasonably handle the connection between different error codes and authorization information, and has good robustness.

[0081] The present invention also provides a transaction processing device in the embodiment, as described in the following embodiment. Since the principle of solving the problem by the device is similar to that of the transaction processing method, the implementation of the device can refer to the implementation of the transaction processing method, and the repeated parts will not be repeated.

[0082] Figure 3 FIG. 1 is a schematic diagram of the structure of a transaction processing device in an embodiment of the present invention. Figure 3 As shown, the device comprises:

[0083] The initiating unit 01 is used to parse the total transaction process when receiving the total transaction, initiate multiple sub-transactions according to the parsing results, and send each sub-transaction to the corresponding microservice or host;

[0084] Receiving unit 02, used to receive the sub-response message information returned by the corresponding microservice or host;

[0085] The total response message determination unit 03 is used for, when determining that the sub-response message information contains authorization information and / or warning information, adding the sub-response message information to the pre-established exchange area, and executing the steps of obtaining the final total response message: when determining that the number of authorization information in the exchange area is greater than one, setting a preset response identifier for the total response message corresponding to the total transaction; obtaining the final total response message according to the preset response identifier and the authorization information and / or warning information in the exchange area;

[0086] The processing unit 04 is used to process the total transaction according to the final total response message.

[0087] In one embodiment, the total response message determining unit may also be used to:

[0088] When it is determined that the number of the authorization information in the exchange area is one, the authorization identifier corresponding to the one authorization information is used as the response identifier of the total response message;

[0089] The final total response message is obtained according to the response identifier of the total response message and the authorization information and / or warning information in the exchange area.

[0090] In one embodiment, the total response message determining unit may also be used to:

[0091] When it is determined that there is only one warning message in the exchange area, the warning identifier corresponding to the warning message is used as the response identifier of the total response message;

[0092] The final total response message is obtained according to the response identifier of the total response message and the warning information in the exchange area.

[0093] In one embodiment, the total response message determining unit may also be used to:

[0094] When it is determined that there are only more than one warning messages in the exchange area, a preset response identifier is set for the total response message;

[0095] According to the preset response identifier and all warning information in the exchange area, a final total response message is obtained.

[0096] In one embodiment, Figure 4 As shown, the transaction processing device may further include a deduplication processing unit 05 for removing duplicate authorization information or warning information in the exchange area to obtain the authorization information and / or warning information in the exchange area.

[0097] In one embodiment, Figure 5 As shown, the transaction processing device may further include a transaction execution determination unit 06, which is used to:

[0098] When it is determined that the sub-response message does not contain the authorization information and / or the warning information, determining whether the corresponding sub-transaction is successfully processed;

[0099] After determining that the sub-transaction processing is successful, a sub-transaction processing success response identifier is obtained, and the step of obtaining the final total response message is performed; the final total response message also includes the sub-transaction processing success response identifier.

[0100] In one embodiment, the transaction execution judgment unit is further used to: after determining that the sub-transaction has not been processed successfully, end the overall transaction and feedback error information.

[0101] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned transaction processing method when executing the computer program.

[0102] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above transaction processing method.

[0103] In the embodiment of the present invention, the transaction processing scheme, compared with the technical scheme in the prior art that requires multiple authorization processes, has high complexity and repeatability in authorization processing, and has low total transaction processing efficiency, is as follows: when receiving a total transaction, the total transaction process is parsed, and according to the parsing result, multiple sub-transactions are initiated, and each sub-transaction is sent to a corresponding microservice or host; sub-response message information returned by the corresponding microservice or host is received; when it is determined that the sub-response message information contains authorization information and / or warning information, the sub-response message information is added to a pre-established exchange area, and the steps of obtaining a final total response message are performed: when it is determined that the number of authorization information in the exchange area is greater than one, a preset response identifier is set for the total response message corresponding to the total transaction; according to the preset response identifier, and the authorization information and / or warning information in the exchange area, a final total response message is obtained; according to the final total response message, the total transaction is processed, and unified processing of authorization information of multiple sub-transactions can be achieved, and only one authorization is required, and the complexity and repeatability of authorization processing are low, thereby improving the efficiency of transaction processing.

[0104] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0105] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0106] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0108] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A transaction processing method, characterized in that: include: When receiving the total transaction, the total transaction process is parsed, and multiple sub-transactions are initiated according to the parsing results, and each sub-transaction is sent to the corresponding microservice or host; the sub-transactions include outbound call transactions and inbound call transactions; Receive the sub-response message information returned by the corresponding microservice or host; When it is determined that the sub-response message information includes the authorization information and / or the warning information, the sub-response message information is added to the pre-established exchange area, and the steps of obtaining the final total response message are performed: when it is determined that the number of the authorization information in the exchange area is greater than one, a preset response identifier is set for the total response message corresponding to the total transaction; Obtaining a final total response message according to the preset response identifier and the authorization information and / or warning information in the exchange area; The total response message includes a message header and message body information of the total response message, wherein the message header includes a preset response identifier and an authorization identifier or a warning identifier corresponding to each authorization information; the total response message also includes a successful processing response identifier of the sub-transaction; the authorization information is in the message header of the sub-response message, and multiple authorization information will be stored in the field of the message header, and different response codes will be changed according to the number of authorization information; different authorization information is merged to obtain a total response message; Processing the total transaction according to the final total response message; When it is determined that the response message information contains authorization information and / or warning information, adding the response message information to a pre-established exchange area includes: when it is determined that the response message information contains authorization information and / or warning information, adding the response message information to the pre-established exchange area; removing duplicate authorization information or warning information in the exchange area to obtain the authorization information and / or warning information in the exchange area; It also includes: when it is determined that the sub-response message information does not contain authorization information and / or warning information, judging whether the corresponding sub-transaction is processed successfully; after determining that the sub-transaction is processed successfully, obtaining a sub-transaction processing success response identifier, and executing the step of obtaining the final total response message; the final total response message also includes the sub-transaction processing success response identifier.

2. The transaction processing method according to claim 1, characterized in that: Also includes: When it is determined that the number of the authorization information in the exchange area is one, the authorization identifier corresponding to the one authorization information is used as the response identifier of the total response message; The final total response message is obtained according to the response identifier of the total response message and the authorization information and / or warning information in the exchange area.

3. The transaction processing method according to claim 1, characterized in that: Also includes: When it is determined that there is only one warning message in the exchange area, the warning identifier corresponding to the warning message is used as the response identifier of the total response message; The final total response message is obtained according to the response identifier of the total response message and the warning information in the exchange area.

4. The transaction processing method according to claim 1, characterized in that: Also includes: When it is determined that there are only more than one warning messages in the exchange area, a preset response identifier is set for the total response message; According to the preset response identifier and all warning information in the exchange area, a final total response message is obtained.

5. The transaction processing method according to claim 1, characterized in that: Also includes: After determining that the sub-transaction has not been successfully processed, the overall transaction is terminated and an error message is fed back.

6. A transaction processing device, characterized in that: include: The initiating unit is used to parse the total transaction process when receiving the total transaction, initiate multiple sub-transactions according to the parsing results, and send each sub-transaction to the corresponding microservice or host; the sub-transactions include outbound call transactions and inbound call transactions; A receiving unit, used to receive sub-response message information returned by the corresponding microservice or host; a total response message determination unit, configured to, when determining that the sub-response message information includes the authorization information and / or the warning information, add the sub-response message information to the pre-established exchange area, and execute the steps of obtaining the final total response message: when determining that the number of the authorization information in the exchange area is greater than one, set a preset response identifier for the total response message corresponding to the total transaction; Obtaining a final total response message according to the preset response identifier and the authorization information and / or warning information in the exchange area; The total response message includes a message header and message body information of the total response message, wherein the message header includes a preset response identifier and an authorization identifier or a warning identifier corresponding to each authorization information; the total response message also includes a successful processing response identifier of the sub-transaction; the authorization information is in the message header of the sub-response message, and multiple authorization information will be stored in the field of the message header, and different response codes will be changed according to the number of authorization information; different authorization information is merged to obtain a total response message; A processing unit, configured to process the total transaction according to the final total response message; It also includes a deduplication processing unit, which is used to remove duplicate authorization information or warning information in the exchange area to obtain the authorization information and / or warning information in the exchange area; It also includes a transaction execution judgment unit, which is used to judge whether the corresponding sub-transaction is successfully processed when it is determined that the sub-response message information does not contain authorization information and / or warning information; after determining that the sub-transaction is successfully processed, obtain a sub-transaction processing success response identifier, and execute the step of obtaining the final total response message; the final total response message also includes the sub-transaction processing success response identifier.

7. The transaction processing device according to claim 6, characterized in that: The total response message determining unit is also used for: When it is determined that the number of the authorization information in the exchange area is one, the authorization identifier corresponding to the one authorization information is used as the response identifier of the total response message; The final total response message is obtained according to the response identifier of the total response message and the authorization information and / or warning information in the exchange area.

8. The transaction processing device according to claim 6, characterized in that: The total response message determining unit is also used for: When it is determined that there is only one warning message in the exchange area, the warning identifier corresponding to the warning message is used as the response identifier of the total response message; The final total response message is obtained according to the response identifier of the total response message and the warning information in the exchange area.

9. The transaction processing device according to claim 6, characterized in that: The total response message determining unit is also used for: When it is determined that there are only more than one warning messages in the exchange area, a preset response identifier is set for the total response message; According to the preset response identifier and all warning information in the exchange area, a final total response message is obtained.

10. The transaction processing device according to claim 6, characterized in that: The transaction execution judgment unit is further used to: after determining that the sub-transaction has not been successfully processed, end the total transaction and feedback error information.

11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Methods and systems for verifying transactions

    CN102812480A

  • Bank omni-channel remote concentrated authorization system capable of expanding business

    CN107958551A

  • Service authorization method and device

    CN109272404A

  • Message processing method and device

    CN111698233A

  • Scenarized combined transaction method and device

    CN111754348A