Message processing method, message processing device, equipment, storage medium and product

By converting and analyzing transaction channel messages in formats, and using the strategy mapping table to achieve unified processing of different channels, the problem of low processing efficiency of transaction channel messages is solved, and processing efficiency and abnormal detection capabilities are improved.

CN120602570APending Publication Date: 2025-09-05INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510805770.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-17
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

Different packet processing methods of different transaction channels lead to low processing efficiency. The existing technology lacks process monitoring mechanism and hot-swap mechanism, which leads to the need to configure a new processing process for each additional transaction channel, which is unable to effectively monitor and handle exceptions.

Method used

By obtaining the initial message uploaded by the transaction channel, converting formats and storing parameters, determining the target analysis strategy using the policy mapping table, analyzing the intermediate message, generating transaction parameters and target messages, and processing based on the message context information, realizing unified processing of different transaction channels.

Benefits of technology

It improves the efficiency of message processing, avoids duplicate analysis, supports the rapid configuration of new transaction channels, and records processing status and resource occupation through message context information, which facilitates abnormal detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120602570A_ABST
    Figure CN120602570A_ABST
Patent Text Reader

Abstract

The invention provides a message processing method, a message processing device, equipment, a storage medium and a product, which can be applied to the technical field of financial science and technology. The method comprises the following steps: acquiring at least one initial message uploaded by at least one transaction channel; for each initial message, performing format conversion on the initial message to obtain an intermediate message in a target format and a message parameter corresponding to the initial message, and storing the message parameter in message context information; determining a target analysis strategy corresponding to the transaction channel from a strategy mapping table, and analyzing the intermediate message by using the target analysis strategy to obtain a transaction parameter and a target message; and writing the transaction parameter into the message context information so as to perform message processing on the target message based on the message context information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology, and specifically to a message processing method, a message processing device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] Bank messages generally refer to electronic messages used for financial transactions or information exchange between banks or between banks and other financial institutions. These messages may include account information, transaction records, exchange rate information, etc.

[0003] The exchange of bank messages usually uses network communication methods, such as the Internet or private networks. These network communication methods can provide higher security and reliability, ensuring the security and correctness of financial transactions.

[0004] In the process of realizing the concept of this application, it was found that when the relevant technology faces messages uploaded from different transaction channels, the processing efficiency is low due to the different message processing methods of different transaction channels. Summary of the Invention

[0005] In view of the above problems, the present application provides a message processing method, a message processing device, an electronic device, a computer-readable storage medium, and a computer program product.

[0006] According to a first aspect of the present application, a message processing method is provided, comprising:

[0007] Obtaining at least one initial message uploaded by at least one transaction channel;

[0008] For each of the initial messages, convert the format of the initial message to obtain an intermediate message in a target format and message parameters corresponding to the initial message, and store the message parameters in the message context information;

[0009] Determine the target parsing strategy corresponding to the transaction channel from the strategy mapping table, and parse the intermediate message using the target parsing strategy to obtain transaction parameters and the target message;

[0010] The transaction parameters are written into the message context information, so as to perform message processing on the target message based on the message context information.

[0011] According to an embodiment of the present application, the above-mentioned message parameters include the protocol information of the above-mentioned transaction channel and multiple field elements of the above-mentioned initial message.

[0012] According to an embodiment of the present application, determining the target parsing strategy corresponding to the above-mentioned transaction channel from the strategy mapping table includes:

[0013] Obtaining the protocol information from the message context information;

[0014] The protocol information is searched in the policy mapping table, and the initial parsing policy corresponding to the protocol information is determined as the target parsing policy.

[0015] According to an embodiment of the present application, the intermediate message is parsed using the target parsing strategy to obtain transaction parameters and a target message, including:

[0016] Parse the intermediate message using the target parsing strategy to obtain the target message.

[0017] The transaction parameters are extracted from the target message, wherein the transaction parameters include transaction code information and channel identification information.

[0018] According to an embodiment of the present application, the above-mentioned transaction parameters include at least one of transaction type information, transaction code information and channel identification information.

[0019] According to an embodiment of the present application, message processing is performed on the target message based on the message context information, including:

[0020] For any parameter information of the above transaction parameters, generate a parameter judgment result based on the above parameter information and parameter condition information;

[0021] The target message is processed based on the judgment results of the multiple parameters.

[0022] According to an embodiment of the present application, a parameter judgment result is generated based on the above parameter information and parameter condition information, including:

[0023] If the parameter information satisfies the parameter condition information, generating a first judgment result;

[0024] In the case that the parameter information does not satisfy the parameter condition information, a second judgment result is generated, wherein the parameter judgment result includes the first judgment result or the second judgment result.

[0025] According to an embodiment of the present application, the target message is processed based on the multiple parameter judgment results, including:

[0026] When the results of the plurality of the parameter judgments are all the first judgment results, performing data decryption processing on the target message to obtain decrypted information;

[0027] Performing format conversion on the above decrypted information to obtain converted decrypted information;

[0028] In a case where the parameter judgment result corresponding to the channel identification information is the second judgment result, the target message is format-converted to obtain converted message information.

[0029] According to an embodiment of the present application, the message processing method further includes:

[0030] In the case of the data decryption and / or the format conversion, generating a processing status result, wherein the processing status result indicates whether the data decryption and / or the format conversion is successful;

[0031] At least one of the processing status result, the decryption information, the converted decryption information and the converted message information is stored in the message context information.

[0032] According to an embodiment of the present application, the message processing method further includes:

[0033] The acquired time and resource occupancy information of the initial message, the conversion time and resource occupancy information of the format conversion, and the parsing time and resource occupancy information of the intermediate message are stored in the message context information;

[0034] Generate step time consumption chart and resource usage chart based on the above message context information.

[0035] According to an embodiment of the present application, the message processing method further includes:

[0036] For each of the initial messages, if parsing of the intermediate messages fails, generating a parsing failure result;

[0037] In the case where message processing fails for the target message, a message processing failure result is generated, wherein the failure result includes the parsing failure result and the message processing failure result;

[0038] Assembling at least one of the intermediate messages and / or the target message that are the failure results to obtain a failure message;

[0039] The failure message is formatted to obtain a problem feedback message, and the problem feedback message is transmitted to the transaction channel.

[0040] A second aspect of the present application provides a message processing device, including:

[0041] an acquisition module, configured to acquire at least one initial message uploaded by at least one transaction channel;

[0042] a conversion module configured to perform format conversion on each of the initial messages to obtain an intermediate message in a target format and message parameters corresponding to the initial message, and store the message parameters in message context information;

[0043] A parsing module, configured to determine a target parsing strategy corresponding to the transaction channel from a strategy mapping table, and parse the intermediate message using the target parsing strategy to obtain transaction parameters and a target message;

[0044] The processing module is used to write the transaction parameters into the message context information to perform message processing on the target message based on the message context information.

[0045] The third aspect of the present application provides an electronic device, comprising: one or more processors; a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0046] The fourth aspect of the present application further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the computer program or instructions are executed by a processor.

[0047] The fifth aspect of the present application further provides a computer program product, comprising a computer program or instructions, which implement the steps of the above method when executed by a processor.

[0048] According to an embodiment of the present application, initial messages uploaded from different transaction channels are formatted to obtain intermediate messages in a target format and message parameters. Message context information is used to store the message parameters. A target parsing policy for the transaction channel is determined from a policy mapping table to parse the intermediate message, obtaining transaction parameters and a target message. The target message is then processed based on the message context information containing the transaction parameters. Because the policy mapping table stores parsing policies for different transaction channels, unified processing can be achieved for all transaction channels. Furthermore, the use of message context information to store data obtained at each step avoids repeated parsing in subsequent steps, thereby improving message processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The above contents and other objects, features and advantages of the present application will become more apparent through the following description of the embodiments of the present application with reference to the accompanying drawings, in which:

[0050] Figure 1 The following schematically illustrates an application scenario of the message processing method according to an embodiment of the present application;

[0051] Figure 2The following schematically shows a flow chart of a message processing method according to an embodiment of the present application;

[0052] Figure 3 The following schematically shows a flow chart of a message processing method according to another embodiment of the present application;

[0053] Figure 4 A schematic diagram of a structure of a message processing device according to an embodiment of the present application is shown; and

[0054] Figure 5 A block diagram of an electronic device suitable for implementing the above method according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0055] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present application. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present application.

[0056] The terms used herein are only for describing specific embodiments and are not intended to limit this application. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0057] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0058] When expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0059] Different trading channels have different message types and message request methods. The relevant technology accesses different trading channels through front-end management tools. The front-end management tools extract the transaction code and brokerage code from different message types. Finally, the extracted transaction code and brokerage code are communicated with the access layer. The access layer routes the grayscale nodes and official nodes and forwards them to the service layer. After processing the business information, the service layer returns it to the access layer. The front-end management tools then process the message according to the requirements of each channel and return it to the corresponding trading channel.

[0060] Although the front-end management tools and access layers in related technologies have realized access process management for different channels, maintenance is complicated. Each transaction channel needs to be configured with a corresponding processing process, and there is a lack of process monitoring mechanism and process hot-swap mechanism. As a result, every time a new transaction channel is added or a transaction code is added, a new process needs to be configured through the front-end management tool, and abnormal situations in process processing cannot be monitored.

[0061] In view of this, embodiments of the present application provide a message processing method, message processing apparatus, device, storage medium, and product, which can be applied to the fields of message processing and financial technology. The method includes: obtaining at least one initial message uploaded by at least one transaction channel; for each initial message, performing format conversion on the initial message to obtain an intermediate message in a target format and message parameters corresponding to the initial message, and storing the message parameters in message context information; determining a target parsing strategy corresponding to the transaction channel from a strategy mapping table, and parsing the intermediate message using the target parsing strategy to obtain transaction parameters and a target message; and writing the transaction parameters into the message context information to perform message processing on the target message based on the message context information.

[0062] In the technical solution of this application, the user information involved (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0063] It should be noted that the message processing method and message processing device provided in this application can be used in the financial field, such as banks and other financial institutions, and can also be used in any field other than the financial field, such as e-commerce and other fields. Therefore, the application field of the message processing method and message processing device provided in this application is not limited.

[0064] Figure 1 The application scenario diagram of the message processing method according to an embodiment of the present application is schematically shown.

[0065] like Figure 1 As shown, the application scenario 100 according to this embodiment may include an online transfer transaction scenario. A network 104 is used as a medium to provide a communication link between a first terminal device 101, a second terminal device 102, a third terminal device 103, and a message processing device 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0066] A user may use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the message processing device 105 via the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (for example only).

[0067] The first terminal device 101 , the second terminal device 102 , and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0068] The message processing device 105 may be a switch or router that provides various services, such as processing messages uploaded by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (for example only). The message processing device 105 may analyze and process received data such as user requests, and feed back processing results (e.g., message feedback results, information, or data obtained or generated based on user requests) to the terminal devices.

[0069] It should be noted that the message processing method provided in the embodiment of the present application can generally be executed by the message processing device 105. Accordingly, the message processing apparatus provided in the embodiment of the present application can generally be set in the message processing device 105. The message processing method provided in the embodiment of the present application can also be executed by a server or server cluster that is different from the message processing device 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the message processing device 105. Accordingly, the message processing apparatus provided in the embodiment of the present application can also be set in a server or server cluster that is different from the message processing device 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the message processing device 105.

[0070] It should be understood that Figure 1 The number of terminal devices, networks and message processing devices in the embodiment is merely illustrative. Any number of terminal devices, networks and message processing devices may be provided according to implementation requirements.

[0071] Figure 2 The flowchart of the message processing method according to an embodiment of the present application is schematically shown.

[0072] like Figure 2 As shown, the message processing method of this embodiment includes operations S210 to S240, and the transaction processing method can be executed by an electronic device.

[0073] In operation S210, at least one initial message uploaded by at least one transaction channel is obtained.

[0074] In operation S220 , for each initial message, format conversion is performed on the initial message to obtain an intermediate message in a target format and message parameters corresponding to the initial message, and the message parameters are stored in the message context information.

[0075] In operation S230, a target parsing strategy corresponding to the transaction channel is determined from the strategy mapping table, and the intermediate message is parsed using the target parsing strategy to obtain transaction parameters and a target message.

[0076] In operation S240 , the transaction parameters are written into the message context information, so as to perform message processing on the target message based on the message context information.

[0077] According to the embodiments of the present application, transaction channels may include brokerage channels, online banking channels, counter channels, cooperative bank channels, self-service terminals, parameter management platforms, etc., which can realize online transactions of bank-brokerage transfers in banks and other financial institutions. For other fields (such as health and safety fields such as hospitals), the transaction channels may be different, such as the hospital's mobile phone software, on-site registration windows, and doctors' office computers.

[0078] According to an embodiment of the present application, the transaction channel uploads an initial message through the transaction terminal, and the message is converted into an intermediate message in the target format (such as HTTP format, etc.) through a protocol conversion gateway. At the same time, the message parameters in the initial message are extracted during the conversion, and the message parameters are stored in the message context information for subsequent use.

[0079] It should be noted that when uploading the initial message in the transaction channel, you can first determine whether the initial message is a Socket format message uploaded through the Socket interface. If so, you can convert the format of the initial message. If not, you can just determine the target parsing strategy from the strategy mapping table and perform the parsing operation.

[0080] According to the embodiments of the present application, since the message types and message request methods of messages uploaded by different transaction channels are different, the same parsing strategy cannot be used for message parsing. Therefore, the parsing strategy of each transaction channel (such as JSON parsing strategy, XML parsing strategy, etc.) is pre-defined in the strategy mapping table. When the intermediate message of the target format of the transaction channel is obtained, the target parsing strategy of the transaction channel is dynamically searched in the strategy mapping table, and the intermediate message is parsed using the target parsing strategy to obtain transaction parameters and target message. Transaction parameters may refer to key parameters in the transaction process, such as channel code and code information.

[0081] According to an embodiment of the present application, the transaction information obtained by parsing is written into the message context information for subsequent use, thereby performing message processing on the target message based on the message context information.

[0082] According to an embodiment of the present application, initial messages uploaded from different transaction channels are formatted to obtain intermediate messages in a target format and message parameters. Message context information is used to store the message parameters. A target parsing policy for the transaction channel is determined from a policy mapping table to parse the intermediate message, obtaining transaction parameters and a target message. The target message is then processed based on the message context information containing the transaction parameters. Because the policy mapping table stores parsing policies for different transaction channels, unified processing can be achieved for all transaction channels. Furthermore, the use of message context information to store data obtained at each step avoids repeated parsing in subsequent steps, thereby improving message processing efficiency.

[0083] According to an embodiment of the present application, the message parameters include protocol information of the transaction channel and multiple field elements of the initial message.

[0084] According to an embodiment of the present application, determining the target parsing strategy corresponding to the transaction channel from the strategy mapping table includes: obtaining protocol information from the message context information; searching for the protocol information in the strategy mapping table, and determining the initial parsing strategy corresponding to the protocol information as the target parsing strategy.

[0085] According to an embodiment of the present application, the protocol information of the initial message uploaded by different transaction channels may be different, and different protocol information uses different parsing strategies. Therefore, after the message parameters obtained by format conversion of the initial message are stored in the message context information, the protocol information of the transaction channel can be determined from the message context information.

[0086] According to an embodiment of the present application, a corresponding initial parsing policy is searched from a policy mapping table based on the protocol information, thereby determining the initial parsing policy as the target parsing policy for the message uploaded by the transaction channel.

[0087] According to an embodiment of the present application, the corresponding target parsing strategy is searched from the strategy mapping table through the protocol information of the transaction channel, so that the intermediate message is parsed using the target parsing strategy, thereby improving the search efficiency and thus improving the message processing efficiency.

[0088] According to the embodiment of the present application, when a new transaction channel is added, it is only necessary to configure it in the policy mapping table to implement the processing of messages uploaded by the new transaction channel.

[0089] According to an embodiment of the present application, the intermediate message is parsed using a target parsing strategy to obtain transaction parameters and a target message, including: parsing the intermediate message using a target parsing strategy to obtain a target message; extracting transaction parameters from the target message, wherein the transaction parameters include transaction code information and channel identification information.

[0090] According to an embodiment of the present application, the transaction code information may refer to the unique identification information corresponding to the exchange in the initial message, and the channel identification information may refer to the identification of the transaction channel in this transaction, such as the code information of the brokerage firm.

[0091] In a specific embodiment, the intermediate message can be parsed using a JSON parsing strategy or an XML parsing strategy to obtain a target message, and corresponding transaction parameters such as transaction code information and channel identification information can be extracted from the target message, thereby storing the transaction parameters in the message context information.

[0092] According to an embodiment of the present application, the transaction parameters include at least one of transaction type information, transaction code information, and channel identification information.

[0093] According to an embodiment of the present application, message processing is performed on a target message based on message context information, including: generating a parameter judgment result for any parameter information in a transaction parameter according to the parameter information and parameter condition information; and processing the target message based on multiple parameter judgment results.

[0094] According to the embodiments of the present application, since different transaction channels have different message processing methods, it is necessary to judge the corresponding transaction parameters based on different parameter condition information to obtain parameter judgment results, and comprehensively consider multiple parameter judgment results to determine which specific processing operations to perform on the target message.

[0095] According to an embodiment of the present application, a parameter judgment result is generated based on the parameter information and the parameter condition information, including: generating a first judgment result when the parameter information meets the parameter condition information; generating a second judgment result when the parameter information does not meet the parameter condition information, wherein the parameter judgment result includes the first judgment result or the second judgment result.

[0096] According to an embodiment of the present application, when the parameter information is transaction type information, the parameter condition information is a preset plurality of transaction type conditions; when the parameter information is transaction code information, the parameter condition information is a preset plurality of transaction code intervals; when the parameter information is channel identification information, the parameter condition information is a preset partial channel identification type.

[0097] According to an embodiment of the present application, for a certain parameter information, if the parameter information falls within the corresponding parameter condition information, it means that the parameter information meets the parameter condition information, thereby generating a first judgment result; if the parameter information does not meet the parameter condition information, a second judgment result is generated.

[0098] According to an embodiment of the present application, the target message is processed based on multiple parameter judgment results, including: when the multiple parameter judgment results are all first judgment results, performing data decryption processing on the target message to obtain decrypted information; performing format conversion on the decrypted information to obtain converted decrypted information; when the parameter judgment result corresponding to the channel identification information is a second judgment result, performing format conversion on the target message to obtain converted message information.

[0099] According to an embodiment of the present application, if all parameter judgment results are the first judgment result, it means that the message uploaded by the transaction channel is an encrypted message. Therefore, it is necessary to first decrypt the target message to obtain decrypted information, and then convert the format of the decrypted information to obtain the converted decrypted information.

[0100] According to an embodiment of the present application, the parameter judgment result corresponding to the channel identification information is the second judgment result, indicating that the message uploaded by the transaction channel is not an encrypted message. At this time, it is only necessary to convert the format of the target message to obtain the converted message information.

[0101] According to the embodiments of the present application, by comprehensively considering the parameter judgment results of different transaction parameters, the specific processing method of the target message is determined, thereby achieving effective processing of messages uploaded from different transaction channels and improving the message processing capability.

[0102] According to an embodiment of the present application, the message processing method also includes: in the case of data decryption and / or format conversion, generating a processing status result, wherein the processing status result represents whether the data decryption and / or format conversion is successful; and storing at least one of the processing status result, decryption information, converted decryption information and converted message information in the message context information.

[0103] According to an embodiment of the present application, in each operation such as the above-mentioned format conversion, parsing, decryption, etc., it is necessary to record whether the operation is successful, that is, the processing status result, and associate the processing status result of each operation and the decryption information corresponding to each processing status result, the converted decryption information and the converted message information, and store the associated data in the message context information.

[0104] According to an embodiment of the present application, the message processing method also includes: storing the acquisition time and resource occupancy information of the acquired initial message, the conversion time and resource occupancy information of the format conversion, and the parsing time and resource occupancy information of the intermediate message in the message context information; generating a step time-consuming chart and a resource occupancy chart based on the message context information.

[0105] According to an embodiment of the present application, in any operation recorded above, it is necessary to record the time spent on the operation and the size of the resources occupied, specifically including the acquisition time of the initial message and the acquisition of the occupied resources information, the conversion time of the format conversion and the conversion occupied resources information, and the parsing time and parsing occupied resources information of the intermediate message, and then store these time and resource usage information in the message context information.

[0106] According to an embodiment of the present application, after the initial message processing of the transaction channel is completed, a sudden time consumption chart including the time consumed by each operation or step can be generated based on the message context information of the initial message. At the same time, a resource occupancy chart of the resources occupied by each operation or step can also be generated. The sudden time consumption chart and the resource occupancy chart can be at least one of a histogram or a pie chart.

[0107] According to an embodiment of the present application, by storing the time required for each operation or step and the occupied resources in the message context information to generate a step time-consuming chart and a resource occupancy chart, maintenance personnel can determine the location of the message processing anomaly based on the chart, thereby improving maintenance efficiency.

[0108] Figure 3 The following schematically shows a flow chart of a message processing method according to another embodiment of the present application.

[0109] According to an embodiment of the present application, the message processing method further includes operations S310 to S340:

[0110] In operation S310 , for each initial message, if the intermediate message fails to be parsed, a parsing failure result is generated.

[0111] In operation S320, when message processing of the target message fails, a message processing failure result is generated, wherein the failure result includes a parsing failure result and a message processing failure result.

[0112] In operation S330, at least one intermediate message and / or target message that is a failure result is assembled to obtain a failure message.

[0113] In operation S340 , the format of the failure message is converted to obtain a problem feedback message, and the problem feedback message is transmitted to the transaction channel.

[0114] According to an embodiment of the present application, for multiple initial messages uploaded by a transaction channel within a certain time period (e.g., one hour), if the intermediate message corresponding to the initial message fails to be parsed, a parsing failure result is generated. If the intermediate message is successfully parsed but the target message is not successfully processed, a message processing failure result is generated.

[0115] According to an embodiment of the present application, for any failure result, the intermediate messages that failed to be processed within the time period and the target message are assembled to obtain a failure message, and the failure message is format-converted to obtain a problem feedback message that meets the protocol type (such as Socket format) of the transaction channel, and the problem feedback message is transmitted to the transaction channel.

[0116] According to an embodiment of the present application, the failed processing messages are assembled and formatted to transmit the formed problem feedback messages to the corresponding transaction channels, thereby facilitating the staff of the transaction channels to promptly discover and handle the problems.

[0117] Based on the above message processing method, this application also provides a message processing device. Figure 4 The device is described in detail.

[0118] Figure 4 The structural block diagram of the message processing device according to an embodiment of the present application is schematically shown.

[0119] like Figure 4 As shown, the message processing device 400 of this embodiment includes an acquisition module 410 , a conversion module 420 , a parsing module 430 , and a processing module 440 .

[0120] The acquisition module 410 is configured to acquire at least one initial message uploaded by at least one transaction channel.

[0121] The conversion module 420 is configured to perform format conversion on each initial message to obtain an intermediate message in a target format and message parameters corresponding to the initial message, and store the message parameters in the message context information.

[0122] The parsing module 430 is used to determine the target parsing strategy corresponding to the transaction channel from the strategy mapping table, and parse the intermediate message using the target parsing strategy to obtain transaction parameters and the target message.

[0123] The processing module 440 is configured to write the transaction parameters into the message context information, so as to perform message processing on the target message based on the message context information.

[0124] According to an embodiment of the present application, initial messages uploaded from different transaction channels are formatted to obtain intermediate messages in a target format and message parameters. Message context information is used to store the message parameters. A target parsing policy for the transaction channel is determined from a policy mapping table to parse the intermediate message, obtaining transaction parameters and a target message. The target message is then processed based on the message context information containing the transaction parameters. Because the policy mapping table stores parsing policies for different transaction channels, unified processing can be achieved for all transaction channels. Furthermore, the use of message context information to store data obtained at each step avoids repeated parsing in subsequent steps, thereby improving message processing efficiency.

[0125] According to an embodiment of the present application, the message parameters include protocol information of the transaction channel and multiple field elements of the initial message.

[0126] According to an embodiment of the present application, the parsing module 430 includes an acquisition unit and a determination unit.

[0127] The acquiring unit is used to acquire protocol information from the message context information.

[0128] The determining unit is used to search the policy mapping table for the protocol information and determine the initial parsing policy corresponding to the protocol information as the target parsing policy.

[0129] According to an embodiment of the present application, the parsing module 430 further includes a parsing unit and an extraction unit.

[0130] The parsing unit is used to parse the intermediate message using the target parsing strategy to obtain the target message.

[0131] The extraction unit is used to extract transaction parameters from the target message, wherein the transaction parameters include transaction code information and channel identification information.

[0132] According to an embodiment of the present application, the transaction parameters include at least one of transaction type information, transaction code information, and channel identification information.

[0133] According to an embodiment of the present application, the processing module 440 includes a generating unit and a processing unit.

[0134] The generating unit is used to generate a parameter judgment result for any parameter information in the transaction parameters according to the parameter information and parameter condition information.

[0135] The processing unit is used to process the target message based on the judgment results of multiple parameters.

[0136] According to an embodiment of the present application, the generation unit includes a first generation subunit and a second generation subunit.

[0137] The first generating subunit is used to generate a first judgment result when the parameter information meets the parameter condition information.

[0138] The second generating subunit is used to generate a second judgment result when the parameter information does not meet the parameter condition information, wherein the parameter judgment result includes the first judgment result or the second judgment result.

[0139] According to an embodiment of the present application, the processing unit includes a decryption subunit, a first conversion subunit, and a second conversion subunit.

[0140] The decryption subunit is used to perform data decryption processing on the target message to obtain decrypted information when the multiple parameter judgment results are all the first judgment results.

[0141] The first conversion subunit is used to perform format conversion on the decryption information to obtain converted decryption information.

[0142] The second conversion subunit is configured to perform format conversion on the target message to obtain converted message information when the parameter judgment result corresponding to the channel identification information is a second judgment result.

[0143] According to an embodiment of the present application, the message processing device 400 further includes a first generation module and a first storage module.

[0144] The first generating module is used to generate a processing status result in the case of data decryption and / or format conversion, wherein the processing status result indicates whether the data decryption and / or format conversion is successful.

[0145] The first storage module is configured to store at least one of the processing status result, the decryption information, the converted decryption information, and the converted message information in the message context information.

[0146] According to an embodiment of the present application, the message processing device 400 further includes a second storage module and a second generation module.

[0147] The second storage module is used to store the acquisition time and acquisition resource occupancy information of the acquired initial message, the conversion time and conversion resource occupancy information of the format conversion, and the parsing time and parsing resource occupancy information of the intermediate message in the message context information.

[0148] The second generating module is used to generate a step time consumption chart and a resource occupancy chart according to the message context information.

[0149] According to an embodiment of the present application, the message processing device 400 further includes a third generation module, a fourth generation module, an assembly module, and a return module.

[0150] The third generating module is used to generate a parsing failure result for each initial message when the intermediate message fails to be parsed.

[0151] The fourth generating module is used to generate a message processing failure result when message processing fails on the target message, wherein the failure result includes a parsing failure result and a message processing failure result.

[0152] The assembling module is used to assemble at least one intermediate message and / or target message that is a failure result to obtain a failure message.

[0153] The feedback module is used to convert the format of the failed message, obtain the problem feedback message, and transmit the problem feedback message to the transaction channel.

[0154] According to embodiments of the present application, any multiple modules among acquisition module 410, conversion module 420, parsing module 430, and processing module 440 may be combined into a single module, or any one of these modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in a single module. According to embodiments of the present application, at least one of acquisition module 410, conversion module 420, parsing module 430, and processing module 440 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or may be implemented in hardware or firmware through any other reasonable means of circuit integration or packaging, or may be implemented in any one of the three implementation methods of software, hardware, and firmware, or any appropriate combination of these. Alternatively, at least one of acquisition module 410, conversion module 420, parsing module 430, and processing module 440 may be at least partially implemented as a computer program module that, when executed, performs the corresponding functionality.

[0155] Figure 5 A block diagram of an electronic device suitable for implementing the above method according to an embodiment of the present application is schematically shown.

[0156] like Figure 5As shown, an electronic device 500 according to an embodiment of the present application includes a processor 501, which can perform various appropriate actions and processes based on a program stored in a read-only memory (ROM) 502 or a program loaded from a storage unit 508 into a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present application.

[0157] Various programs and data required for the operation of the electronic device 500 are stored in the RAM 503. The processor 501, ROM 502, and RAM 503 are connected to each other via a bus 504. The processor 501 performs various operations of the method flow according to the embodiment of the present application by executing the programs in the ROM 502 and / or RAM 503. It should be noted that the programs may also be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of the method flow according to the embodiment of the present application by executing the programs stored in the one or more memories.

[0158] According to an embodiment of the present application, electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to bus 504. Electronic device 500 may also include one or more of the following components connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including devices such as a cathode ray tube (CRT), liquid crystal display (LCD), and speakers; a storage section 508 including a hard disk; and a communication section 509 including a network interface card such as a LAN card or modem. Communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. Removable media 511, such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed in drive 510 as needed, so that computer programs read from the removable media can be installed into storage section 508 as needed.

[0159] This application also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiments of this application is implemented.

[0160] According to an embodiment of the present application, a computer-readable storage medium may be a non-volatile computer-readable storage medium, such as, but not limited to, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present application, a computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.

[0161] The embodiments of the present application also include a computer program product, which includes a computer program containing program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided in the embodiments of the present application.

[0162] The computer program executes the above functions defined in the system / device of the embodiment of the present application when the computer program is executed by the processor 501. According to the embodiment of the present application, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0163] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 509, and / or installed from a removable medium 511. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0164] In such an embodiment, the computer program can be downloaded and installed from the network via the communication section 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present application are performed. According to the embodiment of the present application, the systems, devices, means, modules, units, etc. described above can be implemented by computer program modules.

[0165] According to an embodiment of the present application, the program code for executing the computer program provided by the embodiment of the present application can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).

[0166] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0167] Those skilled in the art will appreciate that the features described in the various embodiments of this application may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in this application. In particular, the features described in the various embodiments of this application may be combined and / or coupled in various ways without departing from the spirit and teachings of this application. All such combinations and / or couplings fall within the scope of this application.

[0168] The embodiments of the present application have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present application. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be advantageously used in combination. The present application does not depart from the scope of the present application, and those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present application.

Claims

1. A message processing method, characterized in that: The method comprises: Obtaining at least one initial message uploaded by at least one transaction channel; For each of the initial messages, performing format conversion on the initial message to obtain an intermediate message in a target format and message parameters corresponding to the initial message, and storing the message parameters in message context information; Determining a target parsing strategy corresponding to the transaction channel from a strategy mapping table, and parsing the intermediate message using the target parsing strategy to obtain transaction parameters and a target message; The transaction parameters are written into the message context information, so as to perform message processing on the target message based on the message context information.

2. The method according to claim 1, characterized in that The message parameters include the protocol information of the transaction channel and multiple field elements of the initial message; Determining the target parsing strategy corresponding to the transaction channel from the strategy mapping table includes: Acquiring the protocol information from the message context information; The protocol information is searched in the policy mapping table, and an initial parsing policy corresponding to the protocol information is determined as the target parsing policy.

3. The method according to claim 1, characterized in that Parsing the intermediate message using the target parsing strategy to obtain transaction parameters and a target message includes: Parsing the intermediate message using the target parsing strategy to obtain the target message; The transaction parameters are extracted from the target message, wherein the transaction parameters include transaction code information and channel identification information.

4. The method according to claim 1, wherein The transaction parameters include at least one of transaction type information, transaction code information and channel identification information; The performing message processing on the target message based on the message context information includes: For any parameter information in the transaction parameters, generating a parameter judgment result according to the parameter information and parameter condition information; The target message is processed based on the multiple parameter judgment results.

5. The method according to claim 4, characterized in that Generate a parameter judgment result based on the parameter information and parameter condition information, including: If the parameter information satisfies the parameter condition information, generating a first judgment result; In a case where the parameter information does not satisfy the parameter condition information, a second judgment result is generated, wherein the parameter judgment result includes the first judgment result or the second judgment result.

6. The method according to claim 5, characterized in that Processing the target message based on the multiple parameter judgment results includes: When the plurality of parameter judgment results are all the first judgment results, performing data decryption processing on the target message to obtain decrypted information; Performing format conversion on the decrypted information to obtain converted decrypted information; When the parameter judgment result corresponding to the channel identification information is the second judgment result, performing format conversion on the target message to obtain converted message information; The method further comprises: In the case of the data decryption and / or the format conversion, generating a processing status result, wherein the processing status result indicates whether the data decryption and / or the format conversion is successful; At least one of the processing status result, the decryption information, the converted decryption information, and the converted message information is stored in the message context information.

7. The method according to claim 1, characterized in that Also includes: storing the acquired acquisition time and acquisition occupied resource information of the initial message, the conversion time of format conversion and the conversion occupied resource information, and the parsing time and parsing occupied resource information of the intermediate message in the message context information; A step time consumption chart and a resource occupancy chart are generated according to the message context information.

8. The method according to claim 1, characterized in that Also includes: For each of the initial messages, if parsing of the intermediate message fails, generating a parsing failure result; In the case where message processing fails for the target message, generating a message processing failure result, wherein the failure result includes the parsing failure result and the message processing failure result; Assembling at least one of the intermediate messages and / or the target message that are the failure result to obtain a failure message; The failure message is formatted to obtain a problem feedback message, and the problem feedback message is transmitted to the transaction channel.

9. A message processing device, characterized in that: The device comprises: an acquisition module, configured to acquire at least one initial message uploaded by at least one transaction channel; a conversion module, configured to perform format conversion on each of the initial messages, obtain an intermediate message in a target format and message parameters corresponding to the initial message, and store the message parameters in message context information; a parsing module, configured to determine a target parsing strategy corresponding to the transaction channel from a strategy mapping table, and parse the intermediate message using the target parsing strategy to obtain transaction parameters and a target message; A processing module is configured to write the transaction parameters into the message context information so as to perform message processing on the target message based on the message context information.

10. An electronic device comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 8.

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

12. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.