A message comparison method, device, apparatus and storage medium

By automatically comparing and correcting messages between the electronic certificate system and the local system, the problem of complex and cumbersome message comparison in the existing technology is solved, thereby improving processing efficiency and the continuity of business processes.

CN115603860BActive Publication Date: 2025-12-16CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211177196.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-26
Publication Date
2025-12-16
Estimated Expiration
2042-09-26

AI Technical Summary

Technical Problem

In existing technologies, the message comparison process of electronic certificate systems is complex and cumbersome, with low processing efficiency, and the inability to monitor message data problems in real time leads to business process bottlenecks and low processing efficiency.

Method used

By automatically comparing the messages in the electronic certificate system with the local messages, messages with inconsistent comparison results are identified and automatically corrected according to their storage location, including retransmission or discarding, to ensure the consistency of messages between the electronic certificate system and the local system.

Benefits of technology

It has achieved automated and efficient processing of message comparison between the electronic certificate system and the local system, improved the efficiency of message comparison and business processing, and reduced the time cost of redundant messages and manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115603860B_ABST
    Figure CN115603860B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, in particular to a message comparison method and device, equipment and a storage medium, which are used to solve the problem of low message comparison efficiency. The method comprises the following steps: acquiring at least one first service message stored in an electric certificate system for a to-be-verified service; comparing the at least one first service message with related second service messages stored in a local terminal for the to-be-verified service; if there is at least one inconsistent comparison result, determining a missing to-be-processed message based on the comparison result, wherein the to-be-processed message is the first service message or the second service message; and performing corresponding message correction processing according to the storage position corresponding to the to-be-processed message. The application solves the problems of complex and tedious message comparison process and low processing efficiency in the related art by automatically comparing the messages downloaded at a predetermined time and automatically correcting the missing messages.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, in particular to a message comparison method and device, an electronic device, and a storage medium. BACKGROUND

[0002] With the development of electronic information technology, the emergence of electronic letter of credit information exchange system (ELCS, hereinafter referred to as the electronic letter system) meets the demand for more convenient and efficient handling of letter of credit and related businesses, and realizes online clearing and other functions.

[0003] In related technologies, the business of the electronic letter system and the promotion of derivative business and overall business processes rely on messages. The local system and the electronic letter system also exchange information through messages. Among them, only when the message missing occurs and the business process is blocked, the relevant personnel will query and compare the messages of the local system and the electronic letter system in order to continue to promote the business process. Further, according to the actual situation, the technical personnel will repair the message data or contact the other party of the business to resend the message. If the message is resent, a large number of redundant messages will appear in the subsequent reconciliation. In addition, this processing method cannot monitor the problems of message data in real time, and the solution process after the problem occurs is complex and time-consuming, with low processing efficiency.

[0004] In summary, the current message comparison process is complex and inefficient. SUMMARY

[0005] The embodiments of the present application provide a message comparison method and device, an electronic device, and a storage medium, which are used to solve the problem of complex and inefficient message comparison process in related technologies.

[0006] In a first aspect, the present application provides a message comparison method, which comprises:

[0007] Obtaining at least one first business message stored in the electronic letter system for a to-be-verified business;

[0008] Comparing the at least one first business message with related second business messages stored in the local system for the to-be-verified business, respectively;

[0009] If there is at least one inconsistent comparison result, determining a missing to-be-processed message based on the comparison result, the to-be-processed message being the first business message or the second business message;

[0010] According to the storage location corresponding to the to-be-processed message, performing corresponding message repair processing.

[0011] In a possible implementation, the comparing the at least one first service message with the second service message stored locally for the service to be checked respectively comprises:

[0012] Obtaining the at least one first service message and the corresponding second service message, each corresponding to a message transmission attribute and a message identifier;

[0013] Based on the message transmission attribute and the message identifier, comparing the at least one first service message with the corresponding second service message respectively.

[0014] In a possible implementation, each of the first service message and the second service message further comprises a corresponding message type; and before the comparing the at least one first service message with the second service message stored locally for the service to be checked respectively, the method further comprises:

[0015] Obtaining the message type of each second service message by analyzing the corresponding second service message of the at least one first service message;

[0016] Based on the message type of each second service message, screening the second service message for comparison;

[0017] The comparing the at least one first service message with the second service message stored locally for the service to be checked respectively comprises:

[0018] Comparing each second service message screened with the corresponding first service message.

[0019] In a possible implementation, the service message to be processed is a first service message, and the performing the corresponding message correction processing according to the storage location corresponding to the service message to be processed comprises:

[0020] According to the storage location corresponding to the service message to be processed, obtaining a target second service message corresponding to the service message to be processed in the local;

[0021] Performing retransmission or discard processing on the target second service message.

[0022] In a possible implementation, the service message to be processed is a second service message, and the performing the corresponding message correction processing according to the storage location corresponding to the service message to be processed comprises:

[0023] According to the storage location corresponding to the service message to be processed, obtaining a target first service message corresponding to the service message to be processed in the electronic certificate system;

[0024] Based on the target first service message, a simulation report operation is performed, and the simulation report operation represents simulating the electric certificate system to send a message to the local.

[0025] In a possible embodiment, the method further includes:

[0026] If there is at least one consistent comparison result, it is determined that the first service message and the second service message are transmitted and received normally, and the second service message is configured with a normal identifier.

[0027] In a possible embodiment, after the second service message is configured with the normal identifier, the method further includes:

[0028] The comparison result is stored, and the comparison result is displayed based on the normal identifier.

[0029] In a possible embodiment, the at least one first service message stored in the electric certificate system for the to-be-verified service includes:

[0030] The first block height of the first service message at the end of the last message comparison is obtained, and the second block height of the first service message at the beginning of the current message comparison is obtained.

[0031] Based on the block height difference between the first block height and the second block height, at least one first service message stored in the electric certificate system for the to-be-verified service corresponding to the block height difference is obtained.

[0032] In a possible embodiment, after the corresponding message correction processing is performed according to the storage location corresponding to the to-be-processed message, the method further includes:

[0033] If the to-be-processed message is a first service message, a second service message corresponding to the to-be-processed message is configured with a missing identifier.

[0034] The comparison result is stored, and the comparison result is displayed based on the missing identifier.

[0035] In a second aspect, the application provides a message comparison device, and the device includes:

[0036] An obtaining module is configured to obtain at least one first service message stored in an electric certificate system for a to-be-verified service.

[0037] A comparison module is configured to compare the at least one first service message with a related second service message stored in the local for the to-be-verified service.

[0038] determining module, configured to determine a missing to-be-processed packet based on the comparison result if there is at least one inconsistent comparison result, the to-be-processed packet being the first service packet or the second service packet;

[0039] a correction module, configured to perform corresponding packet correction processing according to a storage location corresponding to the to-be-processed packet.

[0040] In a possible embodiment, the comparison module is specifically configured to:

[0041] obtain the at least one first service packet and a corresponding second service packet, each corresponding to a packet transmission attribute and a packet identifier;

[0042] respectively compare the at least one first service packet and the corresponding second service packet based on the packet transmission attribute and the packet identifier.

[0043] In a possible embodiment, each of the first service packet and the second service packet further includes a corresponding packet type; and the apparatus further includes:

[0044] a classification module, configured to, before the respectively comparing the at least one first service packet and the second service packet stored locally for the to-be-verified service, obtain a packet type corresponding to each second service packet by analyzing the second service packet corresponding to the at least one first service packet;

[0045] filter out a second service packet participating in comparison based on the packet type corresponding to each second service packet;

[0046] The comparison module is specifically configured to:

[0047] compare each filtered second service packet with a corresponding first service packet.

[0048] In a possible embodiment, the to-be-processed packet is a first service packet, and the correction module is specifically configured to:

[0049] obtain a target second service packet corresponding to the to-be-processed packet in the local device according to a storage location corresponding to the to-be-processed packet;

[0050] perform retransmission or discard processing on the target second service packet.

[0051] In a possible embodiment, the to-be-processed packet is a second service packet, and the correction module is specifically configured to:

[0052] obtain a target first service packet corresponding to the to-be-processed packet in the electronic certificate system according to a storage location corresponding to the to-be-processed packet.

[0053] performing a simulation report operation based on the target first service message, the simulation report operation representing simulating the electric certificate system to send a message to the local.

[0054] In a possible implementation, the determining module is further configured to:

[0055] If there is at least one consistent comparison result, it is determined that the first service message and the second service message are transmitted normally, and the second service message is configured with a normal identifier.

[0056] In a possible implementation, the apparatus further includes:

[0057] The storage module is configured to store the comparison result after the second service message is configured with the normal identifier, and display the comparison result based on the normal identifier.

[0058] In a possible implementation, the obtaining module is specifically configured to:

[0059] obtain a first block height of the first service message at the end of the last message comparison, and a second block height of the first service message at the beginning of the current message comparison;

[0060] based on a block height difference between the first block height and the second block height, obtain at least one first service message stored in the electric certificate system for the to-be-verified service corresponding to the block height difference.

[0061] In a possible implementation, the determining module is further configured to:

[0062] If the to-be-processed message is a first service message, the second service message corresponding to the to-be-processed message is configured with a missing identifier.

[0063] The storage module is further configured to:

[0064] store the comparison result, and display the comparison result based on the missing identifier.

[0065] In a third aspect, the present application provides an electronic device, including:

[0066] a memory configured to store program instructions;

[0067] a processor configured to invoke the program instructions stored in the memory, and perform the steps included in the method according to any one of the first aspect according to the obtained program instructions.

[0068] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, the computer program comprising program instructions, which, when executed by a computer, cause the computer to perform the method of any one of the first aspect.

[0069] In a fifth aspect, the present application provides a computer program product, which comprises computer program code, which, when executed on a computer, causes the computer to perform the method of any one of the first aspect.

[0070] The present application has the following beneficial effects:

[0071] The embodiments of the present application provide a message comparison method and device, electronic equipment and a storage medium. In the related art, message comparison is only performed when a business process has a problem, and if a message of a business receiver is missing, a business notifier needs to manually perform message retransmission to an electric certificate system, and the electric certificate system retransmits the message to the receiver, so that a large number of redundant messages appear in the electric certificate system. In addition, the message comparison process is complicated and time-consuming, which further leads to low message comparison and business processing efficiency. The present application can automatically acquire the received and transmitted messages in the electric certificate system, and compare the messages with local message related information to determine whether the messages in the electric certificate system are consistent with the local messages. For the case that the messages in the electric certificate system and the local system are inconsistent, the message to be processed is determined based on this, and correction processing is automatically performed according to the storage location corresponding to the message to be processed, so as to promote the business process and greatly improve the message comparison and processing efficiency.

[0072] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent to those skilled in the art from the description, or can be learned by practice of the present application. The objects and other advantages of the present application can be achieved and obtained by the structure particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF DRAWINGS

[0073] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application, together with the description.

[0074] Figure 1 An application scenario schematic diagram provided for the embodiments of the present application;

[0075] Figure 2 A flowchart of a message comparison method provided for the embodiments of the present application;

[0076] Figure 3 A schematic diagram of acquiring a first business message based on block height provided for the embodiments of the present application;

[0077] Figure 4 A logic diagram of a message screening process provided for an embodiment of the present application;

[0078] Figure 5 A logic diagram of a message comparison provided for an embodiment of the present application;

[0079] Figure 6 A flowchart of another message comparison method provided for an embodiment of the present application;

[0080] Figure 7 A structure diagram of a message comparison device provided for an embodiment of the present application;

[0081] Figure 8 A structure diagram of an electronic device provided for an embodiment of the present application;

[0082] Figure 9 A structure diagram of another electronic device provided for an embodiment of the present application.

[0083] The specific embodiments of the present application have been shown through the above-described drawings, and will be described in more detail hereinafter. The drawings and the written description are not intended to restrict the scope of the present application by any means, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0084] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The same reference numbers in different drawings represent the same or similar elements unless otherwise represented. The embodiments described in the following exemplary embodiments do not represent all the embodiments consistent with the present application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.

[0085] Terminology explanation:

[0086] Message: a data unit exchanged and transmitted in a network, containing complete data information to be sent, and the promotion of business and business processes of the electronic certificate system is based on messages; in the present application, messages can be divided into first business messages and second business messages, the messages stored for the business to be checked obtained from the electronic certificate system are first business messages, and the messages stored for the business to be checked obtained from the local are second business messages.

[0087] Message to be processed: a message found in the message comparison process that has a message missing condition, which can be a first business message or a second business message.

[0088] Message correction: refers to the correction of missing messages by simulation or marking of missing messages for subsequent processing to keep the electric certificate system and local business messages in synchronization and reduce the business process jam caused by missing messages.

[0089] Message transmission attribute: information reflecting the message transmission situation, including but not limited to message transmission time, message transmission line, message transmission direction, etc.

[0090] In order to make the purpose, technical solutions and advantages of the present application more clear, the technical solutions in the embodiments of the present application will be described clearly and completely below with the aid of the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application. In the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other at will. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in different order from here.

[0091] The terms "first" and "second" in the specification and claims of the present application and the above drawings are used to distinguish different objects, not to describe a specific order. In addition, the term "includes" and any variations thereof are intended to cover non-exclusive protection. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.

[0092] In the technical solutions of the present application, the collection, transmission and use of data comply with the requirements of relevant national laws and regulations.

[0093] Before introducing the message comparison method provided by the embodiments of the present application, in order to facilitate understanding, first, the technical background of the embodiments of the present application is introduced in detail.

[0094] In the prior art, message comparison is generally only performed when there is a problem in the business process, and the comparison needs to be checked manually to determine the processing mode of the message causing the problem. The operation process is complicated and time-consuming, and is prone to errors, which further leads to slow message comparison and business processing, and low efficiency.

[0095] In view of the above technical problems, the present application proposes the following technical concept:

[0096] The server or the terminal device triggers the download of the relevant message in the electronic certification system after reaching the preset time. After the download is completed, the server compares the messages in the electronic certification system with the local messages based on the message transmission attributes and the message identifiers to determine whether the messages in the electronic certification system are consistent with the local messages. For the messages that exist in the electronic certification system and also exist locally, the server configures a normal identifier for the messages; for the received messages that exist in the electronic certification system but do not exist locally, the server simulates incoming messages, automatically supplements the messages, and stores the comparison results to enable the business process to continue; for the missing sent messages that do not exist in the electronic certification system but exist locally, the server configures an abnormal identifier for the messages, displays and prompts error information, thereby promoting the business process and ensuring the consistency of the business process, and facilitating subsequent inspection and improving the message comparison and processing efficiency.

[0097] As shown in Figure 1 , it is an application scenario diagram of the embodiment of the present application. The application scenario diagram includes a terminal device 110, a server 120, and an electronic certification system 130.

[0098] In the embodiment of the present application, the terminal device 110 includes but is not limited to some or all of the following: a mobile phone, a tablet computer, a notebook computer, a desktop computer, a camera, a video camera, a smart home appliance, a vehicle-mounted terminal, and the like. A related client can be installed on the terminal device, which can be software (such as a checking software, a message comparison software, and the like), a webpage, an applet, or the like. The server 120 is a background server corresponding to the software or the webpage, the applet, or the like, or a server specially used for message comparison. The present application does not make specific limitations. The server 120 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution networks (CDNs), and big data and artificial intelligence platforms, and the like basic cloud computing services.

[0099] It should be noted that the message comparison method in each embodiment of the present application can be executed by an electronic device, as shown in Figure 1 , which can be the terminal device 110 or the server 120, that is, the method can be executed by the terminal device 110 or the server 120 alone, or by the terminal device 110 and the server 120 together.

[0100] Taking the execution of the server 120 alone as an example, for example, in an artificial intelligence scenario, the preset message comparison time has arrived, and the specific process is as follows:

[0101] The server 120 obtains the first service message in the electric certification system 130 that needs to be compared this time based on the block height of the message in the electric certification system 130 at the end of the last message comparison, and the block height of the message in the electric certification system 130 at the beginning of the current message comparison, and compares the second service message in the terminal device 110 that needs to be compared this time. For the message with inconsistent comparison results, the server 120 determines the missing to-be-processed message based on the comparison results, determines the correction method of the to-be-processed message according to the comparison results, stores the comparison results, and for the message with consistent comparison results, the server 120 configures a normal identifier for the message and stores the comparison results. Finally, the server 120 sends the comparison results to the terminal device 110, and the terminal device 110 displays the results and reminds the relevant personnel to check.

[0102] It should be noted that the message comparison method described above is only an example, and any message comparison method based on an electronic device is applicable to the present application, and is not limited herein.

[0103] In an optional embodiment, the terminal device 110 and the server 120 can communicate through a communication network.

[0104] In an optional embodiment, the communication network is a wired network or a wireless network.

[0105] It should be noted that, Figure 1 The number of terminal devices and servers is not limited, and is not limited herein.

[0106] In addition, the present application can be applied to various scenarios, including but not limited to some or all of the following: cloud technology, artificial intelligence, intelligent transportation, etc.

[0107] The message comparison method provided by the exemplary embodiments of the present application will be described below in conjunction with the above-described application scenarios and the accompanying drawings. It should be noted that the above-described application scenarios are only used to facilitate the understanding of the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect.

[0108] Referring to Figure 2 The method provided by the present application is an implementation flowchart of a message comparison method, and the terminal device is the execution subject. The specific implementation flow of the method is as follows: S201-S204.

[0109] S201: Obtain at least one first service message stored in the electric certification system for to-be-verified services.

[0110] In the above, the message is a data unit exchanged and transmitted in the network, containing complete data information to be sent, and the promotion of the business and business process of the electronic certificate system is based on the message; in this application, for simple distinction, the message is mainly divided into a first business message and a second business message, the message stored in the electronic certificate system for the to-be-verified business is the first business message, and the message stored in the local for the to-be-verified business is the second business message.

[0111] Optionally, after reaching the preset time or within a certain preset period, the terminal device acquires the first block height of the first business message at the end of the last message comparison and the second block height of the first business message at the beginning of the current message comparison, and acquires at least one first business message stored in the electronic certificate system corresponding to the to-be-verified business based on the block height difference between the first block height and the second block height.

[0112] The electronic certificate system adopts a block storage strategy in the message module, assuming that the preset time of message comparison is 0 o'clock every day, after reaching 0 o'clock of the current day, the terminal device automatically requests the electronic certificate system and automatically downloads the related business messages of the current day in the electronic certificate system. Specifically, the terminal device acquires the first block height of the first business message after the message comparison at 0 o'clock of the previous day ends, and acquires the second block height of the first business message before the message comparison at the current time, that is, at 0 o'clock of the current day, and downloads the related first business messages stored in the corresponding block height required for the current message comparison according to the block height difference between the first block height and the second block height, as shown in Figure 3 The first block height is the block height of the first business message after the message comparison at 0 o'clock of the previous day in the above assumption, the second block height is the block height of the first business message at the current time, the other business messages are under the first block height, and the first business messages A1, A3, A4, A5, A6, …, A m .

[0113] In the above, based on the preset time or the preset period, the system can automatically perform message downloading, and based on the block height, the business messages are downloaded in the electronic certificate system, so that the required comparison business messages are not missed during downloading, and the accuracy and integrity of the business message downloading can be ensured.

[0114] S202: respectively compare at least one first business message with the related second business message stored in the local for the to-be-verified business.

[0115] Optionally, the terminal device acquires at least one first service message and a corresponding second service message, each with its own message transmission and reception attributes and message identifier, and compares at least one first service message with the corresponding second service message based on the message transmission and reception attributes and message identifier.

[0116] Among them, message sending and receiving attributes are certain information that can reflect the message sending and receiving status, including but not limited to message sending and receiving time, message sending and receiving source, message sending and receiving direction, etc. Message identifier is the unique identification code of the message. Terminal equipment can compare the first service message and the second service message based on message sending and receiving time, message sending and receiving source, message sending and receiving direction and message identifier.

[0117] In addition, each first service message and second service message also contains a corresponding message type; the terminal device can obtain the message type corresponding to each second service message by parsing the second service message corresponding to the first service message; and based on the message type corresponding to each second service message, filter out the second service messages to participate in the comparison; and then compare each of the filtered second service messages with the corresponding first service message.

[0118] Specifically, a message includes a message header and a message body. The message header contains information such as message identifier and message type. The terminal device can parse only the message header of the second service message to obtain the corresponding message type, and then determine the second service message that needs to participate in this message comparison based on the requirements of this message comparison.

[0119] Taking the assumption in S201 as an example again, such as Figure 4 The diagram shown is a logical illustration of a message filtering process provided in an embodiment of this application. Further assuming that message comparison is required, the relevant second service messages stored locally for the service to be verified are B1, B2, B4, B5, B6, ..., B... n Furthermore, the message types of the aforementioned second service messages all belong to message type 1, message type 2, or message type 3. Specifically, the terminal device can obtain the message type of each second service message by parsing its header. Parsing reveals that the message types of B4 and B5 are message type 3, while the rest are message type 1 or message type 2. Specifically, the message type of B1 is message type 1, and the message types of B2, B6, and B... n The message type is message type 2, etc. Assuming the requirement for this message comparison is to compare only service messages of message type 1 and message type 2, one possible implementation is that after the terminal device downloads the first service message, before performing the message comparison, it deletes the second service messages B4 and B5, which belong to message type 3, from the message comparison task. Then, the second service messages to be compared become B1, B2, B6, ..., B... n.

[0120] After that, the terminal device compares the first service message A1, A3, A4, A5, A6, …, A m with the second service message B1, B2, B6, …, B n .

[0121] After that, the terminal device determines the subsequent processing mode according to the comparison result, specifically, the terminal device performs the following process.

[0122] S203: If there is at least one inconsistent comparison result, determine the missing to-be-processed message based on the comparison result.

[0123] Among them, the to-be-processed message is the message found in the message comparison process that there is a message missing condition, and the message missing condition can be divided into the following two cases:

[0124] Case one: the incoming service message exists locally but does not exist in the electric certificate system; at this time, the to-be-processed message is the first service message; case one is that the message has been sent to the electric certificate system locally, but the electric certificate system has not received it.

[0125] Case two: the outgoing service message exists in the electric certificate system but does not exist locally; at this time, the to-be-processed message is the second service message; case two is that the electric certificate system sends the service message to the local but the local misses.

[0126] In addition, there is also a service message that exists in the electric certificate system and also exists locally, that is, the comparison result of the first service message and the second service message is consistent, if there is at least one consistent comparison result, the terminal device determines that the relevant first service message and the second service message are transmitted normally, and configures the normal identifier for the second service message.

[0127] Continuing the assumption in S202, the second service message B1 corresponds to the first service message A1, which is a service message existing in the electric certificate system and also existing locally, and the terminal device configures a normal identifier for the second service message B1; the second service message B2 corresponds to the first service message A2, but A2 does not exist in the electric certificate system, which is an incoming service message existing locally but not existing in the electric certificate system, and the terminal device determines that the first service message to be processed is A2; the second service message B3 corresponds to the first service message A3, but the second service message B3 does not exist in the local, which is an outgoing service message existing in the electric certificate system but not existing locally, and the terminal device determines that the second service message to be processed is B3; because the first service message A4 and A5 correspond to the second service message B4 and B5 respectively, and the second service message B4 and B5 are not in the message comparison task due to the message type, the terminal device will directly skip and directly compare the second service message B6 with the first service message A6, the second service message B6 corresponds to the first service message A6, which is a service message existing in the electric certificate system and also existing locally, and the terminal device configures a normal identifier for the second service message B6; and the like, until all the service messages to be compared are compared.

[0128] As shown in Figure 5 , a logic diagram of message comparison provided by an embodiment of the present application, based on the above process, the first service message A1, A3, A4, A5, A6, …, A m is compared with the second service message B1, B2, B6, …, B n , wherein B1 is configured with a normal identifier after comparison with A1; A2 is determined as the to-be-processed message because B2 exists and A2 is missing; B3 is determined as the to-be-processed message because A3 exists and B3 is missing; B4 and B5 in the dashed box represent that the two service messages have been deleted in the message comparison task, so that the message comparison of A4 and A5 with B4 and B5 is skipped; B6 is configured with a normal identifier after comparison with A6, and the like, until the message comparison ends.

[0129] S204: According to the storage location corresponding to the to-be-processed message, corresponding message correction processing is performed.

[0130] Optionally, if the to-be-processed message is the first service message, the terminal device acquires the target second service message corresponding to the to-be-processed message in the local according to the storage location corresponding to the to-be-processed message, configures a missing identifier for the second service message corresponding to the to-be-processed message, and stores the comparison result; then, the target second service message is retransmitted or discarded, and the comparison result is displayed based on the missing identifier.

[0131] If the to-be-processed message is the second service message, the terminal device acquires the target first service message corresponding to the to-be-processed message in the electric certificate system according to the storage location corresponding to the to-be-processed message, and performs the simulation of the incoming message operation based on the target first service message. The simulation of the incoming message operation represents that the electric certificate system simulates the sending of the message to the local terminal device. In addition, the terminal device can store the comparison result for subsequent display of the comparison result.

[0132] In addition, for the service message with the consistent comparison result, the terminal device can also store the comparison result for subsequent display of the comparison result based on the normal identifier.

[0133] Specifically, after determining that the to-be-processed message is the first service message, the terminal device marks the comparison record and stores the comparison result for subsequent display. Specifically, the terminal device can configure a missing identifier for the second service message corresponding to the to-be-processed message, and stores the comparison result in the comparison result table. Subsequently, the comparison result is reminded or displayed to the relevant personnel, so that the relevant personnel performs retransmission processing or disposal processing on the message according to the actual situation of the service.

[0134] If it is determined that the to-be-processed message is the second service message, in order to avoid the local service process from stopping at a certain stage and being unable to continue, the terminal device can perform the simulation of the incoming message operation based on the first service message corresponding to the to-be-processed message downloaded from the electric certificate system, so as to promote the service process to continue, and store the comparison result for subsequent display.

[0135] If the comparison result of a certain service message is consistent, that is, the service message belongs to the normal message sending and receiving situation, the terminal device marks the comparison record and stores the comparison result for subsequent display. Specifically, the terminal device can configure a normal identifier for the second service message in the comparison of the service message, and stores the comparison result in the comparison result table. Subsequently, the comparison result can be displayed.

[0136] It should be noted that in the above method, the correction process of the message can be uniformly processed after the message comparison is completely finished, or the correction process can be immediately performed on the message with the missing condition after the comparison of the message. After determining that the to-be-processed message is the first service message, the terminal device can display the comparison result to the relevant personnel or remind the relevant personnel to process in a specific manner, such as sending a notification at a predetermined time, directly highlighting on the terminal device, and the like, which are not limited in the present application.

[0137] Continuing the assumption in S203, after determining that the message to be processed A2 is the first service message, the terminal device configures a missing identifier for the second service message B2 corresponding to A2 and stores the comparison result. Business personnel can resend or discard the message according to the actual business situation. After determining that the message to be processed B3 is the second service message, the terminal device simulates the electronic certificate system based on the first service message A3 and sends the service message A3 to the local system, so that the local system can add the second service message B3 corresponding to A3 after receiving the service message A3, and the terminal device will store the comparison result.

[0138] For business messages B1 and A1, and B6 and A6, which match the comparison results, the terminal device configures a normal flag for business messages B1 and B6 and stores the comparison results in the comparison result table.

[0139] Similarly, the terminal device stores the comparison results of all service messages and performs corresponding correction processing on the messages to be processed.

[0140] Furthermore, after the message comparison is completed, the terminal device can query the message comparison results. Specifically, the terminal device can obtain and display the comparison results based on information such as the comparison date. The comparison results can be in the form of tables, lists, etc., and this application does not impose specific limitations. Taking a list as an example, relevant personnel can promptly handle any missed or under-sent business messages that require manual intervention based on the message comparison results displayed in the list, thus avoiding business process bottlenecks.

[0141] like Figure 6 The diagram shown is an overall flowchart of another message comparison method provided in this application embodiment, with the terminal device as the execution subject. The specific process is as follows:

[0142] Step 601: The terminal device downloads the first service message.

[0143] Specifically, after a preset time arrives, or within a preset period, the terminal device obtains at least one first service message required for this message comparison from the electronic certificate system based on the block height difference between the first block height and the second block height of the first service message.

[0144] Step 602: The terminal device parses the second service message to obtain the corresponding message type.

[0145] Specifically, the terminal device parses the header of each second service message to obtain the message type of each second service message.

[0146] Step 603: The terminal device filters out the second service message to be compared based on the obtained message type.

[0147] The terminal device screens the second service messages according to the message type of each second service message according to the requirement of the current message comparison.

[0148] Step 604: The terminal device compares the first service message with the screened second service message.

[0149] Specifically, the terminal device compares the first service message with the corresponding second service message based on the respective message transmission and reception attributes and message identifiers of the first service message and the corresponding second service message.

[0150] Step 605: For the service message with consistent comparison results, the terminal device configures a normal identifier for the corresponding second service message and stores the comparison results.

[0151] Step 606: For the service message with inconsistent comparison results, the terminal device determines the missing to-be-processed message based on the comparison results.

[0152] Step 607: If the to-be-processed message is the first service message, the terminal device configures a missing identifier for the corresponding target second service message and stores the comparison results.

[0153] If the to-be-processed message is the first service message, it indicates that the message missing condition is that the message exists locally but does not exist in the electric certificate system. The terminal device acquires the target second service message corresponding to the to-be-processed message in the local according to the storage location corresponding to the to-be-processed message, configures a missing identifier for the second service message corresponding to the to-be-processed message and stores the comparison results, and then displays them to the relevant personnel, who decides to resend or discard the service message according to the actual situation.

[0154] Step 608: If the to-be-processed message is the second service message, the terminal device performs a simulated reporting operation based on the target first service message and stores the comparison results.

[0155] If the to-be-processed message is the second service message, it indicates that the message missing condition is that the message exists in the electric certificate system but does not exist locally. The terminal device acquires the target first service message corresponding to the to-be-processed message in the electric certificate system according to the storage location corresponding to the to-be-processed message, performs a simulated reporting operation based on the target first service message, and stores the comparison results.

[0156] Step 609: The terminal device displays the comparison results.

[0157] Based on the same inventive concept, an embodiment of the present application provides a message comparison device, which is described in detail in the Figure 7 The device comprises:

[0158] The acquisition module 701 is configured to acquire at least one first service message stored in the electric certificate system for a to-be-processed service.

[0159] The comparison module 702 is configured to compare at least one first service message with a corresponding second service message stored locally for a to-be-verified service respectively;

[0160] The determination module 703 is configured to determine a missing to-be-processed message based on the comparison result if there is at least one inconsistent comparison result, wherein the to-be-processed message is the first service message or the second service message;

[0161] The correction module 704 is configured to perform corresponding message correction processing according to a storage location corresponding to the to-be-processed message.

[0162] In a possible embodiment, the comparison module 702 is specifically configured to:

[0163] Obtain at least one first service message and a corresponding second service message, and a message transmission attribute and a message identifier corresponding to each of the first service message and the second service message respectively;

[0164] Compare the at least one first service message and the corresponding second service message based on the message transmission attribute and the message identifier respectively.

[0165] In a possible embodiment, each of the first service message and the second service message further includes a corresponding message type; and the apparatus further includes:

[0166] The classification module 705 is configured to, before comparing the at least one first service message with the second service message stored locally for the to-be-verified service respectively, obtain a message type corresponding to each of the second service messages by analyzing the second service message corresponding to the at least one first service message;

[0167] Screen the second service messages participating in the comparison based on the message type corresponding to each of the second service messages;

[0168] The comparison module is specifically configured to:

[0169] Compare each of the screened second service messages with a corresponding first service message.

[0170] In a possible embodiment, the to-be-processed message is the first service message, and the correction module 704 is specifically configured to:

[0171] Obtain a target second service message corresponding to the to-be-processed message in the local according to the storage location corresponding to the to-be-processed message;

[0172] Perform retransmission or discard processing on the target second service message.

[0173] In a possible embodiment, the to-be-processed message is the second service message, and the correction module 704 is specifically configured to:

[0174] According to a storage location corresponding to the to-be-processed message, a target first service message corresponding to the to-be-processed message is acquired in the electronic certificate system;

[0175] Based on the target first service message, a simulation operation of sending a message is performed, and the simulation operation of sending a message represents that the electronic certificate system sends a message to the local in simulation.

[0176] In a possible embodiment, the determining module 703 is further configured to:

[0177] If there is at least one consistent comparison result, it is determined that the first service message and the second service message are normally transmitted and received, and the second service message is configured with a normal identifier.

[0178] In a possible embodiment, the apparatus further includes:

[0179] The storage module 706 is configured to store the comparison result after the second service message is configured with the normal identifier, and display the comparison result based on the normal identifier.

[0180] In a possible embodiment, the acquiring module 701 is specifically configured to:

[0181] Acquire a first block height of the first service message at the end of the last message comparison, and a second block height of the first service message at the beginning of the current message comparison;

[0182] Based on a block height difference between the first block height and the second block height, at least one first service message stored in the electronic certificate system for the to-be-verified service corresponding to the block height difference is acquired.

[0183] In a possible embodiment, the determining module 703 is further configured to:

[0184] If the to-be-processed message is the first service message, the second service message corresponding to the to-be-processed message is configured with a missing identifier.

[0185] The storage module 706 is further configured to:

[0186] Store the comparison result, and display the comparison result based on the missing identifier.

[0187] Based on the same inventive concept, the embodiments of the present application provide an electronic device, which can be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), a server, etc., and can be a control device or a control system inside a smart device, or an external device in communication with the smart device, as shown in FIG. 8. Figure 8 The electronic device can include a processor 801 and a memory 802.

[0188] The processor 801 can be a general processor, such as a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, and can implement or execute the methods, steps and logical block diagrams disclosed in the embodiments of the present application. The general processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as hardware processor execution, or executed by a combination of hardware and software modules in the processor.

[0189] The memory 802 is a non-volatile computer readable storage medium, which can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory can include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card type memory, random access memory (RAM), static random access memory (SRAM), programmable read only memory (PROM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. The memory is any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory 802 in the embodiments of the present application can also be a circuit or any other device capable of realizing the storage function, used to store program instructions and / or data.

[0190] In another embodiment, the electronic device can also be other electronic devices, such as Figure 1 The terminal device 110 is shown. In this embodiment, the structure of the electronic device can be as shown in Figure 9 The communication component 910, the memory 920, the display unit 930, the camera 940, the sensor 950, the audio circuit 960, the Bluetooth module 970, the processor 980 and other components.

[0191] The communication component 910 is configured to communicate with a server. In some embodiments, a wireless fidelity (WiFi) module can be included, which belongs to a short-range wireless transmission technology. The electronic device can help the user to send and receive information through the WiFi module.

[0192] The memory 920 can be configured to store software programs and data. The processor 980 can execute various functions and data processing of the terminal device 110 by running the software programs or data stored in the memory 920. The memory 920 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one disk storage device, a flash memory device, or other volatile solid-state memory device. The memory 920 stores an operating system that enables the terminal device 110 to operate. In this application, the memory 920 can store an operating system and various application programs, and can also store a computer program for executing the model training method of the embodiments of the application.

[0193] The display unit 930 can also be configured to display information input by a user or information provided to a user, as well as a graphical user interface (GUI) of various menus of the terminal device 110. Specifically, the display unit 930 can include a display screen 932 arranged on the front of the terminal device 110. The display screen 932 can be configured in the form of a liquid crystal display, a light-emitting diode, or the like.

[0194] The display unit 930 can also be configured to receive input digital or character information, and generate signal inputs related to user settings and function controls of the terminal device 110. Specifically, the display unit 930 can include a touch screen 931 arranged on the front of the terminal device 110, which can collect touch operations of a user thereon or therearound, such as clicking buttons, dragging scroll boxes, and the like.

[0195] The touch screen 931 can be overlaid on the display screen 932, or the touch screen 931 and the display screen 932 can be integrated to realize the input and output functions of the terminal device 110. After integration, it can be referred to as a touch display screen. In this application, the display unit 930 can display application programs and corresponding operation steps.

[0196] The camera 940 can be used to capture still images, which a user can post through an application using the images taken by the camera 940. The camera 940 can be one or more. An object generates an optical image through a lens and projects the optical image to a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to the processor 980 to convert into a digital image signal.

[0197] The terminal device can also include at least one sensor 950, such as an acceleration sensor 951, a distance sensor 952, a fingerprint sensor 953, a temperature sensor 954. The terminal device can also be configured with a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, a motion sensor, and other sensors.

[0198] The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the terminal device 110. The audio circuit 960 can convert the received audio data into an electrical signal and transmit it to the speaker 961, which converts the electrical signal into an audible signal for output. The terminal device 110 can also be configured with a volume button for adjusting the volume of the audible signal. On the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is received by the audio circuit 960 and converted into audio data, which is then output to the communication component 910 for transmission to another terminal device 110, for example, or to the memory 920 for further processing.

[0199] The Bluetooth module 970 is used to interact with other Bluetooth devices with Bluetooth modules through Bluetooth protocols. For example, the terminal device can establish a Bluetooth connection with a wearable electronic device (e.g., a smart watch) that also has a Bluetooth module through the Bluetooth module 970, thereby enabling data interaction.

[0200] The processor 980 is the control center of the terminal device, connects all parts of the terminal through various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs stored in the memory 920 and calling data stored in the memory 920. In some embodiments, the processor 980 can include one or more processing units; the processor 980 can also integrate an application processor and a baseband processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the baseband processor mainly processes wireless communication. It can be understood that the above-mentioned baseband processor can also not be integrated into the processor 980. The processor 980 in this application can run an operating system, an application program, a user interface display and a touch response, and a model training method of an embodiment of the application. In addition, the processor 980 is coupled with the display unit 930.

[0201] Based on the same inventive concept, the embodiments of the present application also provide a computer program product, which comprises computer program code, which, when executed on a computer, causes the computer to perform the message comparison method of any of the preceding embodiments. Since the above-mentioned computer program product solves the problem in a similar way to the message comparison method, the implementation of the above-mentioned computer program product can be referred to the implementation of the method, and the repeated parts will not be described again.

[0202] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0203] The present application is described with reference to flowcharts and / or block diagrams according to the methods, devices (systems), and computer program products of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions executed by the computer or other programmable data processing apparatus produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The device that implements the functions specified in one or more flows and / or blocks Figure 1 The device that implements the functions specified in one or more flows and / or blocks

[0204] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flow Figure 1 The flow or flows and / or blocks Figure 1 The flow or flows and / or blocks

[0205] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 The flow or flows and / or blocks Figure 1 The flow or flows and / or blocks

[0206] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.

Claims

1. A message comparison method, characterized by, The method comprises: acquiring at least one first service message stored in the electric certificate system for a to-be-verified service; respectively comparing the at least one first service message with a related second service message stored in the local for the to-be-verified service; if there is at least one inconsistent comparison result, determining a missing to-be-processed message based on the comparison result, the to-be-processed message being the first service message or the second service message; the to-be-processed message being a message found in the message comparison process that has a message missing condition; performing corresponding message correction processing according to the storage location corresponding to the to-be-processed message; if the to-be-processed message is the second service message, acquiring a target first service message corresponding to the to-be-processed message in the electric certificate system according to the storage location corresponding to the to-be-processed message, and performing simulated reporting operation based on the target first service message, the simulated reporting operation representing simulating the electric certificate system to send a message to the local; the respective comparison of the at least one first service message with the related second service message stored in the local for the to-be-verified service comprises: acquiring the respective message transmission attributes and message identifiers corresponding to the at least one first service message and the corresponding second service message; the message transmission attribute being information reflecting the message transmission condition; respectively comparing the at least one first service message and the corresponding second service message based on the message transmission attribute and the message identifier.

2. The method of claim 1, wherein, each of the first service message and the second service message further comprises a corresponding message type; before the respective comparison of the at least one first service message with the related second service message stored in the local for the to-be-verified service, the method further comprises: obtaining the respective message types of each second service message by analyzing the second service message corresponding to the at least one first service message; selecting the second service messages participating in the comparison based on the respective message types of each second service message; the respective comparison of the at least one first service message with the related second service message stored in the local for the to-be-verified service comprises: comparing each selected second service message with the corresponding first service message.

3. The method of claim 1, wherein, the to-be-processed message is the first service message, and the corresponding message correction processing performed according to the storage location corresponding to the to-be-processed message comprises: acquiring a target second service message corresponding to the to-be-processed message in the local according to the storage location corresponding to the to-be-processed message; performing retransmission or discard processing on the target second service message.

4. The method of claim 1, wherein, the to-be-processed message is the second service message, and the corresponding message correction processing performed according to the storage location corresponding to the to-be-processed message comprises: acquiring a target first service message corresponding to the to-be-processed message in the electric certificate system according to the storage location corresponding to the to-be-processed message; performing simulated reporting operation based on the target first service message, the simulated reporting operation representing simulating the electric certificate system to send a message to the local.

5. The method of claim 1, wherein, the method further comprises: If there is at least one consistent comparison result, it is determined that the first service message and the second service message are normal, and the second service message is configured with a normal identifier.

6. The method of claim 5, wherein, After the second service message is configured with the normal identifier, the method further includes: storing the comparison result and displaying the comparison result based on the normal identifier.

7. The method according to any one of claims 1 to 5, wherein The at least one first service message stored in the electronic certificate system for the to-be-verified service includes: obtaining a first block height of the first service message at the end of the last message comparison and a second block height of the first service message at the beginning of the current message comparison; based on the block height difference between the first block height and the second block height, obtaining at least one first service message stored in the electronic certificate system for the to-be-verified service corresponding to the block height difference.

8. The method according to any one of claims 1 to 4, characterized in that, After the corresponding message correction processing is performed according to the storage location corresponding to the to-be-processed message, the method further includes: if the to-be-processed message is a first service message, configuring a missing identifier for a second service message corresponding to the to-be-processed message; storing the comparison result and displaying the comparison result based on the missing identifier.

9. A packet comparison apparatus, characterized by comprising: The method includes: an obtaining module configured to obtain at least one first service message stored in an electronic certificate system for a to-be-verified service; a comparison module configured to compare the at least one first service message with a second service message corresponding to the to-be-verified service stored in a local respectively; a determination module configured to, if there is at least one inconsistent comparison result, determine a missing to-be-processed message based on the comparison result, the to-be-processed message being the first service message or the second service message; the to-be-processed message being a message found in a message comparison process that has a message missing condition; a correction module configured to perform corresponding message correction processing according to a storage location corresponding to the to-be-processed message; if the to-be-processed message is the second service message, obtaining a target first service message corresponding to the to-be-processed message in the electronic certificate system according to the storage location corresponding to the to-be-processed message, and performing a simulated reporting operation based on the target first service message, the simulated reporting operation representing a simulation of the electronic certificate system sending a message to the local; the comparison module is specifically configured to: obtain a message transmission attribute and a message identifier corresponding to each of the at least one first service message and the corresponding second service message, the message transmission attribute being information reflecting a message transmission condition; compare the at least one first service message and the corresponding second service message based on the message transmission attribute and the message identifier respectively.

10. The apparatus of claim 9, wherein, Each of the first service message and the second service message further includes a corresponding message type; the device further includes: a classification module configured to, before comparing the at least one first service message with the second service message corresponding to the to-be-verified service stored in the local respectively, obtain a message type corresponding to each second service message by analyzing the second service message corresponding to the at least one first service message. The second service packets participating in the comparison are screened out based on the respective message types corresponding to the respective second service packets; The comparison module is specifically configured to: Compare each of the screened second service packets with the corresponding first service packet.

11. An electronic device, comprising: Comprise: A memory for storing program instructions; A processor for invoking the program instructions stored in the memory and executing the steps of the method according to the obtained program instructions.

12. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program comprises program instructions, which, when executed by a computer, cause the computer to execute the method according to any one of claims 1-8.

13. A computer program product, characterised in that, The computer program product comprises computer program code, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Message processing method and device

    CN113141236A

  • Message checking method and device, processor and electronic equipment

    CN114866627A