A system interfacing method, device, equipment and computer storage medium
By introducing an external transfer system into the agricultural wholesale market, the interface requests are verified, encrypted, decrypted, and encoded, which solves the problem of inconsistent interfaces between external systems and the market system, realizes the universality and security of data transmission, and promotes the standardization and efficiency of the system.
Patent Information
- Application Number
- CN202310008059.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2043-01-04
AI Technical Summary
In existing technologies, the interfaces between external software and hardware systems and the market system in agricultural wholesale markets are not standardized, resulting in data that cannot be efficiently integrated and used in a standardized manner.
By adding an external relay system between the first system and the market system, interface requests are verified, encrypted/decrypted, encoded/converted, and configuration relationships are looked up to determine the interface and achieve unified connectivity.
It unifies the interfaces between external hardware and software systems and market systems, enhances the universality and security of data transmission, and improves the standardization and efficiency of system operation.
Smart Images

Figure CN116015957B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart agricultural batch, and in particular to a system interfacing method, device, equipment and computer storage medium. BACKGROUND
[0002] Smart agricultural batch is a digital agricultural method formed by the integration of modern information technology and traditional agriculture. With the continuous efforts of the rural strategy, the agricultural batch market, as the main channel for the circulation of agricultural products in China, will inevitably move towards the road of standardization, standardization and intelligentization.
[0003] With the construction of digitization, more and more external software systems and hardware systems have been introduced into the agricultural batch market, such as parking systems, load systems, gate systems, etc. How to integrate the data of these external software systems and hardware systems with the agricultural batch market system to achieve standardized, efficient and integrated use has become a problem that needs to be solved in the agricultural batch market.
[0004] The traditional system interfacing scheme adopts a direct interfacing mode of the interface of the market system and the external software system or hardware system, which has the problem of non-uniform interface. SUMMARY
[0005] The embodiments of the present application provide a system interfacing method, device, equipment and computer storage medium, which can unify the interface of the external system and the market system.
[0006] In one aspect, the embodiments of the present application provide a system interfacing method applied to an external transfer system, comprising:
[0007] receiving an interface request of a first system;
[0008] verifying whether the interface request meets a preset requirement;
[0009] In the case where the interface request passes the verification, performing encryption and decryption according to a first message of the interface request to obtain a first external code;
[0010] performing code conversion according to the first external code and a preset code correspondence relationship to obtain a first internal code;
[0011] determining an interface of the first system according to the first internal code and a preset interface configuration relationship, so that the first system is connected with a market system through the interface and sends business data to the market system.
[0012] In one possible implementation, the method further comprises:
[0013] receiving second external data sent by the market system; the second external data is obtained by the market system according to the preset encoding correspondence relationship by converting second internal data; the second internal data is obtained by the market system according to the business data;
[0014] obtaining encryption information;
[0015] encrypting the second external data according to the encryption information to obtain a second message;
[0016] sending the second message to the first system through the interface.
[0017] In a possible implementation, the verifying whether the interface request meets preset requirements comprises:
[0018] verifying a format of the interface request, and / or verifying a flow control strategy of the interface request;
[0019] The verifying the interface flow control strategy of the interface request comprises:
[0020] in the absence of a change strategy, verifying the interface request according to a preset flow control strategy;
[0021] in the presence of a change strategy, verifying the interface request according to the change strategy.
[0022] In a possible implementation, the first internal encoding obtained by encoding conversion according to the first external encoding and the preset encoding correspondence relationship comprises:
[0023] extracting market system encoding, first system encoding and interface function encoding in the first external encoding;
[0024] obtaining the preset encoding correspondence relationship;
[0025] respectively encoding converting the market system encoding, the first system encoding and the interface function encoding according to the preset encoding correspondence relationship to obtain converted market system encoding, converted first system encoding and converted interface function encoding;
[0026] splicing the converted market system encoding, the converted first system encoding and the converted interface function encoding to obtain the first internal encoding.
[0027] On the other hand, the embodiments of the present application provide a system interfacing method, applied to a first system, comprising:
[0028] generating the interface request in response to input of a user;
[0029] The interface request is sent to the external connection transfer system, so that the external connection transfer system checks whether the interface request meets preset requirements, in the case that the interface request passes the check, first external coding is obtained by performing encryption and decryption according to first message of the interface request, first internal coding is obtained by performing coding conversion according to the first external coding and a preset coding correspondence relationship, and the interface of the first system is determined according to the first internal coding and a preset interface configuration relationship, so that the first system is connected with the market system through the interface and sends business data to the market system.
[0030] In still another aspect, an embodiment of the present application provides a system interfacing method, applied to a market system, comprising:
[0031] In response to business data sent by the first system through the interface, second external data is obtained.
[0032] The second external data is sent to the external connection transfer system, so that the external connection transfer system obtains encryption information, encrypts the second external data according to the encryption information, obtains second message, and sends the second message to the first system through the interface.
[0033] In still another aspect, an embodiment of the present application provides a system interfacing device, applied to an external connection transfer system, comprising:
[0034] The receiving module is configured to receive an interface request of a first system.
[0035] The checking module is configured to check whether the interface request meets preset requirements.
[0036] The encryption and decryption module is configured to, in the case that the interface request passes the check, perform encryption and decryption according to first message of the interface request, to obtain first external coding.
[0037] The coding conversion module is configured to perform coding conversion according to the first external coding and a preset coding correspondence relationship, to obtain first internal coding.
[0038] The determining module is configured to determine the interface of the first system according to the first internal coding and a preset interface configuration relationship, so that the first system is connected with a market system through the interface and sends business data to the market system.
[0039] In still another aspect, an embodiment of the present application provides a system interfacing device, applied to a first system, comprising:
[0040] The generating module is configured to generate the interface request in response to input of a user.
[0041] The sending module is configured to send the interface request to the external connection transfer system, so that the external connection transfer system checks whether the interface request meets preset requirements, and in the case that the interface request passes the check, performs encryption and decryption according to a first message of the interface request, obtains a first external code, performs encoding conversion according to the first external code and a preset encoding correspondence relationship, obtains a first internal code, and determines an interface of the first system according to the first internal code and a preset interface configuration relationship, so that the first system connects to the market system through the interface and sends service data to the market system.
[0042] In another aspect, an embodiment of the present application provides a system interfacing device, applied to a market system, comprising:
[0043] The obtaining module is configured to obtain second external data in response to service data sent by the first system through the interface.
[0044] The sending module is configured to send the second external data to the external connection transfer system, so that the external connection transfer system obtains encryption information, encrypts the second external data according to the encryption information, and obtains a second message, and sends the second message to the first system through the interface.
[0045] In another aspect, an embodiment of the present application provides a system interfacing device, comprising a processor and a memory storing computer program instructions.
[0046] The processor implements the system interfacing method according to any one of the preceding embodiments when executing the computer program instructions.
[0047] In another aspect, an embodiment of the present application provides a computer readable storage medium, which stores computer program instructions, and the computer program instructions are executed by a processor to implement the system interfacing method according to any one of the preceding embodiments.
[0048] In another aspect, an embodiment of the present application provides a computer program product, and instructions in the computer program product are executed by a processor of an electronic device to enable the electronic device to perform the system interfacing method according to any one of the preceding embodiments.
[0049] The system interfacing method, device, equipment and computer storage medium provided by the embodiments of the present application add an external connection transfer system between a first system and a market system, check, encrypt and decrypt, perform encoding conversion and find a configuration relationship for an interface request sent by the first system, determine an interface through which the first system connects to the market system, realize unification of the interface through which the first system connects to the market system, and enhance the versatility of the first system and the market system representing external hardware and software systems based on the requirement of the interface for transmitting data between the first system and the market system. BRIEF DESCRIPTION OF DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly introduced as follows, and other drawings can be obtained by those of ordinary skill in the art without creative labor on the premise of not paying the creative labor.
[0051] Figure 1 is a flow diagram of a system interfacing method provided by an embodiment of the present application;
[0052] Figure 2 is a flow diagram of a system interfacing method provided by another embodiment of the present application;
[0053] Figure 3 is a flow diagram of a system interfacing method provided by still another embodiment of the present application;
[0054] Figure 4 is a structural diagram of a system interfacing apparatus provided by an embodiment of the present application;
[0055] Figure 5 is a structural diagram of a system interfacing apparatus provided by another embodiment of the present application;
[0056] Figure 6 is a structural diagram of a system interfacing apparatus provided by still another embodiment of the present application;
[0057] Figure 7 is a structural diagram of a system interfacing device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0058] The features and exemplary embodiments of various aspects of the present application will be described in detail below, in order to make the purposes, technical solutions and advantages of the present application more clear and apparent, the present application will be further described in detail below in combination with the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, but not to limit the present application. The present application can be implemented without some of these specific details by those skilled in the art. The following description of the embodiments is only to provide a better understanding of the present application by showing examples of the present application.
[0059] It is to be noted that, in the present document, relational terms such as first and second and the like can be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0060] The acquisition, storage, use, processing and the like of data in the technical solutions of the present application comply with the relevant provisions of national laws and regulations.
[0061] The related art is as described above in the background section. Based on this, the inventors provide a system interfacing method, device, equipment and computer storage medium, an external connection transfer system is added between a first system and a market system, an interface request sent by the first system is verified, encrypted and decrypted, encoded and converted, and a configuration relationship is searched, an interface connected by the first system and the market system is determined, the interface connected by the first system and the market system is unified, the generality of the first system and the market system representing external hardware and software systems is enhanced based on the requirement of the interface for transmitting data between the first system and the market system.
[0062] To solve the problems in the prior art, the embodiments of the present application provide a system interfacing method, device, equipment and computer storage medium. First, the system interfacing method provided by the embodiments of the present application is introduced.
[0063] Figure 1 A flowchart of a system interfacing method provided by an embodiment of the present application is shown. As shown in Figure 1 The system interfacing method applied to the external connection transfer system provided by the embodiments of the present application includes the following steps: S101 to S105.
[0064] S101, receiving an interface request of a first system;
[0065] As an implementation manner of S101, the interface request of the first system is received through Bluetooth.
[0066] As another implementation manner of S101, the interface request of the first system is received through a wireless network.
[0067] As another implementation manner of S101, the interface request of the first system is received through a radio frequency signal.
[0068] In one example, the first system can be an external software system or an external hardware system such as a parking system, a load meter system, a barrier gate system, etc.
[0069] S102, checking whether the interface request meets preset requirements;
[0070] As one implementation of S102, it is checked whether the source of the interface request is secure.
[0071] In one example, the source of the interface request includes a device inputting the interface request. In the case where the device inputting the interface request is a common device, it is confirmed that the source of the interface request is secure. In the case where the device inputting the interface request is not a common device, it is confirmed that the source of the interface request is not secure.
[0072] In another example, the source of the interface request includes a network used by the device inputting the interface request. In the case where the network used by the device inputting the interface request is a common network, it is confirmed that the source of the interface request is secure. In the case where the network used by the device inputting the interface request is not a common network, it is confirmed that the source of the interface request is not secure.
[0073] In another example, the source of the interface request includes a user inputting the interface request. In the case where the user inputting the interface request is a user in a white list, it is confirmed that the source of the interface request is secure. In the case where the user inputting the interface request is not a user in the white list, it is confirmed that the source of the interface request is not secure.
[0074] As another implementation of S102, it is checked whether the data size of the interface request is compliant. In the case where the data of the interface request does not exceed a preset range, it is confirmed that the data of the interface request is compliant. In the case where the data of the interface request exceeds the preset range, it is confirmed that the data size of the interface request is not compliant.
[0075] S103, in the case where the interface request passes the checking, performing encryption and decryption according to a first message of the interface request to obtain a first external code;
[0076] As one implementation of S103, in the case where the interface request passes the checking, performing decryption on the first message according to a preset decryption rule to obtain the first external code.
[0077] As another implementation of S103, the decryption rule is dynamically changed over time, in the case where the interface request passes the checking, obtaining a current decryption rule according to a current time, performing decryption on the first message according to the current decryption rule to obtain the first external code.
[0078] In one example, the first message is encrypted information sent by the first system, and the first external code is information decrypted by the external connection relay system.
[0079] S104, encoding conversion is performed according to the first external code and the preset encoding correspondence relationship, to obtain a first internal code.
[0080] As an implementation manner of S104, a corresponding encoding conversion field in the preset encoding correspondence relationship is searched according to each field of the first external code, and the first internal code is obtained by splicing a plurality of encoding conversion fields.
[0081] As another implementation manner of S104, a corresponding encoding conversion field in the preset encoding correspondence relationship is searched according to a field at a preset position of the first external code, and the first internal code is obtained by splicing a plurality of encoding conversion fields.
[0082] As another implementation manner of S104, a preset number of continuous fields of the first external code are extracted, a corresponding encoding conversion field in the preset encoding correspondence relationship is searched according to the extracted plurality of continuous fields, and the first internal code is obtained by splicing a plurality of encoding conversion fields.
[0083] In one example, the first external code is the decrypted first message, and the first internal code is the decrypted first message converted into a first message recognizable by the market system. The unified first internal code is also convenient for storage.
[0084] S105, according to the first internal code and the preset interface configuration relationship, the interface of the first system is determined, so that the first system is connected with the market system through the interface, and the business data is sent to the market system.
[0085] As an implementation manner of S105, the preset interface configuration relationship stores a corresponding relationship between the internal code and the interface. The first interface of the first system corresponding to the first internal code is determined by searching the preset interface configuration relationship according to the first internal code, so that the first system is connected with the market system through the interface, and the business data is sent to the market system.
[0086] As another implementation manner of S105, the preset interface configuration relationship stores a corresponding relationship between the first field and the interface. First, the first field in the first internal code is extracted, and then the preset interface configuration relationship is searched to determine the interface of the first system corresponding to the first field, so that the first system is connected with the market system through the interface, and the business data is sent to the market system.
[0087] The system interfacing method provided by the embodiments of the present application adds an external connection transfer system between the first system and the market system, checks, encrypts and decrypts, encodes and converts, and looks up configuration relations of the interface request sent by the first system, determines the interface connected by the first system and the market system, realizes the unified interface connected by the first system and the market system, and enhances the versatility of the first system and the market system representing external hardware and software systems based on the requirements of the transmission data between the first system and the market system based on the interface.
[0088] In a possible implementation, in order to ensure the security of data transmission, the system interfacing method can further include:
[0089] receiving second external data sent by the market system;
[0090] As a possible implementation, the second external data sent by the market system is received according to a preset time interval.
[0091] As another possible implementation, the second external data sent by the market system is received in real time.
[0092] As another possible implementation, in order to prevent the data processing amount of the system from being too large, the market system sends the second external data to a message queue, and the external connection transfer system receives the second external data from the message queue.
[0093] As another possible implementation, in order to prevent the data processing amount of the system from being too large, the market system sends the second external data to a temporary table, and the external connection transfer system receives the second external data from the temporary table.
[0094] In an example, the second external data is obtained by the market system by converting the second internal data according to a preset encoding correspondence; and the second internal data is obtained by the market system according to business data.
[0095] obtaining encryption information;
[0096] As a possible implementation, the encryption information includes an encryption method and a pair of public key and private key.
[0097] The encryption method and the public key and private key can be fixed or changed according to a preset time length. In the case of fixed encryption method and public key and private key, the encryption method and the public key and private key can be only one or multiple. They can be fixed or random.
[0098] In an example, the encryption method includes: encryption method A, encryption method B and encryption method C. The public key and private key pair includes: a pair, b pair and c pair.
[0099] In the case that the encryption mode and the public-private key are fixed, there are only three kinds of encryption information: the encryption mode A-a pair, the encryption mode B-b pair and the encryption mode C-c pair.
[0100] In the case that the encryption mode and the public-private key are not fixed, there are nine kinds of encryption information: the encryption mode A-a pair, the encryption mode A-b pair, the encryption mode A-c pair, the encryption mode B-a pair, the encryption mode B-b pair, the encryption mode B-c pair, the encryption mode C-a pair, the encryption mode C-b pair and the encryption mode C-c pair.
[0101] According to the encryption information, the second external data is encrypted to obtain a second message;
[0102] The second message is sent to the first system through an interface.
[0103] As a possible implementation manner, the corresponding interface is determined according to the business data, and then the second message is sent to the first system through the interface
[0104] Therefore, by encrypting the second external data, the security of data transmission between the market system and the first system is improved.
[0105] In a possible implementation manner, in order to ensure the security of the system, the system interface method can further include:
[0106] Verifying the format of the interface request and / or verifying the flow control strategy of the interface request;
[0107] In the related art, the first system representing the external software and hardware system and the market system are directly connected, and there is no flow control measure, so that the system may be at risk of being attacked.
[0108] In an example, the flow control strategy includes: a market dimension flow control strategy, an interface dimension flow control strategy and an Internet Protocol Address (IP) dimension flow control strategy.
[0109] Verifying the interface flow control strategy of the interface request, including:
[0110] In the case that there is no change strategy, the interface request is verified according to a preset flow control strategy;
[0111] In the case that there is a change strategy, the interface request is verified according to the change strategy.
[0112] In an example, the interface dimension flow control strategy is enabled by default when the project is started. If the default strategy is changed, the changed strategy is used next time.
[0113] Therefore, by verifying the interface request, the security of the system is ensured.
[0114] In a possible implementation, in order to ensure the security of the system, the first internal code is obtained by performing encoding conversion on the first external code and a preset encoding correspondence.
[0115] The market system code, the first system code and the interface function code in the first external code are extracted.
[0116] In a possible implementation, the code in the preset position in the first external code is extracted to obtain the market system code, the first system code and the interface function code.
[0117] In another possible implementation, the market system code, the first system code and the interface function code are obtained by analyzing and calculating the first external code.
[0118] The preset encoding correspondence is obtained.
[0119] The market system code, the first system code and the interface function code are respectively converted according to the preset encoding correspondence to obtain a converted market system code, a converted first system code and a converted interface function code.
[0120] In a possible implementation, the corresponding items of the market system code, the first system code and the interface function code in the preset encoding correspondence are searched to obtain the converted market system code, the converted first system code and the converted interface function code.
[0121] The converted market system code, the converted first system code and the converted interface function code are spliced to obtain the first internal code.
[0122] In a possible implementation, the converted market system code, the converted first system code and the converted interface function code are spliced according to the preset position to obtain the first internal code.
[0123] In this way, the data encoding of the internal and external systems is unified by encoding conversion, and the universality of the first system and the market system is improved.
[0124] Figure 2 A flowchart of a system interfacing method provided by another embodiment of the application is shown. As shown in Figure 2 The system interfacing method applied to the first system provided by the embodiment of the application includes the following steps: S201 to S202.
[0125] S201, an interface request is generated in response to the input of a user.
[0126] As an implementation of S201, the interface request is generated in response to the text input of the user on the user interaction interface.
[0127] As another implementation of S201, the interface request is generated in response to a voice input of the user at the user interaction interface.
[0128] In one example, the interface request comprises the first system information and the user information.
[0129] In one possible implementation, to ensure the security of the interface request, before S201, security verification can also be performed.
[0130] In one example, before the user input, the user needs to log in on the user terminal. When logging in, the user needs to input an account and a password. Only when the account and the password of the user match, the user terminal will receive the input of the user. When the account and the password of the user do not match, the user terminal outputs a display of login failure.
[0131] To further improve the security of the account of the user, when the number of times of mismatching of the account and the password of the user exceeds a preset number threshold within a preset time period, the account is locked. The lock duration of the account of the user can be determined according to the number of times of mismatching of the account and the password of the user. The more the number of times of mismatching of the account and the password of the user, the longer the lock duration of the account of the user.
[0132] When the number of times of mismatching of the account and the password of the user exceeds a preset upper threshold, the account is determined as an abnormal account, and the abnormal account is added to a blacklist.
[0133] S202, the interface request is sent to the external transfer system, so that the external transfer system verifies whether the interface request meets a preset requirement, in the case that the interface request verification passes, the first message of the interface request is encrypted and decrypted to obtain a first external code, the first external code and a preset encoding correspondence relationship are encoded and converted to obtain a first internal code, the interface of the first system is determined according to the first internal code and a preset interface configuration relationship, so that the first system is connected with the market system through the interface, and the business data is sent to the market system.
[0134] As one implementation of S202, the interface request is sent to the external transfer system through a message queue, so that the external transfer system verifies whether the interface request meets a preset requirement, in the case that the interface request verification passes, the first message of the interface request is encrypted and decrypted to obtain a first external code, the first external code and a preset encoding correspondence relationship are encoded and converted to obtain a first internal code, the interface of the first system is determined according to the first internal code and a preset interface configuration relationship, so that the first system is connected with the market system through the interface, and the business data is sent to the market system.
[0135] As another implementation manner of S202, the interface request is sent to the external connection transfer system through the temporary table, so that the external connection transfer system checks whether the interface request meets preset requirements, in the case that the interface request passes the check, the first message of the interface request is decrypted, the first external code is obtained, the first internal code is obtained through encoding conversion according to the first external code and the preset encoding correspondence, and the interface of the first system is determined according to the first internal code and the preset interface configuration relationship, so that the first system is connected with the market system through the interface and sends the business data to the market system.
[0136] The system interfacing method provided by the embodiment of the application increases the external connection transfer system between the first system and the market system, the first system sends the interface request to the external connection transfer system, so that the external connection transfer system checks, decrypts, encodes and converts, and finds the configuration relationship of the interface request, determines the interface through which the first system is connected with the market system, realizes the interface through which the first system representing the external software and hardware system is connected with the market system, and enhances the generality of the first system and the market system representing the external software and hardware system based on the unified interface of the transmission data between the first system and the market system.
[0137] Figure 3 A flowchart of a system interfacing method provided by another embodiment of the application is shown. As shown in Figure 3 The system interfacing method applied to the market system provided by the embodiment of the application includes the following steps: S301-S302.
[0138] S301, in response to the business data sent by the first system through the interface, the second external data is obtained.
[0139] As an implementation manner of S301, in response to the business data sent by the first system through the interface, the database of the market system is searched, and the second external data is obtained.
[0140] As another implementation manner of S301, in response to the business data sent by the first system through the interface, the keyword extraction is performed according to the business data, the database of the market system is searched according to the extracted data, and the second external data is obtained.
[0141] As another implementation manner of S301, in response to the business data sent by the first system through the interface, the form conversion is performed according to the business data, the database of the market system is searched according to the form converted data, and the second external data is obtained.
[0142] As another implementation manner of S301, in response to the business data sent by the first system through the interface, the natural semantic understanding is performed according to the business data, the database of the market system is searched according to the natural semantic understanding data, and the second external data is obtained.
[0143] As another implementation of S301, in response to the service data sent by the first system through the interface, the associated data in the database is searched according to the service data, the database of the market system is searched according to the service data and the associated data, and the second external data is obtained.
[0144] In one example, the service data is a search word that the first system wants to query in the market system.
[0145] S302, the second external data is sent to the external connection transfer system, so that the external connection transfer system obtains encryption information, encrypts the second external data according to the encryption information, obtains the second message, and sends the second message to the first system through the interface.
[0146] As another implementation of S301, the second external data is sent to the external connection transfer system through a wireless network, so that the external connection transfer system obtains encryption information, encrypts the second external data according to the encryption information, obtains the second message, and sends the second message to the first system through the interface.
[0147] As another implementation of S301, the second external data is sent to the external connection transfer system through Bluetooth, so that the external connection transfer system obtains encryption information, encrypts the second external data according to the encryption information, obtains the second message, and sends the second message to the first system through the interface.
[0148] The system connection method provided by the embodiment of the application increases the external connection transfer system between the first system and the market system, the market system obtains the second external data in response to the service data of the external system, so that the external connection transfer system encrypts the second external data and sends it to the first system through the interface, and the security of data transmission between the first system and the market system is improved.
[0149] Figure 4 The structure of the system connection device provided by the embodiment of the application is shown. As shown in Figure 4 In combination with the above-mentioned system connection method, the embodiment of the application provides a system connection device 400 applied to the external connection transfer system, which includes the following modules: 401-405.
[0150] The receiving module 401 is configured to receive the interface request of the first system.
[0151] The verification module 402 is configured to verify whether the interface request meets the preset requirement.
[0152] The encryption and decryption module 403 is configured to, in the case that the interface request passes the verification, encrypt and decrypt the first message of the interface request to obtain the first external code.
[0153] The encoding conversion module 404 is configured to perform encoding conversion on the first external code according to a preset encoding and code correspondence relationship, to obtain a first internal code;
[0154] The determining module 405 is configured to determine an interface of the first system according to the first internal code and a preset interface configuration relationship, so that the first system is connected to the market system through the interface and sends the service data to the market system.
[0155] The system interfacing device provided by the embodiments of the present application adds a connection transfer system between the first system and the market system, checks, encrypts and decrypts, performs encoding conversion and looks up a configuration relationship for the interface request sent by the first system, determines the interface through which the first system is connected to the market system, realizes the unification of the interface through which the first system is connected to the market system, and enhances the versatility of the first system and the market system representing external hardware and software systems based on the requirement of the transmission data between the first system and the market system after the interface is unified.
[0156] In a possible implementation, in order to ensure the security of data transmission, the system interfacing device provided by the embodiments of the present application can further include:
[0157] The second external data receiving module is configured to receive second external data sent by the market system; the second external data is obtained by the market system by performing conversion on second internal data according to a preset encoding and code correspondence relationship; and the second internal data is obtained by the market system according to the service data;
[0158] The encryption information obtaining module is configured to obtain encryption information;
[0159] The second external data encryption module is configured to encrypt the second external data according to the encryption information, to obtain a second message;
[0160] The second message sending module is configured to send the second message to the first system through the interface.
[0161] In this way, by encrypting the second external data, the security of data transmission between the market system and the first system is improved.
[0162] In a possible implementation, in order to ensure the security of the system, the checking module can also be configured to check the format of the interface request, and / or check the flow limiting strategy of the interface request;
[0163] The checking module can also be configured to check the interface request according to the preset flow limiting strategy in the absence of a change strategy;
[0164] In the presence of a change strategy, the interface request is checked according to the change strategy.
[0165] In this way, by checking the interface request, the security of the system is ensured.
[0166] In a possible implementation, to ensure the security of the system, the encoding conversion module 404 can also be configured to:
[0167] extract the market system code, the first system code and the interface function code in the first external code;
[0168] obtain a preset encoding correspondence relationship;
[0169] perform encoding conversion on the market system code, the first system code and the interface function code according to the preset encoding correspondence relationship, to obtain a converted market system code, a converted first system code and a converted interface function code;
[0170] splice the converted market system code, the converted first system code and the converted interface function code to obtain the first internal code.
[0171] Thus, the encoding conversion unifies the internal and external data encoding, and improves the versatility of the first system and the market system.
[0172] Figure 5 FIG. 5 shows a structural schematic diagram of a system interfacing apparatus provided by another embodiment of the present application. As shown in FIG. 5, in combination with the system interfacing method described above, the embodiment of the present application provides a system interfacing apparatus 500 applied to the first system, which comprises the following modules: 501-502. Figure 5
[0173] The generating module 501 is configured to generate an interface request in response to an input of a user.
[0174] The sending module 502 is configured to send the interface request to the external connection transfer system, to enable the external connection transfer system to check whether the interface request meets preset requirements, to perform encryption and decryption according to the first message of the interface request in the case that the interface request passes the check, to obtain a first external code, to perform encoding conversion according to the first external code and a preset encoding correspondence relationship, to obtain a first internal code, to determine an interface of the first system according to the first internal code and a preset interface configuration relationship, and to enable the first system to connect with the market system through the interface and send service data to the market system.
[0175] The system interfacing method provided by the embodiment of the present application adds the external connection transfer system between the first system and the market system, the first system sends the interface request to the external connection transfer system, to enable the external connection transfer system to check, encrypt and decrypt, perform encoding conversion and find a configuration relationship on the interface request, to determine the interface through which the first system connects with the market system, to realize the unification of the interface through which the first system connects with the market system, to enhance the versatility of the first system and the market system based on the requirement of the interface for the transmission data between the first system and the market system.
[0176] Figure 6 An embodiment of the application provides a system docking method, as shown in the following. Figure 6 An embodiment of the application provides a system docking device applied to a market system, which comprises the following modules: 601-602.
[0177] The acquisition module 601 is configured to acquire second external data in response to service data sent by the first system through the interface.
[0178] The sending module 602 is configured to send the second external data to the external transfer system, so that the external transfer system acquires encryption information, encrypts the second external data according to the encryption information, obtains a second message, and sends the second message to the first system through the interface.
[0179] The system docking method provided by the embodiment of the application increases the external transfer system between the first system and the market system, the market system acquires second external data in response to service data of the external system, so that the external transfer system encrypts the second external data and sends the second external data to the first system through the interface, thereby improving the data transmission security between the first system and the market system.
[0180] Figure 7 An embodiment of the application provides a system docking device, as shown in the following. Figure 7 The system docking device can comprise a processor 701 and a memory 702 storing computer program instructions.
[0181] Specifically, the processor 701 can comprise a central processing unit (CPU), or an application specific integrated circuit (ASIC), or can be configured to implement one or more integrated circuits of the embodiment of the application.
[0182] The memory 702 can comprise a mass storage for data or instructions. By way of example and not limitation, the memory 702 can comprise a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 702 can include removable or non-removable (or fixed) media. Where appropriate, the memory 702 can be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, the memory 702 is a non-volatile solid-state memory.
[0183] The memory 702 can include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software that, when executed (e.g., by one or more processors), is operable to perform the operations described with reference to the methods according to an aspect of the present application.
[0184] The processor 701 implements the system interfacing method in any of the above-described embodiments by reading and executing computer program instructions stored in the memory 702.
[0185] In one example, the system interfacing device can further include a communication interface 703 and a bus 710. As shown, the processor 701, the memory 702, and the communication interface 703 are connected through the bus 710 and complete communication therebetween. Figure 7
[0186] The communication interface 703 is mainly used to realize the communication between the modules, devices, units, and / or apparatuses in the embodiments of the present application.
[0187] The bus 710 includes hardware, software, or both, that couples the components of the system interfacing device to each other. By way of example, and not limitation, the bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand (IB) interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or another suitable bus or a combination of two or more of these. Where appropriate, the bus 710 can include one or more buses. Although the present application describes and illustrates a particular bus, this application contemplates any suitable bus or interconnect.
[0188] The system interfacing device can perform the system interfacing method in the embodiments of the present application, thereby realizing the system interfacing method and apparatus described in combination Figures 1-6 with the above-described embodiments.
[0189] In addition, in combination with the system interfacing method in the above-described embodiments, the embodiments of the present application provide a computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions, when executed by a processor, implement the system interfacing method according to any one of the above-described embodiments.
[0190] In combination with the system docking method in the above embodiments, the embodiments of the present application provide a computer program product. Instructions in the computer program product are executed by a processor of an electronic device, so that the electronic device executes the system docking method according to any one of the above embodiments.
[0191] It should be noted that the present application is not limited to the specific configurations and processes described above and shown in the drawings. For the sake of brevity, detailed descriptions of well-known methods are omitted. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications and additions, or change the order of the steps, after understanding the spirit of the present application.
[0192] The functional blocks shown in the structural block diagrams described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, etc. When implemented in software, the elements of the present application are program or code segments used to perform the required tasks. The program or code segments can be stored in a machine-readable medium or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. The "machine-readable medium" can include any medium capable of storing or transmitting information. Examples of the machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segments can be downloaded via a computer network such as the Internet, an intranet, etc.
[0193] It should also be noted that the exemplary embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, or in an order different from the embodiments, or several steps can be executed simultaneously.
[0194] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other processing device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other processing device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0195] The above only is a specific implementation of the present application, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, module and unit can refer to the corresponding process in the foregoing method embodiments, which will not be described herein. It should be understood that the protection scope of the present application is not limited to this, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed in the present application, and these modifications or replacements shall be covered within the protection scope of the present application.
Claims
1. A system docking method applied to an external relay system, characterized in that, include: Receive interface requests from the first system; Verify the format of the interface request and the rate limiting strategy of the interface request; If the interface request verification passes, the first message of the interface request is encrypted and decrypted to obtain the first external encoding. Extract the market system code, the first system code, and the interface function code from the first external code; Obtain the preset code mapping relationship; According to the preset coding correspondence, the market system code, the first system code, and the interface function code are respectively converted to obtain the converted market system code, the converted first system code, and the converted interface function code; The conversion market system code, the conversion first system code, and the conversion interface function code are concatenated to obtain the first internal code; The interface of the first system is determined according to the first internal code and the preset interface configuration relationship, so that the first system can connect to the market system through the interface and send business data to the market system; The rate limiting strategies include field-level rate limiting strategies, interface-level rate limiting strategies, and Internet Protocol address-level rate limiting strategies. The interface rate limiting strategy for verifying the interface request includes: When the project starts, the rate limiting strategy for the interface dimension is enabled by default to verify the interface request. If the default strategy is changed, the changed strategy will be used to verify the interface request on the next startup.
2. The system docking method according to claim 1, characterized in that, Also includes: Receive second external data sent by the market system; The second external data is obtained by the market system by converting the second internal data according to the preset code mapping relationship; the second internal data is obtained by the market system based on the business data. Obtain encrypted information; The second external data is encrypted according to the encryption information to obtain the second message; The second message is sent to the first system through the interface.
3. A system docking method, applied to a first system, characterized in that, include: In response to user input, generate an API request; The interface request is sent to the external relay system so that the external relay system can verify the format of the interface request and the rate limiting policy of the interface request. If the interface request passes the verification, the first message of the interface request is encrypted and decrypted to obtain the first external code. The market system code, the first system code, and the interface function code are extracted from the first external code. Obtain a preset encoding mapping relationship; perform encoding conversion on the market system code, the first system code, and the interface function code according to the preset encoding mapping relationship to obtain a converted market system code, a converted first system code, and a converted interface function code; concatenate the converted market system code, the converted first system code, and the converted interface function code to obtain a first internal code; determine the interface of the first system according to the first internal code and the preset interface configuration relationship, so that the first system can connect to the market system through the interface and send business data to the market system; The rate limiting strategies include market-level rate limiting strategies, interface-level rate limiting strategies, and Internet Protocol address-level rate limiting strategies. The interface rate limiting strategy for verifying the interface requests by the external relay system includes: When the project starts, the rate limiting strategy for the interface dimension is enabled by default to verify the interface request. If the default strategy is changed, the changed strategy will be used to verify the interface request on the next startup.
4. A system integration method applied to a market system, characterized in that, include: In response to business data sent by the first system through an interface, obtain the second external data; The second external data is sent to the external relay system so that the external relay system can obtain the encryption information, encrypt the second external data according to the encryption information to obtain the second message, and send the second message to the first system through the interface; The interface is the interface determined by the external relay system based on the system docking method described in claim 1.
5. A system docking device, applied to an external transfer system, characterized in that, include: The receiving module is used to receive interface requests from the first system. The verification module is used to verify the format of the interface request and the rate limiting strategy of the interface request. The encryption / decryption module is used to encrypt and decrypt the first message of the interface request to obtain the first external encoding when the interface request verification is successful. The encoding conversion module is used to extract the market system code, the first system code, and the interface function code from the first external code; Obtain a preset code mapping relationship; perform code conversion on the market system code, the first system code, and the interface function code according to the preset code mapping relationship to obtain the converted market system code, the converted first system code, and the converted interface function code; The conversion market system code, the conversion first system code, and the conversion interface function code are concatenated to obtain the first internal code; The determining module is used to determine the interface of the first system based on the first internal code and the preset interface configuration relationship, so that the first system can connect to the market system through the interface and send business data to the market system. The rate limiting strategies include field-level rate limiting strategies, interface-level rate limiting strategies, and Internet Protocol address-level rate limiting strategies. The verification module is specifically used for: When the project starts, the rate limiting strategy for the interface dimension is enabled by default to verify the interface request. If the default strategy is changed, the changed strategy will be used to verify the interface request on the next startup.
6. A system docking device, applied to a first system, characterized in that, include: The generation module is used to generate interface requests in response to user input; The sending module is used to send the interface request to the external relay system so that the external relay system can verify the format of the interface request and the rate limiting policy of the interface request. If the interface request passes the verification, the module encrypts and decrypts the first message of the interface request to obtain the first external code and extracts the market system code, the first system code, and the interface function code from the first external code. Obtain a preset encoding mapping relationship; perform encoding conversion on the market system code, the first system code, and the interface function code according to the preset encoding mapping relationship to obtain a converted market system code, a converted first system code, and a converted interface function code; concatenate the converted market system code, the converted first system code, and the converted interface function code to obtain a first internal code; determine the interface of the first system according to the first internal code and the preset interface configuration relationship, so that the first system can connect to the market system through the interface and send business data to the market system; The rate limiting strategies include market-level rate limiting strategies, interface-level rate limiting strategies, and Internet Protocol address-level rate limiting strategies. The interface rate limiting strategy for verifying the interface requests by the external relay system includes: When the project starts, the rate limiting strategy for the interface dimension is enabled by default to verify the interface request. If the default strategy is changed, the changed strategy will be used to verify the interface request on the next startup.
7. A system docking device, applied to a market system, characterized in that, include: The acquisition module is used to acquire second external data in response to business data sent by the first system through an interface; The sending module is used to send the second external data to the external relay system so that the external relay system can obtain the encryption information, encrypt the second external data according to the encryption information to obtain the second message, and send the second message to the first system through the interface; The interface is the interface determined by the external relay system based on the system docking method described in claim 1.
8. A system docking device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the system docking method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the system docking method as described in any one of claims 1-6.
10. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs the system docking method as described in any one of claims 1-6.
Citation Information
Patent Citations
Internal system and third-party system software butt joint method and device and terminal equipment
CN109471740A
Data forwarding method and device, electronic equipment and storage medium
CN111371702A