CN107241315B - Access method and device of bank gateway interface and computer readable storage medium - Google Patents
Access method and device of bank gateway interface and computer readable storage medium Download PDFInfo
- Publication number
- CN107241315B CN107241315B CN201710372745.4A CN201710372745A CN107241315B CN 107241315 B CN107241315 B CN 107241315B CN 201710372745 A CN201710372745 A CN 201710372745A CN 107241315 B CN107241315 B CN 107241315B
- Authority
- CN
- China
- Prior art keywords
- bank
- handler
- gateway interface
- preset configuration
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/972—Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
- H04L41/083—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for increasing network speed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses an access method of a bank gateway interface, which comprises the following steps: when a target application program is started, loading all preset configuration files; generating corresponding handler responsibility chains for all the loaded preset configuration files; when a data connection instruction of the target application program is received, acquiring a corresponding handler responsibility chain according to a target bank identifier in the data connection instruction, and sequentially calling and executing each handler in the handler responsibility chain; and sending the execution result to a bank gateway interface corresponding to the data connection instruction. The invention also discloses an access device of the bank gateway interface and a computer readable storage medium. The bank gateway interface is efficiently and quickly connected, and the realization mode, the system architecture and the core processing are the same set of codes, so that the access quality of the bank gateway interface is ensured, and the development workload of the interface codes is reduced.
Description
Technical Field
The invention relates to the technical field of bank gateway system docking, in particular to an access method and device of a bank gateway interface and a computer readable storage medium.
Background
When the existing payment platform works, a plurality of banks or institutions need to be connected for deduction or refund operation, such as China banks, industrial and commercial banks, Unionpay and the like. However, the interface data format of the payment platform corresponding to each bank has great difference, and the main attributes of the difference include: 1) message formats such as KV, XML, JSON,8583, etc.; 2) outgoing means such as HTTP, SOCKET, etc.; 3) signature means such as Ansi99, XMLSignature, RSA certificate, etc.
But when corresponding to the payment platform interface, the flow of each bank interface is basically consistent, and the main interface flow comprises the following steps: receiving messages, converting parameters (converting parameters in the payment platform into parameters required by the bank), assembling message plaintext (without signature data), signing, assembling outgoing messages (with signature data), outgoing/receiving (through http or socket), analyzing messages, assembling message plaintext (with data required to be checked), checking, converting data (converting parameters in the bank into parameters in the payment platform), and returning data.
When the payment platform and the banks carry out request interaction, the interface performance of each bank is greatly different, the response time is different, and the supported maximum concurrency number and the supported maintenance time are different. If all banks share the same service resource, when a certain bank has a performance bottleneck, the use of other bank channels on the same server is affected slowly, and even an avalanche phenomenon is caused. In view of the above, it is necessary to make services of the respective channels independent.
When the existing payment platform is in butt joint with a bank interface, the work butt joint is realized by independently writing codes for each bank, namely, when each bank is accessed, independent codes are written according to the bank access document specification to realize parameter conversion, assemble plaintext messages, sign, assemble outgoing messages, send and receive the outgoing messages, analyze the messages, assemble the message plaintext, verify the signature, and then convert corresponding bank parameters into internal parameters required by the payment platform. When the system is deployed, the same server or a plurality of servers are responsible for the access of all banks. However, when the bank interface is butted by the prior art, the problems of low development efficiency, low project code quality and difficult service management and maintenance and monitoring are existed.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an access method and an access device of a bank gateway interface, and aims to solve the problems of bank access development efficiency and access quality.
In order to achieve the above object, the access method of the bank gateway interface provided by the present invention includes:
when a target application program is started, loading all preset configuration files;
generating corresponding handler responsibility chains for all the loaded preset configuration files;
when a data connection instruction of the target application program is received, acquiring a corresponding handler responsibility chain according to a target bank identifier in the data connection instruction, and sequentially calling and executing each handler in the handler responsibility chain;
and sending the execution result to a bank gateway interface corresponding to the data connection instruction.
Preferably, after the step of sending the execution result to the bank gateway interface corresponding to the data connection instruction, the method further includes:
substituting the execution result into the corresponding bank gateway interface, receiving data returned by the bank and analyzing the data connection instruction;
if the analysis is successful, the target terminal sending the data connection instruction is successfully accessed with the bank gateway interface;
and if the analysis fails, outputting prompt information of access failure.
Preferably, after the step of sequentially calling and executing each handler in the handler responsibility chain, the method further includes:
monitoring each handler execution process of the handler responsibility chain in a preset monitoring mode, recording error information into a corresponding log file when an execution problem occurs in the execution process, and calling a preset configuration file corresponding to the handler responsibility chain;
correspondingly modifying the content of the configuration file according to the occurring execution problem;
and storing the modified configuration file, triggering a preset calling mechanism, then sending the modified configuration file to a corresponding server, and reconfiguring and executing the handler responsibility chain by adopting the modified configuration file.
Preferably, before the step of loading all preset configuration files that have been preset when the target application program is started, the method further includes:
constructing a preset configuration file according to a preset format, and acquiring a target bank identifier corresponding to the preset configuration file;
and storing the constructed preset configuration file in association with the corresponding bank identification.
Preferably, the step of calling and executing each handler in the handler responsibility chain in sequence comprises:
and identifying the bank identification information of the preset configuration file, and acquiring a target server corresponding to the bank identification information, so that the target server sequentially calls and executes each handler in the configured handler responsibility chain, and simultaneously returns an execution result.
In addition, in order to achieve the above object, the present invention further provides an access device for a bank gateway interface, wherein the access device for the bank gateway interface includes: a memory, a processor and a computer program running on and executable on said processor, said computer program, when executed by said processor, implementing the steps of the access method of the bank gateway interface as described above.
The present invention also provides a computer readable storage medium, wherein the computer readable storage medium stores an access device of a bank gateway interface, and when executed by a processor, the access device of the bank gateway interface implements the steps of the access method of the bank gateway interface as described above.
The method includes loading all preset configuration files when a target application program is started; generating corresponding handler responsibility chains for all the loaded preset configuration files; when a data connection instruction of the target application program is received, acquiring a corresponding handler responsibility chain according to a target bank identifier in the data connection instruction, and sequentially calling and executing each handler in the handler responsibility chain; and sending the execution result to a bank gateway interface corresponding to the data connection instruction. And the quick connection with the bank gateway interface is completed by executing the preset configuration file corresponding to the bank gateway interface, so that the connection time of the bank gateway interface is prolonged. And the method for implementing the execution of the preset configuration file and the core execution step are processed by the same set of codes, thereby ensuring the access quality of the bank gateway interface and reducing the development workload of the connection codes of the bank gateway interface.
According to the access method and the access device for the bank gateway interface, which are provided by the embodiment of the invention, the bank gateway is quickly accessed by executing the corresponding preset configuration file.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of an access method of a bank gateway interface according to the present invention;
FIG. 2 is a unified access flow of a bank gateway interface;
fig. 3 is a schematic flow chart of a second embodiment of the access method of the bank gateway interface of the present invention;
fig. 4 is a schematic flow chart of an access method of a bank gateway interface according to a third embodiment of the present invention;
FIG. 5 is a representation of bank channel isolation;
fig. 6 is a functional module diagram of the device for implementing bank channel access network management according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: the method comprises the steps of finishing quick access of a bank gateway interface by executing a preset configuration file of a corresponding bank to obtain an execution result, namely bank gateway connection parameters, and correspondingly modifying the preset configuration file by monitoring the execution process of the preset configuration file to solve the execution error of the configuration file to manage the preset configuration file.
The problems of low development efficiency, low project code quality, no service management and difficult maintenance and monitoring exist when the prior art realizes the bank interface butt joint.
The invention provides a solution, when a bank interface is in butt joint, the preset configuration file content corresponding to the preset bank is correspondingly executed, and the preset configuration file content is quickly connected to a gateway interface of the bank through an execution result; and correspondingly managing the content of the preset execution responsibility chain by monitoring the execution process of the preset configuration file.
Referring to fig. 1, fig. 1 is a schematic flowchart of a first embodiment of an access method of a bank gateway interface according to the present invention.
In one embodiment, the method comprises:
step S10, when the target application program is started, loading all preset configuration files which are preset;
step S20, generating corresponding handler responsibility chains for all the loaded preset configuration files;
receiving a data connection instruction from a client, wherein the client comprises a client which is arranged below the corresponding payment server and is provided with the payment server, the client has data interaction with the payment server, the payment server receives the data connection instruction submitted by the client and extracts a target bank identifier of the data connection instruction from the data connection instruction, and the target bank identifier is mark information in the data connection instruction. And when the payment server is started corresponding to the payment program, loading the contents of all preset configuration files, and generating a handler responsibility chain corresponding to the preset configuration files based on the loaded contents of all the configuration files. The method comprises the steps that a handler responsibility chain is generated for a corresponding preset configuration file, the handler responsibility chain comprises all contents of the preset configuration file, and when the handler responsibility chain is generated, a bank identifier of the handler responsibility chain corresponding to the preset configuration file is used as identification information, so that the handler responsibility chain is directly obtained according to a target bank identifier in a data connection instruction. The preset configuration file is a file which is established by a developer or an administrator of the system, is based on connection with a bank gateway interface and takes the bank as an identifier, and the content in the preset configuration file is a connection node corresponding to the bank gateway interface and parameter conversion information of the connection node.
Before receiving a data connection instruction, that is, before the step of searching for the preset configuration file corresponding to the target bank identifier, the method further includes:
constructing a preset configuration file according to a preset format, and acquiring a target bank identifier corresponding to the preset configuration file; and storing the constructed preset configuration file in association with the corresponding bank identification.
The method comprises the steps of obtaining connection content of a bank gateway interface, and constructing a preset configuration file of the bank gateway interface in a preset format through the connection content of the bank gateway interface, wherein the preset format of the configuration file is configuration file format content designed for system developers through the interface content, and is suitable for connection of all the bank gateway interfaces, and when a gateway interface corresponding to a bank is constructed, the configuration file corresponding to the bank is constructed according to the specific content of the gateway interface of the bank, and the configuration file is also generated based on the preset format. And acquiring target bank identification content in the preset configuration file, and storing the association relationship between the target bank identification content and the preset configuration file for searching the preset configuration file corresponding to the target bank identification.
Step S30, when a data connection instruction of the target application program is received, acquiring a corresponding handler responsibility chain according to a target bank identifier in the data connection instruction, and sequentially calling and executing each handler in the handler responsibility chain;
and extracting a target bank identifier in the data interaction instruction according to the received data interaction instruction, and acquiring a handler responsibility chain corresponding to the target bank identifier through the target bank identifier. And sequentially calling each handler of the preset handler responsibility chain to execute. The defined method is a defined class name in the system, and during operation, a plurality of preset configuration files can be loaded, namely, the loading operation of adding one preset configuration file for each gateway interface accessing one bank is added. The connection nodes corresponding to the bank gateway interfaces in the preset configuration file are called as bank processing responsibility chains, and the bank processing responsibility chains are stored in the configuration file in a one-to-one corresponding mode of the connection nodes and the connection node parameter conversion information. And when the preset configuration file is loaded through a defined method, generating a corresponding handler responsibility chain through the preset configuration file. The defined method for loading the preset configuration file is represented by the following code content:
loading a preset configuration file by the method defined by the codes and executing the content in the preset configuration file, namely the specific execution node connected with the gateway interface of the bank comprises the following steps: 1. receiving a request message; 2. parameter conversion; 3. assembling a message plaintext; 4. signing the plaintext data; 5. assembling an outgoing message; 6. sending/receiving messages; 7. analyzing the bank message; 8. assembling a message plaintext; 9. verifying the signature; 10. converting data; 11. and returning the data. Referring to fig. 2, fig. 2 is a unified access flow of the bank gateway interface. When the preset configuration file is executed to configure the content of each handler of the preset handler responsibility chain, namely the bank gateway interface processing responsibility chain node, the following code content can be expressed:
and step S40, sending the execution result to the bank gateway interface corresponding to the data connection instruction.
And returning an execution result after the execution of the executed preset handler responsibility chain is finished, wherein the execution result is a parameter, and the parameter is sent to the bank gateway interface corresponding to the preset handler responsibility chain so that a target terminal sending a data connection instruction is connected with the bank gateway interface, and performs data interaction after the connection is successful to finish the content of the data connection instruction.
Connecting the bank gateway interface with a target terminal sending the data connection instruction by using the execution result, namely after the step of sending the execution result to the bank gateway interface corresponding to the data connection instruction, the method further comprises the following steps:
substituting the execution result into the corresponding bank gateway interface, receiving data returned by the bank and analyzing the data connection instruction; if the analysis is successful, the target terminal sending the data connection instruction is successfully accessed with the bank gateway interface; and if the analysis fails, outputting prompt information of access failure.
And substituting the execution result of the executed preset handler responsibility chain into the execution node of the bank gateway interface corresponding to the preset handler responsibility chain, and analyzing the data connection instruction according to the return data of the execution result applied by the bank gateway interface. And after the bank gateway interface passes the substituted execution result, returning the running data of the execution result substituted by the bank gateway interface. And after the data connection instruction is successfully analyzed through the operation result, the target terminal sending the data connection instruction is successfully connected with the bank gateway interface. And the execution result is in the form of a parameter conversion format, and the information of the parameter conversion format is substituted into the bank gateway result to analyze the content of the data connection instruction. And the operation data returned to the bank gateway interface is data information returned by operating the current access step of the bank gateway interface based on the execution result after the bank gateway interface substitutes the execution result. And monitoring the analysis process of analyzing the target connection instruction by the bank gateway interface through a preset monitoring mechanism. The monitoring mechanism is a preset monitoring mechanism set by the bank gateway interface. The monitoring content of the preset monitoring mechanism includes substituting an execution result into execution node content of a bank gateway interface to cause a substitution error, or substituting the execution result into the bank gateway interface to cause connection time limitation, and the like, and is specifically related to the set content of the bank interaction mechanism, and the monitoring mechanism is used for preventing the problems of access failure or data leakage and the like caused when the connection process of the target terminal and the bank gateway interface is attacked. In the connection process, if substitution errors occur or the substitution time exceeds the preset connection time, the connection process is stopped, an indication of connection failure is sent, and the specific indication content is set by corresponding developers.
In this embodiment, after loading a preset configuration file for marking bank information in a data connection instruction and acquiring a preset handler responsibility chain, executing each handler of the preset handler responsibility chain, substituting an execution result into the target bank gateway interface to acquire data of the bank gateway interface, and after analyzing the data connection instruction, implementing connection of the bank gateway interface, thereby implementing the data connection instruction content. The processing time of the connection with the bank gateway interface is reduced by packaging the processing nodes and the node contents of the bank gateway interface and calling and executing the node contents of the packaged gateway interface processing nodes, the quality of the gateway connection is ensured by uniform packaging codes, and the labor cost of interface code development is reduced.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the access method of the bank gateway interface according to the present invention. Based on the first embodiment of the foregoing method, the step of calling and executing each handler in the configured handler responsibility chain simultaneously includes:
step S50, monitoring each handler execution process of the handler responsibility chain in a preset monitoring mode, recording error information into a corresponding log file when an execution problem occurs in the execution process, and calling a preset configuration file corresponding to the handler responsibility chain;
and in the execution process of each handler of the preset handler responsibility chain, monitoring the execution process of the handler in a preset monitoring mode, wherein the preset monitoring mode comprises manual monitoring or monitoring through a set monitoring program. The monitoring mode is that the execution state of the handler is confirmed according to the execution log file or the execution thread state of the handler. If a problem occurs in the execution log file or the execution thread state and the problem is confirmed to be a preset execution problem which is confirmed to influence an execution result, recording the preset execution problem into a corresponding log file according to the current occurrence of the preset execution problem and the handler, and then calling a file text of the preset configuration file corresponding to the handler according to the preset execution problem.
Step S60, according to the execution problem, correspondingly modifying the content of the configuration file;
editing the corresponding content in the text of the preset configuration file according to the preset execution problem, for example, the current execution problem is that an outgoing/received message is wrong, modifying the receiving format of the outgoing/received message in the preset configuration file in the text of the preset configuration file, and storing the modified outgoing/received message after the modification is completed. The preset execution problem is a monitored execution problem, the occurrence mode of the execution problem is confirmed by a monitor or a monitor program, and the text operation of modifying the preset configuration file also modifies the text content of the preset configuration file for the monitor or a corresponding developer. And after the preset configuration file is modified, the preset configuration file is still stored in a preset storage area of the preset configuration file.
And step S70, storing the modified configuration file, triggering a preset calling mechanism, then sending the modified configuration file to a corresponding server, and reconfiguring the handler responsibility chain by adopting the modified configuration file and executing the reconfigured handler responsibility chain.
After the modified preset configuration file is stored, triggering a preset calling mechanism, wherein the preset calling mechanism is a set calling class realized through a code, and after the calling class is triggered, sending the modified preset configuration file to a corresponding server, so that the server reloads the modified preset configuration file through a defined method for loading the preset configuration file, reconfigures a preset handler responsibility chain through the modified preset configuration file, and calls each handler in the preset handler responsibility chain to execute.
In this embodiment, the content of the preset configuration file is reinitialized by monitoring the execution process of the preset configuration file and modifying the content of the corresponding preset configuration file according to the execution error, so that the situation that the access to the bank gateway interface is influenced because a correct execution result cannot be obtained after the preset configuration file is in error in the execution process is prevented. And the preset configuration file is initialized by modifying the configuration file, issuing, loading and calling, so that the connection efficiency of the bank gateway interface is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a third embodiment of an access method of a bank gateway interface according to the present invention, and based on the first and second embodiments of the above method, the method further includes:
step S80, identifying the bank identification information of the preset configuration file, and acquiring a target server corresponding to the bank identification information, so that the target server sequentially calls and executes each handler in the configured handler responsibility chain, and simultaneously returns an execution result;
according to a preset configuration file of a preset handler responsibility chain, identifying a target bank identifier in the preset configuration file, and acquiring a target server corresponding to the target bank identifier by taking the target bank identifier as a condition through a preset execution mechanism. The preset execution mechanism is a bank channel isolation mechanism set by an administrator, the execution process of the handler responsibility chain is distributed to different servers for execution by taking a bank identifier as a distribution condition, and the execution avalanche phenomenon caused by the fact that a response problem occurs in the process of executing the handler responsibility chain of a certain bank is avoided. And according to a target server corresponding to a target bank identifier of a preset configuration file corresponding to the handler responsibility chain, enabling the target server to call and execute each handler of the handler responsibility chain, and respectively executing the corresponding handler responsibility chain by using a server, wherein a specific expression form of the handler responsibility chain can be seen in fig. 5, and fig. 5 is an expression form of bank channel isolation.
The invention also provides an access device of the bank gateway interface, and fig. 6 is a schematic diagram of the architecture of the access device of the bank gateway interface. The device comprises: processor 10, memory 20, display 30 and data transmission module 40.
The application device stored in the memory 20 is run in the processor 10, and the executing step includes receiving a data receiving instruction, extracting target identification information of the data receiving instruction, searching a corresponding configuration file through the target identification information, executing the content of each handler in a handler responsibility chain after configuring the corresponding handler responsibility chain through the configuration file, and returning the execution result, so that the execution result is sent out through the data sending module 40. During the process of executing the application device by the processor 10, the execution result of the application device is monitored in real time, and when the execution process is wrong, the wrong execution problem is displayed on the display 30 to be checked. The implementation method of the device executed by the processor 30 is the same as the above first to third embodiments of the access method of the bank gateway interface of the present invention, and details are not repeated here.
The present invention further provides a computer-readable storage medium, where an access device of a bank gateway interface is stored on the computer-readable storage medium, and the access device based on the bank gateway interface implements the steps of the access method of the bank gateway interface according to the first to third embodiments. The computer-readable storage medium may be a memory provided in the terminal device as described in fig. 6, such as a FLASH memory, or a portable memory that can be removably used.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (6)
1. An access method of a bank gateway interface is characterized by comprising the following steps:
when a target application program is started, loading all preset configuration files which are preset, wherein the preset configuration files comprise connection nodes corresponding to a bank gateway interface and parameter conversion information;
generating a handler responsibility chain corresponding to a target bank as an identifier by using all loaded preset configuration files, wherein the preset configuration files are connection nodes corresponding to a bank gateway interface and parameter conversion information of the connection nodes;
when a data connection instruction of the target application program is received, acquiring a corresponding handler responsibility chain according to a target bank identifier in the data connection instruction, and sequentially calling and executing each handler in the handler responsibility chain;
sending an execution result to a bank gateway interface corresponding to the data connection instruction;
substituting the execution result into the corresponding bank gateway interface, receiving data returned by the bank and analyzing the data connection instruction;
if the analysis is successful, the target terminal sending the data connection instruction is successfully accessed with the bank gateway interface;
and if the analysis fails, outputting prompt information of access failure.
2. The method for accessing a bank gateway interface of claim 1, wherein the step of invoking and executing each handler in the handler responsibility chain in turn further comprises:
monitoring each handler execution process of the handler responsibility chain in a preset monitoring mode, recording error information into a corresponding log file when an execution problem occurs in the execution process, and calling a preset configuration file corresponding to the handler responsibility chain;
correspondingly modifying the content of the preset configuration file according to the occurring execution problem;
and storing the modified preset configuration file, triggering a preset calling mechanism, then sending the modified preset configuration file to a corresponding server, and reconfiguring and executing the handler responsibility chain by adopting the modified preset configuration file.
3. The method for accessing a bank gateway interface according to claim 1, wherein before the step of loading all preset configuration files that have been preset when the target application is started, the method further comprises:
constructing a preset configuration file according to a preset format, and acquiring a target bank identifier corresponding to the preset configuration file;
and storing the constructed preset configuration file in association with the corresponding bank identification.
4. The method for accessing a bank gateway interface according to any one of claims 1 to 3, wherein the step of invoking and executing each handler in the handler responsibility chain in turn comprises:
and identifying the bank identification information of the preset configuration file, and acquiring a target server corresponding to the bank identification information, so that the target server sequentially calls and executes each handler in the configured handler responsibility chain, and simultaneously returns an execution result.
5. An access device of a bank gateway interface, characterized in that the access device of the bank gateway interface comprises: memory, processor and computer program stored in the memory and running on the processor, which when executed by the processor implements the steps of the access method of a bank gateway interface according to any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an access program of a bank gateway interface, which when executed by a processor implements the steps of the access method of a bank gateway interface according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710372745.4A CN107241315B (en) | 2017-05-23 | 2017-05-23 | Access method and device of bank gateway interface and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710372745.4A CN107241315B (en) | 2017-05-23 | 2017-05-23 | Access method and device of bank gateway interface and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107241315A CN107241315A (en) | 2017-10-10 |
CN107241315B true CN107241315B (en) | 2020-08-11 |
Family
ID=59985168
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710372745.4A Active CN107241315B (en) | 2017-05-23 | 2017-05-23 | Access method and device of bank gateway interface and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107241315B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108037959B (en) * | 2017-11-30 | 2021-01-01 | 努比亚技术有限公司 | Intelligent interface merging method, mobile terminal and computer readable storage medium |
CN108228186B (en) * | 2017-12-29 | 2020-12-11 | 国网山东省电力公司德州供电公司 | Substation five-prevention locking rule expression verification method based on responsibility chain mode |
CN109194495B (en) * | 2018-06-29 | 2021-08-24 | 平安科技(深圳)有限公司 | Server, message processing method, and computer-readable storage medium |
CN109086433A (en) * | 2018-08-13 | 2018-12-25 | 深圳壹账通智能科技有限公司 | A kind of file management method and server based on big data analysis |
CN113381866A (en) * | 2020-02-25 | 2021-09-10 | 北京同邦卓益科技有限公司 | Service calling method, device, equipment and storage medium based on gateway |
CN113630310B (en) * | 2020-05-06 | 2024-02-02 | 北京农信数智科技有限公司 | Distributed high-availability gateway system |
CN111786965B (en) * | 2020-06-12 | 2023-03-07 | 中信银行股份有限公司 | RPC message processing method and device, electronic equipment and readable storage medium |
CN112422566B (en) * | 2020-11-18 | 2022-10-14 | 青岛海尔科技有限公司 | Remote call processing method and device, storage medium and electronic device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594833A (en) * | 2012-03-09 | 2012-07-18 | 北京神州数码思特奇信息技术股份有限公司 | Communication protocol adapting method and system |
CN103605526A (en) * | 2013-11-28 | 2014-02-26 | 蓝盾信息安全技术股份有限公司 | Template componentized code generating method based on chain-of-responsibility pattern |
CN106020963A (en) * | 2016-06-07 | 2016-10-12 | 中国建设银行股份有限公司 | Cross-system internal service calling method and device |
-
2017
- 2017-05-23 CN CN201710372745.4A patent/CN107241315B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594833A (en) * | 2012-03-09 | 2012-07-18 | 北京神州数码思特奇信息技术股份有限公司 | Communication protocol adapting method and system |
CN103605526A (en) * | 2013-11-28 | 2014-02-26 | 蓝盾信息安全技术股份有限公司 | Template componentized code generating method based on chain-of-responsibility pattern |
CN106020963A (en) * | 2016-06-07 | 2016-10-12 | 中国建设银行股份有限公司 | Cross-system internal service calling method and device |
Non-Patent Citations (1)
Title |
---|
责任链模式以及责任链模式在netty中的使用;lionsinba;《CSDN博客,来源于https://blog.csdn.net/lionaiying/article/details/53915109》;20161228;正文第1页第1段至第5页最后一段 * |
Also Published As
Publication number | Publication date |
---|---|
CN107241315A (en) | 2017-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107241315B (en) | Access method and device of bank gateway interface and computer readable storage medium | |
WO2018006789A1 (en) | Parameter checking method and apparatus, and network management server and computer storage medium | |
WO2020029375A1 (en) | Interface testing method and system, and computer device and storage medium | |
CN108804618B (en) | Database configuration method, device, computer equipment and storage medium | |
US20170300402A1 (en) | Mock server and extensions for application testing | |
US20160004628A1 (en) | Parallel test execution framework for multiple web browser testing | |
CN109656538A (en) | Generation method, device, system, equipment and the medium of application program | |
CN112463144B (en) | Distributed storage command line service method, system, terminal and storage medium | |
US20140130036A1 (en) | Methods and Systems for Automated Deployment of Software Applications on Heterogeneous Cloud Environments | |
US20030217308A1 (en) | Distributed test harness model | |
US10223248B2 (en) | Conducting automated software testing using centralized controller and distributed test host servers | |
US20180329812A1 (en) | Conducting Automated Software Testing Using Centralized Controller And Distributed Test Host Servers | |
CN106209503B (en) | RPC interface test method and system | |
CN113760565A (en) | Data processing platform, data processing method, storage medium and electronic equipment | |
CN111258913A (en) | Automatic algorithm testing method and device, computer system and readable storage medium | |
CN109408310B (en) | Debugging method of server, server and readable storage medium | |
CN112241360A (en) | Test case generation method, device, equipment and storage medium | |
CN113961332A (en) | Method and device for realizing workflow engine, electronic equipment and storage medium | |
CN104899134A (en) | Automatic domain name registration server testing system and method | |
US20080066060A1 (en) | Redirection interface system and method for CIM object manager provider | |
CN114610598A (en) | Test method, test device, electronic equipment and computer readable storage medium | |
US11113357B2 (en) | Method and system for onboarding a virtual network function package utilized by one or more network services | |
US11539612B2 (en) | Testing virtualized network functions | |
CN109274533B (en) | Web service fault positioning device and method based on rule engine | |
CN116599881A (en) | Cloud platform tenant modeling test method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210520 Address after: 310000 room 1303, East Building, Zhongyuan center, Shangcheng District, Hangzhou City, Zhejiang Province Patentee after: Zhejiang vipshop Payment Service Co.,Ltd. Address before: 510380 No.314, Fangcun Avenue Middle Road, Liwan District, Guangzhou City, Guangdong Province Patentee before: GUANGZHOU VIP NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |