Method, device, electronic device and storage medium for preventing repeated message transmission
By generating and judging the update status of the collection and payment flow information for anti-re-checking and processing, the problem of repeated sending of messages in financial market transactions is solved, and the uniqueness of the message content and the accuracy of the clearing service are realized.
Patent Information
- Application Number
- CN202210159322.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-21
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2042-02-21
AI Technical Summary
In financial market transactions, changes in transaction information or changes in receipt and payment flow information lead to the risk of repeated sending of messages, and the prior art is difficult to effectively process repeated sending messages, resulting in errors in clearing services.
By generating the collection and payment flow information, including the collection and payment flow number and version number, judging its update status, performing anti-repetition checks, determining the content of the target message, and performing anti-repetition processing based on the inspection results, ensuring the uniqueness and accuracy of the message content.
It effectively avoids the problem of repeated packet sending, reduces errors in clearing services, and improves the efficiency and accuracy of packet sending.
Smart Images

Figure CN114528286B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more specifically to a method, device, electronic device, and readable storage medium for preventing repeated message sending. Background Art
[0002] Financial market transactions send a large number of messages (such as clearing messages) every day to clear with trading partners, which are characterized by a large number of messages and large amounts of money involved. In actual production environments, changes in transaction information or payment flow information often occur, resulting in the need to resend clearing messages to trading partners. Due to the huge number of messages, when checking messages, it is generally necessary to check the messages at the end before sending them. When an unexpected situation occurs in the inspection system, there is a risk of repeated message sending. In addition, no effective operation is performed on the messages that have been sent repeatedly, resulting in errors in the clearing business and other problems. Summary of the invention
[0003] In view of the above problems, the present disclosure provides a method, device, electronic device, readable storage medium and computer program product for preventing repeated sending of messages, which can effectively implement anti-duplicate checks on sent messages, and can also perform anti-duplicate processing on repeatedly sent messages, effectively avoiding the problem of repeated message sending.
[0004] According to the first aspect of the present disclosure, a method for preventing repeated message sending is provided, the method including but not limited to: generating payment and collection flow information based on acquired transaction information, the payment and collection flow information at least including a payment and collection flow number and a payment and collection flow version number; generating message content at least based on the payment and collection flow information, the message content having a message type and message elements; judging whether the payment and collection flow information is updated, if the payment and collection flow information has been updated, performing anti-duplicate check on the corresponding message content based on the updated payment and collection flow information, and determining the target message content; performing anti-duplicate processing on at least one of the message contents based on the result of the anti-duplicate check, and sending the target message content to the target object, the target message content corresponding to the payment and collection flow information.
[0005] In some exemplary embodiments of the present disclosure, the determination of whether the payment and receipt flow information is updated, if the payment and receipt flow information has been updated, performing anti-duplication check on the corresponding message content according to the updated payment and receipt flow information, and determining the target message content includes: obtaining the payment and receipt flow version number of the payment and receipt flow information, if the payment and receipt flow version number is greater than the initial payment and receipt flow version number, determining that the payment and receipt flow information has been updated; obtaining the corresponding payment and receipt flow number and the current payment and receipt flow version number according to the updated payment and receipt flow information; generating the current message content according to the payment and receipt flow number and the current payment and receipt flow version number; comparing at least one original message content corresponding to the payment and receipt flow number in the database with the current message content, if the comparison results are consistent, determining that the original message content is the target message content; if the comparison results are inconsistent, determining that the current message content is the target message content.
[0006] In some exemplary embodiments of the present disclosure, the anti-duplicate processing of at least one message content according to the result of the anti-duplicate check includes: if the comparison results are inconsistent, judging the sending status and receipt status of the original message content; if the sending status of the original message content is successful sending and the receipt status is a successful receipt, sending an instruction to revoke the original message content to the target object; if the sending status of the original message is sent and the receipt status is a pending receipt, sending an instruction to delete the original message content to the target object; if the sending status of the original message content is pending sending or the receipt status is a sending failure, canceling the sending of the original message content to the target object.
[0007] In some exemplary embodiments of the present disclosure, comparing at least one original message content corresponding to the payment and receipt flow number in the database with the current message content includes: obtaining the message type and message elements of at least one original message content corresponding to the payment and receipt flow number in the database; obtaining the message type and message elements of the current message content; and comparing the message type and message elements of the original message content with the message type and message elements of the current message content one by one.
[0008] In some exemplary embodiments of the present disclosure, the message content includes a unique identifier corresponding to the payment and receipt flow information; the method further includes: acquiring the payment and receipt flow information corresponding to the message content in the database according to the unique identifier.
[0009] In some exemplary embodiments of the present disclosure, the unique identifier is composed of at least the payment and receipt flow number and the payment and receipt flow version number.
[0010] In some exemplary embodiments of the present disclosure, after generating the payment and receipt flow information, the method further includes: determining the correctness of the payment and receipt flow information.
[0011] In some exemplary embodiments of the present disclosure, the payment and receipt flow number is uniquely bound to the transaction information, and the payment and receipt flow version number changes as the payment and receipt flow information is updated.
[0012] In some exemplary embodiments of the present disclosure, after the payment and receipt flow information is updated, the information in the database is updated synchronously with the payment and receipt flow information.
[0013] The second aspect of the present disclosure provides a device for preventing repeated message sending, including: a first generation module, configured to generate payment and collection flow information based on the acquired transaction information, the payment and collection flow information at least including the payment and collection flow number and the payment and collection flow version number; a second generation module, configured to generate message content at least based on the payment and collection flow information, the message content having a message type and a message element; a judgment module, configured to judge whether the payment and collection flow information is updated, if the payment and collection flow information has been updated, perform anti-duplicate check on the corresponding message content according to the updated payment and collection flow information, and determine the target message content; a processing module, configured to perform anti-duplicate processing on at least one of the message contents according to the result of the anti-duplicate check, and send the target message content to the target object, the target message content corresponding to the payment and collection flow information.
[0014] In some exemplary embodiments of the present disclosure, the judgment module includes a judgment submodule, and the judgment submodule is configured to obtain the payment flow version number of the payment flow information, and if the payment flow version number is greater than the initial payment flow version number, determine that the payment flow information has been updated; obtain the corresponding payment flow number and the current payment flow version number according to the updated payment flow information; generate the current message content according to the payment flow number and the current payment flow version number; compare at least one original message content corresponding to the payment flow number in the database with the current message content, and if the comparison results are consistent, determine that the original message content is the target message content; if the comparison results are inconsistent, determine that the current message content is the target message content.
[0015] In some exemplary embodiments of the present disclosure, the processing module includes a processing sub-module, and the processing sub-module is configured to, if the comparison results are inconsistent, determine the sending status and receipt status of the original message content; if the sending status of the original message content is successful sending and the receipt status is a successful receipt, send an instruction to revoke the original message content to the target object; if the sending status of the original message content is sent and the receipt status is a pending receipt, send an instruction to delete the original message content to the target object; if the sending status of the original message content is to be sent or the receipt status is a failed sending, cancel the sending of the original message content to the target object.
[0016] In some exemplary embodiments of the present disclosure, the judgment submodule also includes a comparison submodule, which is configured to obtain the message type and message elements of at least one original message content corresponding to the payment and receipt flow number in the database; obtain the message type and message elements of the current message content; and compare the message type and message elements of the original message content with the message type and message elements of the current message content one by one.
[0017] In some exemplary embodiments of the present disclosure, the device for preventing repeated message sending also includes an acquisition submodule, which is configured to obtain the payment and receipt flow information corresponding to the message content in the database according to the unique identifier, and the message content includes the unique identifier corresponding to the payment and receipt flow information.
[0018] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing executable instructions, wherein when the executable instructions are executed by the processors, the method described above is implemented.
[0019] A fourth aspect of the present disclosure provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, implement the method described above.
[0020] A fifth aspect of the present disclosure provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method described above is implemented.
[0021] According to the embodiment of the present disclosure, the message content is checked for duplicate prevention by judging the update status of the payment and receipt flow information, and the target message content is determined. The target message content can be the newly generated message content or the original message content. The message content is further processed for duplicate prevention according to the result of the duplicate prevention check, and the duplicate message content can be effectively screened out. The method of the present disclosure can effectively avoid the problem of duplicate message content transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0023] Figure 1 A schematic diagram schematically shows a system architecture to which the method for preventing repeated message sending according to an embodiment of the present disclosure can be applied;
[0024] Figure 2 A flowchart of a method for preventing repeated message sending according to an embodiment of the present disclosure is schematically shown;
[0025] Figure 3A processing logic diagram of a method for preventing repeated message sending according to an embodiment of the present disclosure is schematically shown;
[0026] Figure 4 The flowchart of the method for preventing repeated message transmission in operation S230 according to an embodiment of the present disclosure is schematically shown;
[0027] Figure 5 A flowchart schematically shows the operation of the method for preventing repeated message sending according to an embodiment of the present disclosure on the original message content when the comparison results are inconsistent;
[0028] Figure 6 A schematic diagram showing a processing logic diagram of an operation on the original message content when the comparison results are inconsistent according to the method for preventing repeated message sending according to an embodiment of the present disclosure;
[0029] Figure 7 A flowchart schematically shows a method for preventing repeated message sending according to an embodiment of the present disclosure, in which the original message content is compared with the current message content;
[0030] Figure 8 A structural block diagram of a device for preventing repeated message transmission according to an embodiment of the present disclosure is schematically shown; and
[0031] Fig. 9 A block diagram of an electronic device suitable for implementing a method for preventing repeated message sending according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0032] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0033] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0034] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0035] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0036] In the technical solution disclosed in the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and do not violate public order and good morals.
[0037] In the technical solution of the present disclosure, operations such as acquisition, storage and application of user personal information are all authorized by the user.
[0038] In order to solve the problem that the repeated messages cannot be effectively checked and revoked in the related art, the present disclosure provides a method, device, electronic device, readable storage medium and computer program product for preventing repeated message sending. It can effectively realize the anti-duplicate check of the sent messages, and can also perform anti-duplicate processing on the repeatedly sent messages, effectively avoiding the problem of repeated message sending. Among them, the method for preventing repeated message sending includes but is not limited to: generating payment flow information according to the acquired transaction information, the payment flow information at least includes the payment flow number and the payment flow version number; generating message content at least according to the payment flow information, the message content has a message type and a message element; judging whether the payment flow information is updated, if the payment flow information has been updated, performing anti-duplicate check on the corresponding message content according to the updated payment flow information, and determining the target message content; performing anti-duplicate processing on at least one message content according to the result of the anti-duplicate check, and sending the target message content to the target object, and the target message content corresponds to the payment flow information.
[0039] According to the embodiment of the present disclosure, the message content is checked for duplicate prevention by judging the update status of the payment and receipt flow information, and the target message content is determined. The target message content can be the newly generated message content or the original message content. The message content is further processed for duplicate prevention according to the result of the duplicate prevention check, and the duplicate message content can be effectively screened out. The method of the present disclosure can effectively avoid the problem of duplicate message content transmission.
[0040] Figure 1 The schematic diagram schematically shows a system architecture to which the method for preventing repeated message transmission of the embodiment of the present disclosure can be applied. It should be noted that: Figure 1The examples shown are only examples of system architectures to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. It should be noted that the method and device for preventing duplicate message transmission provided by the embodiments of the present disclosure can be used in the fields of computer technology and finance, and can also be used in any field other than the financial field. The method and device for preventing duplicate message transmission provided by the embodiments of the present disclosure do not limit the application field.
[0041] like Figure 1 As shown, an exemplary system architecture 100 to which the method for preventing duplicate message transmission can be applied may include terminal devices 101, 102, a network 103, and a server 104. The network 103 is used to provide a medium for a communication link between the terminal devices 101, 102 and the server 104. The network 103 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0042] The user can use the terminal devices 101 and 102 to interact with the server 104 through the network 103 to receive or send messages, instructions, etc. Various payment client applications or various transaction client applications can be installed on the terminal devices 101 and 102, such as online banking client processing applications, shopping applications, mobile payment applications, public transportation payment applications, investment and financial management applications, etc. (only for example).
[0043] The terminal devices 101 and 102 may be various electronic devices having a display screen and supporting functions such as mobile payment and electronic transactions, including but not limited to tablet computers, laptop computers, and desktop computers.
[0044] The server 104 may be a server that provides various services, such as a background management server that provides support for transaction information or transaction data obtained by users using the terminal devices 101 and 102 (for example only). The background management server may analyze and process the received transaction information or transaction data such as user transaction requests, and feed back the processing results (such as transaction records or transaction data obtained or generated according to user requests) to the terminal device. It may also analyze or process the transaction data sent by the user, and feed back the processing results to the terminal device.
[0045] It should be noted that the method for preventing duplicate message transmission provided in the embodiment of the present disclosure can generally be executed by the server 104. Accordingly, the device for preventing duplicate message transmission provided in the embodiment of the present disclosure can generally be set in the server 104. The method for preventing duplicate message transmission provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 104 and can communicate with the terminal devices 101, 102 and / or the server 104. Accordingly, the device for preventing duplicate message transmission provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 104 and can communicate with the terminal devices 101, 102 and / or the server 104.
[0046] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0047] The following will be passed Figures 2 to 7 The method for preventing repeated message sending of the disclosed embodiment is described in detail.
[0048] Figure 2 The flowchart of the method for preventing repeated message sending according to an embodiment of the present disclosure is schematically shown.
[0049] like Figure 2 As shown, the process 200 of the method for preventing repeated message sending of the present disclosure includes operations S210 to S240.
[0050] In operation S210, payment and collection flow information is generated according to the acquired transaction information, and the payment and collection flow information at least includes a payment and collection flow number and a payment and collection flow version number.
[0051] In an embodiment of the present disclosure, the transaction information may be obtained from the transaction object, for example, and the transaction information includes multiple contents such as transaction time, transaction amount, transaction currency, transaction counterparty, transaction location, etc.
[0052] According to the transaction information obtained from the transaction object, the payment and receipt flow information is generated, and the payment and receipt flow information contains the detailed content of the transaction information, and the payment and receipt flow information also includes the payment and receipt flow number and the payment and receipt flow version number. The payment and receipt flow number corresponds to the transaction information. For example, each transaction information has a unique payment and receipt flow number. After the transaction is completed, the payment and receipt flow number corresponding to the transaction information is generated. The payment and receipt flow number is unique. According to the payment and receipt flow number, the corresponding payment and receipt flow information and the corresponding transaction information and other contents can be obtained.
[0053] The payment and receipt flow version number may be, for example, the version of the payment and receipt flow information. After the payment and receipt flow information is updated, modified or otherwise operated, the payment and receipt flow version number changes accordingly. Based on the payment and receipt flow version number, it is possible to effectively determine whether the payment and receipt flow information is updated or modified, thereby ensuring the accuracy of the payment and receipt flow information.
[0054] For example, when the front-end transaction personnel or the system finds that the transaction information is entered incorrectly, the entered transaction information is modified, and the modification is re-entered into the back-end processing to generate the corresponding payment and receipt flow information. For another example, the back-end transaction personnel modify the payment and receipt flow information, such as the remittance information, the message routing rules, etc. After the modification, the payment and receipt flow version number is updated according to the number of operations. For example, the payment and receipt flow information is generated according to the original transaction information, and the initial payment and receipt flow version number corresponding to the payment and receipt flow information is 01. After the original transaction information is modified, resulting in a change in the generated payment and receipt flow information, or the payment and receipt flow information is directly modified, the payment and receipt flow version number corresponding to the payment and receipt flow information increases in sequence. For example, if the payment and receipt flow information is modified once, the payment and receipt flow version number corresponding to the modified payment and receipt flow information increases to 02. If it is modified again, the payment and receipt flow version number continues to increase to 03, etc.
[0055] In operation S220, message content is generated at least according to the payment and receipt flow information, and the message content includes a message type and message elements.
[0056] In an embodiment of the present disclosure, after the payment and receipt flow information is generated, the message content continues to be generated. Wherein, generating the message content at least includes generating it according to the payment and receipt flow information. For example, when generating the message content, the message content is generated according to the payment and receipt flow information and the application scenario. The message content has a message type and a message element, wherein the message type is determined according to different application scenarios, and different application scenarios have different message types. The message element refers to the specific content contained in the message. When the message is generated, the system automatically decomposes the specific information in the message content, and registers it in the message details table of the database after identification, so as to facilitate the subsequent judgment on whether the message content has changed.
[0057] In an embodiment of the present disclosure, the message content includes a unique identifier corresponding to the payment and receipt flow information. For example, the unique identifier in the message content is composed of the payment and receipt flow number and the payment and receipt flow version number, such as 20211001M12345 / 01, where 20211001M12345 is the payment and receipt flow number, and 01 is the payment and receipt flow version number. Each message content corresponds to the payment and receipt flow information, and the corresponding payment and receipt flow information can be queried or obtained according to the message content. Exemplarily, the corresponding payment and receipt flow information stored in the database is obtained according to the unique identifier in the message content.
[0058] In an embodiment of the present disclosure, after the message content is generated, the unique identifier in the message content can be used to compare with the payment flow information to determine the payment flow information corresponding to the message content, and further obtain the payment flow information stored or updated in the database based on the unique identifier, so as to facilitate subsequent data comparison and other operations.
[0059] In operation S230, it is determined whether the payment and receipt flow information is updated. If the payment and receipt flow information is updated, an anti-duplicate check is performed on the corresponding message content according to the updated payment and receipt flow information to determine the target message content.
[0060] In the embodiment of the present disclosure, it is determined whether the payment and receipt flow information is updated. As mentioned above, when the transaction information is entered incorrectly or the payment and receipt flow information is modified, the payment and receipt flow information will inevitably be changed. At this time, it is necessary to determine the update status of the payment and receipt flow information, for example, the payment and receipt flow information has not been updated or the payment and receipt flow information has been updated. When the payment and receipt flow information has not been updated, it indicates that the payment and receipt flow information has not changed. When the payment and receipt flow information has been updated, it indicates that the payment and receipt flow information has changed. After the payment and receipt flow information is updated, the updated payment and receipt flow information will generate corresponding message content, and it is necessary to perform an anti-duplicate check on the message content. For example, before the payment and receipt flow information is updated, it corresponds to the message content before the update. After the payment and receipt flow information is updated, it corresponds to the updated message content. The message content before the update and the message content after the update are checked for anti-duplicate, so as to determine the target message content, which is the message content to be sent to the target object in the end.
[0061] According to the embodiments of the present disclosure, the update of the payment flow information does not necessarily lead to the update of the message content. First, it is determined whether the payment flow information is updated. If the payment flow information is not updated, the corresponding message content will not change. At this time, the unchanged payment flow information generates the corresponding message content and can be directly sent to the target object. If the payment flow information has been updated, it is further determined whether the message content is updated, that is, the message content is checked for duplicate prevention. This can prevent the repeated sending of the same message, reduce the problems caused by the repeated sending of the same message, and effectively improve the efficiency of message sending.
[0062] In operation S240, anti-duplication processing is performed on at least one message content according to the result of the anti-duplication check, and the target message content is sent to the target object, where the target message content corresponds to the payment and receipt flow information.
[0063] In an embodiment of the present disclosure, after the corresponding message content is checked for duplicate prevention according to the updated payment and receipt flow information, at least one message content is processed for duplicate prevention according to the result of the duplicate prevention check. Wherein, when the message content before the update is consistent with the message content after the update, that is, the message elements and message types in the message content have not changed, there is no need to generate the updated message content, and the message content before the update can be sent to the target object. If the message content before the update has been sent to the target object, it can be selected not to perform the operation. When the message content before the update is inconsistent with the message content after the update, that is, the message elements or message types in the message content have changed, it is necessary to generate the updated message content, send the updated message content to the target object, and if the message content before the update has been sent to the target object, it is necessary to process the message content before the update, such as revoking the message content before the update or deleting the message content before the update, etc. Thereby, the updated message content is sent to the target object as the target message content to reduce the problem of repeated sending of the message content.
[0064] In the embodiment of the present disclosure, the target message content corresponds to the payment flow information, that is, the target message content and the payment flow information are in a corresponding relationship. If the message elements and message types in the message content are unchanged, the target message content can correspond to the changed payment flow information.
[0065] Figure 3 A processing logic diagram of a method for preventing repeated message sending according to an embodiment of the present disclosure is schematically shown.
[0066] Combine the following Figure 3 The processing logic of the method for preventing repeated message sending according to an embodiment of the present disclosure is described in detail.
[0067] like Figure 3 As shown, in the message sending process, it first includes operations S310 to S340.
[0068] In operation S310, payment flow information is generated. For example, the payment flow information may be generated based on the acquired transaction information.
[0069] In operation S320, the message content is generated, for example, according to the payment and receipt flow information.
[0070] In operation S330, the message content is sent to the target object. For example, the message content generated in operation S320 is sent to the trading counterparty through the trading system.
[0071] After the message is sent to the target object, the process proceeds to operation S340 to end the message sending.
[0072] In the embodiment of the present disclosure, when the payment flow information and the specific information in the message content corresponding to the payment flow information are stored in the database of the transaction system, operation S350 is executed to store the data in the database. When the transaction information entry causes the payment flow information, the generated message content, etc. to be updated, the updated payment flow information, the updated message content, etc. will be updated in real time and stored in the database, so as to facilitate the comparison of the data in the database with other data in subsequent operations.
[0073] In operation S360, determine whether the payment and receipt flow version number is greater than the initial payment and receipt flow version number. The payment and receipt flow version number corresponds to the payment and receipt flow information. When the payment and receipt flow information is modified or updated, the corresponding payment and receipt flow version number is incremented in sequence according to the number of modifications, that is, the payment and receipt flow version number is different from the initial payment and receipt flow version number. The initial payment and receipt flow version number is, for example, 01. When the payment and receipt flow version number is greater than 01, it indicates that the payment and receipt flow information has been modified or updated. If the payment and receipt flow version number is greater than the initial payment and receipt flow version number, perform operation S370. If the payment and receipt flow version number is the initial payment and receipt flow version number, it indicates that the payment and receipt flow information has not been modified or updated, and the message content is directly generated according to the payment and receipt flow information.
[0074] In operation S370, the message contents are compared for consistency, that is, anti-duplicate check is performed on the corresponding message contents according to the updated payment and receipt flow information. The anti-duplicate check includes comparing the consistency of the message contents corresponding to the payment and receipt flow information before the update and the message contents corresponding to the payment and receipt flow information after the update as described below. If the message contents are consistent, it means that although the payment and receipt flow information has been updated, the corresponding message contents have not changed. At this time, there is no need to operate the message contents corresponding to the payment and receipt flow information before the update, that is, perform operation S340 and end. If the message contents are inconsistent, it means that the payment and receipt flow information has been updated and the message contents have also changed. At this time, it is necessary to generate new message contents according to the updated payment and receipt flow information, and then perform operation S380 on the message contents corresponding to the payment and receipt flow information before the update to perform anti-duplicate processing. After the anti-duplicate processing, the target message content to be sent to the target object will be determined, that is, operation S330 will be performed to send the determined target message content to the target object.
[0075] Figure 4 The flowchart of operation S230 of the method for preventing repeated message sending according to an embodiment of the present disclosure is schematically shown.
[0076] like Figure 4 As shown, it is determined whether the payment and receipt flow information is updated. If the payment and receipt flow information is updated, an anti-duplication check is performed on the corresponding message content according to the updated payment and receipt flow information. The process of determining the target message content includes operations S231 to S236.
[0077] In operation S231, the payment and collection flow version number of the payment and collection flow information is obtained. If the payment and collection flow version number is greater than the initial payment and collection flow version number, it is determined that the payment and collection flow information has been updated.
[0078] In an embodiment of the present disclosure, the payment flow version number of the payment flow information corresponds to the payment flow information. When the transaction personnel or the transaction system modifies or changes the payment flow information, the payment flow version number is incremented according to the number of modifications. The initial payment flow information generated based on the initial transaction information has a corresponding initial payment flow version number and a unique payment flow number. The payment flow number does not change with the change of the payment flow information, and specific transaction information and other contents can be identified based on the payment flow number. The initial payment flow version number is, for example, 01. When the payment flow information is modified or changed, the payment flow version number will be greater than 01. For example, if it is modified once, the payment flow version number becomes 02. If it is modified again, the payment flow version number becomes 03, and so on. Therefore, whether the payment flow information is updated is determined based on the relationship between the payment flow version number and the initial payment flow version number.
[0079] In operation S232, the corresponding payment and receipt flow number and the current payment and receipt flow version number are obtained according to the updated payment and receipt flow information.
[0080] In an embodiment of the present disclosure, when it is determined that the payment flow information has been updated, the corresponding payment flow number and the current payment flow version number are obtained according to the updated payment flow information. The payment flow number can determine the transaction information corresponding to the payment flow information. The current payment flow version number can determine the number of times the payment flow information has been modified or changed, and then determine whether the payment flow information is the latest.
[0081] In operation S233, the current message content is generated according to the payment and receipt flow number and the current payment and receipt flow version number.
[0082] In an embodiment of the present disclosure, the payment and receipt flow information and the corresponding transaction information and other contents are determined according to the payment and receipt flow number. And the current message content is generated according to the current payment and receipt flow version number. For example, for the payment and receipt flow information with the same payment and receipt flow number, when the original payment and receipt flow version number is 01, it generates the original message content corresponding to the payment and receipt flow version number 01. When the payment and receipt flow information is modified once, the payment and receipt flow version number is incremented to 02, and the message content corresponding to the payment and receipt flow version number 02 is generated. When the current payment and receipt flow version number obtained is 03, the current message content is generated according to the current payment and receipt flow version number 03. That is, different payment and receipt flow version numbers corresponding to the same payment and receipt flow number have different message contents corresponding thereto.
[0083] In operation S234, at least one original message content corresponding to the payment and receipt flow number in the database is compared with the current message content. If the comparison result is consistent, operation S235 is executed, and if the comparison result is inconsistent, operation S236 is executed.
[0084] In the embodiment of the present disclosure, for the generated message content, including the original message content and the current message content, the system automatically decomposes the generated message content, and registers it in the message details table of the database after identification. The message details table is convenient for the same payment flow information (with the same payment flow number) to generate the current message content and compare it with the original message content when it is generated. For example, the current message content is compared with the original message content (and / or the previous version of the message content).
[0085] In the embodiment of the present disclosure, for the same payment and receipt flow number, there may be multiple message contents corresponding to the payment and receipt flow information. The current message content is, for example, the latest generated message content corresponding to the payment and receipt flow information, and the current message content is compared with at least one original message content. The target message content is determined according to the comparison result.
[0086] If the comparison result is consistent, it means that the current message content is the same as the original message content, and there is no need to generate new message content, that is, the current message content may not be generated, or the currently generated message content may be deleted, etc. Then, operation S235 is performed to determine that the original message content is the target message content.
[0087] If the comparison result is inconsistent, it means that the current message content is different from the original message content, and a new message content needs to be generated, and the original message content needs to be processed for duplicate prevention. Then, operation S236 is performed to determine that the current message content is the target message content.
[0088] According to the embodiment of the present disclosure, the payment and receipt flow version number is first used to determine whether the payment and receipt flow information is updated. When the payment and receipt flow information is updated, the message content is checked for duplicate prevention, that is, the consistency of the current message content and the original message content is further compared, and the target message content is determined. The repeated sending of messages can be effectively reduced. At the same time, when the newly generated current message content is consistent with the original message content, there is no need to generate new message content, which can improve the efficiency of message content generation and sending.
[0089] In an embodiment of the present disclosure, the result of the anti-duplicate check includes a comparison result that is consistent and a comparison result that is inconsistent.
[0090] When the comparison results are consistent, the original message content is determined to be the target message content. If the original message content has been sent to the target object, the target message content will no longer be sent. If the original message content has not been sent to the target object, the original message content will be sent to the target object as the target message content.
[0091] Figure 5 The flowchart schematically shows the operation of the original message content when the comparison results are inconsistent according to the method for preventing repeated message sending according to an embodiment of the present disclosure.
[0092] like Figure 5 As shown, performing anti-duplication processing on at least one message content according to the result of the anti-duplication check includes operations S510 to S513.
[0093] In operation S510, if the comparison results are inconsistent, the sending status and receipt status of the original message content are determined.
[0094] In the embodiments of the present disclosure, the sending status includes successful sending, sent, and pending sending. The receipt status includes successful receipt, pending receipt, and failed sending receipt. Among them, successful sending means that the original message content has been sent to the target object, and the transaction object has confirmed the original message content, and the receipt status of the successful receipt is fed back to the sender of the message content. Sent means that the original message content has been sent to the target object, and the target object has not yet processed the original message content. At this time, the receipt status of the pending receipt is fed back to the sender of the message content. Pending sending means that the original message has not been sent from the message sender to the target object, or the original message has been sent to the target object, but the receipt status fed back by the target object is a failed sending receipt.
[0095] In the embodiment of the present disclosure, different operations are performed for different sending states and receipt states of the original message, which specifically include operations S511 to S513.
[0096] In operation S511, if the sending status of the original message content is successfully sent and the receipt status is successfully received, an instruction to revoke the original message content is sent to the target object.
[0097] In operation S512, if the sending status of the original message content is sent and the receipt status is pending receipt, an instruction to delete the original message content is sent to the target object.
[0098] In operation S513, if the sending status of the original message content is to be sent or the receipt status is sending failure, the sending of the original message content to the target object is canceled.
[0099] According to an embodiment of the present disclosure, by performing anti-duplicate processing on at least one message content based on the result of the anti-duplicate check, the probability of repeated message sending can be effectively reduced, while ensuring that the message content sent to the target object is the latest, thereby reducing the problem of clearing errors caused by repeated message sending.
[0100] Figure 6 The schematic diagram shows the processing logic diagram of the operation on the original message content when the comparison results are inconsistent according to the method for preventing repeated message sending according to an embodiment of the present disclosure.
[0101] like Figure 6 As shown, the anti-duplication processing of the original message content includes operations S600 to S616.
[0102] First, in operation S600, when the current message content is compared with at least one original message content and there is no inconsistency, anti-duplication processing is performed on the original message content.
[0103] Next, operation S610 is executed to determine the sending status and receipt status of the original message content, and operations S611, S613 and S615 are executed respectively according to the sending status and receipt status of the original message content.
[0104] In operation S611, it is determined that the original message content is sent to the target object, the sending is successful and a successful receipt is received, then operation S612 is executed.
[0105] In operation S612, the original message content is revoked, and if the original message content still exists in the target object, operation S614 is further performed.
[0106] In operation S613, it is determined that the original message content has been sent to the target object and a receipt to be processed has been received, then operation S614 is executed.
[0107] In operation S614, the original message content is deleted.
[0108] In operation S615, it is determined that the original message content is in a waiting-to-be-sent state or a receipt state indicating that the sending has failed, and then operation S616 is executed.
[0109] In operation S616, the sending of the original message content is canceled, that is, at this time, the original message to be sent or the sending fails will no longer be sent.
[0110] Figure 7 The flowchart of the method for preventing repeated message sending according to an embodiment of the present disclosure is schematically shown, in which the original message content is compared with the current message content.
[0111] In an embodiment of the present disclosure, the process 700 of comparing the original message content with the current message content includes operations S710 to S730.
[0112] In operation S710, a message type and a message element of at least one original message content corresponding to the payment and receipt flow number in a database are obtained.
[0113] In the embodiment of the present disclosure, as described above, when a message content is generated, the system decomposes the message content and registers it in a message detail table in a database after identification, wherein the message content has a message type and message elements.
[0114] In operation S720, the message type and message elements of the current message content are obtained.
[0115] In operation S730, the message type and message elements of the original message content are compared one by one with the message type and message elements of the current message content.
[0116] In an embodiment of the present disclosure, the message type and message element corresponding to the original message content are compared one by one with the current message type and message element. When at least one of the message type or message element is different, it is determined that the current message content is inconsistent with the original message content. In this embodiment, the receiving and paying flow numbers in the receiving and paying flow information corresponding to the original message content and the current message content are the same.
[0117] In an embodiment of the present disclosure, the method for preventing repeated message transmission further includes: acquiring payment flow information corresponding to the message content in a database according to the unique identifier, wherein the message content includes the unique identifier corresponding to the payment flow information.
[0118] Exemplarily, after the message content is generated, the message content includes a unique identifier corresponding to the payment flow information. By reading the unique identifier, the payment flow information corresponding to the message content in the database can be obtained, which is convenient for obtaining detailed data or performing data comparison and other operations.
[0119] In the embodiment of the present disclosure, the unique identifier corresponding to the payment flow information included in the message content is composed of at least a payment flow number and a payment flow version number. The corresponding transaction information is determined according to the payment flow number, and the corresponding payment flow information is determined according to the payment flow version number.
[0120] In an embodiment of the present disclosure, the method for preventing duplicate message transmission also includes determining the correctness of the payment and receipt flow information after generating the payment and receipt flow information. For example, the specific content of the payment and receipt flow information can be determined manually or automatically by a preset program to ensure the accuracy of the information and reduce the probability of error.
[0121] In the embodiment of the present disclosure, the payment flow number is uniquely bound to the transaction information, and the payment flow version number changes with the update of the payment flow information.
[0122] In the embodiment of the present disclosure, after the payment flow information is updated, the information in the database is updated synchronously with the payment flow information, thereby ensuring that in the above-mentioned process of comparing the original message content with the current message content, the data in the database called is accurate.
[0123] Figure 8 The structural block diagram of the device for preventing repeated message sending according to an embodiment of the present disclosure is schematically shown.
[0124] like Figure 8 As shown, the device 800 for preventing repeated message sending according to an embodiment of the present disclosure includes a first generating module 810 , a second generating module 820 , a judging module 830 and a processing module 840 .
[0125] The first generating module 810 is configured to generate payment flow information according to the acquired transaction information, wherein the payment flow information at least includes a payment flow number and a payment flow version number. In one embodiment, the first generating module 810 can be used to perform the operation S210 described above, which will not be described in detail here.
[0126] The second generation module 820 is configured to generate message content at least according to the payment and receipt flow information, and the message content has a message type and message elements. In one embodiment, the second generation module 820 can be used to perform the operation S220 described above, which will not be repeated here.
[0127] The judgment module 830 is configured to judge whether the payment flow information is updated. If the payment flow information is updated, the corresponding message content is checked for duplicate prevention according to the updated payment flow information to determine the target message content. In one embodiment, the judgment module 830 can be used to perform the operation S230 described above, which will not be described in detail here.
[0128] The processing module 840 is configured to perform anti-duplicate processing on at least one message content according to the result of the anti-duplicate check, and send the target message content to the target object, where the target message content corresponds to the payment flow information. In one embodiment, the processing module 840 can be used to perform the operation S240 described above, which will not be repeated here.
[0129] In an embodiment of the present disclosure, the judgment module 830 includes a judgment submodule, which is configured to obtain the payment flow version number of the payment flow information. If the payment flow version number is greater than the initial payment flow version number, it is determined that the payment flow information has been updated; the corresponding payment flow number and the current payment flow version number are obtained according to the updated payment flow information; the current message content is generated according to the payment flow number and the current payment flow version number; at least one original message content corresponding to the payment flow number in the database is compared with the current message content. If the comparison results are consistent, the original message content is determined to be the target message content; if the comparison results are inconsistent, the current message content is determined to be the target message content.
[0130] In an embodiment of the present disclosure, the processing module 840 includes a processing sub-module, which is configured to determine the sending status and receipt status of the original message content if the comparison results are inconsistent; if the sending status of the original message content is successful sending and the receipt status is a successful receipt, then send an instruction to revoke the original message content to the target object; if the sending status of the original message content is sent and the receipt status is a pending receipt, then send an instruction to delete the original message content to the target object; if the sending status of the original message content is pending sending or the receipt status is a failed sending, then cancel the sending of the original message content to the target object.
[0131] In an embodiment of the present disclosure, the judgment submodule also includes a comparison submodule, which is configured to obtain the message type and message elements of at least one original message content corresponding to the payment and receipt flow number in the database; obtain the message type and message elements of the current message content; and compare the message type and message elements of the original message content with the message type and message elements of the current message content one by one.
[0132] In an embodiment of the present disclosure, the device for preventing repeated message sending also includes an acquisition submodule, which is configured to acquire the payment flow information corresponding to the message content in the database according to the unique identifier, and the message content includes the unique identifier corresponding to the payment flow information.
[0133] According to an embodiment of the present disclosure, any multiple modules among the first generation module 810, the second generation module 820, the judgment module 830, the processing module 840, the judgment submodule, the processing submodule, the acquisition submodule and the comparison submodule can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first generation module 810, the second generation module 820, the judgment module 830, the processing module 840, the judgment submodule, the processing submodule, the acquisition submodule and the comparison submodule can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the first generation module 810, the second generation module 820, the judgment module 830, the processing module 840, the judgment sub-module, the processing sub-module, the acquisition sub-module and the comparison sub-module can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be executed.
[0134] Fig. 9 A block diagram of an electronic device suitable for implementing a method for preventing repeated message sending according to an embodiment of the present disclosure is schematically shown. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0135] like Fig. 9 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 to a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0136] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0137] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.
[0138] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method for preventing repeated message transmission according to the embodiment of the present disclosure is implemented.
[0139] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.
[0140] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method for preventing repeated message transmission provided by the embodiment of the present disclosure.
[0141] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0142] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0143] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0144] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0145] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0146] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0147] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for preventing repeated message transmission, comprising: Generate payment flow information according to the acquired transaction information, wherein the payment flow information at least includes a payment flow number and a payment flow version number; Generate message content at least according to the payment and receipt flow information, wherein the message content has a message type and message elements; Determine whether the payment and receipt flow information is updated. If the payment and receipt flow information is updated, perform anti-duplicate check on the corresponding message content according to the updated payment and receipt flow information to determine the target message content; The corresponding message content includes: the pre-update message content generated corresponding to the payment and receipt flow information before the update, and the post-update message content generated corresponding to the payment and receipt flow information after the update; Anti-duplicate processing is performed on at least one of the message contents according to the result of the anti-duplicate check, and the target message content is sent to the target object, wherein the target message content corresponds to the payment and receipt flow information.
2. The method according to claim 1, wherein: The determining whether the payment and receipt flow information is updated, if the payment and receipt flow information is updated, performing anti-duplicate check on the corresponding message content according to the updated payment and receipt flow information, and determining the target message content includes: Obtaining the payment flow version number of the payment flow information, and if the payment flow version number is greater than the initial payment flow version number, determining that the payment flow information has been updated; Obtaining the corresponding payment flow number and the current payment flow version number according to the updated payment flow information; Generate current message content according to the payment and receipt flow number and the current payment and receipt flow version number; Compare the content of at least one original message corresponding to the payment and receipt flow number in the database with the current message content, If the comparison results are consistent, the original message content is determined to be the target message content; If the comparison results are inconsistent, the current message content is determined to be the target message content.
3. The method according to claim 2, wherein: The performing anti-duplicate processing on at least one message content according to the result of the anti-duplicate check comprises: If the comparison results are inconsistent, determine the sending status and receipt status of the original message content; If the sending status of the original message content is successfully sent and the receipt status is successfully received, then sending an instruction to cancel the original message content to the target object; If the sending status of the original message content is sent and the receipt status is pending receipt, sending an instruction to delete the original message content to the target object; If the sending status of the original message content is to be sent or the receipt status is sending failure, the sending of the original message content to the target object is canceled.
4. The method according to claim 2, wherein: The comparing the at least one original message content corresponding to the payment and receipt flow number in the database with the current message content includes: Obtaining a message type and a message element of at least one original message content corresponding to the payment and receipt flow number in a database; Get the message type and message elements of the current message content; The message type and message elements of the original message content are respectively compared one by one with the message type and message elements of the current message content.
5. The method according to claim 2, wherein: The message content includes a unique identifier corresponding to the payment and receipt flow information; The method further includes: acquiring, according to the unique identifier, the payment and receipt flow information corresponding to the message content in the database.
6. The method according to claim 5, wherein: The unique identifier is composed of at least the payment and receipt flow number and the payment and receipt flow version number.
7. The method according to any one of claims 1 to 5, wherein: After generating the payment flow information, the method further includes: judging the correctness of the payment flow information.
8. The method according to any one of claims 1 to 5, wherein: The payment and receipt flow number is uniquely bound to the transaction information, and the payment and receipt flow version number changes as the payment and receipt flow information is updated.
9. The method according to any one of claims 2 to 5, wherein: After the payment and receipt flow information is updated, the information in the database is updated synchronously with the payment and receipt flow information.
10. A device for preventing repeated message transmission, comprising: A first generating module is configured to generate payment flow information according to the acquired transaction information, wherein the payment flow information at least includes a payment flow number and a payment flow version number; A second generating module is configured to generate message content at least according to the payment and receipt flow information, wherein the message content has a message type and message elements; A judgment module configured to judge whether the payment flow information is updated, and if the payment flow information is updated, perform anti-duplicate check on the corresponding message content according to the updated payment flow information to determine the target message content; The corresponding message content includes: the pre-update message content generated corresponding to the payment and receipt flow information before the update, and the post-update message content generated corresponding to the payment and receipt flow information after the update; The processing module is configured to perform anti-duplication processing on at least one of the message contents according to the result of the anti-duplication check, and send the target message content to the target object, wherein the target message content corresponds to the payment and receipt flow information.
11. An electronic device, comprising: one or more processors; A storage device, used for storing executable instructions, wherein when the executable instructions are executed by the processor, the method according to any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium having executable instructions stored thereon, wherein when the instructions are executed by a processor, the method according to any one of claims 1 to 9 is implemented.
13. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Method, device and equipment for processing clearing message, storage medium and program product
CN112637243A
Transfer transaction message generation method and device in automatic repayment scene
CN112884460A
Method and device for processing quotation message data
CN113962812A