Method for online butt joint of three-party interface

By obtaining the three-party interface information to create and modify scripts, and performing online joint coordination and correction, the problem of traditional joint coordination is solved, and efficient three-party interface joint coordination and docking is achieved.

CN119512774AActive Publication Date: 2025-02-25BEIJING TESTOR TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411377545.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-02-25
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

Traditional JAVA systems cannot be modified online during docking. During joint debugging, multiple processes such as code modification, compilation, packaging, and online are required, which greatly affects the efficiency of joint debugging.

Method used

By obtaining the interface information of the three-party interface, creating a first script, and modifying it according to business needs to generate a second script. Then perform the first online joint debugging, and after successful, the three-party interface is called for the second online joint debugging. If there are any problems, modify the second script online until the entire business process runs normally.

Benefits of technology

The three-party interface of joint debugging is realized in the online operation state, which improves the efficiency of joint debugging and docking, and ensures the accuracy of scripts and the accurate operation of the three-party interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512774A_ABST
    Figure CN119512774A_ABST
Patent Text Reader

Abstract

The invention provides a method for online docking a three-party interface, which comprises the following steps of: 1, acquiring interface information of the three-party interface, and creating a first script according to the interface information; 2, obtaining a service demand of joint debugging and docking of the three-party interface, modifying the first script according to the service demand to obtain a second script, and performing first online joint debugging on the second script; 3, after online joint debugging succeeds, a third-party interface corresponding to the second script is called, second online joint debugging is carried out on the third-party interface, and when abnormity exists, the second script is modified online until the whole process of the service runs normally. Through joint debugging of three-party interfaces in an online operation state, joint debugging and butt joint efficiency is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of online joint debugging of three-party interfaces, and in particular to a method for online docking of three-party interfaces. Background Art

[0002] At present, with the widespread application of digitalization and Internet technology, enterprises and organizations increasingly need to integrate and interact with third-party systems to achieve a wider range of business needs and data sharing; data integration between various systems has become crucial to achieve data circulation and sharing. Therefore, business systems often need to be coordinated and connected with third-party interfaces;

[0003] However, traditional JAVA systems cannot be modified online during docking. During joint debugging, multiple processes such as code modification, compilation, packaging, and online deployment need to be repeated, which greatly affects the efficiency of joint debugging.

[0004] Therefore, in order to overcome the above technical problems, the present invention provides a method for online docking of a three-party interface. Summary of the invention

[0005] The present invention provides a method for online docking of a three-party interface, which is used to effectively create a first script by acquiring interface information of the three-party interface, and modify the first script according to the business requirements of the three-party interface joint debugging and docking, so as to obtain a second script, which is beneficial to ensuring the accuracy of the script, and by performing a first online joint debugging on the second script, and when the online joint debugging is successful, calling the three-party interface based on the second script, and by performing a second online joint debugging on the three-party interface, and when there is a problem, realizing online modification of the second script until the whole business process runs normally, and by joint debugging the three-party interface in an online running state, the joint debugging and docking efficiency is effectively improved.

[0006] A method for online connection of a three-party interface, comprising:

[0007] Step 1: Obtain the interface information of the three-party interface, and create a first script according to the interface information;

[0008] Step 2: Obtain the business requirements for the three-party interface joint debugging and docking, modify the first script according to the business requirements to obtain the second script, and perform the first online joint debugging on the second script;

[0009] Step 3: When the online joint debugging is successful, call the third-party interface corresponding to the second script, and perform a second online joint debugging on the third-party interface. If there is an exception, modify the second script online until the entire business process runs normally.

[0010] Preferably, a method for online connection of a three-party interface, in step 1, obtaining interface information of the three-party interface, and creating a first script according to the interface information, includes:

[0011] S101: Acquire an online joint debugging and docking service, and read the online joint debugging and docking service to determine the interface label of the online docking three-party interface and the service label of the online joint debugging and docking service;

[0012] S102: Generate an access request according to the service label of the online joint debugging service and the interface label of the three-party interface;

[0013] S103: input the access request into the preset interface management library for verification, and when the verification passes, retrieve the interface information of the three-party interface based on the access request;

[0014] S104: Read the script template and determine the script header corresponding to the script template;

[0015] S105: Divide the interface information of the three-party interface according to the script header, and obtain sub-interface information corresponding to each script header;

[0016] S106: Map the corresponding sub-interface information in the script template according to the script header, and complete the creation of the first script.

[0017] Preferably, in a method for online docking of a three-party interface, in S102, generating an access request according to a service tag of the online joint debugging docking service and an interface tag of the three-party interface includes:

[0018] Retrieving a first access request element from a preset database based on a service tag of the online joint debugging and docking service;

[0019] Retrieving a second access request element from a preset database based on an interface tag of the three-party interface;

[0020] The first access request element and the second access request element are combined to generate an access request.

[0021] Preferably, a method for online connection of a three-party interface, inputting an access request into a preset interface management library for verification, comprises:

[0022] Reading a preset interface database to determine constituent elements of the preset interface database;

[0023] Among them, the components of the preset interface database include: request verification data sub-database and information retrieval sub-database;

[0024] Read the access request to determine the first access request element and the second access request element

[0025] Inputting the first access request element into the request verification data sub-database for a first traversal, and determining whether there is an authorization code matching the first access request element in the verification data sub-database according to the first traversal result;

[0026] If there is no authorization code matching the first access request element in the verification database sub-database, it is determined that the verification has not been passed;

[0027] If there is an authorization code matching the first access request element in the verification data sub-database, a data interface form matching the authorization code is retrieved from the request verification data sub-database;

[0028] Input the second access request element in the access request into the request verification data sub-library and perform a second traversal in the data interface form, and determine whether there is a data interface consistent with the second access request element in the data interface form according to the second traversal result;

[0029] If there is a data interface consistent with the second access request element in the data interface form, it is determined that the verification is passed, and the interface information of the three-party interface is retrieved in the information retrieval sub-library based on the data interface consistent with the second access request element in the data interface form;

[0030] If there is no data interface consistent with the second access request element in the data interface table, it is determined that the verification has not passed.

[0031] Preferably, a method for online connection of a three-party interface further includes:

[0032] If there is no authorization code matching the first access request element in the verification database sub-database, a first alarm operation is performed;

[0033] If there is no data interface consistent with the second access request element in the data interface table, a second alarm operation is performed.

[0034] Preferably, a method for online docking of a three-party interface, in step 2, obtaining the business requirements of the three-party interface joint debugging docking, and modifying the first script according to the business requirements to obtain the second script, including:

[0035] S201: Read the business requirements of the three-party interface joint debugging and docking, determine the requirement items corresponding to the business requirements, and read the requirement content corresponding to the requirement items and the item names corresponding to the requirement items;

[0036] S202: Acquire the script content format of the first script, and adjust the format of the item name according to the script content format of the first script to obtain a script index;

[0037] S203: Reading the demand data corresponding to the demand item, determining the execution target corresponding to the demand data and the execution logic corresponding to each execution target;

[0038] S204: performing a first positioning in the first script based on the script index to obtain the area to be modified in the first script, and performing a second positioning in the area to be modified according to the execution target to obtain the content of the script to be modified;

[0039] S205: Adjust parameters of the script content to be modified based on the execution logic of the execution target to obtain a second script.

[0040] Preferably, in a method for online connection of a three-party interface, in S201, the demand items of the business demand include: an interface call item and a data processing logic item.

[0041] Preferably, in a method for online connection of a three-party interface, in step 2, a first online joint debugging is performed on the second script, including:

[0042] Reading the working state of the local network, and when the working state of the local network is in an on state, generating a benchmark input parameter based on the attribute information of the three-party interface, and obtaining a benchmark result corresponding to the benchmark input parameter;

[0043] Uploading the second script to the processing terminal, starting the second script based on the processing terminal according to the benchmark input parameters, and outputting the running result of the second script at the processing terminal;

[0044] Match the running result with the benchmark result to determine whether the second script completes the first online joint debugging;

[0045] When the running result matches the benchmark result, it is determined that the second script completes the first online joint debugging;

[0046] Otherwise, the second script is adjusted online until the running result matches the benchmark result.

[0047] Preferably, a method for online docking of a three-party interface, in step 3, when the online joint debugging is successful, calling the three-party interface corresponding to the second script, and performing a second online joint debugging on the three-party interface, includes:

[0048] Read the calling method and calling requirements of the corresponding third-party interface in the second script;

[0049] Call the third-party interface according to the calling method and calling requirements, and at the same time, obtain the current network connection status, and when the network connection is normal, read the entire business process;

[0050] Determine the parameter transmission channel corresponding to the three-party interface according to the entire business process, and add a transmission vector for each interface according to the parameter transmission channel;

[0051] Build the joint debugging parameter group of each interface based on the transmission vector and the entire business process;

[0052] The joint debugging parameter group of the current interface is transmitted to the corresponding remaining two interfaces according to the transmission channel, and the second online joint debugging of the three interfaces is implemented according to the receiving parameter group of the corresponding two interfaces.

[0053] Preferably, a method for online docking of a three-party interface, implementing a second online joint debugging of the three-party interface according to a receiving parameter group corresponding to the two-party interface, comprises:

[0054] Read the receiving parameter groups corresponding to the two interfaces;

[0055] Determine whether the joint debugging parameter group is consistent with the received parameters;

[0056] When the joint debugging parameter group is consistent with the receiving parameter group, it is determined that the parameter transmission from the current interface to the remaining two interfaces is normal;

[0057] Otherwise, it is determined that the parameter transmission from the current interface to the remaining two interfaces is abnormal, and at the same time, the abnormal interface is determined, and the receiving parameter group received by the abnormal interface is taken as the abnormal parameter group;

[0058] Read the joint debugging parameter group of the current party interface, and match the target correction strategy set in the preset strategy library according to the current joint debugging parameter group;

[0059] Input the abnormal parameter group into the target correction strategy set for matching, and output the target correction strategy;

[0060] The target correction strategy is read to determine the correction parameters, and the second script is modified online based on the correction parameters until the entire business process runs normally.

[0061] Compared with the prior art, the present invention has the following beneficial effects:

[0062] 1. By obtaining the interface information of the three-party interface, the first script can be effectively created, and the first script can be modified according to the business needs of the three-party interface joint debugging and docking, so as to obtain the second script, which is conducive to ensuring the accuracy of the script. By performing the first online joint debugging on the second script, and when the online joint debugging is successful, the three-party interface is called based on the second script, and the second online joint debugging is performed on the three-party interface. When there is a problem, the second script is modified online until the whole business process runs normally. By joint debugging the three-party interface in the online running state, the efficiency of joint debugging and docking is effectively improved.

[0063] 2. By determining the first access request element and the second access request element in the access request, the first traversal operation and the second traversal operation are performed in the request verification data sub-library in the corresponding preset interface database respectively, and verification is performed according to the results of the first traversal operation and the second traversal operation. When the verification passes, the interface information of the three-party interface can be retrieved based on the information retrieval sub-library in the preset interface database. By verifying the access request, the security of the interface information retrieval of the three-party interface is effectively guaranteed, thereby ensuring the effectiveness of the online connection of the three-party interface.

[0064] 3. Read the receiving parameter group of the corresponding two-party interfaces; determine whether the joint debugging parameter group is consistent with the receiving parameter group; when the joint debugging parameter group is consistent with the receiving parameter group, it is determined that the parameter transmission from the current party interface to the remaining two party interfaces is normal; otherwise, it is determined that the parameter transmission from the current party interface to the remaining two party interfaces is abnormal. At the same time, the abnormal party interface is determined, and the receiving parameter group received by the abnormal party interface is used as the abnormal parameter group; secondly, read the joint debugging parameter group of the current party interface, and match the target correction policy set in the preset policy library according to the current joint debugging parameter group; input the abnormal parameter group into the target correction policy set for matching, and output the target correction policy; finally, read the target correction policy, determine the correction parameters, and modify the second script online based on the correction parameters until the entire business process runs normally, which ensures the accurate operation of the three-party interface and improves the efficiency of the joint debugging and docking of the three-party interface.

[0065] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures specifically pointed out in this application document.

[0066] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0068] Figure 1 This is a flow chart of a method for online connection of a three-party interface in an embodiment of the present invention;

[0069] Figure 2 This is a flowchart of step 1 in a method for online connection of a three-party interface in an embodiment of the present invention;

[0070] Figure 3 This is a flowchart of step 2 in a method for online connection of a three-party interface in an embodiment of the present invention. DETAILED DESCRIPTION

[0071] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0072] In one embodiment, this embodiment provides a method for online connection of a three-party interface, such as Figure 1 As shown, including:

[0073] Step 1: Obtain the interface information of the three-party interface, and create a first script according to the interface information;

[0074] Step 2: Obtain the business requirements for the three-party interface joint debugging and docking, modify the first script according to the business requirements to obtain the second script, and perform the first online joint debugging on the second script;

[0075] Step 3: When the online joint debugging is successful, call the third-party interface corresponding to the second script, and perform a second online joint debugging on the third-party interface. If there is a problem, modify the second script online until the entire business process runs normally.

[0076] In this embodiment, the interface information may include the interface name, request method, interface path, request parameters, etc. of the three-party interface.

[0077] In this embodiment, the three-party interface may be an interface between three different entities or systems, and the three-party interface is determined according to specific business conditions, for example: service provider-application developer-user, etc.

[0078] In this embodiment, the first script may be a descriptive language created according to the interface information and used to control the interface call.

[0079] In this embodiment, the second script may be a script that implements interface calls and data processing logic based on business requirements.

[0080] In this embodiment, the first online joint debugging may be used to monitor the operation of the second script, and implement the joint debugging of the second script by evaluating the monitoring results, wherein the first online joint debugging may include testing of signals in the script connection, testing of various interfaces in the script, etc.

[0081] In this embodiment, the second online joint debugging may be an operation such as a joint debugging test on the three-party interface, so as to achieve normal operations such as parameter transmission or data interaction between the three-party interfaces.

[0082] The working principle and beneficial effects of the above technical solution are: by obtaining the interface information of the three-party interface, the first script can be effectively created, and the first script can be modified according to the business needs of the three-party interface joint debugging and docking, so as to obtain the second script, which is conducive to ensuring the accuracy of the script, and by performing a first online joint debugging on the second script, and when the online joint debugging is successful, calling the three-party interface based on the second script, and performing a second online joint debugging on the three-party interface, and when there is a problem, the second script is modified online until the entire business process runs normally, and the efficiency of the joint debugging and docking is effectively improved by joint debugging the three-party interface in the online running state.

[0083] In one embodiment, this embodiment provides a method for online connection of a three-party interface, such as Figure 2 As shown, in step 1, the interface information of the three-party interface is obtained, and a first script is created according to the interface information, including:

[0084] S101: Acquire an online joint debugging and docking service, and read the online joint debugging and docking service to determine the interface label of the online docking three-party interface and the service label of the online joint debugging and docking service;

[0085] S102: Generate an access request according to the service label of the online joint debugging service and the interface label of the three-party interface;

[0086] S103: input the access request into the preset interface management library for verification, and when the verification passes, retrieve the interface information of the three-party interface based on the access request;

[0087] S104: Read the script template and determine the script header corresponding to the script template;

[0088] S105: Divide the interface information of the three-party interface according to the script header, and obtain sub-interface information corresponding to each script header;

[0089] S106: Map the corresponding sub-interface information in the script template according to the script header, and complete the creation of the first script.

[0090] In this embodiment, the online joint debugging and docking service may be a service including three-party interfaces that need to be linked and the three parties need to perform online joint debugging.

[0091] In this embodiment, the preset interface management library is set in advance and is used to implement verification of the access request, and then to obtain the interface information of the three-party interface.

[0092] In this embodiment, the script template may be pre-set, and the script header is used to represent the import statement at the beginning of the script.

[0093] In this embodiment, the interface label of the three-party interface for online docking can be used to represent the representation identifier of the three-party interface, and the service label of the online joint debugging docking service can be used to represent the representation identifier of the service.

[0094] The working principle and beneficial effects of the above technical solution are: by obtaining the online joint debugging and docking task, the interface label of the three-party interface and the business label of the online joint debugging and docking business can be effectively determined; then, an access request is effectively generated, and the security of information retrieval is effectively guaranteed by verifying the access request. When the access request passes the verification, the interface information of the three-party interface can be effectively obtained, and then the script header can be determined through the script template. By processing and mapping the interface information of the three-party interface, the creation of the first script is effectively completed, thereby improving the accuracy and effectiveness of the creation of the first script.

[0095] In one embodiment, this embodiment provides a method for online docking of a three-party interface. In S102, an access request is generated according to a service tag of an online joint debugging docking service and an interface tag of the three-party interface, including:

[0096] Retrieving a first access request element from a preset database based on a service tag of the online joint debugging and docking service;

[0097] Retrieving a second access request element from a preset database based on an interface tag of the three-party interface;

[0098] The first access request element and the second access request element are combined to generate an access request.

[0099] In this embodiment, the first access request element is used to represent the first character of the access request component retrieved from the preset database according to the service tag of the online joint debugging service.

[0100] In this embodiment, the second access request element is used to represent the second character of the access request component retrieved from the preset database according to the interface tag of the three-party interface.

[0101] In this embodiment, the preset database may be used to store request elements corresponding to different service labels or interface labels.

[0102] The working principle and beneficial effect of the above technical solution are: through the business tag of the online joint debugging service and the interface tag of the three-party interface, the corresponding first access request element and the second access request element can be effectively retrieved in the preset database, thereby ensuring the accuracy of the generated access request.

[0103] In one embodiment, the embodiment provides a method for online docking of a three-party interface, inputting an access request into a preset interface management library for verification, including:

[0104] Reading a preset interface database to determine constituent elements of the preset interface database;

[0105] Among them, the components of the preset interface database include: request verification data sub-database and information retrieval sub-database;

[0106] Read the access request to determine the first access request element and the second access request element

[0107] Inputting the first access request element into the request verification data sub-database for a first traversal, and determining whether there is an authorization code matching the first access request element in the verification data sub-database according to the first traversal result;

[0108] If there is no authorization code matching the first access request element in the verification database sub-database, it is determined that the verification has not been passed;

[0109] If there is an authorization code matching the first access request element in the verification data sub-database, a data interface form matching the authorization code is retrieved from the request verification data sub-database;

[0110] Input the second access request element in the access request into the request verification data sub-library and perform a second traversal in the data interface form, and determine whether there is a data interface consistent with the second access request element in the data interface form according to the second traversal result;

[0111] If there is a data interface consistent with the second access request element in the data interface form, it is determined that the verification is passed, and the interface information of the three-party interface is retrieved in the information retrieval sub-library based on the data interface consistent with the second access request element in the data interface form;

[0112] If there is no data interface consistent with the second access request element in the data interface table, it is determined that the verification has not passed.

[0113] In this embodiment, the components of the preset interface database include: a request verification data sub-library and an information retrieval sub-library, wherein the request verification data sub-library stores the authorization codes of the request elements corresponding to all authorizable service tags and the interface form corresponding to the authorization code, and the interface form stores all data interface information authorized by the authorization code.

[0114] In this embodiment, the first traversal is based on the result of traversing the first access request element in the request verification data sub-base.

[0115] In this embodiment, the second traversal is based on the result of traversing the second access request element in the interface form.

[0116] In this embodiment, the request verification data sub-library is connected to the information retrieval sub-library. When the request verification data sub-library passes the request verification, the interface information of the three-party interface can be retrieved based on the information retrieval sub-library.

[0117] The working principle and beneficial effects of the above technical solution are: by determining the first access request element and the second access request element in the access request, respectively performing the first traversal operation and the second traversal operation in the request verification data sub-library in the corresponding preset interface database, and verifying according to the results of the first traversal operation and the second traversal operation, when the verification passes, the interface information of the three-party interface can be retrieved based on the information retrieval sub-library in the preset interface database. By verifying the access request, the security of the interface information retrieval of the three-party interface is effectively guaranteed, thereby ensuring the effectiveness of the online docking of the three-party interface.

[0118] In one embodiment, this embodiment provides a method for online connection of a three-party interface, further comprising:

[0119] If there is no authorization code matching the first access request element in the verification database sub-database, a first alarm operation is performed;

[0120] If there is no data interface consistent with the second access request element in the data interface table, a second alarm operation is performed.

[0121] In this embodiment, the first alarm operation may be an alarm operation mode when the first access request element fails to pass the verification. For example, the first alarm operation may be implemented through operations such as vibration.

[0122] In this embodiment, the second alarm operation may be an alarm operation mode when the second access request element fails to pass the verification. For example, the second alarm operation may be implemented by light operation.

[0123] The beneficial effect of the above technical solution is: through different alarm operations, effective identification is achieved when the first request element or the second request element fails to pass the verification, so that the user can grasp the verification situation as soon as possible and improve the efficiency of verification monitoring.

[0124] In one embodiment, this embodiment provides a method for online connection of a three-party interface, such as Figure 3 As shown, in step 2, the business requirements of the three-party interface joint debugging and docking are obtained, and the first script is modified according to the business requirements to obtain the second script, including:

[0125] S201: Read the business requirements of the three-party interface joint debugging and docking, determine the requirement items corresponding to the business requirements, and read the requirement content corresponding to the requirement items and the item names corresponding to the requirement items;

[0126] S202: Acquire the script content format of the first script, and adjust the format of the item name according to the script content format of the first script to obtain a script index;

[0127] S203: Reading the demand data corresponding to the demand item, determining the execution target corresponding to the demand data and the execution logic corresponding to each execution target;

[0128] S204: performing a first positioning in the first script based on the script index to obtain the area to be modified in the first script, and performing a second positioning in the area to be modified according to the execution target to obtain the content of the script to be modified;

[0129] S205: Adjust parameters of the script content to be modified based on the execution logic of the execution target to obtain a second script.

[0130] In this embodiment, the business demand items include: interface call items and data processing logic items.

[0131] In this embodiment, the script index may be used to implement positioning in the first script (ie, first positioning), thereby locking the region to be modified in the first script.

[0132] In this embodiment, the second positioning may be to lock the script content to be modified in the area to be modified according to the execution target.

[0133] In this embodiment, the execution logic of the execution target may be the execution logic such as the sequence and coordination relationship between the execution targets.

[0134] The working principle and beneficial effects of the above technical solution are: by reading the business requirements of the three-party interface joint debugging, the item names corresponding to the requirement items of the business requirements can be effectively determined, and then the first positioning of the first script and the second positioning of the execution target in the area to be modified can be effectively achieved through the script index, which effectively ensures the effectiveness of the modification of the first script and the accuracy of the script.

[0135] In one embodiment, this embodiment provides a method for online docking of a three-party interface. In step 2, a first online joint debugging is performed on the second script, including:

[0136] Reading the working state of the local network, and when the working state of the local network is in an on state, generating a benchmark input parameter based on the attribute information of the three-party interface, and obtaining a benchmark result corresponding to the benchmark input parameter;

[0137] Uploading the second script to the processing terminal, starting the second script based on the processing terminal according to the benchmark input parameters, and outputting the running result of the second script at the processing terminal;

[0138] Match the running result with the benchmark result to determine whether the second script completes the first online joint debugging;

[0139] When the running result matches the benchmark result, it is determined that the second script completes the first online joint debugging;

[0140] Otherwise, the second script is adjusted online until the running result matches the benchmark result.

[0141] In this embodiment, the attribute information is the working conditions and working environment of the three-party interface.

[0142] In this embodiment, the reference input parameters are defined based on the attribute information and are used as limiting requirements for joint debugging of a three-party interface.

[0143] In this embodiment, the benchmark result is a standard result of joint debugging of the three-party interface according to the benchmark input parameters.

[0144] The working principle and beneficial effects of the above technical solution are: by ensuring that the working state of the local network is in the connected state, the benchmark input parameters of the three-party interface are effectively determined based on the attribute information of the three-party interface, so that the benchmark results corresponding to the benchmark input parameters can be effectively determined, and the second script is run, and the match between the running result and the benchmark result is determined, so as to effectively realize the judgment of whether the first online joint debugging is completed, thereby ensuring the effectiveness and integrity of the first online joint debugging.

[0145] In one embodiment, this embodiment provides a method for online docking of a three-party interface. In step 3, when the online joint debugging is successful, the three-party interface corresponding to the second script is called, and a second online joint debugging is performed on the three-party interface, including:

[0146] Read the calling method and calling requirements of the corresponding third-party interface in the second script;

[0147] Call the third-party interface according to the calling method and calling requirements, and at the same time, obtain the current network connection status, and when the network connection is normal, read the entire business process;

[0148] Determine the parameter transmission channel corresponding to the three-party interface according to the entire business process, and add a transmission vector for each interface according to the parameter transmission channel;

[0149] Build the joint debugging parameter group of each interface based on the transmission vector and the entire business process;

[0150] The joint debugging parameter group of the current interface is transmitted to the corresponding remaining two interfaces according to the transmission channel, and the second online joint debugging of the three interfaces is implemented according to the receiving parameter group of the corresponding two interfaces.

[0151] In this embodiment, the calling method may include, for example: API calling.

[0152] In this embodiment, the calling requirements may include: permission requirements, data restrictions (ie, restrictions on data size and frequency), etc.

[0153] In this embodiment, the entire business process may be used to represent the work and coordination process between the three-party interfaces.

[0154] In this embodiment, the transmission vector is the transmission direction between the data transmission channels. By adding the transmission vector of the interface, the direction of the interface during transmission can be effectively determined.

[0155] The working principle and beneficial effect of the above technical solution are: by determining the transmission vector, the joint debugging vector and the joint debugging parameter group of each interface during the second joint debugging are effectively determined, and the second online joint debugging is realized by combining the joint debugging parameter group and the transmission vector, thereby effectively ensuring the efficient docking efficiency of the joint debugging.

[0156] In one embodiment, this embodiment provides a method for online docking of a three-party interface, which implements a second online joint debugging of the three-party interface according to a receiving parameter group corresponding to the two-party interface, including:

[0157] Read the receiving parameter groups corresponding to the two interfaces;

[0158] Determine whether the joint debugging parameter group is consistent with the received parameters;

[0159] When the joint debugging parameter group is consistent with the receiving parameter group, it is determined that the parameter transmission from the current interface to the remaining two interfaces is normal;

[0160] Otherwise, it is determined that the parameter transmission from the current interface to the remaining two interfaces is abnormal, and at the same time, the abnormal interface is determined, and the receiving parameter group received by the abnormal interface is taken as the abnormal parameter group;

[0161] Read the joint debugging parameter group of the current party interface, and match the target correction strategy set in the preset strategy library according to the current joint debugging parameter group;

[0162] Input the abnormal parameter group into the target correction strategy set for matching, and output the target correction strategy;

[0163] The target correction strategy is read to determine the correction parameters, and the second script is modified online based on the correction parameters until the entire business process runs normally.

[0164] In this embodiment, the preset strategy library may be pre-set and used to store correction strategy sets (ie, target correction strategy sets) corresponding to different joint debugging parameter groups.

[0165] The working principle and beneficial effects of the above technical solution are: first, read the receiving parameter group of the corresponding two-party interface; determine whether the joint debugging parameter group is consistent with the receiving parameter; when the joint debugging parameter group is consistent with the receiving parameter group, it is determined that the parameter transmission from the current party interface to the remaining two party interfaces is normal; otherwise, it is determined that the parameter transmission from the current party interface to the remaining two party interfaces is abnormal, and at the same time, the abnormal party interface is determined, and the receiving parameter group received by the abnormal party interface is used as the abnormal parameter group; secondly, read the joint debugging parameter group of the current party interface, and match the target correction policy set in the preset policy library according to the current joint debugging parameter group; input the abnormal parameter group into the target correction policy set for matching, and output the target correction policy; finally, read the target correction policy, determine the correction parameters, and modify the second script online based on the correction parameters until the entire business process runs normally, thereby ensuring the accurate operation of the three-party interface and improving the efficiency of the three-party interface joint debugging and docking.

[0166] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for online connection of a three-party interface, characterized in that: include: Step 1: Obtain the interface information of the three-party interface, and create a first script according to the interface information; Step 2: Obtain the business requirements for the three-party interface joint debugging and docking, modify the first script according to the business requirements to obtain the second script, and perform the first online joint debugging on the second script; Step 3: When the online joint debugging is successful, call the third-party interface corresponding to the second script, and perform a second online joint debugging on the third-party interface. When there is an exception, modify the second script online until the entire business process runs normally.

2. The method for online connection of a three-party interface according to claim 1, characterized in that: In step 1, the interface information of the three-party interface is obtained, and a first script is created according to the interface information, including: S101: Acquire an online joint debugging and docking service, and read the online joint debugging and docking service to determine the interface label of the online docking three-party interface and the service label of the online joint debugging and docking service; S102: Generate an access request according to the service label of the online joint debugging service and the interface label of the three-party interface; S103: input the access request into the preset interface management library for verification, and when the verification passes, retrieve the interface information of the three-party interface based on the access request; S104: Read the script template and determine the script header corresponding to the script template; S105: Divide the interface information of the three-party interface according to the script header, and obtain sub-interface information corresponding to each script header; S106: Map the corresponding sub-interface information in the script template according to the script header, and complete the creation of the first script.

3. The method for online connection of a three-party interface according to claim 2, characterized in that: In S102, an access request is generated according to the service tag of the online joint debugging service and the interface tag of the three-party interface, including: Retrieving a first access request element from a preset database based on a service tag of the online joint debugging and docking service; Retrieving a second access request element from a preset database based on an interface tag of the three-party interface; The first access request element and the second access request element are combined to generate an access request.

4. The method for online connection of a three-party interface according to claim 2, characterized in that: The access request is entered into the preset interface management library for verification, including: Reading a preset interface database to determine constituent elements of the preset interface database; Among them, the components of the preset interface database include: request verification data sub-database and information retrieval sub-database; Read the access request to determine the first access request element and the second access request element Inputting the first access request element into the request verification data sub-database for a first traversal, and determining whether there is an authorization code matching the first access request element in the verification data sub-database according to the first traversal result; If there is no authorization code matching the first access request element in the verification database sub-database, it is determined that the verification has not been passed; If there is an authorization code matching the first access request element in the verification data sub-database, a data interface form matching the authorization code is retrieved from the request verification data sub-database; Input the second access request element in the access request into the request verification data sub-library and perform a second traversal in the data interface form, and determine whether there is a data interface consistent with the second access request element in the data interface form according to the second traversal result; If there is a data interface consistent with the second access request element in the data interface form, it is determined that the verification is passed, and the interface information of the three-party interface is retrieved in the information retrieval sub-library based on the data interface consistent with the second access request element in the data interface form; If there is no data interface consistent with the second access request element in the data interface table, it is determined that the verification has not passed.

5. The method for online connection of a three-party interface according to claim 4, characterized in that: Also includes: If there is no authorization code matching the first access request element in the verification database sub-database, a first alarm operation is performed; If there is no data interface consistent with the second access request element in the data interface table, a second alarm operation is performed.

6. The method for online connection of a three-party interface according to claim 1, characterized in that: In step 2, the business requirements for the three-party interface joint debugging and docking are obtained, and the first script is modified according to the business requirements to obtain the second script, including: S201: Read the business requirements of the three-party interface joint debugging and docking, determine the requirement items corresponding to the business requirements, and read the requirement content corresponding to the requirement items and the item names corresponding to the requirement items; S202: Acquire the script content format of the first script, and adjust the format of the item name according to the script content format of the first script to obtain a script index; S203: Reading the demand data corresponding to the demand item, determining the execution target corresponding to the demand data and the execution logic corresponding to each execution target; S204: performing a first positioning in the first script based on the script index to obtain the area to be modified in the first script, and performing a second positioning in the area to be modified according to the execution target to obtain the content of the script to be modified; S205: Adjust parameters of the script content to be modified based on the execution logic of the execution target to obtain a second script.

7. The method for online connection of a three-party interface according to claim 6, characterized in that: In S201, the business demand items include: interface call items and data processing logic items.

8. The method for online connection of a three-party interface according to claim 1, characterized in that: In step 2, a first online joint debugging is performed on the second script, including: Reading the working state of the local network, and when the working state of the local network is in an on state, generating a benchmark input parameter based on the attribute information of the three-party interface, and obtaining a benchmark result corresponding to the benchmark input parameter; Uploading the second script to the processing terminal, starting the second script based on the processing terminal according to the benchmark input parameters, and outputting the running result of the second script at the processing terminal; Match the running result with the benchmark result to determine whether the second script completes the first online joint debugging; When the running result matches the benchmark result, it is determined that the second script completes the first online joint debugging; Otherwise, the second script is adjusted online until the running result matches the benchmark result.

9. The method for online connection of a three-party interface according to claim 1, characterized in that: In step 3, when the online joint debugging is successful, the third-party interface corresponding to the second script is called, and the third-party interface is subjected to the second online joint debugging, including: Read the calling method and calling requirements of the corresponding third-party interface in the second script; Call the third-party interface according to the calling method and calling requirements, and at the same time, obtain the current network connection status, and when the network connection is normal, read the entire business process; Determine the parameter transmission channel corresponding to the three-party interface according to the entire business process, and add a transmission vector for each interface according to the parameter transmission channel; Build the joint debugging parameter group of each interface based on the transmission vector and the entire business process; The joint debugging parameter group of the current interface is transmitted to the corresponding remaining two interfaces according to the transmission channel, and the second online joint debugging of the three interfaces is implemented according to the receiving parameter group of the corresponding two interfaces.

10. The method for online connection of a three-party interface according to claim 9, characterized in that: The second online joint debugging of the three-party interface is implemented according to the receiving parameter group of the corresponding two-party interface, including: Read the receiving parameter groups corresponding to the two interfaces; Determine whether the joint debugging parameter group is consistent with the received parameters; When the joint debugging parameter group is consistent with the receiving parameter group, it is determined that the parameter transmission from the current interface to the remaining two interfaces is normal; Otherwise, it is determined that the parameter transmission from the current interface to the remaining two interfaces is abnormal, and at the same time, the abnormal interface is determined, and the receiving parameter group received by the abnormal interface is taken as the abnormal parameter group; Read the joint debugging parameter group of the current party interface, and match the target correction strategy set in the preset strategy library according to the current joint debugging parameter group; Input the abnormal parameter group into the target correction strategy set for matching, and output the target correction strategy; The target correction strategy is read to determine the correction parameters, and the second script is modified online based on the correction parameters until the entire business process runs normally.

Citation Information

Patent Citations

  • Method, device and equipment for testing analog Dubbo interface

    CN111538606A

  • Automatic testing method, device and equipment of photomask plate transmission control system and medium

    CN117421220A

  • Server kit and methods therefor

    US20200004598A1