Data transmission and verification method, system, computer equipment and storage medium

Data is sent in real time through the interface transmission protocol and verified by the file transfer protocol, which solves the problem of data loss during data transmission, achieves timely processing of data and improves user experience.

CN114710333BActive Publication Date: 2024-09-27HUBEI XIUYUECHENG TECHNICAL SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210290375.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-23
Publication Date
2024-09-27
Estimated Expiration
2042-03-23

AI Technical Summary

Technical Problem

Existing data transmission methods are easily affected by network jitter, leading to data loss, and cannot be sent to the business processing platform in real time, affecting data processing timeliness and user experience.

Method used

The business data is stored in the first data table through the business receiving interface and sent to the business processing platform in real time through the interface transmission protocol. After forming a batch file, it is sent to the business processing platform through the file transfer protocol, and the hash algorithm and indicator check value are used to verify Verify data integrity and detect and correct data lost during transmission.

Benefits of technology

It realizes data integrity detection and correction during data transmission, ensures timely processing of business data and user experience, and avoids data loss caused by network jitter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114710333B
    Figure CN114710333B
Patent Text Reader

Abstract

The present invention discloses a method, system, computer equipment and storage medium for data transmission and verification. The method comprises: a service receiving interface receives service data sent by a user end, stores the service data in a first data table and sends the service data to a service processing platform in real time through an interface transmission protocol; the service processing platform stores the service data sent in real time through the interface transmission protocol in a second data table; the service receiving interface forms a batch file with a plurality of service data contained in the first data table, and sends the batch file to the service processing platform through a file transmission protocol; the service processing platform verifies the service data in the second data table using the batch file sent through the file transmission protocol, so as to determine the service data lost in the process of data transmission through the interface transmission protocol; the present invention can verify whether the service data lost occurs in the process of data transmission, and correct the service data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of transmission protocol technology, and in particular to a method, system, computer equipment and storage medium for data transmission and verification. Background Art

[0002] In the existing data transmission process, the Hypertext Transfer Protocol HTTP is usually used for real-time data transmission, but this transmission method may be affected by network jitter and cause data loss; in addition, if the Secure File Transfer Protocol SFTP is used for file transfer, the data cannot be sent to the business processing platform in real time, thereby affecting the data processing timeliness. At the same time, for some data that require timely feedback in a short period of time, the processing results cannot be fed back to the user in time, affecting the user experience.

[0003] In view of this, it is necessary to further improve the current data transmission method. Summary of the invention

[0004] The object of the present invention is to provide a method, system, computer equipment and storage medium for data transmission and verification, which can verify whether there is any lost business data during the data transmission process and correct the business data.

[0005] According to one aspect of the present invention, a method for data transmission and verification is provided, which is applied to a business system, wherein the business system comprises: a business receiving interface and a business processing platform, and the method comprises the following steps:

[0006] The service receiving interface receives the service data sent by the user terminal, stores the service data in a first data table and sends the service data to the service processing platform in real time through an interface transmission protocol;

[0007] The business processing platform stores the business data sent in real time through the interface transmission protocol in the second data table, and performs business processing on the business data in the second data table;

[0008] The service receiving interface forms a batch file with the plurality of service data contained in the first data table, and sends the batch file to the service processing platform through a file transfer protocol;

[0009] The business processing platform verifies the business data in the second data table using the batch file sent via the file transfer protocol to determine the business data lost during the data transmission process via the interface transfer protocol.

[0010] Optionally, the service receiving interface forms a batch file with the multiple service data included in the first data table, specifically including:

[0011] The service receiving interface periodically obtains service data newly added within the preset time interval from the first data table at a preset time interval, and forms a batch file with the service data newly added within the preset time interval; or

[0012] Whenever a set amount of business data is added to the first data table, the business receiving interface forms a batch file with the newly added set amount of business data; or,

[0013] The business receiving interface determines whether the newly added business data in the first data table reaches a set number within a time period. If so, the business data of the set number are formed into a batch file and the current time period ends and enters the next time period. If not, the business data generated in the time period are formed into a batch file when the time period ends.

[0014] Optionally, sending the batch files to the business processing platform through a file transfer protocol specifically includes:

[0015] The service receiving interface accumulates the index values ​​of the specified indexes in each service data in the batch file to obtain the index reference value;

[0016] The service receiving interface generates a first check value according to all service data in the batch file using a hash algorithm;

[0017] The business receiving interface sends the batch file, the indicator reference value and the first verification value to the business processing platform through a file transfer protocol.

[0018] Optionally, the business processing platform verifies the business data in the second data table using a batch file sent through a file transfer protocol to determine the business data lost during data transmission through an interface transfer protocol, specifically including:

[0019] When the business processing platform receives the batch file sent through the file transfer protocol, it obtains the business data corresponding to the batch file from the second data table, and uses the obtained business data as verification business data;

[0020] The business processing platform accumulates the indicator values ​​of the specified indicators in each verification business data to obtain an indicator verification value;

[0021] The business processing platform determines whether the indicator verification value is consistent with the indicator reference value. If so, it determines that the business data sent in real time through the interface transmission protocol is complete; if not, the verification business data is checked through the batch file to determine the business data lost during the data transmission process through the interface transmission protocol.

[0022] Optionally, when the business processing platform receives a batch file sent through a file transfer protocol, acquiring business data corresponding to the batch file from the second data table, and using the acquired business data as verification business data, specifically includes:

[0023] The business processing platform generates a second check value according to all business data in the received batch file using a hash algorithm;

[0024] The business processing platform determines whether the first verification value and the second verification value are consistent. If so, the business data corresponding to the batch file is obtained from the second data table, and the obtained business data is used as verification business data.

[0025] Optionally, the checking the verification service data through the batch file to determine the service data lost during data transmission through the interface transmission protocol specifically includes:

[0026] The business processing platform adds an unmatched matching identifier to each business data in the received batch file; wherein the matching identifier includes: unmatched and matched;

[0027] The business processing platform matches the business data in the batch file with the verification business data, and modifies the matching identifier of the business data in the batch file that matches the verification business data to matched;

[0028] The business processing platform adds the business data with unmatched matching identifiers in the batch file as lost business data to the second data table.

[0029] Optionally, the interface transmission protocol is the Hypertext Transfer Protocol HTTP, and the file transmission protocol is the Secure File Transfer Protocol SFTP.

[0030] In order to achieve the above-mentioned object, the present invention also provides a system for data transmission and verification method, which specifically includes the following components: a service receiving interface and a service processing platform;

[0031] The service receiving interface is used to receive service data sent by the user terminal, store the service data in a first data table and send the service data to the service processing platform in real time through an interface transmission protocol; form a batch file with the multiple service data contained in the first data table, and send the batch file to the service processing platform through a file transfer protocol;

[0032] The business processing platform is used to store the business data sent in real time through the interface transmission protocol into the second data table, and perform business processing on the business data in the second data table; use the batch file sent through the file transfer protocol to verify the business data in the second data table to determine the business data lost during the data transmission process through the interface transmission protocol.

[0033] In order to achieve the above-mentioned purpose, the present invention also provides a computer device, which specifically includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the data transmission and verification method introduced above when executing the computer program.

[0034] In order to achieve the above object, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the data transmission and verification method introduced above are implemented.

[0035] The data transmission and verification method, system, computer equipment and storage medium provided by the present invention, the business receiving interface sends business data to the business processing platform through the interface transmission protocol and sends batch files to the business processing platform through the file transfer protocol, and uses a hash algorithm to verify the batch files on the business processing platform, and verifies the index reference value through the index verification value of the business data, which can effectively detect the integrity of the business data and detect whether the batch files have been tampered with; when business data is lost during data transmission through the interface transmission protocol, the verified batch file can be used as a reference file to match the business data one by one, quickly find out the business data lost during the data transmission process, and correct the business data in time to ensure the integrity of the business data. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] By reading the detailed description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not considered to be limitations of the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings.

[0037] In the attached picture:

[0038] Figure 1 An optional flow chart of the data transmission and verification method provided in Example 1;

[0039] Figure 2 A schematic diagram of an optional structure of the data transmission and verification system provided in Example 2;

[0040] Figure 3 A schematic diagram of an optional hardware architecture of a computer device provided for Example 3. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0042] Embodiment 1

[0043] The embodiment of the present invention provides a method for data transmission and verification, which is applied to a business system, wherein the business system includes: a business receiving interface and a business processing platform, such as Figure 1 As shown, the method specifically comprises the following steps:

[0044] Step S101: the service receiving interface receives service data sent by the user terminal, stores the service data in a first data table and sends the service data to the service processing platform in real time through an interface transmission protocol.

[0045] Among them, the business data is data related to transaction business (such as purchasing goods) generated by the user end, each business data contains a specified indicator (such as business amount), and the interface transmission protocol is the HTTP protocol (HyperTextTransfer Protocol), which is used to transmit business data from the user end to the server end in real time.

[0046] Specifically, the first data table is used to store each piece of service data sent by the user end in real time.

[0047] In this embodiment, the existing conventional business data transmission method is through the HTTP protocol, which can ensure the real-time data transmission. However, since the HTTP protocol is affected by network jitter and causes "packet loss", the business data transmitted to the server may be lost.

[0048] Step S102: the business processing platform stores the business data sent in real time through the interface transmission protocol into a second data table, and performs business processing on the business data in the second data table.

[0049] The second data table is used to record the business data sent in real time by the interface transmission protocol, and is used to compare with the business data in the first data table to determine whether data loss occurs during the transmission of business data through the interface transmission protocol.

[0050] In this embodiment, the business processing platform will perform normal business processing on the received business data and return the processing results to the user end. The data transmission logic provided in this embodiment further ensures the consistency and completeness of the business data during the transmission process by verifying the business data received by the business processing platform without affecting the original business data processing.

[0051] Step S103: the service receiving interface forms a batch file with the multiple service data included in the first data table, and sends the batch file to the service processing platform through a file transfer protocol.

[0052] The file transfer protocol is the SFTP protocol (Secret File Transfer Protocol), which is used by the service receiving interface to transfer batch files to the service processing platform through the file transfer protocol.

[0053] In this embodiment, three logics for generating batch files are provided, namely: setting a time interval, setting a quantity, and setting a time interval and a quantity.

[0054] Specifically, the forming of a batch file with the plurality of business data contained in the first data table includes the following three situations:

[0055] Case 1: the service receiving interface periodically obtains service data newly added within the preset time interval from the first data table at a preset time interval, and forms a batch file with the service data newly added within the preset time interval.

[0056] Furthermore, the situation 1 specifically includes:

[0057] The timer is used for timing. Whenever the timer reaches a set time, the business data generated within the set time will be formed into a batch file, and the timer will be reset to start timing again.

[0058] Case 2: Whenever a set number of business data is added to the first data table, the business receiving interface forms a batch file with the newly added set number of business data.

[0059] Furthermore, the situation 2 specifically includes:

[0060] The number of business data items appearing in the first data table is counted by a counter, and each time the counter reaches a set number, the set number of business data is formed into a batch file, and the counter is reset to count again.

[0061] Case 3: The business receiving interface determines whether the newly added business data in the first data table reaches a set number within a time period. If so, the business data of the set number are formed into a batch file and the current time period ends and enters the next time period. If not, when the time period ends, the business data generated in the time period are formed into a batch file.

[0062] Furthermore, the situation 3 specifically includes:

[0063] A timer and a counter are used simultaneously. When the timer has not reached the set duration, it is determined whether the counter has reached the set number. If so, the business data of the set number are formed into a batch file, and the counter is cleared to recount and the timer is cleared to retime. If not, when the timer reaches the set duration, the business data appearing in the first data table within the set duration are formed into a batch file, and the counter is cleared to recount and the timer is cleared to retime.

[0064] In this embodiment, a variety of logics for generating batch files are provided to facilitate different business scenarios. Developers can choose different logics for generating batch files according to the characteristics of the business data of the business scenarios, so as to achieve the purpose of smoothing the peaks and filling the valleys of business data and prevent the server from crashing due to the server instantly carrying a large amount of business data.

[0065] Furthermore, the sending of the batch files to the business processing platform via a file transfer protocol specifically includes the following steps:

[0066] Step B1: the service receiving interface accumulates the index values ​​of the designated indexes in each service data in the batch file to obtain an index reference value.

[0067] Step B2: The service receiving interface generates a first check value according to all service data in the batch file using a hash algorithm.

[0068] Among them, the hash algorithm is MD5 algorithm, SHA1 algorithm, SHA2 algorithm, and preferably, the hash algorithm is MD5 algorithm.

[0069] Step B3: The business receiving interface sends the batch file, the index reference value and the first verification value to the business processing platform via a file transfer protocol.

[0070] In this embodiment, the business receiving interface not only sends business data to the business processing platform in real time through the HTTP protocol, but also generates a first data table locally, and obtains batch files, indicator reference values ​​and first verification values ​​based on the first data table, and sends batch files, indicator reference values ​​and first verification values ​​to the business processing platform through the SFTP protocol to verify whether the business data received by the business processing platform is complete.

[0071] Step S104: the business processing platform verifies the business data in the second data table using the batch file sent via the file transfer protocol to determine the business data lost during the data transmission process via the interface transmission protocol.

[0072] Specifically, step S104 includes the following steps:

[0073] Step C1: When the business processing platform receives a batch file sent via a file transfer protocol, the business data corresponding to the batch file is obtained from the second data table, and the obtained business data is used as verification business data.

[0074] Furthermore, the step C1 specifically includes the following steps:

[0075] Step C11: The business processing platform generates a second verification value based on all business data in the received batch file using a hash algorithm.

[0076] Step C12: The business processing platform determines whether the first verification value and the second verification value are consistent. If so, the business data corresponding to the batch file is obtained from the second data table, and the obtained business data is used as verification business data; if not, a request is sent to the business receiving interface to notify the business receiving interface to resend the batch file.

[0077] In this embodiment, a hash algorithm is used to verify whether the batch files before and after transmission using the file transfer protocol are the same, thereby preventing data loss or file tampering during the transmission process, ensuring the integrity of the batch files received by the business processing platform, and determining the business data lost during data transmission through the interface transfer protocol.

[0078] Step C2: The business processing platform accumulates the indicator values ​​of the designated indicators in each verification business data to obtain an indicator verification value.

[0079] When the business data is business data of purchasing goods, the designated indicator is the transaction amount, and the indicator value is the actual value of the transaction amount. In addition, when obtaining the indicator value of the business data, it is necessary to determine the common indicators included in all business data, and the common indicators all include an indicator value, and the determined common indicators are used as designated indicators, that is, the designated indicators are included in each business data.

[0080] Step C3: The business processing platform determines whether the indicator verification value is consistent with the indicator reference value. If so, it determines that the business data sent in real time through the interface transmission protocol is complete; if not, the verification business data is checked through the batch file to determine the business data lost during the data transmission process through the interface transmission protocol.

[0081] In this embodiment, a first check is performed by using a hash algorithm to obtain a first check value and a second check value for the business data in the same batch file of the business receiving interface and the business processing platform respectively; then, the sum of the indicator values ​​of the specified indicators of the business data in the batch file of the business receiving interface, that is, the indicator reference value, and the sum of the indicator values ​​of the specified indicators of the business data in the second data table corresponding to the batch file, that is, the indicator check value, are calculated respectively, and the indicator check value and the indicator reference value are checked for a second time, so that the check result is more accurate.

[0082] Furthermore, the checking of the verification service data through the batch file to determine the service data lost during the data transmission process through the interface transmission protocol specifically includes the following steps:

[0083] Step C31: the business processing platform adds an unmatched matching identifier to each business data in the received batch file; wherein the matching identifier includes: unmatched and matched.

[0084] Specifically, since the batch file of the business processing platform verified by the hash algorithm is complete, the batch file can be used as a reference file, and the business data lost during the data transmission process through the interface transmission protocol can be found through the reference file.

[0085] Step C32: the business processing platform matches the business data in the batch file with the verification business data, and modifies the matching identifier of the business data in the batch file that matches the verification business data to matched.

[0086] Step C33: The business processing platform adds the business data with unmatched matching identifiers in the batch file as lost business data to the second data table.

[0087] In this embodiment, the business receiving interface sends business data to the business processing platform through the interface transmission protocol and sends batch files to the business processing platform through the file transfer protocol, and uses a hash algorithm to verify the batch files on the business processing platform, and verifies the index reference value through the index verification value of the business data, which can effectively detect the integrity of the business data and detect whether the batch files have been tampered with; when business data is lost during data transmission through the interface transmission protocol, the verified batch files can be used as reference files to match the business data one by one, quickly find out the business data lost in the data transmission process, and make timely corrections to the business data to ensure the integrity of the business data.

[0088] Embodiment 2

[0089] Based on the data transmission and verification method provided in the above embodiment 1, this embodiment provides a data transmission and verification system, specifically, Figure 2 An optional structural block diagram of the data transmission and verification system is shown, such as Figure 2 As shown, the system specifically includes the following components: a service receiving interface 201 and a service processing platform 202;

[0090] The service receiving interface 201 is used to receive service data sent by the user terminal, store the service data in a first data table and send the service data to the service processing platform 202 in real time through an interface transmission protocol; form a batch file with the multiple service data contained in the first data table, and send the batch file to the service processing platform 202 through a file transfer protocol;

[0091] Specifically, the business receiving interface 201 is also used to periodically obtain the business data newly added within the preset time interval from the first data table according to the preset time interval, and form the business data newly added within the preset time interval into a batch file; or, whenever a set number of business data is added to the first data table, the newly added set number of business data is formed into a batch file; or, within a time period, determine whether the business data newly added in the first data table reaches a set number, if so, form the set number of business data into a batch file and end the current time period to enter the next time period, if not, when the time period ends, the business data generated in the time period is formed into a batch file.

[0092] Furthermore, the business receiving interface 201 is also used to accumulate the indicator values ​​of the specified indicators in each business data in the batch file to obtain an indicator reference value; use a hash algorithm to generate a first verification value based on all the business data in the batch file; and send the batch file, the indicator reference value and the first verification value to the business processing platform 202 via a file transfer protocol.

[0093] Specifically, the business processing platform 202 is used to store the business data sent in real time through the interface transmission protocol into the second data table, and perform business processing on the business data in the second data table; use the batch file sent through the file transfer protocol to verify the business data in the second data table to determine the business data lost during the data transmission process through the interface transmission protocol.

[0094] Furthermore, the business processing platform 202 is also used to, when receiving a batch file sent via a file transfer protocol, obtain business data corresponding to the batch file from the second data table, and use the obtained business data as verification business data; accumulate the indicator values ​​of the specified indicators in each verification business data to obtain an indicator verification value; determine whether the indicator verification value is consistent with the indicator reference value, and if so, determine that the business data sent in real time via the interface transmission protocol is complete; if not, verify the verification business data through the batch file to determine the business data lost during the data transmission process via the interface transmission protocol.

[0095] Furthermore, the business processing platform 202 is also used to generate a second verification value based on all business data in the received batch file using a hash algorithm; determine whether the first verification value and the second verification value are consistent, and if so, obtain the business data corresponding to the batch file from the second data table, and use the obtained business data as verification business data.

[0096] Furthermore, the business processing platform 202 is also used to add an unmatched matching identifier for each business data in the received batch file; wherein the matching identifier includes: unmatched and matched; matching the business data in the batch file with the verification business data, and modifying the matching identifier of the business data in the batch file that has completed the match with the verification business data to matched; adding the business data in the batch file with the matching identifier as unmatched as lost business data to the second data table.

[0097] Embodiment 3

[0098] This embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. Figure 3 As shown, the computer device 30 of this embodiment includes at least but not limited to: a memory 301 and a processor 302 that can communicate with each other via a system bus. It should be noted that Figure 3 Only computer device 30 is shown with components 301 - 302 , but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0099] In this embodiment, the memory 301 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 301 can be an internal storage unit of the computer device 30, such as a hard disk or memory of the computer device 30. In other embodiments, the memory 301 can also be an external storage device of the computer device 30, such as a plug-in hard disk equipped on the computer device 30, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. Of course, the memory 301 can also include both the internal storage unit of the computer device 30 and its external storage device. In this embodiment, the memory 301 is generally used to store the operating system and various application software installed on the computer device 30. In addition, the memory 301 can also be used to temporarily store various types of data that have been output or are to be output.

[0100] In some embodiments, the processor 302 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 302 is generally used to control the overall operation of the computer device 30 .

[0101] Specifically, in this embodiment, the processor 302 is used to execute the program of the data transmission and verification method stored in the memory 301, and the program of the data transmission and verification method is executed to implement the following steps:

[0102] The service receiving interface receives the service data sent by the user terminal, stores the service data in a first data table and sends the service data to the service processing platform in real time through an interface transmission protocol;

[0103] The business processing platform stores the business data sent in real time through the interface transmission protocol in the second data table, and performs business processing on the business data in the second data table;

[0104] The service receiving interface forms a batch file with the plurality of service data contained in the first data table, and sends the batch file to the service processing platform through a file transfer protocol;

[0105] The business processing platform verifies the business data in the second data table using the batch file sent via the file transfer protocol to determine the business data lost during the data transmission process via the interface transfer protocol.

[0106] The specific implementation process of the above method steps can be found in Example 1, and this embodiment will not be repeated here.

[0107] Embodiment 4

[0108] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored. When the computer program is executed by a processor, the following method steps are implemented:

[0109] The service receiving interface receives the service data sent by the user terminal, stores the service data in a first data table and sends the service data to the service processing platform in real time through an interface transmission protocol;

[0110] The business processing platform stores the business data sent in real time through the interface transmission protocol in the second data table, and performs business processing on the business data in the second data table;

[0111] The service receiving interface forms a batch file with the plurality of service data contained in the first data table, and sends the batch file to the service processing platform through a file transfer protocol;

[0112] The business processing platform verifies the business data in the second data table using the batch file sent via the file transfer protocol to determine the business data lost during the data transmission process via the interface transfer protocol.

[0113] The specific implementation process of the above method steps can be found in Example 1, and this embodiment will not be repeated here.

[0114] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0115] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0117] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for data transmission and verification, It is characterized in that Applied to a business system, wherein the business system includes: a business receiving interface and a business processing platform, and the method includes: The service receiving interface receives the service data sent by the user terminal, stores the service data in a first data table and sends the service data to the service processing platform in real time through an interface transmission protocol; The business processing platform stores the business data sent in real time through the interface transmission protocol in the second data table, and performs business processing on the business data in the second data table; The service receiving interface forms a batch file with the plurality of service data contained in the first data table, and sends the batch file to the service processing platform through a file transfer protocol; The business processing platform verifies the business data in the second data table using the batch file sent through the file transfer protocol to determine the business data lost during the data transmission process through the interface transmission protocol; The interface transmission protocol is the Hypertext Transfer Protocol HTTP.

2. The data transmission and verification method according to claim 1, It is characterized in that The service receiving interface forms a batch file with the plurality of service data contained in the first data table, specifically including: The service receiving interface periodically obtains service data newly added within the preset time interval from the first data table at a preset time interval, and forms a batch file with the service data newly added within the preset time interval; or Whenever a set amount of business data is added to the first data table, the business receiving interface forms a batch file with the newly added set amount of business data; or, The business receiving interface determines whether the newly added business data in the first data table reaches a set number within a time period. If so, the business data of the set number are formed into a batch file and the current time period ends and enters the next time period. If not, the business data generated in the time period are formed into a batch file when the time period ends.

3. The data transmission and verification method according to claim 1, It is characterized in that The sending of the batch files to the business processing platform through a file transfer protocol specifically includes: The service receiving interface accumulates the index values ​​of the specified indexes in each service data in the batch file to obtain the index reference value; The service receiving interface generates a first check value according to all service data in the batch file using a hash algorithm; The business receiving interface sends the batch file, the indicator reference value and the first verification value to the business processing platform through a file transfer protocol.

4. The data transmission and verification method according to claim 3, It is characterized in that The business processing platform verifies the business data in the second data table using the batch file sent through the file transfer protocol to determine the business data lost during the data transmission process through the interface transmission protocol, specifically including: When the business processing platform receives the batch file sent through the file transfer protocol, it obtains the business data corresponding to the batch file from the second data table, and uses the obtained business data as verification business data; The business processing platform accumulates the indicator values ​​of the specified indicators in each verification business data to obtain an indicator verification value; The business processing platform determines whether the indicator verification value is consistent with the indicator reference value. If so, it determines that the business data sent in real time through the interface transmission protocol is complete; if not, the verification business data is checked through the batch file to determine the business data lost during the data transmission process through the interface transmission protocol.

5. The data transmission and verification method according to claim 4, It is characterized in that When the business processing platform receives the batch file sent through the file transfer protocol, acquiring business data corresponding to the batch file from the second data table and using the acquired business data as verification business data specifically includes: The business processing platform generates a second check value according to all business data in the received batch file using a hash algorithm; The business processing platform determines whether the first verification value and the second verification value are consistent. If so, the business data corresponding to the batch file is obtained from the second data table, and the obtained business data is used as verification business data.

6. The method for data transmission and verification according to claim 5, It is characterized in that The checking of the verification service data by the batch file to determine the service data lost during the data transmission process through the interface transmission protocol specifically includes: The business processing platform adds an unmatched matching identifier to each business data in the received batch file; wherein the matching identifier includes: unmatched and matched; The business processing platform matches the business data in the batch file with the verification business data, and modifies the matching identifier of the business data in the batch file that matches the verification business data to matched; The business processing platform adds the business data with unmatched matching identifiers in the batch file as lost business data to the second data table.

7. The data transmission and verification method according to any one of claims 1 to 6, It is characterized in that The file transfer protocol is the secure file transfer protocol SFTP.

8. A system for data transmission and verification, It is characterized in that The system comprises: a service receiving interface and a service processing platform; The service receiving interface is used to receive service data sent by the user terminal, store the service data in a first data table and send the service data to the service processing platform in real time through an interface transmission protocol; form a batch file with the multiple service data contained in the first data table, and send the batch file to the service processing platform through a file transfer protocol; The business processing platform is used to store the business data sent in real time through the interface transmission protocol in the second data table, and perform business processing on the business data in the second data table; verify the business data in the second data table using the batch file sent through the file transfer protocol to determine the business data lost during the data transmission process through the interface transmission protocol; The method for data transmission and verification of the system includes: The service receiving interface receives the service data sent by the user terminal, stores the service data in a first data table and sends the service data to the service processing platform in real time through an interface transmission protocol; The business processing platform stores the business data sent in real time through the interface transmission protocol in the second data table, and performs business processing on the business data in the second data table; The service receiving interface forms a batch file with the plurality of service data contained in the first data table, and sends the batch file to the service processing platform through a file transfer protocol; The business processing platform verifies the business data in the second data table using the batch file sent through the file transfer protocol to determine the business data lost during the data transmission process through the interface transmission protocol; The interface transmission protocol is the Hypertext Transfer Protocol HTTP.

9. A computer device, wherein the computer device include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

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