Service data transmission method and device, equipment and storage medium

By using unique codes to replace large amounts of data transmission in service data transmission among multiple systems, the problems of low transmission efficiency and insufficient security are solved, and more efficient and secure data transmission is achieved.

CN120216218APending Publication Date: 2025-06-27SF TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311811673.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

The prior art is inefficient and has a risk of sensitive information leakage when transmitting service data between multiple systems, which affects security.

Method used

By generating a unique code corresponding to the service data, the service data and the unique code are stored in a preset storage medium respectively, and the unique code is used in the target external system to obtain the corresponding service data and execute the target service.

Benefits of technology

It improves the security and efficiency of service data transmission, avoids the transmission of large amounts of data in external networks, and reduces the risk of sensitive information leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120216218A_ABST
    Figure CN120216218A_ABST
Patent Text Reader

Abstract

The invention discloses a service data transmission method and device, equipment and a storage medium, and the method comprises the steps: generating a unique code corresponding to the service data of a user, and storing the service data and the unique code in a preset storage medium; obtaining a target external system corresponding to the target service, and sending the unique code to the target external system, so that the target external system obtains service data from a storage medium according to the unique code, and executes the target service based on the service data; compared with the prior art, the technical scheme provided by the invention has the advantages that the unique code is used as a parameter of inter-system transmission, so that transmission of a large amount of data can be avoided; the service data and the unique code corresponding to the service data are stored based on the storage medium, so that the external system obtains the service data from the storage medium based on the unique code, the situation that the exposure risk is increased when the service data are transmitted in an external network is avoided, and the transmission safety and transmission efficiency of the service data are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and particularly to a method, device, equipment and storage medium for transmitting service data. Background Art

[0002] With the development of modern business requirements and technologies, the cooperation and interaction between multiple systems have become increasingly important; however, since different systems have their own functions and responsibilities, in the interaction between multiple systems, there will be a situation where service data needs to be transmitted across systems between different systems;

[0003] However, the size of data transmitted over the network is limited, which will reduce the transmission efficiency when transmitting service data; and since there may be sensitive data in the service data, when transmitting sensitive data in the service data across systems, although the sensitive data will be encrypted, due to the generally adopted data transmission method based on the external network, there is still a certain risk of leakage of sensitive information, thus affecting the security of service data transmission. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a method, device, equipment and storage medium for transmitting service data, which improves the transmission security and transmission efficiency of service data.

[0005] To solve the above technical problem, the present invention provides a method for transmitting service data, including: responding to a target service triggered by a user, obtaining the service data of the user, generating a unique code corresponding to the service data, and storing the service data and the unique code in a preset storage medium respectively; obtaining a target external system corresponding to the target service, and when it is determined that the number of target external systems is single, sending the unique code to the target external system, so that the target external system obtains the service data from the storage medium according to the unique code, and executes the target service based on the service data.

[0006] The method for transmitting service data provided by the present invention further includes: obtaining a target external system corresponding to the target service, and when it is determined that the number of target external systems is multiple, sorting the multiple target external systems based on the service execution order to obtain a system sorting order; based on the system sorting order, sending the unique code to the first target external system, so that the first target external system obtains the service data from the storage medium according to the unique code, and after executing the first target service based on the service data, sends the unique code to the next target external system until the multiple target external systems execute the corresponding target services.

[0007] In some embodiments, obtaining the business data of a user and generating a unique code corresponding to the business data includes: obtaining the business data input by the user and converting the business data into a data string; setting the validity period of the unique code, integrating the validity period of the unique code and the data string to obtain an integrated string; performing a hashing encryption process on the integrated string by a preset hashing algorithm to obtain a hash value, and obtaining the unique code based on the hash value.

[0008] In some embodiments, before the target external system obtains the business data from the storage medium according to the unique code, it further includes: when the target external system receives the unique code, decrypting the unique code to obtain the validity period of the unique code corresponding to the unique code; obtaining the current timestamp, and determining whether the current timestamp is within the validity period of the unique code. If not, it is determined that the unique code has expired, and the target service ends. Otherwise, it is determined that the unique code is valid, and the business data is obtained from the storage medium according to the unique code.

[0009] In some embodiments, storing the business data and the unique code in a preset storage medium respectively includes: using the unique code as the key name and the business data as the key value, and generating a business data key-value pair based on the key name and the key value; storing the business data key-value pair in the storage medium.

[0010] In some embodiments, the target external system obtains the business data from the storage medium according to the unique code, including: the target external system traverses the key names of all key-value pairs in the storage medium according to the unique code, and when the first key name identical to the unique code is traversed, obtains the first business data corresponding to the first key name as the business data.

[0011] The present invention also provides a method for transmitting business data, including: in response to a target service triggered by a user, obtaining the business data of the user and generating a unique code corresponding to the business data, and storing the business data and the unique code in a preset storage medium respectively; generating a unique code link based on the unique code, obtaining the target external system corresponding to the target service, and when it is determined that the number of target external systems is single, sending the unique code link to the target external system; setting up a unique code link service system, and based on the unique code link service system responding to the access operation of the target external system to the unique code link, obtaining the business data corresponding to the unique code link from the storage medium and sending the business data to the target external system, so that the target external system, after receiving the business data, executes the target service based on the business data.

[0012] A method for transmitting service data provided by the present invention further includes: obtaining a target external system corresponding to a target service, and when it is determined that the number of target external systems is multiple, sorting the multiple target external systems based on the service execution order to obtain a system sorting order, and sending a unique code link to a first target external system based on the system sorting order; based on the unique code link service system, in response to an access operation of the first target external system to the unique code link, obtaining service data corresponding to the unique code link from a storage medium, and sending the service data to the first target external system, so that after the first target external system receives the service data and executes the target service based on the service data, it sends the unique code link to the next target external system until the multiple target external systems complete the corresponding target services.

[0013] The present invention also provides a service data transmission device, including: a first service data processing module and a first service data extraction module; the first service data processing module is configured to respond to a target service triggered by a user, obtain the user's service data, generate a unique code corresponding to the service data, and store the service data and the unique code in a preset storage medium respectively; the first service data extraction module is configured to obtain a target external system corresponding to the target service, and when it is determined that the number of target external systems is single, send the unique code to the target external system, so that the target external system obtains the service data from the storage medium according to the unique code and executes the target service based on the service data.

[0014] A service data transmission device provided by the present invention further includes: a first target external system sorting module and a second service data extraction module; wherein, the first target external system sorting module is configured to obtain a target external system corresponding to the target service, and when it is determined that the number of target external systems is multiple, sort the multiple target external systems based on the service execution order to obtain a system sorting order; the second service data extraction module is configured to send the unique code to the first target external system based on the system sorting order, so that the first target external system obtains the service data from the storage medium according to the unique code and, after executing the first target service based on the service data, sends the unique code to the next target external system until the multiple target external systems complete the corresponding target services.

[0015] In some embodiments, the first service data processing module is configured to obtain the user's service data and generate a unique code corresponding to the service data, including: obtaining the service data input by the user, converting the service data into a data string; setting a unique code validity period, integrating the unique code validity period and the data string to obtain an integrated string; performing a hash encryption process on the integrated string based on a preset hash algorithm to obtain a hash value, and obtaining the unique code based on the hash value.

[0016] In some embodiments, before the target external system in the first service data extraction module obtains service data from the storage medium according to the unique code, it further includes: when the target external system receives the unique code, it decrypts the unique code to obtain the validity period of the unique code corresponding to the unique code; obtains the current timestamp, and determines whether the current timestamp is within the validity period of the unique code. If not, it determines that the unique code has expired and ends the target service. Otherwise, it determines that the unique code is valid and obtains service data from the storage medium according to the unique code.

[0017] In some embodiments, the first service data processing module is used to store service data and the unique code in a preset storage medium respectively, including: using the unique code as the key name, and using the service data as the key value, generating a service data key-value pair based on the key name and the key value; storing the service data key-value pair in the storage medium.

[0018] In some embodiments, the target external system in the first service data extraction module obtains service data from the storage medium according to the unique code, including: the target external system traverses the key names of all key-value pairs in the storage medium according to the unique code, and when it traverses the first key name that is the same as the unique code, it obtains the first service data corresponding to the first key name as the service data.

[0019] The present invention also provides a service data transmission device, including: a second service data processing module, a unique code link generation module, and a third service data extraction module; wherein, the second service data processing module is used to respond to the target service triggered by the user, obtain the service data of the user, generate a unique code corresponding to the service data, and store the service data and the unique code in a preset storage medium respectively; the unique code link generation module is used to generate a unique code link based on the unique code, obtain the target external system corresponding to the target service, and when it determines that the number of target external systems is single, send the unique code link to the target external system; the third service data extraction module is used to set up a unique code link service system, obtain the service data corresponding to the unique code link from the storage medium based on the response of the unique code link service system to the access operation of the target external system on the unique code link, and send the service data to the target external system, so that the target external system, after receiving the service data, executes the target service based on the service data.

[0020] A transmission device for service data provided by the present invention further includes: a second target external system sorting module and a fourth service data extraction module; wherein, the second target external system sorting module is configured to obtain the target external systems corresponding to the target service. When it is determined that the number of target external systems is multiple, sort the multiple target external systems based on the service execution order to obtain the system sorting order, and send the unique code link to the first target external system based on the system sorting order; the fourth service data extraction module is configured to, based on the unique code link service system's response to the access operation of the unique code link by the first target external system, obtain the service data corresponding to the unique code link from the storage medium, and send the service data to the first target external system, so that after the first target external system receives the service data and executes the target service based on the service data, send the unique code link to the next target external system until the multiple target external systems complete the corresponding target services.

[0021] The present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the service data transmission method as described in any one of the above.

[0022] The present invention also provides a computer-readable storage medium. The computer-readable storage medium includes a stored computer program. Wherein, when the computer program runs, it controls the device where the computer-readable storage medium is located to execute the service data transmission method as described in any one of the above.

[0023] Compared with the prior art, the service data transmission method, device, equipment, and storage medium according to the embodiments of the present invention have the following beneficial effects:

[0024] By compressing service data into a unique code and using the unique code as the transmission data during cross-system data transmission, it avoids the problem of low transmission efficiency caused by transmitting a large amount of data; and based on the storage medium storing service data and its corresponding unique code, enabling external systems to obtain corresponding parameter information from the storage medium based on the unique code, avoiding the situation where when service data is transmitted between different systems, it needs to be transmitted through an external network, which will increase the exposure risk, thereby ensuring the transmission security and efficiency of service data. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 is a schematic flowchart of an embodiment of a service data transmission method provided by the present invention;

[0026] Figure 2 is a schematic diagram of service data transmission when the number of target external systems in an embodiment provided by the present invention is 2;

[0027] Figure 3 It is a schematic flowchart of another embodiment of a method for transmitting service data provided by the present invention;

[0028] Figure 4 It is a schematic structural diagram of an embodiment of a device for transmitting service data provided by the present invention;

[0029] Figure 5 It is a schematic structural diagram of another embodiment of a device for transmitting service data provided by the present invention;

[0030] Figure 6 It is a schematic structural diagram of another embodiment of a device for transmitting service data provided by the present invention;

[0031] Figure 7 It is a schematic structural diagram of yet another embodiment of a device for transmitting service data provided by the present invention;

[0032] Figure 8 It is a schematic structural diagram of a terminal device for transmitting service data provided by the present invention. Detailed implementation manners

[0033] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0034] Embodiment 1, refer to Figure 1 , Figure 1 It is a schematic flowchart of an embodiment of a method for transmitting service data provided by the present invention. As shown in Figure 1 , the method includes steps 101 - 102, specifically as follows:

[0035] Step 101: In response to a target service triggered by a user, obtain the service data of the user, generate a unique code corresponding to the service data, and store the service data and the unique code in a preset storage medium respectively.

[0036] Due to modern business requirements and technological development, many business processes involve the collaboration and interaction between multiple systems. Different systems usually have different functions and responsibilities; for example, in e-commerce, a user needs to enter payment information on one system and complete the payment on another system; in this case, it is necessary to transmit service data including sensitive data such as bank card numbers, passwords, and user names from one system to another system to complete the business process, that is, to perform cross-system transmission of sensitive data in service data.

[0037] Since the size of data transmitted over the network is limited, when the amount of business data is large, the transmission efficiency of business data between systems will be low.

[0038] Moreover, since there is sensitive data in business data, when currently transmitting business data across systems, although the sensitive data in business data is encrypted, because generally data is transmitted based on the external network, there is still a risk of leakage of sensitive data in certain business information, which is not conducive to the security of business data transmission.

[0039] Based on the above, in this embodiment, after responding to the target business triggered by the user on the user operating system, the business data of the user is obtained based on the user operating system, and a unique code corresponding to the business data is generated.

[0040] Specifically, when the user triggers a specific business operation in a certain way, such as filling out a form, conducting a transaction, etc., the user operating system obtains the business data input by the user according to the user's trigger operation, converts the business data into a data string; sets the validity period of the unique code, integrates the validity period of the unique code and the data string to obtain an integrated string; performs hash encryption processing on the integrated string based on a preset hash algorithm to obtain a hash value, and obtains the unique code based on the hash value.

[0041] Preferably, the validity period of the unique code can be set to 1 minute.

[0042] Preferably, the business data is business sensitive data, and the business sensitive data includes but is not limited to sensitive data such as user names, passwords, bank card numbers, ID card numbers, etc.; specific business sensitive information needs to be defined based on the target business triggered by the user.

[0043] Preferably, the preset hash algorithm includes but is not limited to the MD5 hash encryption algorithm, and the MD5 hash encryption algorithm is used to convert information of any length into a hash value of a fixed length.

[0044] Preferably, the unique code can be a UUID or an encrypted string through symmetric or asymmetric encryption, which does not store information itself and is only a kind of mark, and the unique code needs to ensure its uniqueness.

[0045] In one embodiment, based on the user operating system, the business data and its corresponding unique code are also stored in a preset storage medium respectively.

[0046] Specifically, using the unique code as the key name and the business data as the key value, a business data key-value pair is generated based on the key name and the key value; the business data key-value pair is stored in the storage medium.

[0047] Preferably, the storage medium envelope can be the Redis database system or the MySQL database; storing business data and unique codes based on the storage medium can ensure the security and persistence of the data; when accessing and processing these data subsequently, relevant information can be obtained by reading the storage medium.

[0048] Step 102: Obtain the target external system corresponding to the target business. When it is determined that the number of the target external systems is single, send the unique code to the target external system, so that the target external system obtains the business data from the storage medium according to the unique code, and executes the target business based on the business data.

[0049] In one embodiment, since some simple business processes may only require basic interactions between two systems, such as user login, authentication, permission management, etc. usually only involve interactions between the user system and the authentication system. For example, a user enters a username and password on a system for login verification, and then the system communicates with the authentication system to verify the user's credentials; for complex business processes, usually involving multiple steps and links, multiple systems may need to work together. For example, in an e-commerce scenario, when dealing with online payment, order processing, inventory management, etc. usually requires the participation of multiple systems. For example, when a user places an order on a shopping website, it needs to interact with the payment system to complete the payment, and at the same time needs to interact with the inventory system to update the inventory quantity; in a financial service scenario: when dealing with bank card payment, account management, transaction records, etc., multiple systems may be involved; for example, when a user transfers money through a bank application, it needs to interact with multiple systems such as the account system, transaction system, and risk management system.

[0050] Therefore, in this embodiment, after the user triggers the target business, the target external system corresponding to the target business is also obtained, so that different business data transmission methods are subsequently executed based on the number of target external systems corresponding to the target business, so that each target external system can obtain the required business data.

[0051] In one embodiment, when it is determined that the number of the target external systems is single, the unique code is directly sent to the target external system based on the user operating system, so that the target external system obtains the business data from the storage medium according to the unique code.

[0052] When performing data transmission between two different systems, the method of transmitting the unique code is adopted to replace the existing method of transmitting business data in the external network environment, avoiding the risk of business data leakage. For the unique code, it has a fixed length, and only transmitting the unique code can avoid transmitting a large amount of data in the network, improving the data transmission efficiency between different systems.

[0053] In one embodiment, there is a link relationship between the target external system and the storage medium. The target external has direct access rights to the storage medium. When data is needed, the data in the storage medium can be queried through a unique code to obtain the required information. And based on this link relationship, a storage medium is shared between the target external system and the user operating system.

[0054] In one embodiment, when the target external system receives the unique code, it also verifies the source of the unique code.

[0055] Specifically, the target external system can verify through the API interface agreed with the user operating system. The user operating system provides an API interface, uses the unique code input by the target external system as the verification parameter, and returns the verification result to the target external system. The target external system obtains the verification result by calling this API interface to determine whether the source of the unique code is reliable.

[0056] In one embodiment, when the target external system receives the unique code, it decrypts the unique code to obtain the validity period of the unique code corresponding to the unique code. It obtains the current timestamp and judges whether the current timestamp is within the validity period of the unique code. If not, it determines that the unique code has expired and ends the target service. Otherwise, it determines that the unique code is valid and obtains the service data from the storage medium according to the unique code.

[0057] Specifically, when the target external system obtains the service data from the storage medium according to the unique code, it traverses the key names of all key-value pairs in the storage medium according to the unique code. When the first key name identical to the unique code is traversed, the first service data corresponding to the first key name is obtained as the service data.

[0058] Specifically, the first key name is the key name identical to the unique code among all the key-value pairs stored in the storage medium; the first service data is the key value of the key-value pair where the first key name is located.

[0059] In one embodiment, since different systems usually have different functions and responsibilities, after the target external system obtains the service data, it also executes the corresponding target service based on the service data.

[0060] An example is given to illustrate that in this embodiment, the target external system obtains the service data from the storage medium according to the unique code and executes the target service based on the service data:

[0061] In the scenario of payment point management, assume that the user operating system A is an e-commerce website. After the user makes a purchase on this website, the user operating system A will obtain relevant business data such as the user's username, password, and bank card number, and generate a unique code that uniquely corresponds to the user based on the business data. The unique code and its corresponding business data are stored in a storage medium, and the unique code is sent to the target external system B. The target external system can be understood as a point management system responsible for managing all users' point information and point operations. The target external system B uses this unique code to search for the corresponding business information in the storage medium, such as the corresponding username or bank card number. After obtaining the business information, it determines the target user and performs business operations such as increasing or deducting points for the target user based on the target user's current point situation.

[0062] In one embodiment, the target external system corresponding to the target business is obtained. When it is determined that the number of target external systems is multiple, based on the business execution order, the multiple target external systems are sorted to obtain the system sorting order.

[0063] Specifically, according to the execution logic and dependency relationship of the target business, the business execution order of the multiple target external systems is determined. For example, some businesses may need to first call an external system to obtain necessary data and then call other external systems for processing. When determining the business execution order, the dependency relationship and data transfer method between each external system need to be considered. After determining the business execution order, the multiple target external systems are directly sorted in this order to enable subsequent calls to each external system according to the business execution logic, ensuring the correctness of data and operations.

[0064] In one embodiment, based on the system sorting order, the unique code is sent to the first target external system, so that the first target external system can obtain the business data from the storage medium according to the unique code. After executing the first target business based on the business data, the unique code is sent to the next target external system until the multiple target external systems have executed the corresponding target business.

[0065] Preferably, the first target external system is the target external system ranked first in the system sorting order; the next target external system is the next target external system in the system sorting order after the current target external system, and the first target business is the business to be executed by the first target external system.

[0066] Specifically, first send the unique code to the first target external system based on the user's operating system, that is, the target external system ranked first in the system sorting order, so that the first target external system can obtain the corresponding business data from the storage medium based on the unique code for executing the first target business corresponding to the first target external system; subsequently, send the unique code sent from the user's operating system by the first target external system to the next target external system, so that the next target external system can also obtain relevant business data from the storage medium according to the unique code for executing its corresponding target business; based on the system sorting order, the unique code circulates among different target external systems, and each target external system can obtain relevant business data from the storage medium based on the unique code.

[0067] As Figure 2 shown, Figure 2 Figure 7 is a schematic diagram of the transmission of business data when the number of target external systems is 2. Figure 2 In Figure 9, System A is the user's operating system, System B is the first target external system, and System C is the second target external system. Among them, System C is the next target external system of System B, and the transmitted business data is business-sensitive data; in the figure, based on System A, the unique code is sent to System B so that System B can obtain the corresponding business-sensitive data from the storage medium based on the unique code for executing the first target business corresponding to System B; subsequently, based on System B, the unique code sent from System A is sent to System C so that System C can also obtain relevant business data from the storage medium according to the unique code for executing its corresponding target business.

[0068] In one embodiment, there is a link relationship between multiple target external systems and the storage medium respectively, and the target external has direct access rights to the storage medium. When data is needed, the data in the storage medium can be queried through the unique code to obtain the required information; and based on this link relationship, a storage medium is shared among multiple target external systems and the user's operating system.

[0069] In one embodiment, the difference between determining that the number of target external systems is multiple and determining that the number of target external systems of the external system is single is only that when the number of target external systems is multiple, it is also necessary to sort the multiple target external systems. Only the target external system ranked first receives the unique code sent by the user's operating system, and the unique codes received by other target external systems are sent by the target external system ranked one position ahead of it.

[0070] A method for transmitting service data provided in this embodiment generates a unique code corresponding to the service data. Both the unique code and the corresponding service data are stored in a storage medium linked to one or more target external systems. Subsequently, when data is transmitted between different systems, the unique code is sent to the target external system, enabling the target external system to obtain relevant service information from the storage medium based on the unique code for service processing. This avoids the direct transmission of service data between systems, improves the transmission security of service data, and, compared with directly transmitting data in the prior art, can improve the data transmission efficiency in scenarios with a large amount of transmitted data.

[0071] Embodiment 2, refer to Figure 3 , Figure 3 is a schematic flowchart of another embodiment of a method for transmitting service data provided by the present invention. As Figure 3 shown, the method includes steps 301 - 303, specifically as follows:

[0072] Step 301: In response to a target service triggered by a user, obtain the service data of the user, generate a unique code corresponding to the service data, and store the service data and the unique code in a preset storage medium respectively.

[0073] In one embodiment, obtaining the service data of the user and generating a unique code corresponding to the service data includes: obtaining the service data input by the user, converting the service data into a data string; setting the validity period of the unique code, integrating the validity period of the unique code and the data string to obtain an integrated string; performing a hash encryption process on the integrated string based on a preset hash algorithm to obtain a hash value, and obtaining the unique code based on the hash value.

[0074] In one embodiment, storing the service data and the unique code in a preset storage medium respectively includes: using the unique code as the key name and the service data as the key value, generating a service data key - value pair based on the key name and the key value; storing the service data key - value pair in the storage medium.

[0075] Since the specific steps executed by step 301 in this embodiment are the same as those of step 101 in Embodiment 1, the specific implementation manner of step 301 can refer to step 101 in Embodiment 1; here, step 301 will not be specifically elaborated.

[0076] Step 302: Based on the unique code, generate a unique code link, obtain the target external system corresponding to the target service. When it is determined that the number of target external systems is one, send the unique code link to the target external system.

[0077] Since data can be obtained by accessing the connection, the accessibility and sharing of the data can be improved, and a convenient mechanism for data interaction between systems can be provided; based on this, in this embodiment, a unique code link corresponding to the unique code is generated for obtaining the service data corresponding to the unique code.

[0078] In one embodiment, when generating a unique code link based on the unique code, the link format is determined, and the unique code and the link format are combined to generate a unique code link.

[0079] Specifically, determining the format of the link to be generated includes the protocol (such as HTTP or HTTPS), domain name, path, etc.; for example, the link format can be: "https: / / example.com / data / "; the generated unique code is combined with the link format to generate a link with the unique code. For example, if the generated unique code is "ABC123", the generated link can be: "https: / / example.com / data / ABC123".

[0080] In one embodiment, after the user triggers the target service, the target external system corresponding to the target service is also obtained, so that different service data transmission methods can be executed based on the number of target external systems corresponding to the target service, so that each target external system can obtain the required service data.

[0081] In one embodiment, when it is determined that the number of the target external systems is single, the unique code link is directly sent to the target external system based on the user operating system.

[0082] When data is transmitted between two different systems, by adopting the method of transmitting the unique code link, which replaces the existing method of transmitting service data in the external network environment, the risk of service data leakage is avoided, and for the unique code link, it has a fixed length, and only the unique code link is transmitted, which can avoid transmitting a large amount of data in the network and improve the data transmission efficiency between different systems.

[0083] Step 303: Set up a unique code link service system. Based on the response of the unique code link service system to the access operation of the target external system on the unique code link, obtain the service data corresponding to the unique code link from the storage medium, and send the service data to the target external system, so that after receiving the service data, the target external system executes the target service based on the service data.

[0084] In one embodiment, a unique code linking service system is provided. The unique code linking service system is linked to the storage medium. When a target external system accesses the unique code link, a data acquisition request is generated. When the unique code linking service system responds to the access operation of the target external system to the unique code link, the data acquisition request is sent to the unique code linking service system. Among them, the data acquisition request contains the unique code link; so that the unique code linking service system can obtain the unique code corresponding to the unique code link from the unique code link in the data acquisition request, and query and obtain the corresponding business data from the storage medium based on the unique code, and return the obtained business data to the data requester based on the storage medium, that is, send the business data to the target external system and display it in the target external system.

[0085] Preferably, the target external system accesses the unique code link by clicking to open it.

[0086] In one embodiment, the target external system corresponding to the target business is obtained. When it is determined that the number of target external systems is multiple, they are sorted based on the business execution order to obtain a system sorting order, and the unique code link is sent to the first target external system based on the system sorting order.

[0087] Specifically, according to the execution logic and dependency relationship of the target business, determine the business execution order of multiple target external systems; for example, some businesses may need to first call an external system to obtain necessary data, and then call other external systems for processing; when determining the business execution order, the dependency relationship and data transfer method between each external system need to be considered; after determining the business execution order, directly sort the multiple target external systems in this order to enable subsequent calls to each external system according to the business execution logic to ensure the correctness of data and operations.

[0088] In one embodiment, based on the response of the unique code linking service system to the access operation of the first target external system to the unique code link, the business data corresponding to the unique code link is obtained from the storage medium, and the business data is sent to the first target external system, so that after the first target external system receives the business data and executes the target business based on the business data, the unique code link is sent to the next target external system until the multiple target external systems complete the corresponding target business.

[0089] Preferably, the first target external system is the target external system ranked first in the system sorting order; the next target external system is the next target external system of the current target external system.

[0090] Specifically, first, based on the user's operating system, the unique code link is sent to the first target external system, that is, the target external system ranked first in the system sorting order, so that the first target external system can obtain the corresponding business data in the storage medium by accessing the unique code link for executing the first target business corresponding to the first target external system; subsequently, based on the first target external system, the unique code link sent from the user's operating system is sent to the next target external system, so that the next target external system can also obtain the relevant business data in the storage medium by accessing the unique code link for executing its corresponding target business; based on the system sorting order, the unique code link is circulated among different target external systems, and each target external system can obtain the relevant business data from the storage medium based on accessing the unique code link.

[0091] In one embodiment, the difference between determining that the number of target external systems is multiple and determining that the number of target external systems among external systems is single is only that when the number of target external systems is multiple, it is also necessary to sort the multiple target external systems. Only the target external system ranked first receives the unique code link sent by the user's operating system, and the unique code links received by other target external systems are sent by the target external system ranked one position ahead of it.

[0092] A method for transmitting business data provided in this embodiment generates a unique code corresponding to the business data and generates a unique code link. By storing both the unique code link and the corresponding business data in a storage medium linked to one or more target external systems, and subsequently, when performing data transmission between different systems, the unique code link is sent to the target external system so that the target external system can obtain the relevant business data from the storage medium by accessing the unique code link for business processing. This avoids the direct transmission of business data between systems, improves the transmission security of business data, and based on the transmission of the unique code link, compared with directly transmitting data in the prior art, it can improve the data transmission efficiency in the scenario of large data volume transmission.

[0093] Embodiment 3, see Figure 4 , Figure 4 is a schematic structural diagram of an embodiment of a device for transmitting business data provided by the present invention, as Figure 4 shown. The device includes a first business data processing module 401 and a first business data extraction module 402, specifically as follows:

[0094] The first service data processing module 401 is configured to respond to a target service triggered by a user, obtain the service data of the user, generate a unique code corresponding to the service data, and store the service data and the unique code in a preset storage medium respectively.

[0095] The first service data extraction module 402 is configured to obtain a target external system corresponding to the target service. When it is determined that the number of the target external systems is one, send the unique code to the target external system, so that the target external system obtains the service data from the storage medium according to the unique code, and executes the target service based on the service data.

[0096] A service data transmission device provided in this embodiment further includes: a first target external system sorting module 403 and a second service data extraction module 404, as Figure 5 shown Figure 5 is a schematic structural diagram of another embodiment of a service data transmission device provided by the present invention.

[0097] In one embodiment, the first target external system sorting module 403 is configured to obtain a target external system corresponding to the target service. When it is determined that the number of the target external systems is multiple, sort the multiple target external systems based on the service execution order to obtain a system sorting order.

[0098] In one embodiment, the second service data extraction module 404 is configured to send the unique code to a first target external system based on the system sorting order, so that the first target external system obtains the service data from the storage medium according to the unique code, and after executing the first target service based on the service data, send the unique code to the next target external system until the multiple target external systems execute the corresponding target services.

[0099] In one embodiment, the first service data processing module 401 is configured to obtain the service data of the user and generate a unique code corresponding to the service data, including: obtaining the service data input by the user, converting the service data into a data string; setting a unique code validity period, integrating the unique code validity period and the data string to obtain an integrated string; performing hash encryption processing on the integrated string based on a preset hash algorithm to obtain a hash value, and obtaining a unique code based on the hash value.

[0100] In one embodiment, before the target external system in the first service data extraction module 402 obtains the service data from the storage medium according to the unique code, it further includes: when the target external system receives the unique code, it decrypts the unique code to obtain the validity period of the unique code corresponding to the unique code; obtains the current timestamp, and determines whether the current timestamp is within the validity period of the unique code. If not, it determines that the unique code has expired and ends the target service. Otherwise, it determines that the unique code is valid and obtains the service data from the storage medium according to the unique code.

[0101] In one embodiment, the first service data processing module 401 is used to store the service data and the unique code in a preset storage medium respectively, including: using the unique code as the key name and the service data as the key value, generating a service data key-value pair based on the key name and the key value; storing the service data key-value pair in the storage medium.

[0102] In one embodiment, when the target external system in the first service data extraction module 402 obtains the service data from the storage medium according to the unique code, it includes: the target external system traverses the key names of all key-value pairs in the storage medium according to the unique code, and when it traverses the first key name identical to the unique code, it obtains the first service data corresponding to the first key name as the service data.

[0103] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described device can refer to the corresponding process in the foregoing method Embodiment 1 and will not be elaborated herein.

[0104] It should be noted that the embodiments of the above service data transmission device are merely illustrative. The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0105] Embodiment 4, see Figure 6 , Figure 6 is a schematic structural diagram of another embodiment of a service data transmission device provided by the present invention. As Figure 6 shown, the device includes a second service data processing module 601, a unique code link generation module 602, and a third service data extraction module 603, which are specifically as follows:

[0106] The second service data processing module 601 is configured to respond to a target service triggered by a user, obtain service data of the user, generate a unique code corresponding to the service data, and store the service data and the unique code in a preset storage medium respectively.

[0107] The unique code link generation module 602 is configured to generate a unique code link based on the unique code, obtain a target external system corresponding to the target service, and when determining that the number of the target external systems is single, send the unique code link to the target external system.

[0108] The third service data extraction module 603 is configured to set up a unique code link service system, obtain the service data corresponding to the unique code link from the storage medium based on an access operation of the target external system to the unique code link by the unique code link service system, and send the service data to the target external system, so that after receiving the service data, the target external system executes the target service based on the service data.

[0109] A service data transmission device provided in this embodiment further includes: a second target external system sorting module 604 and a fourth service data extraction module 605, as Figure 7 shown Figure 7 is a schematic structural diagram of still another embodiment of a service data transmission device provided by the present invention.

[0110] In one embodiment, the second target external system sorting module 604 is configured to obtain a target external system corresponding to the target service, when determining that the number of the target external systems is multiple, sort the multiple target external systems based on a service execution order to obtain a system sorting order, and send the unique code link to a first target external system based on the system sorting order.

[0111] In one embodiment, the fourth service data extraction module 605 is configured to obtain the service data corresponding to the unique code link from the storage medium based on an access operation of the first target external system to the unique code link by the unique code link service system, and send the service data to the first target external system, so that after receiving the service data, the first target external system sends the unique code link to the next target external system after executing the target service based on the service data, until the multiple target external systems execute the corresponding target services.

[0112] In one embodiment, the second service data processing module 601 is configured to obtain the service data of the user and generate a unique code corresponding to the service data, including: obtaining the service data input by the user, converting the service data into a data string; setting a validity period of the unique code, integrating the validity period of the unique code and the data string to obtain an integrated string; performing a hash encryption process on the integrated string based on a preset hash algorithm to obtain a hash value, and obtaining a unique code based on the hash value.

[0113] In one embodiment, the second service data processing module 601 is configured to store the service data and the unique code in a preset storage medium respectively, including: using the unique code as a key name and the service data as a key value, generating a service data key-value pair based on the key name and the key value; storing the service data key-value pair in the storage medium.

[0114] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described device can refer to the corresponding process in the foregoing method embodiment 2, and will not be elaborated herein.

[0115] It should be noted that the embodiments of the above service data transmission device are merely illustrative. The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0116] Based on the above embodiments of the service data transmission method, another embodiment of the present invention provides a service data transmission terminal device. Figure 8 It is a schematic structural diagram of a terminal device. As Figure 8 shown, the terminal device 8 of this embodiment includes: at least one processor 801 ( Figure 8 only one is shown in the figure), a memory 802, and a computer program 803 stored in the memory 802 and executable on at least one processor 801. When the processor 801 executes the computer program 803, the steps in any of the above method embodiments are implemented.

[0117] The terminal device 8 may be a computing device such as a smart phone, a laptop computer, a tablet computer, and a desktop computer. The terminal device may include but is not limited to the processor 801 and the memory 802. Those skilled in the art can understand that Figure 8The above are merely examples of the terminal device 8, which do not constitute a limitation on the terminal device 8. It may include more or fewer components than those shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.

[0118] The so-called processor 801 may be a central processing unit (CPU), and this processor 801 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0119] In some embodiments, the memory 802 may be an internal storage unit of the terminal device 8, such as the hard disk or memory of the terminal device 8. In some other embodiments, the memory 802 may also be an external storage device of the terminal device 8, such as a plug-in hard disk equipped on the terminal device 8, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 802 may also include both the internal storage unit and the external storage device of the terminal device 8. The memory 802 is used to store an operating system, application programs, a boot loader, data, and other programs, such as program codes of computer programs. The memory 802 may also be used to temporarily store data that has been output or is to be output.

[0120] In addition, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0121] An embodiment of the present application provides a computer program product, and when the computer program product runs on a terminal device, the terminal device is caused to execute the steps in each of the above method embodiments when executed.

[0122] In several embodiments provided in this application, it can be understood that each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, the program segment, or the part of code includes one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved.

[0123] If the function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a terminal device to execute all or part of the steps of the methods in various embodiments of this application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0124] In summary, a method, device, equipment, and storage medium for transmitting service data provided by the present invention generate a unique code corresponding to the service data of a user, store the service data and the unique code in a preset storage medium respectively; obtain a target external system corresponding to a target service, and send the unique code to the target external system, so that the target external system obtains the service data from the storage medium according to the unique code and executes the target service based on the service data; compared with the prior art solution, the technical solution of the present invention uses the unique code as a parameter for inter-system transmission, which can avoid the transmission of a large amount of data; and based on the storage medium to store the service data and its corresponding unique code, so that the external system obtains the service data from the storage medium based on the unique code, avoiding the situation that transmitting the service data in the external network will increase the exposure risk, thereby ensuring the transmission security and transmission efficiency of the service data.

[0125] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the technical principle of the present invention, several improvements and replacements can still be made, and these improvements and replacements should also be regarded as the protection scope of the present invention.

Claims

1. A method for transmitting service data, characterized in that, Including: In response to a target service triggered by a user, obtain the service data of the user, generate a unique code corresponding to the service data, and store the service data and the unique code in a preset storage medium respectively; Obtain the target external system corresponding to the target service. When it is determined that the number of the target external systems is one, send the unique code to the target external system, so that the target external system obtains the service data from the storage medium according to the unique code, and executes the target service based on the service data.

2. The transmission method of service data according to claim 1, wherein It also includes: Obtain the target external system corresponding to the target service. When it is determined that the number of the target external systems is multiple, sort the multiple target external systems based on the service execution order to obtain a system sorting order; Based on the system sorting order, send the unique code to the first target external system, so that the first target external system obtains the service data from the storage medium according to the unique code, and after executing the first target service based on the service data, send the unique code to the next target external system until the multiple target external systems complete the corresponding target services.

3. The transmission method of service data according to claim 1, characterized in that Obtain the service data of the user and generate a unique code corresponding to the service data, including: Obtain the service data input by the user and convert the service data into a data string; Set the validity period of the unique code, and integrate the validity period of the unique code and the data string to obtain an integrated string; Perform hash encryption processing on the integrated string based on a preset hash algorithm to obtain a hash value, and obtain a unique code based on the hash value.

4. The transmission method of service data according to claim 3, characterized in that, Before the target external system obtains the service data from the storage medium according to the unique code, it also includes: When the target external system receives the unique code, perform decryption processing on the unique code to obtain the validity period of the unique code corresponding to the unique code; Obtain the current timestamp, and determine whether the current timestamp is within the validity period of the unique code. If not, determine that the unique code has expired and end the target service. Otherwise, determine that the unique code is valid and obtain the service data from the storage medium according to the unique code.

5. The transmission method of service data according to claim 1, characterized in that, Storing the service data and the unique code in a preset storage medium respectively includes: Use the unique code as the key name and the service data as the key value, and generate a service data key-value pair based on the key name and the key value; Store the service data key-value pair in the storage medium.

6. The transmission method of service data according to claim 5, wherein The target external system obtains the service data from the storage medium according to the unique code, including: The target external system traverses the key names of all key-value pairs in the storage medium according to the unique code, and when it traverses to the first key name identical to the unique code, obtains the first service data corresponding to the first key name as the service data.

7. A method for transmitting service data, characterized in that, Including: In response to a target service triggered by a user, obtain the service data of the user, generate a unique code corresponding to the service data, and store the service data and the unique code in a preset storage medium respectively; Generate a unique code link based on the unique code, obtain the target external system corresponding to the target service. When it is determined that the number of the target external systems is one, send the unique code link to the target external system; Set up a unique code link service system. Based on the response of the unique code link service system to the access operation of the target external system on the unique code link, obtain the service data corresponding to the unique code link from the storage medium, and send the service data to the target external system, so that after receiving the service data, the target external system executes the target service based on the service data.

8. The transmission method of service data according to claim 7, wherein, It further includes: Obtain the target external system corresponding to the target service. When it is determined that the number of the target external systems is multiple, sort the multiple target external systems based on the service execution order to obtain a system sorting order, and send the unique code link to the first target external system based on the system sorting order; Based on the response of the unique code link service system to the access operation of the first target external system on the unique code link, obtain the service data corresponding to the unique code link from the storage medium, and send the service data to the first target external system, so that after receiving the service data and executing the target service based on the service data, the first target external system sends the unique code link to the next target external system until the multiple target external systems complete the corresponding target services.

9. A transmission device for service data, characterized in that, It includes: The first service data processing module and the first service data extraction module; The first service data processing module is used to respond to the target service triggered by the user, obtain the service data of the user, generate a unique code corresponding to the service data, and store the service data and the unique code in a preset storage medium respectively; The first service data extraction module is used to obtain the target external system corresponding to the target service. When it is determined that the number of the target external systems is one, send the unique code to the target external system, so that the target external system obtains the service data from the storage medium according to the unique code and executes the target service based on the service data.

10. The transmission device for service data according to claim 9, characterized in that, It further includes: The first target external system sorting module and the second service data extraction module; Among them, the first target external system sorting module is used to obtain the target external system corresponding to the target service. When it is determined that the number of the target external systems is multiple, sort the multiple target external systems based on the service execution order to obtain a system sorting order; The second service data extraction module is used to send the unique code to the first target external system based on the system sorting order, so that the first target external system obtains the service data from the storage medium according to the unique code and, after executing the first target service based on the service data, sends the unique code to the next target external system until the multiple target external systems complete the corresponding target services.

11. A transmission device for service data, characterized in that, It includes: The second service data processing module, the unique code link generation module, and the third service data extraction module; Among them, the second service data processing module is used to respond to the target service triggered by the user, obtain the service data of the user, generate a unique code corresponding to the service data, and store the service data and the unique code in a preset storage medium respectively; The unique code link generation module is used to generate a unique code link based on the unique code, obtain the target external system corresponding to the target service, and when it is determined that the number of the target external systems is single, send the unique code link to the target external system; The third service data extraction module is used to set up a unique code link service system, obtain the service data corresponding to the unique code link from the storage medium based on the access operation of the target external system to the unique code link by the unique code link service system, and send the service data to the target external system, so that after receiving the service data, the target external system executes the target service based on the service data.

12. The transmission device for service data according to claim 11, characterized in that, It further includes: The second target external system sorting module and the fourth service data extraction module; Among them, the second target external system sorting module is used to obtain the target external system corresponding to the target service, when it is determined that the number of the target external systems is multiple, sort the multiple target external systems based on the service execution order to obtain a system sorting order, and send the unique code link to the first target external system based on the system sorting order; The fourth service data extraction module is used to obtain the service data corresponding to the unique code link from the storage medium based on the access operation of the first target external system to the unique code link by the unique code link service system, and send the service data to the first target external system, so that after receiving the service data, the first target external system executes the target service based on the service data, and then sends the unique code link to the next target external system until the multiple target external systems execute the corresponding target services.

13. A terminal device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the service data transmission method according to any one of claims 1 to 8.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein when the computer program runs, it controls the device where the computer-readable storage medium is located to execute the service data transmission method according to any one of claims 1 to 8.