Message processing method and device, computer equipment, readable storage medium and program product

By implementing abnormal detection of messages to be sent on the message sending end and receiving end query, the problem of repeated sending in message interaction is solved, efficient message processing is achieved, economic losses are reduced and user experience is improved.

CN119402388AActive Publication Date: 2025-02-07CHINA CONSTRUCTION BANK +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411380210.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-02-07
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

When interacting with messages between financial institutions, there may be abnormal messages sending, such as repeated sending, resulting in huge economic losses.

Method used

Provide a message processing method, by obtaining the information of the message to be sent, determining whether it is an abnormal message, and sending a query request to the message receiving end when necessary, confirming its reception status before deciding whether to send a message.

Benefits of technology

It effectively avoids the sending of duplicate messages, reduces economic losses, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402388A_ABST
    Figure CN119402388A_ABST
Patent Text Reader

Abstract

The invention relates to the field of data processing, and particularly discloses a message processing method and device, computer equipment, a readable storage medium and a program product. The method comprises the steps of obtaining a message to be sent, determining whether the message to be sent is an abnormal message or not according to message information of the message to be sent, sending a query request to a message receiving end under the condition that the message to be sent is a non-abnormal message, and then receiving a query result sent by the message receiving end, when the query result is that the message receiving end does not receive the to-be-sent message, the to-be-sent message is sent to the message receiving end; the query request is used for querying whether the message receiving end receives the to-be-sent message or not. According to the method, through two times of abnormal message inspection, the message sending end performs abnormal message inspection according to the message information of the to-be-sent message for the first time, and queries whether the message receiving end receives the to-be-sent message for the second time, so that the abnormal to-be-sent message is prevented from being sent to the message receiving end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a message processing method, apparatus, computer equipment, readable storage medium and program product. Background Art

[0002] Against the backdrop of global operations of large financial institutions and the booming development of financial technology, all financial institutions need to exchange messages based on their corresponding businesses. However, when exchanging messages between financial institutions, message sending anomalies (for example, repeated message sending, missing message sending, etc.) may occur. In particular, repeated message sending anomalies may cause huge losses to the financial institutions.

[0003] At present, in the case of repeated message sending exceptions, technical personnel are required to obtain the message sending log, and check the message sending records in the message sending log one by one to obtain the repeated messages and withdraw the repeated messages.

[0004] Therefore, how to effectively avoid sending duplicate messages to the receiving end becomes an urgent problem to be solved. Summary of the invention

[0005] Based on this, it is necessary to provide a message processing method, apparatus, computer equipment, readable storage medium and program product that can efficiently avoid sending duplicate messages in response to the above technical problems.

[0006] In a first aspect, the present application provides a message processing method, which is applied to a message sending end, comprising:

[0007] Get the message to be sent;

[0008] Determine whether the message to be sent is an abnormal message according to the message information of the message to be sent;

[0009] When the message to be sent is not an abnormal message, a query request is sent to the message receiving end; the query request is used to query whether the message receiving end has received the message to be sent;

[0010] The query result sent by the message receiving end is received, and when the query result is that the message receiving end has not received the message to be sent, the message to be sent is sent to the message receiving end.

[0011] In one embodiment, the message information includes the sending time, delivery date, status and number of the message to be sent, and determining whether the message to be sent is an abnormal message according to the message information of the message to be sent includes:

[0012] Determine whether the message to be sent meets the sending conditions according to the sending time, delivery date and status of the message to be sent; the sending conditions include whether the sending time is within the preset time range, or whether the delivery date meets the preset delivery date rules, or whether the status is an abnormal state;

[0013] If the message to be sent does not meet the sending condition, the message to be sent is determined to be an abnormal message;

[0014] If the message to be sent meets the sending condition, it is determined whether the message to be sent is an abnormal message according to the state and number of the message to be sent.

[0015] In one of the embodiments, the step of determining whether the message to be sent is an abnormal message according to the state and number of the message to be sent includes:

[0016] Determine whether the state of the message to be sent is a temporary state;

[0017] If yes, it is determined that the message to be sent is not an abnormal message;

[0018] If not, determine whether the message to be sent is an abnormal message according to the number of the message to be sent.

[0019] In one of the embodiments, the step of determining whether the message to be sent is an abnormal message according to the number of the message to be sent includes:

[0020] Obtain the message record of the sent message, and check whether the number of the message to be sent exists in the message record of the sent message;

[0021] If it exists, determine whether the message to be sent is an abnormal message according to the record in the message record that has the same number as the message to be sent;

[0022] If it does not exist, the message to be sent is determined to be a normal message.

[0023] In one embodiment, the step of determining whether the message to be sent is an abnormal message according to a record in the message record that is consistent with the number of the message to be sent includes:

[0024] If the record in the message record that is consistent with the number of the message to be sent meets the first preset condition, the message to be sent is determined to be an abnormal message; the first preset condition includes that the processing status is successful, or the response status is successful and the processing status is invalid;

[0025] If the record in the message record that is consistent with the number of the message to be sent meets the second preset condition, the message to be sent is determined to be a non-abnormal message; the second preset condition includes that the response status is processing failure, or the response status is processing success and the processing status is processing failure.

[0026] In one embodiment, the method further comprises:

[0027] In the case that the message to be sent is an abnormal message, the state of the message to be sent is updated to a repeated sending state, and the sending of the message to be sent to the message receiving end is stopped.

[0028] In one embodiment, the method further comprises:

[0029] If the query result shows that there is a message with the same number as the message to be sent at the message receiving end, the state of the message to be sent is updated to a sent state, and the sending of the message to be sent to the message receiving end is stopped.

[0030] In one embodiment, the method further comprises:

[0031] Receive message reply information sent by the message receiving end; the message reply information includes message reception success information, message reception failure information, message reception unknown information or message sending timeout information;

[0032] If the message reply information is message reception success information, the status of the message to be sent is updated to the sent status, and the status of the message to be sent is recorded as the sent success status in the message record of the sent message;

[0033] If the message reply information is message reception failure information, the status of the message to be sent is updated to a sending failure status, and the status of the message to be sent is recorded as a sending failure status in the message record of the sent message;

[0034] If the message reply information is message reception unknown information or message sending timeout information, an abnormal message alarm message is issued, and the status of the message to be sent is recorded as message reception unknown status or sending timeout status in the message record of the sent message.

[0035] In a second aspect, the present application provides a message processing method, which is applied to a message receiving end, comprising:

[0036] Receive a query request sent by a message sender;

[0037] According to the number of the message to be sent carried in the query request, query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain the query result;

[0038] Send the query result to the message sending end;

[0039] Receives the message to be sent from the message sender.

[0040] In one embodiment, the method further comprises:

[0041] The status of the message to be sent is obtained, and the message reply information is determined according to the status of the message to be sent; the message reply information includes message reception success information, message reception failure information, message reception unknown or message sending timeout.

[0042] In a third aspect, the present application further provides a message processing device, including:

[0043] An acquisition module, used to acquire messages to be sent;

[0044] A determination module, used to determine whether the message to be sent is an abnormal message according to the message information of the message to be sent;

[0045] The first sending module is used to send a query request to the message receiving end when the message to be sent is not an abnormal message; the query request is used to query whether the message receiving end has received the message to be sent;

[0046] The second party module is used to receive the query result sent by the message receiving end, and when the query result is that the message receiving end has not received the message to be sent, send the message to be sent to the message receiving end.

[0047] In one embodiment, the message information includes the sending time, delivery date, status and number of the message to be sent, and the determination module includes:

[0048] A first determination unit is used to determine whether the message to be sent meets the sending condition according to the sending time, delivery date and status of the message to be sent; the sending condition includes whether the sending time is within a preset time range, or whether the delivery date meets the preset delivery date rule, or whether the status is an abnormal state;

[0049] A second determining unit, configured to determine that the message to be sent is an abnormal message if the message to be sent does not meet the sending condition;

[0050] The third determining unit is configured to determine whether the message to be sent is an abnormal message according to the state and number of the message to be sent if the message to be sent meets the sending condition.

[0051] In one of the embodiments, the third determination unit is specifically used to: determine whether the state of the message to be sent is a temporary state; if so, determine that the message to be sent is a non-abnormal message; if not, determine whether the message to be sent is an abnormal message based on the number of the message to be sent.

[0052] In one of the embodiments, the above-mentioned third determination unit is specifically used to: obtain the message record of the sent message, and query whether the number of the message to be sent exists in the message record of the sent message; if exists, determine whether the message to be sent is an abnormal message based on the record in the message record that is consistent with the number of the message to be sent; if not, determine the message to be sent as a non-abnormal message.

[0053] In one of the embodiments, the above-mentioned third determination unit is specifically used to: if the record in the message record that is consistent with the number of the message to be sent meets the first preset condition, the message to be sent is determined as an abnormal message; the first preset condition includes the processing status being successful, or the response status is successful and the processing status is an invalid state; if the record in the message record that is consistent with the number of the message to be sent meets the second preset condition, the message to be sent is determined as a non-abnormal message; the second preset condition includes the response status being failed, or the response status is successful and the processing status is failed.

[0054] In one of the embodiments, the above-mentioned device further includes: a first updating module, which is used to update the state of the message to be sent to a repeated sending state and stop sending the message to be sent to the message receiving end when the message to be sent is an abnormal message.

[0055] In one of the embodiments, the above-mentioned device also includes: a second update module, which is used to update the status of the message to be sent to a sent status and stop sending the message to be sent to the message receiving end when the query result shows that there is a message with the same number as the message to be sent at the message receiving end.

[0056] In one embodiment, the above device further comprises:

[0057] A receiving module receives a message reply message sent by a message receiving end; the message reply message includes message receiving success message, message receiving failure message, message receiving unknown message or message sending timeout message;

[0058] The third updating module updates the status of the message to be sent to the sent status if the message reply information is the message receiving success information, and records the status of the message to be sent as the sending success status in the message record of the sent message;

[0059] The fourth updating module updates the status of the message to be sent to a sending failure status if the message reply information is message reception failure information, and records the status of the message to be sent as a sending failure status in the message record of the sent message;

[0060] The fifth update module issues abnormal message alarm information if the message reply information is unknown message reception information or message sending timeout information, and records the status of the message to be sent as unknown message reception status or sending timeout status in the message record of the sent message.

[0061] In a fourth aspect, a message processing device is also provided, which is applied to a message receiving end, and includes:

[0062] A first receiving module, used for receiving a query request sent by a message sending end;

[0063] The acquisition module is used to query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end according to the number of the message to be sent carried in the query request, and obtain the query result;

[0064] A sending module, used for sending the query result to the message sending end;

[0065] The second receiving module is used to receive the message to be sent sent by the message sending end.

[0066] In one of the embodiments, the above-mentioned device also includes: a determination module, used to obtain the status of the message to be sent, and determine the message reply information according to the status of the message to be sent; the message reply information includes message reception success information, message reception failure information, message reception unknown or message sending timeout.

[0067] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0068] Get the message to be sent;

[0069] Determine whether the message to be sent is an abnormal message according to the message information of the message to be sent;

[0070] When the message to be sent is not an abnormal message, a query request is sent to the message receiving end; the query request is used to query whether the message receiving end has received the message to be sent;

[0071] The query result sent by the message receiving end is received, and when the query result is that the message receiving end has not received the message to be sent, the message to be sent is sent to the message receiving end.

[0072] In a sixth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0073] Receive a query request sent by a message sender;

[0074] According to the number of the message to be sent carried in the query request, query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain the query result;

[0075] Send the query result to the message sending end;

[0076] Receives the message to be sent from the message sender.

[0077] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0078] Get the message to be sent;

[0079] Determine whether the message to be sent is an abnormal message according to the message information of the message to be sent;

[0080] When the message to be sent is not an abnormal message, a query request is sent to the message receiving end; the query request is used to query whether the message receiving end has received the message to be sent;

[0081] The query result sent by the message receiving end is received, and when the query result is that the message receiving end has not received the message to be sent, the message to be sent is sent to the message receiving end.

[0082] In an eighth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0083] Receive a query request sent by a message sender;

[0084] According to the number of the message to be sent carried in the query request, query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain the query result;

[0085] Send the query result to the message sending end;

[0086] Receives the message to be sent from the message sender.

[0087] In a ninth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0088] Get the message to be sent;

[0089] Determine whether the message to be sent is an abnormal message according to the message information of the message to be sent;

[0090] When the message to be sent is not an abnormal message, a query request is sent to the message receiving end; the query request is used to query whether the message receiving end has received the message to be sent;

[0091] The query result sent by the message receiving end is received, and when the query result is that the message receiving end has not received the message to be sent, the message to be sent is sent to the message receiving end.

[0092] In a ninth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0093] Receive a query request sent by a message sender;

[0094] According to the number of the message to be sent carried in the query request, query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain the query result;

[0095] Send the query result to the message sending end;

[0096] Receives the message to be sent from the message sender.

[0097] The message processing method, device, computer equipment, readable storage medium and program product mentioned above, the method performs two abnormal message checks, namely, the first time the message sending end performs an abnormal message check based on the message information of the message to be sent, and the second time queries whether the message receiving end has received the message to be sent, thereby avoiding the possibility of sending abnormal messages to be sent to the message receiving end, causing adverse effects such as information explosion; in addition, for special messages in the financial industry (for example, messages with a large single payment amount), the method can effectively avoid sending duplicate messages to be sent to the receiving end, thereby greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0098] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0099] Figure 1 An application environment diagram of a message processing method in an embodiment;

[0100] Figure 2 A schematic diagram of a flow chart of a message processing method in an embodiment;

[0101] Figure 3A schematic diagram of a flow chart of a message processing method in another embodiment;

[0102] Figure 4 A schematic diagram of a flow chart of a message processing method in another embodiment;

[0103] Figure 5 A schematic diagram of a flow chart of a message processing method in another embodiment;

[0104] Figure 6 A schematic diagram of a flow chart of a message processing method in another embodiment;

[0105] Figure 7 A schematic diagram of a flow chart of a message processing method in another embodiment;

[0106] Figure 8 A schematic diagram of a flow chart of a message processing method in another embodiment;

[0107] Fig. 9 A schematic diagram of a flow chart of a message processing method in another embodiment;

[0108] Fig.10 A schematic diagram of a flow chart of a message processing method in another embodiment;

[0109] Fig.11 A schematic diagram of a flow chart of a message processing method in another embodiment;

[0110] FIG12 is a structural block diagram of a message processing device in one embodiment;

[0111] FIG13 is a structural block diagram of a message processing device in one embodiment;

[0112] Fig.14 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0113] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. It should be noted that in the embodiments of the present application, certain software, groups, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0114] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with relevant provisions of national laws and regulations.

[0115] Against the backdrop of global operations of large financial institutions and the booming development of financial technology, all financial institutions need to exchange messages based on their corresponding businesses. However, when exchanging messages between financial institutions, message sending anomalies (for example, repeated message sending, missing message sending, etc.) may occur. In particular, repeated message sending anomalies may cause huge losses to the financial institutions.

[0116] At present, in the case of repeated message sending anomalies, technicians are required to obtain message sending logs, and conduct one-by-one investigations based on the message sending records in the message sending logs to obtain the repeated messages, and withdraw the repeated messages. Therefore, how to efficiently avoid the sending of repeated messages has become a problem to be solved. This application aims to solve this problem.

[0117] After introducing the background technology of the message processing method provided by the embodiment of the present application, the implementation environment involved in the message processing method provided by the embodiment of the present application will be briefly described below. The message processing method provided by the embodiment of the present application can be applied to Figure 1 In the implementation environment shown. Figure 1 The implementation environment shown includes at least a message sending end 101 and a message receiving end 102. It should be noted that any end in the implementation environment can be designated as the message sending end 101 or the message receiving end 102, and all ends except any end in the implementation environment can be identified as the message receiving end 102 and the message sending end 101. In the implementation environment, the message sending end 101 can send a task instruction to the message receiving end 102 to instruct the message receiving end 102 to perform a corresponding task according to the instruction, and the message receiving end 102 can also send a task instruction to the message sending end 101 to instruct the message sending end 101 to perform a corresponding task according to the instruction. In addition, the message sending end 101 can also send a message to the message receiving end 102, and the message receiving end 102 can also send a message to the message sending end 101. It should be noted that the message sending end 101 and the message receiving end 102 can be connected through a communication network.

[0118] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0119] In one embodiment, Figure 2 As shown, a message processing method is provided, which is applied to Figure 1 Taking the message sending end 101 in the example as an example, the following steps are included:

[0120] S201. Obtain a message to be sent.

[0121] In an embodiment of the present application, when a message to be sent needs to be sent to a message receiving end, in order to avoid repeated sending of the message to be sent, it is necessary to perform a repeatability check on the message to be sent. At this time, one or more messages to be sent can be obtained from the message to be sent report of the message sending end, or the message to be sent list can be queried to obtain any one of the messages to be sent in the message to be sent list or all the messages to be sent in the message to be sent list.

[0122] S202: Determine whether the message to be sent is an abnormal message according to the message information of the message to be sent.

[0123] The abnormal message refers to a repeated message, that is, before the message to be sent is sent this time, the message sender has sent a message that is consistent with the message to be sent to the message receiver.

[0124] The message information includes the sending time, delivery date, status and number of the message.

[0125] In an embodiment of the present application, after the message to be sent is obtained as described above, it can be determined whether the message to be sent is an abnormal message based on information such as the sending time, delivery date, status and number of the message to be sent.

[0126] Optionally, the message to be sent may be subjected to abnormality detection in sequence according to the sending time, delivery date, status and number of the message to be sent to determine whether the message to be sent is an abnormal message.

[0127] Optionally, the message to be sent may be detected for abnormality in sequence according to at least one of the sending time, delivery date, status and number of the message to be sent to determine whether the message to be sent is an abnormal message.

[0128] S203: When the message to be sent is not an abnormal message, a query request is sent to the message receiving end.

[0129] The query request is used to query whether the message receiving end has received the message to be sent.

[0130] In an embodiment of the present application, when it is determined that the message to be sent is a non-abnormal message based on the message information of the message to be sent, the message sending end can send a query request to the message receiving end to query whether the message receiving end has received the message to be sent.

[0131] Optionally, the query request may include identification information of the message to be sent (for example, numbering information). After the message sending end sends the query request to the message receiving end, the message receiving end queries the message database of the message receiving end based on the numbering information of the message to be sent in the query request to see whether there is a message with the same number as the message to be sent. If so, it means that the message receiving end has previously received a message that is consistent with the message to be sent, and a query result indicating that the message to be sent has been received is generated. If not, it means that the message receiving end has not previously received a message that is consistent with the message to be sent, and a query result indicating that the message to be sent has not been received is generated.

[0132] S204: Receive a query result sent by the message receiving end, and if the query result is that the message receiving end has not received the message to be sent, send the message to be sent to the message receiving end.

[0133] In an embodiment of the present application, after the message receiving end generates a query result and sends the query result to the message receiving end, the message sending end receives the query result sent by the message receiving end, and if the query result is that the message receiving end has not received the message to be sent, the message to be sent is sent to the message receiving end.

[0134] The message processing method provided in the embodiment of the present application is applied to the message sending end, obtains the message to be sent, and determines whether the message to be sent is an abnormal message according to the message information of the message to be sent, and in the case that the message to be sent is a non-abnormal message, sends a query request to the message receiving end, then receives the query result sent by the message receiving end, and sends the message to be sent to the message receiving end when the query result is that the message receiving end has not received the message to be sent; the query request is used to query whether the message receiving end has received the message to be sent. The above method performs two abnormal message checks, that is, the first time the message sending end performs an abnormal message check according to the message information of the message to be sent, and the second time queries whether the message receiving end has received the message to be sent, thereby avoiding the possibility of sending abnormal messages to be sent to the message receiving end, causing adverse effects such as information explosion; in addition, for special messages in the financial industry (for example, messages with a large single payment amount), the above method can effectively avoid sending repeated messages to be sent to the receiving end, greatly improving the user experience.

[0135] In one embodiment, Figure 2 Based on the embodiment shown, the above message information includes the sending time, delivery date, status and number of the message, and the process of determining whether the message to be sent is an abnormal message can be described, such as Figure 3 As shown, the above S202 "determining whether the message to be sent is an abnormal message according to the message information of the message to be sent" includes:

[0136] S301. Determine whether the message to be sent meets the sending conditions according to the sending time, delivery date and status of the message to be sent. If the message to be sent does not meet the sending conditions, execute the following S302. If the message to be sent meets the sending conditions, execute the following S303.

[0137] Among them, the sending conditions include whether the sending time is within the preset time range, or whether the delivery date meets the preset delivery date rules, or whether the status is an abnormal state. Exemplarily, the preset time range refers to the channel window time range of the message sending end and the message receiving end, the preset delivery date rules refer to the delivery date rules of the currency corresponding to the message to be sent, and the abnormal status includes frozen status, abnormal status, etc. Determining whether the message to be sent meets the sending conditions is to prevent the interface from being modified during the message processing.

[0138] In an embodiment of the present application, after the message to be sent is obtained as mentioned above, it can be determined in turn whether the sending time of the message to be sent is within the preset time range, whether the delivery date complies with the preset delivery date rules, and whether the status of the message to be sent is an abnormal state. If the sending time of the message to be sent is within the preset time range, the delivery date complies with the preset delivery date rules, and the status of the message to be sent is a non-abnormal state, the following S302 is executed; and if the sending time of the message to be sent is within the preset time range, the delivery date complies with the preset delivery date rules, and the status of the message to be sent is a non-abnormal state, the following S303 is executed.

[0139] S302: Determine that the message to be sent is an abnormal message.

[0140] In an embodiment of the present application, if the sending time of the message to be sent is within a preset time range, the delivery date meets the preset delivery date rules, and the state of the message to be sent is a non-abnormal state, the message to be sent is determined to be an abnormal message.

[0141] S303: Determine whether the message to be sent is an abnormal message according to the state and number of the message to be sent.

[0142] In an embodiment of the present application, if the sending time of the message to be sent is not within the preset time range, or the delivery date does not comply with the preset delivery date rule, or the status of the message to be sent is an abnormal state, then based on the status and number of the message to be sent, it is further determined whether the message to be sent is an abnormal message.

[0143] It should be noted that it is only necessary to determine that the sending time of the message to be sent is not within the preset time range, or that the delivery date does not comply with the preset delivery date rule, or that the status of the message to be sent is at least one of the abnormal states, then it can be determined whether the message to be sent is an abnormal message based on the status and number of the message to be sent.

[0144] Optionally, whether the message to be sent is an abnormal message may be determined based on whether the state of the message to be sent meets a preset state, or based on whether the number of the message to be sent meets a preset condition.

[0145] Optionally, the following provides a specific implementation method for determining whether a message to be sent is an abnormal message according to the state and number of the message to be sent, such as Figure 4 As shown, the above S303 "determine whether the message to be sent is an abnormal message according to the state and number of the message to be sent" includes:

[0146] S401, determine whether the state of the message to be sent is a temporary state, if the state of the message to be sent is a temporary state, execute the following S402, if the state of the message to be sent is not a temporary state, execute the following S403.

[0147] In an embodiment of the present application, when it is determined that the message to be sent meets the sending conditions, the message sending end can update the status of the message to be sent, that is, update the message to be sent from the original to-be-sent status to a temporary status, and after the status update is completed, further determine whether the status of the message to be sent is successfully updated to the temporary state. If the status of the message to be sent is successfully updated to the temporary state, execute the following S402; if the status of the message to be sent is not successfully updated to the temporary state, execute the following S403.

[0148] S402: Determine that the message to be sent is a normal message.

[0149] In the embodiment of the present application, if the state of the message to be sent is successfully updated to the temporary state, it is determined that the message to be sent is a non-abnormal message, and the next judgment step is continued.

[0150] S403: Determine whether the message to be sent is an abnormal message according to the number of the message to be sent.

[0151] In the embodiment of the present application, if the state of the message to be sent is not successfully updated to the temporary state, it is necessary to further determine whether the message to be sent is an abnormal message based on the number of the message to be sent.

[0152] Optionally, a specific implementation method for determining whether a message to be sent is an abnormal message is provided below, such as Figure 5As shown, the above S403 "determining whether the message to be sent is an abnormal message according to the number of the message to be sent" includes:

[0153] S501. Obtain the message record of the sent message, and query whether the number of the message to be sent exists in the message record of the sent message. If yes, execute the following S502; if not, execute the following S503.

[0154] Among them, the message record refers to the response status information and processing status information of the sent message, for example, the processing status information of the sent message is successful processing, or the response status information of the sent message is successful response and the processing status information is invalid processing, or the response status information of the sent message is failed response, or the response status information of the sent message is successful response and the processing status information is failed status.

[0155] In an embodiment of the present application, a message record of a sent message can be obtained from the message sending end, and based on the number of the message to be sent, it is queried in the message record of the sent message whether the number of the message to be sent exists. If the number of the message to be sent exists in the message record of the sent message, the following S502 is executed; if the number of the message to be sent does not exist in the message record of the sent message, the following S503 is executed.

[0156] S502: Determine whether the message to be sent is an abnormal message according to the record in the message record that has the same number as the message to be sent.

[0157] In an embodiment of the present application, if the message record of the sent message contains the number of the message to be sent, it is further determined whether the message to be sent is an abnormal message based on the record in the message record that is consistent with the number of the message to be sent.

[0158] Optionally, the record with the same number as the message to be sent in the message record can be determined according to the following rules to determine whether the message to be sent is an abnormal message, such as Figure 6 As shown, the above S502 "determining whether the message to be sent is an abnormal message according to the record in the message record that is consistent with the number of the message to be sent" includes:

[0159] S601: If a record in a message record having the same number as a message to be sent satisfies a first preset condition, the message to be sent is determined to be an abnormal message.

[0160] The first preset condition includes that the processing status is successful, or the response status is successful and the processing status is an invalid status.

[0161] In an embodiment of the present application, if the record in the message record that is consistent with the number of the message to be sent includes a processing status of successful processing, or the response status is successful processing and the processing status is an invalid status, then it is directly determined that the message to be sent is an abnormal message.

[0162] S602: If the record in the message record that is consistent with the number of the message to be sent meets the second preset condition, the message to be sent is determined to be a normal message.

[0163] The second preset condition includes that the response status is a processing failure, or that the response status is a processing success and the processing status is a processing failure.

[0164] In an embodiment of the present application, if the record in the message record that is consistent with the number of the message to be sent includes a response status of processing failure, or the response status is processing success and the processing status is processing failure, then it is directly determined that the message to be sent is a non-abnormal message.

[0165] S503: Determine the message to be sent as a non-abnormal message.

[0166] In an embodiment of the present application, if the number of the message to be sent does not exist in the message record of the sent message, the message to be sent is directly determined as a non-abnormal message.

[0167] The method for determining whether a message to be sent is an abnormal message provided in an embodiment of the present application determines whether the message to be sent is an abnormal message one by one by judging the sending time, delivery date, status and number of the message to be sent, thereby improving the accuracy of whether the message to be sent is an abnormal message determined by the message sending end, thereby further avoiding the possibility of sending an abnormal message to be sent to the message receiving end.

[0168] In one embodiment, Figure 2 Based on the embodiment shown, Figure 7 As shown, the above method also includes:

[0169] S205. When the message to be sent is an abnormal message, the state of the message to be sent is updated to a repeated sending state, and the message to be sent to the message receiving end is stopped.

[0170] In an embodiment of the present application, when it is determined that the message to be sent is an abnormal message based on the message information of the message to be sent, the status of the message to be sent can be directly updated to a repeated sending status, and the message to be sent to the message receiving end can be stopped.

[0171] The message processing method provided in the embodiment of the present application updates the status of the abnormal to-be-sent message to the repeated sending status, which can avoid the next message from being sent by mistake, thereby reducing certain economic losses; in addition, stopping the abnormal to-be-sent message from being sent to the message receiving end can avoid repeated message sending and improve the user experience. In addition, it can also avoid unknown anomalies in the subsequent processing process, resulting in the failure to update the to-be-sent or to-be-processed status to the sent status, and subsequent repeated sending.

[0172] In one embodiment, Figure 2 Based on the embodiment shown, Figure 8 As shown, the above method also includes:

[0173] S206: Receive message reply information sent by the message receiving end.

[0174] The message reply information includes message reception success information, message reception failure information, message reception unknown information or message sending timeout information.

[0175] In an embodiment of the present application, after the message sending end sends the message to be sent to the message receiving end, the message receiving end generates corresponding message reply information based on the reception status of the message to be sent, and returns the message reply information to the message sending end, so that the message sending end receives the message reply information sent by the message receiving end.

[0176] Optionally, if the message receiving end successfully receives the message to be sent, message reception success information is generated; if the message receiving end fails to receive the message to be sent, message reception failure information is generated; if the message receiving end does not receive the message to be sent, message reception unknown information is generated; if the message receiving end times out when receiving the message to be sent, message reception timeout information is generated.

[0177] S207: If the message reply information is message reception success information, the status of the message to be sent is updated to a sent status, and the status of the message to be sent is recorded as a sent success status in the message record of the sent message.

[0178] S208. If the message reply information is message reception failure information, the status of the message to be sent is updated to a sending failure status, and the status of the message to be sent is recorded as a sending failure status in the message record of the sent message.

[0179] S209: If the message reply information is message reception unknown information or message sending timeout information, abnormal message alarm information is issued, and the status of the message to be sent is recorded as message reception unknown status or sending timeout status in the message record of the sent message.

[0180] In an embodiment of the present application, if the message reply information is message reception success information, the status of the message to be sent is updated to the sent status, and the status of the message to be sent is recorded as the successful sending status in the message record of the sent message. If the message reply information is message reception failure information, the status of the message to be sent is updated to the sending failure status, and the status of the message to be sent is recorded as the sending failure status in the message record of the sent message. If the message reply information is message reception unknown information or message sending timeout information, abnormal message alarm information is issued, and the status of the message to be sent is recorded as the message reception unknown status or the sending timeout status in the message record of the sent message.

[0181] The message processing method provided in the embodiment of the present application modifies the status of the message to be sent through message reply information, and records the modified status of the message to be sent in the message record of the sent message, so as to serve as a basis for subsequent message duplication checks, thereby improving the message processing efficiency.

[0182] In one embodiment, Fig. 9 As shown, a message processing method is provided, which is applied to Figure 1 Taking the message receiving end 102 in the example as an example, the method includes the following steps:

[0183] S601: Receive a query request sent by a message sender.

[0184] In the embodiment of the present application, after the message sending end sends a query request to the message receiving end, the message receiving end receives the query request.

[0185] S602: According to the number of the message to be sent carried in the query request, query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain a query result.

[0186] The number of the message to be sent, such as a unique service number or a global tracking number + sequence number.

[0187] In an embodiment of the present application, after receiving a query request sent by a message sending end, it is possible to query in a message receiving database of a message receiving end whether there is a message consistent with the number of the message to be sent based on the number of the message to be sent carried in the query request, and obtain a query result that there is a message consistent with the number of the message to be sent, or a query result that there is no message consistent with the number of the message to be sent.

[0188] S603: Send the query result to the message sending end.

[0189] In an embodiment of the present application, after obtaining the query result that there is a message that is consistent with the number of the message to be sent, or after obtaining the query result that there is no message that is consistent with the number of the message to be sent, the message receiving end can send the query result to the message sending end.

[0190] S604: Receive a message to be sent from a message sender.

[0191] In an embodiment of the present application, after the message sending end sends the message to be sent to the message receiving end, the message receiving end receives the message to be sent sent by the message sending end, and generates corresponding message reply information based on the reception status of the message to be sent, and feeds back the message reply information to the message sending end.

[0192] This method performs two abnormal message checks, i.e., the first time the message sending end performs an abnormal message check based on the message information of the message to be sent, and the second time queries whether the message receiving end has received the message to be sent, thereby avoiding the possibility of sending abnormal messages to be sent to the message receiving end, causing adverse effects such as information explosion; in addition, for special messages in the financial industry (for example, messages with a large single payment amount), the above method can effectively avoid sending duplicate messages to be sent to the receiving end, thereby greatly improving the user experience.

[0193] In one embodiment, Fig. 9 Based on the embodiment shown, Fig.10 As shown, the above method also includes:

[0194] S605: Acquire the status of the message to be sent, and determine message reply information according to the status of the message to be sent.

[0195] The message reply information includes message reception success information, message reception failure information, message reception unknown information or message sending timeout information.

[0196] In an embodiment of the present application, after the message receiving end receives the message to be sent sent by the message sending end, it obtains the status of the message to be sent, generates corresponding message reply information according to the status of the message to be sent, and sends the corresponding message reply information to the message sending end.

[0197] Optionally, if the status of the message to be sent is a successful reception status, corresponding message reception success information is generated; if the status of the message to be sent is a failed reception status, corresponding message reception failure information is generated; if the status of the message to be sent is a unknown reception status, corresponding message reception unknown information is generated; if the status of the message to be sent is a timed-out reception status, corresponding message reception timeout information is generated.

[0198] In one embodiment, Fig.11As shown, a message processing method is also provided, including:

[0199] S10, obtaining the message to be sent;

[0200] S11, according to the sending time, delivery date and status of the message to be sent, determine whether the message to be sent meets the sending conditions. If the message to be sent does not meet the sending conditions, execute S12-S13; if the message to be sent meets the sending conditions, execute S14;

[0201] S12, determining that the message to be sent is an abnormal message;

[0202] S13. When the message to be sent is an abnormal message, the state of the message to be sent is updated to a repeated sending state, and the message to be sent is stopped from being sent to the message receiving end;

[0203] S14, determine whether the state of the message to be sent is a temporary state, if so, execute S15, if not, execute S16;

[0204] S15, determining that the message to be sent is a non-abnormal message;

[0205] S16, obtaining the message record of the sent message, and querying whether the number of the message to be sent exists in the message record of the sent message, if yes, executing S17, if not, executing S18;

[0206] S17, determining whether the message to be sent is an abnormal message according to the record in the message record that has the same number as the message to be sent;

[0207] S18, determining the message to be sent as a non-abnormal message;

[0208] S19. When the message to be sent is not an abnormal message, a query request is sent to the message receiving end;

[0209] S20, receiving a query request sent by the message sending end;

[0210] S21. According to the number of the message to be sent carried in the query request, query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain the query result;

[0211] S22, sending the query result to the message sending end;

[0212] S23, receiving the query result sent by the message receiving end;

[0213] S24. If the query result is that the message receiving end has not received the message to be sent, sending the message to be sent to the message receiving end;

[0214] S25, receiving a message to be sent from a message sending end;

[0215] S26. Obtain the status of the message to be sent, and determine the message reply information according to the status of the message to be sent;

[0216] S27, sending the message reply information to the message sending end;

[0217] S28, receiving the message reply information sent by the message receiving end, and modifying the state of the message to be sent according to the message reply information;

[0218] S29. When the query result shows that there is a message with the same number as the message to be sent at the message receiving end, the state of the message to be sent is updated to a sent state, and the sending of the message to be sent to the message receiving end is stopped.

[0219] The above method performs two abnormal message checks, i.e., the first time the message sending end performs an abnormal message check based on the message information of the message to be sent, and the second time queries whether the message receiving end has received the message to be sent, thereby avoiding the possibility of sending abnormal messages to be sent to the message receiving end, causing adverse effects such as information explosion; in addition, for special messages in the financial industry (for example, messages with a large single payment amount), the above method can effectively avoid sending duplicate messages to be sent to the receiving end, thereby greatly improving the user experience.

[0220] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0221] Based on the same inventive concept, the embodiment of the present application also provides a message processing device for implementing the message processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more message processing device embodiments provided below can refer to the limitations on the message processing method above, and will not be repeated here.

[0222] In an exemplary embodiment, as shown in FIG12 , a message processing device is provided, including: an acquisition module 10, a determination module 11, a first sending module 12, and a second sending module 13, wherein:

[0223] The acquisition module 10 is used to acquire the message to be sent.

[0224] The determination module 11 is used to determine whether the message to be sent is an abnormal message according to the message information of the message to be sent.

[0225] The first sending module 12 is used to send a query request to the message receiving end when the message to be sent is not an abnormal message; the query request is used to query whether the message receiving end has received the message to be sent.

[0226] The second sending module 13 is configured to receive a query result sent by the message receiving end, and if the query result is that the message receiving end has not received the message to be sent, send the message to be sent to the message receiving end.

[0227] In an exemplary embodiment, the message information includes the sending time, delivery date, status and number of the message to be sent, and the determination module 11 includes: a first determination unit, a second determination unit and a third determination unit, wherein:

[0228] The first determination unit is specifically used to determine whether the message to be sent meets the sending condition according to the sending time, delivery date and status of the message to be sent; the sending condition includes whether the sending time is within a preset time range, or whether the delivery date meets the preset delivery date rules, or whether the status is an abnormal state;

[0229] A second determining unit, specifically configured to determine that the message to be sent is an abnormal message if the message to be sent does not meet the sending condition;

[0230] The third determining unit is specifically configured to determine whether the message to be sent is an abnormal message according to the state and number of the message to be sent if the message to be sent meets the sending condition.

[0231] In an exemplary embodiment, the above-mentioned second determination unit is specifically used to determine whether the state of the message to be sent is a temporary state; if so, determine that the message to be sent is a non-abnormal message; if not, determine whether the message to be sent is an abnormal message based on the number of the message to be sent.

[0232] In an exemplary embodiment, the above-mentioned second determination unit is specifically used to obtain the message record of the sent message, and to query whether the number of the message to be sent exists in the message record of the sent message; if exists, it is determined whether the message to be sent is an abnormal message based on the record in the message record that is consistent with the number of the message to be sent; if not, the message to be sent is determined to be a non-abnormal message.

[0233] In an exemplary embodiment, the above-mentioned second determination unit is specifically used to determine the message to be sent as an abnormal message if the record in the message record that is consistent with the number of the message to be sent meets the first preset condition; the first preset condition includes the processing status being successful, or the response status is successful and the processing status is an invalid state; if the record in the message record that is consistent with the number of the message to be sent meets the second preset condition, the message to be sent is determined as a non-abnormal message; the second preset condition includes the response status being a processing failure, or the response status is a processing success and the processing status is a processing failure.

[0234] In an exemplary embodiment, the above-mentioned device also includes: a first updating module, which is used to update the state of the message to be sent to a repeated sending state when the message to be sent is an abnormal message, and stop sending the message to be sent to the message receiving end.

[0235] In an exemplary embodiment, the above-mentioned device also includes: a second update module, which is used to update the status of the message to be sent to a sent status and stop sending the message to be sent to the message receiving end when the query result is that there is a message with the same number as the message to be sent at the message receiving end.

[0236] In an exemplary embodiment, the above-mentioned apparatus further includes: a receiving module, a third updating module, a fourth updating module and a fifth updating module, wherein:

[0237] A receiving module, used to receive message reply information sent by a message receiving end; the message reply information includes message reception success information, message reception failure information, message reception unknown information or message sending timeout information;

[0238] A third updating module is used for updating the status of the message to be sent to the sent status if the message reply information is the message reception success information, and recording the status of the message to be sent as the sending success status in the message record of the sent message;

[0239] A fourth updating module, configured to update the status of the message to be sent to a sending failure status if the message reply information is message reception failure information, and record the status of the message to be sent as a sending failure status in the message record of the sent message;

[0240] The fifth update module is used to issue abnormal message alarm information if the message reply information is message reception unknown information or message sending timeout information, and record the status of the message to be sent as message reception unknown status or sending timeout status in the message record of the sent message.

[0241] In an exemplary embodiment, as shown in FIG13 , a message processing device is provided, including: a first receiving module 20, an acquiring module 21, a sending module 22, and a second receiving module 23, wherein:

[0242] A first receiving module 20, configured to receive a query request sent by a message sending end;

[0243] The acquisition module 21 is used to query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end according to the number of the message to be sent carried in the query request, and obtain the query result;

[0244] The sending module 22 is used to send the query result to the message sending end;

[0245] The second receiving module 23 is used to receive a message to be sent from a message sending end.

[0246] In an exemplary embodiment, the above-mentioned device also includes: a determination module, used to obtain the status of the message to be sent, and determine the message reply information according to the status of the message to be sent; the message reply information includes message reception success information, message reception failure information, message reception unknown or message sending timeout.

[0247] Each module in the above-mentioned message processing device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0248] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.14As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data of messages to be sent. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a message processing method is implemented.

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

[0250] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0251] Get the message to be sent;

[0252] Determine whether the message to be sent is an abnormal message according to the message information of the message to be sent;

[0253] When the message to be sent is not an abnormal message, a query request is sent to the message receiving end; the query request is used to query whether the message receiving end has received the message to be sent;

[0254] The query result sent by the message receiving end is received, and when the query result is that the message receiving end has not received the message to be sent, the message to be sent is sent to the message receiving end.

[0255] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0256] Determine whether the message to be sent meets the sending conditions according to the sending time, delivery date and status of the message to be sent; the sending conditions include whether the sending time is within the preset time range, or whether the delivery date meets the preset delivery date rules, or whether the status is an abnormal state;

[0257] If the message to be sent does not meet the sending condition, the message to be sent is determined to be an abnormal message;

[0258] If the message to be sent meets the sending condition, it is determined whether the message to be sent is an abnormal message according to the state and number of the message to be sent.

[0259] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0260] Determine whether the state of the message to be sent is a temporary state;

[0261] If yes, it is determined that the message to be sent is not an abnormal message;

[0262] If not, determine whether the message to be sent is an abnormal message according to the number of the message to be sent.

[0263] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0264] Obtain the message record of the sent message, and check whether the number of the message to be sent exists in the message record of the sent message;

[0265] If it exists, determine whether the message to be sent is an abnormal message according to the record in the message record that has the same number as the message to be sent;

[0266] If it does not exist, the message to be sent is determined to be a normal message.

[0267] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0268] If the record in the message record that is consistent with the number of the message to be sent meets the first preset condition, the message to be sent is determined to be an abnormal message; the first preset condition includes that the processing status is successful, or the response status is successful and the processing status is invalid;

[0269] If the record in the message record that is consistent with the number of the message to be sent meets the second preset condition, the message to be sent is determined to be a non-abnormal message; the second preset condition includes that the response status is processing failure, or the response status is processing success and the processing status is processing failure.

[0270] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0271] In the case that the message to be sent is an abnormal message, the state of the message to be sent is updated to a repeated sending state, and the sending of the message to be sent to the message receiving end is stopped.

[0272] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0273] If the query result shows that there is a message with the same number as the message to be sent at the message receiving end, the state of the message to be sent is updated to a sent state, and the sending of the message to be sent to the message receiving end is stopped.

[0274] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0275] Receive message reply information sent by the message receiving end; the message reply information includes message reception success information, message reception failure information, message reception unknown information or message sending timeout information;

[0276] If the message reply information is message reception success information, the status of the message to be sent is updated to the sent status, and the status of the message to be sent is recorded as the sent success status in the message record of the sent message;

[0277] If the message reply information is message reception failure information, the status of the message to be sent is updated to a sending failure status, and the status of the message to be sent is recorded as a sending failure status in the message record of the sent message;

[0278] If the message reply information is message reception unknown information or message sending timeout information, an abnormal message alarm message is issued, and the status of the message to be sent is recorded as message reception unknown status or sending timeout status in the message record of the sent message.

[0279] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0280] Receive a query request sent by a message sender;

[0281] According to the number of the message to be sent carried in the query request, query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain the query result;

[0282] Send the query result to the message sending end;

[0283] Receives the message to be sent from the message sender.

[0284] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0285] The status of the message to be sent is obtained, and the message reply information is determined according to the status of the message to be sent; the message reply information includes message reception success information, message reception failure information, message reception unknown or message sending timeout.

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

[0287] Get the message to be sent;

[0288] Determine whether the message to be sent is an abnormal message according to the message information of the message to be sent;

[0289] When the message to be sent is not an abnormal message, a query request is sent to the message receiving end; the query request is used to query whether the message receiving end has received the message to be sent;

[0290] The query result sent by the message receiving end is received, and when the query result is that the message receiving end has not received the message to be sent, the message to be sent is sent to the message receiving end.

[0291] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0292] Determine whether the message to be sent meets the sending conditions according to the sending time, delivery date and status of the message to be sent; the sending conditions include whether the sending time is within the preset time range, or whether the delivery date meets the preset delivery date rules, or whether the status is an abnormal state;

[0293] If the message to be sent does not meet the sending condition, the message to be sent is determined to be an abnormal message;

[0294] If the message to be sent meets the sending condition, it is determined whether the message to be sent is an abnormal message according to the state and number of the message to be sent.

[0295] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0296] Determine whether the state of the message to be sent is a temporary state;

[0297] If yes, it is determined that the message to be sent is not an abnormal message;

[0298] If not, determine whether the message to be sent is an abnormal message according to the number of the message to be sent.

[0299] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0300] Obtain the message record of the sent message, and check whether the number of the message to be sent exists in the message record of the sent message;

[0301] If it exists, determine whether the message to be sent is an abnormal message according to the record in the message record that has the same number as the message to be sent;

[0302] If it does not exist, the message to be sent is determined to be a normal message.

[0303] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0304] If the record in the message record that is consistent with the number of the message to be sent meets the first preset condition, the message to be sent is determined to be an abnormal message; the first preset condition includes that the processing status is successful, or the response status is successful and the processing status is invalid;

[0305] If the record in the message record that is consistent with the number of the message to be sent meets the second preset condition, the message to be sent is determined to be a non-abnormal message; the second preset condition includes that the response status is processing failure, or the response status is processing success and the processing status is processing failure.

[0306] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0307] In the case that the message to be sent is an abnormal message, the state of the message to be sent is updated to a repeated sending state, and the sending of the message to be sent to the message receiving end is stopped.

[0308] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0309] If the query result shows that there is a message with the same number as the message to be sent at the message receiving end, the state of the message to be sent is updated to a sent state, and the sending of the message to be sent to the message receiving end is stopped.

[0310] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0311] Receive message reply information sent by the message receiving end; the message reply information includes message reception success information, message reception failure information, message reception unknown information or message sending timeout information;

[0312] If the message reply information is message reception success information, the status of the message to be sent is updated to the sent status, and the status of the message to be sent is recorded as the sent success status in the message record of the sent message;

[0313] If the message reply information is message reception failure information, the status of the message to be sent is updated to a sending failure status, and the status of the message to be sent is recorded as a sending failure status in the message record of the sent message;

[0314] If the message reply information is message reception unknown information or message sending timeout information, an abnormal message alarm message is issued, and the status of the message to be sent is recorded as message reception unknown status or sending timeout status in the message record of the sent message.

[0315] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0316] Receive a query request sent by a message sender;

[0317] According to the number of the message to be sent carried in the query request, query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain the query result;

[0318] Send the query result to the message sending end;

[0319] Receives the message to be sent from the message sender.

[0320] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0321] The status of the message to be sent is obtained, and the message reply information is determined according to the status of the message to be sent; the message reply information includes message reception success information, message reception failure information, message reception unknown or message sending timeout.

[0322] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0323] Get the message to be sent;

[0324] Determine whether the message to be sent is an abnormal message according to the message information of the message to be sent;

[0325] When the message to be sent is not an abnormal message, a query request is sent to the message receiving end; the query request is used to query whether the message receiving end has received the message to be sent;

[0326] The query result sent by the message receiving end is received, and when the query result is that the message receiving end has not received the message to be sent, the message to be sent is sent to the message receiving end.

[0327] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0328] Determine whether the message to be sent meets the sending conditions according to the sending time, delivery date and status of the message to be sent; the sending conditions include whether the sending time is within the preset time range, or whether the delivery date meets the preset delivery date rules, or whether the status is an abnormal state;

[0329] If the message to be sent does not meet the sending condition, the message to be sent is determined to be an abnormal message;

[0330] If the message to be sent meets the sending condition, it is determined whether the message to be sent is an abnormal message according to the state and number of the message to be sent.

[0331] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0332] Determine whether the state of the message to be sent is a temporary state;

[0333] If yes, it is determined that the message to be sent is not an abnormal message;

[0334] If not, determine whether the message to be sent is an abnormal message according to the number of the message to be sent.

[0335] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0336] Obtain the message record of the sent message, and check whether the number of the message to be sent exists in the message record of the sent message;

[0337] If it exists, determine whether the message to be sent is an abnormal message according to the record in the message record that has the same number as the message to be sent;

[0338] If it does not exist, the message to be sent is determined to be a normal message.

[0339] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0340] If the record in the message record that is consistent with the number of the message to be sent meets the first preset condition, the message to be sent is determined to be an abnormal message; the first preset condition includes that the processing status is successful, or the response status is successful and the processing status is invalid;

[0341] If the record in the message record that is consistent with the number of the message to be sent meets the second preset condition, the message to be sent is determined to be a non-abnormal message; the second preset condition includes that the response status is processing failure, or the response status is processing success and the processing status is processing failure.

[0342] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0343] In the case that the message to be sent is an abnormal message, the state of the message to be sent is updated to a repeated sending state, and the sending of the message to be sent to the message receiving end is stopped.

[0344] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0345] If the query result shows that there is a message with the same number as the message to be sent at the message receiving end, the state of the message to be sent is updated to a sent state, and the sending of the message to be sent to the message receiving end is stopped.

[0346] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0347] Receive message reply information sent by the message receiving end; the message reply information includes message reception success information, message reception failure information, message reception unknown information or message sending timeout information;

[0348] If the message reply information is message reception success information, the status of the message to be sent is updated to the sent status, and the status of the message to be sent is recorded as the sent success status in the message record of the sent message;

[0349] If the message reply information is message reception failure information, the status of the message to be sent is updated to a sending failure status, and the status of the message to be sent is recorded as a sending failure status in the message record of the sent message;

[0350] If the message reply information is message reception unknown information or message sending timeout information, an abnormal message alarm message is issued, and the status of the message to be sent is recorded as message reception unknown status or sending timeout status in the message record of the sent message.

[0351] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0352] Receive a query request sent by a message sender;

[0353] According to the number of the message to be sent carried in the query request, query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain the query result;

[0354] Send the query result to the message sending end;

[0355] Receives the message to be sent from the message sender.

[0356] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0357] The status of the message to be sent is obtained, and the message reply information is determined according to the status of the message to be sent; the message reply information includes message reception success information, message reception failure information, message reception unknown or message sending timeout.

[0358] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

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

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

Claims

1. A message processing method, characterized in that: Applied to a message sending end, the method comprises: Get the message to be sent; Determining whether the message to be sent is an abnormal message according to the message information of the message to be sent; In the case where the message to be sent is not an abnormal message, sending a query request to the message receiving end; the query request is used to query whether the message receiving end has received the message to be sent; A query result sent by the message receiving end is received, and when the query result is that the message receiving end has not received the message to be sent, the message to be sent is sent to the message receiving end.

2. The method according to claim 1, characterized in that The message information includes the sending time, delivery date, status and number of the message to be sent, and determining whether the message to be sent is an abnormal message according to the message information of the message to be sent includes: Determining whether the message to be sent meets a sending condition according to the sending time, delivery date and status of the message to be sent; the sending condition includes whether the sending time is within a preset time range, or whether the delivery date meets the preset delivery date rule, or whether the status is an abnormal state; If the message to be sent does not meet the sending condition, determining that the message to be sent is an abnormal message; If the message to be sent meets the sending condition, it is determined whether the message to be sent is an abnormal message according to the state and number of the message to be sent.

3. The method according to claim 2, characterized in that The determining, according to the status and number of the message to be sent, whether the message to be sent is an abnormal message includes: Determine whether the state of the message to be sent is a temporary state; If yes, determining that the message to be sent is a non-abnormal message; If not, determine whether the message to be sent is an abnormal message according to the number of the message to be sent.

4. The method according to claim 3, characterized in that The determining, according to the number of the message to be sent, whether the message to be sent is an abnormal message includes: Obtaining a message record of a sent message, and querying whether the message record of the sent message has the number of the message to be sent; If so, determining whether the message to be sent is an abnormal message according to the record in the message record that is consistent with the number of the message to be sent; If not, the message to be sent is determined to be a non-abnormal message.

5. The method according to claim 4, characterized in that The determining whether the message to be sent is an abnormal message according to the record in the message record that is consistent with the number of the message to be sent includes: If the record in the message record that is consistent with the number of the message to be sent meets the first preset condition, the message to be sent is determined as the abnormal message; the first preset condition includes that the processing status is successful, or the response status is successful and the processing status is an invalid state; If the record in the message record that is consistent with the number of the message to be sent meets the second preset condition, the message to be sent is determined to be the non-abnormal message; the second preset condition includes that the response status is processing failure, or the response status is processing success and the processing status is processing failure.

6. The method according to claim 1, characterized in that The method further comprises: In the case that the message to be sent is the abnormal message, the state of the message to be sent is updated to a repeated sending state, and the sending of the message to be sent to the message receiving end is stopped.

7. The method according to claim 1, characterized in that The method further comprises: When the query result is that there is a message with the same number as the message to be sent at the message receiving end, the state of the message to be sent is updated to a sent state, and sending the message to be sent to the message receiving end is stopped.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: Receiving message reply information sent by the message receiving end; the message reply information includes message reception success information, message reception failure information, message reception unknown information or message sending timeout information; If the message reply information is the message reception success information, the status of the message to be sent is updated to the sent status, and the status of the message to be sent is recorded as the sending success status in the message record of the sent message; If the message reply information is the message reception failure information, the status of the message to be sent is updated to a sending failure status, and the status of the message to be sent is recorded as a sending failure status in the message record of the sent message; If the message reply information is the message reception unknown information or the message sending timeout information, an abnormal message alarm message is issued, and the status of the message to be sent is recorded in the message record of the sent message as the message reception unknown status or the sending timeout status.

9. A message processing method, characterized in that: Applied to a message receiving end, the method comprises: Receive a query request sent by a message sender; According to the number of the message to be sent carried in the query request, query whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain a query result; Sending the query result to the message sending end; Receive the message to be sent sent by the message sending end.

10. The method according to claim 9, characterized in that The method further comprises: Obtain the status of the message to be sent, and determine the message reply information according to the status of the message to be sent; the message reply information includes message reception success information, message reception failure information, message reception unknown or message sending timeout.

11. A message processing device, characterized in that: Applied to a message sending end, the device comprises: An acquisition module, used to acquire messages to be sent; A determination module, used to determine whether the message to be sent is an abnormal message according to the message information of the message to be sent; A first sending module is used to send a query request to a message receiving end when the message to be sent is not an abnormal message; the query request is used to query whether the message receiving end has received the message to be sent; The second party module is used to receive the query result sent by the message receiving end, and when the query result is that the message receiving end has not received the message to be sent, send the message to be sent to the message receiving end.

12. The device according to claim 11, characterized in that The message information includes the sending time, delivery date, status and number of the message to be sent, and the determination module includes: A first determining unit, configured to determine whether the message to be sent meets a sending condition according to a sending time, a delivery date and a status of the message to be sent; the sending condition includes whether the sending time is within a preset time range, or whether the delivery date meets a preset delivery date rule, or whether the status is an abnormal state; A second determining unit, configured to determine that the message to be sent is an abnormal message if the message to be sent does not meet the sending condition; The third determining unit is configured to determine whether the message to be sent is an abnormal message according to the state and number of the message to be sent if the message to be sent meets the sending condition.

13. The device according to claim 12, characterized in that The third determination unit is specifically used to: determine whether the state of the message to be sent is a temporary state; if so, determine that the message to be sent is a non-abnormal message; if not, determine whether the message to be sent is an abnormal message according to the number of the message to be sent.

14. The device according to claim 13, characterized in that The third determination unit is specifically used to: obtain a message record of a sent message, and query whether the message record of the sent message has the number of the message to be sent; if so, determine whether the message to be sent is an abnormal message according to a record in the message record that is consistent with the number of the message to be sent; If not, the message to be sent is determined to be a non-abnormal message.

15. The device according to claim 14, characterized in that The third determination unit is specifically used to: if the record in the message record that is consistent with the number of the message to be sent meets the first preset condition, then the message to be sent is determined as the abnormal message; the first preset condition includes that the processing status is successful processing, or the response status is successful processing and the processing status is an invalid state; if the record in the message record that is consistent with the number of the message to be sent meets the second preset condition, then the message to be sent is determined as the non-abnormal message; the second preset condition includes that the response status is failed processing, or the response status is successful processing and the processing status is failed processing.

16. The device according to claim 11, characterized in that The device further includes: a first updating module, which is used to update the state of the message to be sent to a repeated sending state when the message to be sent is the abnormal message, and stop sending the message to be sent to the message receiving end.

17. The device according to claim 11, characterized in that The device also includes: a second updating module, which is used to update the status of the message to be sent to a sent status and stop sending the message to be sent to the message receiving end when the query result shows that there is a message with the same number as the message to be sent at the message receiving end.

18. The device according to any one of claims 11 to 17, characterized in that: The device also includes: A receiving module receives a message reply message sent by the message receiving end; the message reply message includes message reception success message, message reception failure message, message reception unknown message or message sending timeout message; A third updating module, if the message reply information is the message reception success information, updates the status of the message to be sent to the sent status, and records the status of the message to be sent as the sending success status in the message record of the sent message; A fourth updating module, if the message reply information is the message reception failure information, updates the state of the message to be sent to a sending failure state, and records in the message record of the sent message that the state of the message to be sent is a sending failure state; The fifth update module issues abnormal message alarm information if the message reply information is the message reception unknown information or the message sending timeout information, and records the status of the message to be sent as the message reception unknown status or the sending timeout status in the message record of the sent message.

19. A message processing device, characterized in that: Applied to a message receiving end, the device comprises: A first receiving module, used for receiving a query request sent by a message sending end; An acquisition module, configured to query, according to the number of the message to be sent carried in the query request, whether there is a message with the same number as the message to be sent in the message receiving database of the message receiving end, and obtain a query result; A sending module, used for sending the query result to the message sending end; The second receiving module is used to receive the message to be sent sent by the message sending end.

20. The device according to claim 19, characterized in that The device also includes: a determination module, which is used to obtain the status of the message to be sent and determine the message reply information according to the status of the message to be sent; the message reply information includes message reception success information, message reception failure information, message reception unknown or message sending timeout.

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

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

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

Citation Information

Patent Citations

  • Anomaly detection method based on power system protocol

    CN105306262A

  • Server state detection method and device

    CN108199914A

  • Communication method, application system, storage medium and program product

    CN116614345A

  • Transmission failure avoiding method in transmission / reception system

    JP2008205899A

  • Anomaly detection device, anomaly detection method, and recording medium

    US20200204395A1