CN111694620B - Interaction method, device and equipment of third party service and computer storage medium - Google Patents

Interaction method, device and equipment of third party service and computer storage medium Download PDF

Info

Publication number
CN111694620B
CN111694620B CN202010544193.2A CN202010544193A CN111694620B CN 111694620 B CN111694620 B CN 111694620B CN 202010544193 A CN202010544193 A CN 202010544193A CN 111694620 B CN111694620 B CN 111694620B
Authority
CN
China
Prior art keywords
service
request
information
party service
simulation
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
Application number
CN202010544193.2A
Other languages
Chinese (zh)
Other versions
CN111694620A (en
Inventor
朱敏毅
卢道和
谢波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN202010544193.2A priority Critical patent/CN111694620B/en
Publication of CN111694620A publication Critical patent/CN111694620A/en
Application granted granted Critical
Publication of CN111694620B publication Critical patent/CN111694620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of financial science (Fintech), and discloses an interaction method, device and equipment of a third party service and a computer storage medium, wherein the interaction method comprises the following steps: receiving an operation request triggered based on a service interaction page, and acquiring a service type and service information corresponding to the operation request; when the service type is a third party service type, inputting the service information into a data caching layer; acquiring service information from a message queue of the data caching layer, simulating the operation request according to the service information to acquire an operation simulation request, and sending the operation simulation request to a third-party service platform; and receiving the execution feedback information sent by the third-party service platform, and outputting the execution feedback information to the service interaction page. According to the invention, the platform is built between the service system and the third-party service system in advance, so that the operation request can be processed in time, and meanwhile, the maintenance of the third-party service system is convenient.

Description

Interaction method, device and equipment of third party service and computer storage medium
Technical Field
The present invention relates to the field of financial technology (Fintech), and in particular, to a method, an apparatus, a device, and a computer storage medium for interaction of a third party service.
Background
With the rapid development of internet technology, particularly internet financial technology (fittech), more and more computer technology (e.g., big data, distributed, cloud computing, artificial intelligence, etc.) is applied in the financial field.
In the financial enterprise, in order to complete a financial business, the financial business system needs to interact with a third party business system, because the third party business system is set according to various requirements of all types of financial businesses, the functional pages provided by the third party business system are more, the functional pages are more complicated, the complicated functional page switching can occupy resources of the financial business system, so that the processing performance of the financial business system is reduced, for example, the third party business system with financial settlement function can set a large number of functional pages of financial expertise in order to meet the requirements of all users, if the financial business system only needs to use a small number of flow functional pages such as reimbursement, prepayment, and the like, the financial business system can switch unnecessary functional pages when calling the third party business system, and the financial business system can necessarily have the processing performance influenced by the third party business system; it will be appreciated that one financial transaction system will typically interface with a different third party transaction system, and the processing performance of the financial transaction system will be more severely degraded.
In addition, when the third party service system is used, the third party service system can only be managed and maintained by a third party provider, so that the service of the financial service platform can not be normally executed, service interruption is caused, and when a user calls the third party service system, if the third party service system is busy, the response time is reduced, and the overall service processing efficiency of the financial service system side is reduced.
Disclosure of Invention
The invention mainly aims at providing an interaction method, device, equipment and computer storage medium of a third party service, and aims at solving the technical problem that the processing performance of a financial service system is reduced and the normal service processing of the financial service system is affected due to the fact that the service interaction page of the third party service system is complex at present.
In order to achieve the above object, the present invention provides a method for interaction of a third party service, the method for interaction of a third party service comprising the steps of:
receiving an operation request triggered based on a service interaction page, and acquiring a service type and service information corresponding to the operation request;
when the service type is a third party service type, inputting the service information into a data caching layer;
Acquiring service information from a message queue of the data caching layer, simulating the operation request according to the service information to acquire an operation simulation request, and sending the operation simulation request to a third-party service platform;
and receiving the execution feedback information sent by the third-party service platform, and outputting the execution feedback information to the service interaction page.
Optionally, before the step of receiving the operation request triggered based on the service interaction page and obtaining the service type and the service information corresponding to the operation request, the method includes:
receiving a platform building request, acquiring data interface information of a third-party service platform, and packaging a data interface corresponding to the data interface information to form a third-party service system layer;
acquiring triggering conditions of all data interfaces in the third-party service system layer, generating request simulation rules according to the triggering conditions, and summarizing the request simulation rules to generate a simulation request layer;
and constructing a data caching layer at the front end of the simulation request layer, and setting a service interaction page at the front end of the data caching layer to complete the construction of a platform.
Optionally, the interaction method of the third party service includes:
When the update of a third-party service platform is detected, acquiring the update information of the third-party service platform;
judging whether the third party service platform is added with service functions or not according to the updating information, and if the third party service platform is added with service functions, acquiring data interface updating information corresponding to the added service functions;
and triggering a platform construction request based on the data interface update information, and executing the step of packaging the data interface corresponding to the data interface information to form a third-party service system layer.
Optionally, the step of obtaining service information from the message queue of the data caching layer, simulating the operation request according to the service information to obtain an operation simulation request, and sending the operation simulation request to a third party service platform includes:
monitoring a message queue in the data cache layer through a simulation request layer, and acquiring service information overflowed from the message queue when detecting that the service information in the message queue accords with the reading authority and overflows from the message queue;
acquiring a request simulation rule corresponding to the service information through the simulation request layer, simulating the operation request according to the request simulation rule, and generating an operation simulation request;
And sending the operation simulation request to a third party service platform.
Optionally, the step of obtaining, by the simulation request layer, a request simulation rule corresponding to the service information, simulating the operation request according to the request simulation rule, and generating an operation simulation request includes:
acquiring a request simulation rule corresponding to the service information through a predefined component in the simulation request layer;
and encapsulating the request simulation rule and the service information through a predefined component in the simulation request layer to generate an operation simulation request.
Optionally, the step of receiving the execution feedback information sent by the third party service platform and outputting the execution feedback information to the service interaction page includes:
receiving execution feedback information sent by the third-party service platform, and judging whether the operation simulation request is successful or not according to the execution feedback information;
when the operation simulation request is not successful, executing the step of simulating the operation request according to the service information to obtain the operation simulation request and sending the operation simulation request to a third-party service platform until the operation simulation request is successful;
And when the request of the operation simulation request is successful, outputting the execution feedback information to the service interaction page.
Optionally, after the step of inputting the service information to the data caching layer when the service type is a third party service type, the method includes:
and outputting a service processing prompt to the service interaction page when the data caching layer receives the service information.
In addition, in order to achieve the above object, the present invention further provides an interaction device for a third party service, where the interaction device for a third party service includes:
the request receiving module is used for receiving an operation request triggered based on a service interaction page and acquiring a service type and service information corresponding to the operation request;
the information input module is used for inputting the service information to the data cache layer when the service type is a third party service type;
the acquisition simulation module is used for acquiring service information from the message queue of the data caching layer, simulating the operation request according to the service information to acquire an operation simulation request, and sending the operation simulation request to a third-party service platform;
and the receiving and outputting module is used for receiving the execution feedback information sent by the third-party service platform and outputting the execution feedback information to the service interaction page.
In addition, in order to achieve the above object, the present invention further provides an interaction device for a third party service, where the interaction device for a third party service includes: the method comprises the steps of a memory, a processor and an interaction program of a third party service, wherein the interaction program of the third party service is stored in the memory and can run on the processor, and the interaction program of the third party service is executed by the processor to realize the interaction method of the third party service.
In addition, in order to achieve the above object, the present invention also provides a computer storage medium having stored thereon an interactive program of a third party service, which when executed by a processor, implements the steps of the interactive method of a third party service as described above.
The embodiment of the invention provides an interaction method, device and equipment of a third party service and a computer storage medium; according to the embodiment of the invention, the interactive platform for interacting with the third-party service system is built at the front end of the financial service system in advance, when an operation request is received, the user operation request is received by providing the unified service interaction page, so that the user operation is convenient, the occupation of frequent page switching operation on resources of the financial service system is reduced, the interactive platform arranged at the front end of the financial service system sends the operation request to the data caching layer instead of directly sending the operation request to the third-party service system like the conventional technology, the financial service system does not need to wait for the response of the third-party service system, the subsequent processing steps can be executed, the decoupling of the user operation and the third-party service system is realized, the processing efficiency of the financial service system is ensured, the waiting time of the user is reduced, the condition that the financial service system is influenced due to untimely processing of the third-party service system is avoided, the stability of the financial service system is improved, meanwhile, the updating setting of the service interaction page of the financial service system is carried out by the interactive platform when the third-party service system is maintained, the normal service of the financial service system is prevented from being influenced by the user, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a platform set-up in a first embodiment of an interaction method of a third party service according to the present invention;
fig. 3 is a schematic view of a platform scenario set up in a first embodiment of an interaction method of a third party service according to the present invention;
FIG. 4 is a flowchart of a first embodiment of an interaction method for a third party service according to the present invention;
fig. 5 is a schematic functional block diagram of an embodiment of an interaction device for third party services according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic device structure of a hardware running environment according to an embodiment of the present invention. The interactive device of the third party service in the embodiment of the invention can be a PC or a server device.
As shown in fig. 1, the interaction device of the third party service may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 1 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and a computer program corresponding to interaction of a third party service.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a computer program corresponding to interaction of the third party service stored in the memory 1005 and perform operations in an interaction method of the third party service described below.
Based on the hardware structure, the embodiment of the interaction method of the third party service is provided.
The first embodiment of the interaction method of the third party service of the invention comprises the following steps:
receiving an operation request triggered based on a service interaction page, and acquiring a service type and service information corresponding to the operation request;
When the service type is a third party service type, inputting the service information into a data caching layer;
acquiring service information from a message queue of the data caching layer, simulating the operation request according to the service information to acquire an operation simulation request, and sending the operation simulation request to a third-party service platform;
and receiving the execution feedback information sent by the third-party service platform, and outputting the execution feedback information to the service interaction page.
The interaction method of the third party service is applied to interaction equipment (also called interaction equipment) of the third party service, namely, before the interaction method of the third party service is executed, an interaction platform which interacts with a platform of the third party service system is built at the front end of a financial service system in advance, the interaction equipment is used as a hardware carrier of the interaction platform, and each embodiment of the interaction method of the third party service is executed through the interaction equipment.
Referring to fig. 2, fig. 2 is a schematic flow diagram of platform setup in a first embodiment of an interaction method of a third party service according to the present invention, specifically including:
and step S01, receiving a platform building request, acquiring data interface information of a third-party service platform, and packaging a data interface corresponding to the data interface information to form a third-party service system layer.
The interactive equipment receives a platform building request, determines a third-party service platform, acquires data interface information of the third-party service platform, acquires a data interface provided by the third-party service platform according to the data interface information, encapsulates the data interface corresponding to the data interface information to form a third-party service system layer, and executes a third-party service through the third-party service system layer, namely, the interactive equipment integrates the data interface provided by the third-party service platform to form the third-party service system layer, so that the third-party service system is conveniently called, and meanwhile, a normal service system is not influenced when the third-party service system is updated.
Step S02, the triggering condition of each data interface in the third party service system layer is obtained, a request simulation rule is generated according to the triggering condition, and the request simulation rules are summarized to generate a simulation request layer.
The interactive device obtains the triggering conditions of each data interface in the third-party service system layer, generates a request simulation rule according to the triggering conditions, and the interactive device gathers the request simulation rule to generate a simulation request layer, namely, the simulation request layer can simulate the operation request triggered by the user in the embodiment, and generates the service information corresponding to the operation request to the third-party service system.
Step S03, a data caching layer is built at the front end of the simulation request layer, and a service interaction page at the front end of the data caching layer is set to complete platform construction.
The interactive equipment builds a data cache layer at the front end of the simulation request layer, and the interactive equipment sets a service interaction page arranged in front of the data cache layer to complete the construction of a platform; in this embodiment, the interactive device performs platform construction, a hierarchy formed by the platform construction is specifically described from inside to outside, the third party service system layer is a layer of a bottom service system and is still maintained by a third party provider, the third party service system layer is preceded by a simulation request layer, a data cache layer and a service interaction page in sequence, when a user inputs a service operation request in the service interaction page, the service interaction page obtains service information and sends the service information to the data cache layer, the data cache layer performs asynchronous processing of the operation request, and meanwhile, the simulation request layer monitors the service information in a message queue in the data cache layer, the simulation request layer performs operation request simulation according to the service information to obtain an operation simulation request, and the simulation request layer sends the operation simulation request to the third party service system layer for service processing.
Referring to fig. 3, fig. 3 is a schematic view of a platform scenario set up in the first embodiment of the interaction method of the third party service of the present invention, and for convenience of understanding, in this embodiment, each layer of the platform is set up from outside to inside specifically, for example,
1. user Interface Layer, business interaction page: the business interaction page comprises a PC end browsing page and a mobile phone end H5 page, and can create a friendly and unified interaction interface for staff according to specific requirements of the company and staff suggestions.
2. Buffer Layer, data Buffer Layer: the data caching layer can cache data, reduce the pressure of a service system, improve the response speed, send service information to a message queue firstly, and then asynchronously send the service information to a third-party service system, so that the response speed of the service system is not depended, the interaction response time of staff is improved, and the user operation is decoupled from the third-party service system.
3. Mock Request Layer, the simulation request layer simulates http requests or operation requests, and pushes the request service system. The simulation request layer provides a unified http interface to the outside, and the simulation request layer is a special simulation technology and can be packaged for reuse when various different service systems are accessed. The simulation request layer comprises an external data interface, performs query operation request simulation by submitting data through the external data interface, and can be subjected to input/output standardized packaging, and specifically: extracting information of each third-party service system interface, and uniformly packaging the information of each third-party system interface, so that the pair of external data interfaces can be connected with each third-party system interface; b. a hypertext transfer protocol response component for encapsulating user-submitted data and issuing an analog Request to a business system, such as an Http Request. c. A program automation test component that is browser-based, such as a Seleium; d. the automatic simulation component is used for simulating user operation by a preset action combination simulation code, for example, an RPA (remote procedure A) and Robotic Process Automation robot flow automatic simulation component.
4. Business System Layer the third-party service system layer is the original third-party service system. Original third party business system enterprise IT developer keeps still, maintains and still carries out the operation and maintenance processing by third party provider.
In this embodiment, the platform is set up to mainly cope with the employee interaction experience part, the third party service system layer is maintained by the third party provider, the user does not feel when the third party service system layer is updated, and meanwhile, a data caching layer is set, so that the employee interaction response time is improved, and specifically:
referring to fig. 4, fig. 4 is a flow chart of a first embodiment of an interaction method of a third party service according to the present invention, where the method includes:
step S10, receiving an operation request triggered based on a service interaction page, and acquiring a service type and service information corresponding to the operation request.
In this embodiment, the interaction device receives an operation request triggered based on a service interaction page, where a triggering manner of the operation request is not specifically limited, for example, the operation request may be actively triggered by a user, for example, the user inputs in the service interaction page: actively triggering an operation request by 'inquiring xx'; in addition, the operation request may be automatically triggered by the interaction device, for example, the preset time update in the interaction device is a preset condition triggered by the operation request, and the interaction device automatically triggers the operation request for data acquisition when the time update is detected.
When the interaction device receives an operation request triggered based on a service interaction page, the interaction device obtains a service type (the service type is set by a service system processed according to the operation request, that is, the service type is set to be a third party service type and a non-third party service type in the embodiment) and service information corresponding to the operation request, and the service information is actively input by a user according to the operation request, for example, the service information is financial information and the like.
The interactive equipment divides according to the service type, and performs normal service processing when the service type enables the service type of a non-third party.
And step S20, when the service type is a third party service type, inputting the service information into a data caching layer.
When the service type is a third party service type, the interactive device inputs service information into the data caching layer, a message queue is arranged in the data caching layer, the service information is queued in the message queue, in the embodiment, the service information is cached through the message queue data, and then a submitting prompt is sent to a user, the prompt indicates that the service information is submitted to be submitted, so that the interactive page inputs new service information again, the user can process subsequent operation service, the user does not need to wait for the response of a third party service system, the waiting time of the user is reduced, the interactive device sends data to the message queue first, and then sends the data to the third party service system asynchronously, the response speed of the third party service system is not relied on, and thus the normal operation of the financial service system is ensured through the parallel processing of service operation, and the decoupling of the financial service system and the financial service system is realized.
It can be understood that, in this embodiment, the service interaction page receives the user operation request, even if the service type of the operation request is a third party service type, the service information is not directly skipped to the page corresponding to the third party service system, but is input to the data cache layer, so that the financial service system executes subsequent operations, and the problem that when the user directly enters the third party service system, the financial processing performance of the financial service platform is reduced due to the fact that the resources of the financial service platform are occupied by the page switching of the complex third party service system is avoided.
Step S30, service information is obtained from the message queue of the data caching layer, the operation request is simulated according to the service information to obtain an operation simulation request, and the operation simulation request is sent to a third-party service platform.
The interactive device obtains service information of an outgoing message queue in the data caching layer, the interactive device obtains an operation simulation request according to the service information simulation operation request, and the interactive device sends the operation simulation request to a third party service platform, and specifically comprises the following steps:
Step a1, monitoring a message queue in the data cache layer through a simulation request layer, and acquiring service information overflowed from the message queue when detecting that the service information in the message queue accords with the reading authority and overflows from the message queue;
step a2, obtaining a request simulation rule corresponding to the service information through the simulation request layer, simulating the operation request according to the request simulation rule, and generating an operation simulation request;
and a step a3 of sending the operation simulation request to a third party service platform.
The interactive device monitors a message queue in the data caching layer through the simulation request layer, a process with write permission for the message queue in the inner core of the interactive device can add new messages to the message queue according to a certain rule, a process with read permission for the message queue in the inner core of the interactive device can read the messages from the message queue, the process with the read permission in the embodiment is provided with a message reading rule, and when the interactive device detects that the messages in the message queue accord with the read permission and overflow the message queue, the interactive device acquires service information of the overflow message queue; the interactive device obtains a request simulation rule corresponding to the service information through a simulation request layer, namely, the interactive device presets a mapping table, wherein the preset mapping table comprises a mapping relation between the service information and the request simulation rule, the interactive device obtains the request simulation rule corresponding to the service information in the preset mapping table, and the interactive device simulates an operation request according to the request simulation rule to generate an operation simulation request.
That is, predefined components in the simulation request layer of the interactive device, which refers to interactive code toolkits customized according to different business requests, include, but are not limited to, external interfaces, hypertext transfer protocol response components, program automation test components (Seleium), and automation simulation components (e.g., RPA, robotic Process Automation robotic flow automation simulation components); the interactive equipment acquires a request simulation rule corresponding to the service information through a predefined component in the simulation request layer; and the interactive equipment encapsulates the request simulation rules and the service information through a predefined component in the simulation request layer, generates an operation simulation request, and sends the operation simulation request to the third-party service platform.
It should be noted that when the current financial service system is in butt joint with different third party service systems, the interaction modes of the current financial service system and the third party service systems are different, and the interaction modes among the various third party service systems are also different, so that the systems cannot be compatible, and by setting a simulation request layer (Mock Request Layer) in the interaction equipment, the interaction function is realized for each specific service system by each predefined component in the simulation request layer, and the compatibility of the financial service system and the different third party service systems is realized.
And step S40, receiving the execution feedback information sent by the third-party service platform, and outputting the execution feedback information to the service interaction page.
The interactive device receives the execution feedback information sent by the third-party service platform, and the interactive device outputs the execution feedback information to the service interaction page, so that the user can conveniently check the execution feedback information, and the method specifically comprises the following steps:
step b1, receiving execution feedback information sent by the third party service platform, and judging whether the operation simulation request is successful or not according to the execution feedback information;
step b2, when the operation simulation request is not successful, executing the step of simulating the operation request according to the service information to obtain an operation simulation request, and sending the operation simulation request to a third-party service platform until the operation simulation request is successful;
and b3, outputting the execution feedback information to the service interaction page when the request of the operation simulation request is successful.
The interactive equipment receives the execution feedback information (the execution feedback information can be a processing result or an unprocessed prompt) sent by the third-party service platform, and judges whether the operation simulation request is successful or not according to the execution feedback information; when the operation simulation request is not successful, the interactive device performs repeated simulation operation requests, namely, the interactive device performs the steps of simulating the operation request according to the service information to obtain the operation simulation request and sending the operation simulation request to a third-party service platform until the operation simulation request is successful or the operation simulation request is successful; and when the request of the operation simulation request is successful, the interactive equipment outputs the execution feedback information to the business interaction page.
In the traditional scheme, if the third party service can not be processed in time, the user is required to wait for even re-request, but in the embodiment, the data input through the interaction page is firstly cached in the message queue of the data caching layer, even if the reason of the third party system is not needed to be re-input because of no response, failure information is not fed back to be re-input, and the interaction platform automatically re-requests according to the feedback of the third party service system.
According to the embodiment of the invention, the interactive platform for interacting with the third-party service system is built at the front end of the financial service system in advance, when an operation request is received, the user operation request is received by providing the unified service interaction page, so that the user operation is convenient, the occupation of frequent page switching operation on resources of the financial service system is reduced, the interactive platform arranged at the front end of the financial service system sends the operation request to the data caching layer instead of directly sending the operation request to the third-party service system like the conventional technology, the financial service system does not need to wait for the response of the third-party service system, the subsequent processing steps can be executed, the decoupling of the user operation and the third-party service system is realized, the processing efficiency of the financial service system is ensured, the waiting time of the user is reduced, the condition that the financial service system is influenced due to untimely processing of the third-party service system is avoided, the stability of the financial service system is improved, meanwhile, the updating setting of the service interaction page of the financial service system is carried out by the interactive platform when the third-party service system is maintained, the normal service of the financial service system is prevented from being influenced by the user, and the user experience is improved.
Further, based on the first embodiment of the interaction method of the third party service, a second embodiment of the interaction method of the third party service is provided.
In this embodiment, it is specifically described that when the third party service platform is updated, the updating of the interaction device of the third party service according to the third party service platform includes:
when the update of a third-party service platform is detected, acquiring the update information of the third-party service platform;
judging whether the third party service platform is added with service functions or not according to the updating information, and if the third party service platform is added with service functions, acquiring data interface updating information corresponding to the added service functions;
and triggering a platform construction request based on the data interface update information, and executing the step of packaging the data interface corresponding to the data interface information to form a third-party service system layer.
In the embodiment, when the interaction device detects that the third-party service platform is updated, the interaction device acquires the update information of the third-party service platform; the interactive equipment judges whether the third-party service platform is added with service functions according to the updating information, and if the third-party service platform is added with service functions, the interactive equipment acquires the updating information of the data interface corresponding to the added service functions; the interactive equipment triggers a platform building request based on the data interface updating information, and the interactive equipment executes the step of packaging the data interface corresponding to the data interface information to form a third-party service system layer.
In the embodiment, the interactive equipment is updated on the third-party service platform, the interactive equipment is automatically triggered to automatically trigger the platform building request, and the platform is automatically built, so that the third-party service system is updated, and the front-end user does not feel.
Further, based on the above embodiment of the interaction method of the third party service of the present invention, a third embodiment of the interaction method of the third party service of the present invention is provided.
This embodiment is a step subsequent to step S20 of the first embodiment of the present invention, and differs from the above-described embodiment in that:
and outputting a service processing prompt to the service interaction page when the data caching layer receives the service information.
When the interaction device receives service information from the data caching layer, the interaction device outputs a service processing prompt to a service interaction page, namely, in the prior art, an operation request is directly submitted to a third service system, a user needs to wait, and when the data caching layer of the interaction device receives the service information, the interaction device outputs the service processing prompt to the service interaction page, so that the waiting time of the user is shortened, the interaction response time of staff is improved, the interaction device is decoupled from the service system, the data can be cached, the pressure of the service system is reduced, and the response speed is improved.
In this embodiment, after the service information is stored in the message queue of the data caching layer, a message is responded to the user immediately, the user receives the completion of the submission, and at this time, the form is in a state to be submitted, at this time, the interaction device has no interaction with the third party service system, and the interaction device sends the operation request to the data caching layer instead of directly sending the operation request to the third party service system as in the conventional technology, so that the financial service system can execute the subsequent processing steps without waiting for the response of the third party service system, the decoupling of the data submitting process of the user operation and the service system function is realized, the processing efficiency of the financial service system is ensured, the waiting time of the user is reduced, the user is better experienced, the situation that the financial service system is affected due to untimely processing of the third party service system is avoided, and the stability of the financial service system is improved.
In addition, the message queue of the data caching layer caches data, when the data of the same type is found and queried in the subsequent query request, the cached data can be fed back without being retransmitted to a third party service system, so that the pressure of the third party service system is reduced, and the response speed is improved.
Referring to fig. 5, the present invention further provides an interaction device for a third party service, where the interaction device for a third party service includes:
the request receiving module 10 is configured to receive an operation request triggered based on a service interaction page, and acquire a service type and service information corresponding to the operation request;
an information input module 20, configured to input the service information to a data cache layer when the service type is a third party service type;
the obtaining simulation module 30 is configured to obtain service information from the message queue of the data cache layer, simulate the operation request according to the service information to obtain an operation simulation request, and send the operation simulation request to a third party service platform;
and the receiving and outputting module 40 is configured to receive the execution feedback information sent by the third party service platform, and output the execution feedback information to the service interaction page.
In an embodiment, the interaction device of the third party service further includes:
the interface packaging module is used for receiving a platform building request, acquiring data interface information of a third-party service platform, and packaging a data interface corresponding to the data interface information to form a third-party service system layer;
The simulation determining module is used for acquiring the triggering conditions of all the data interfaces in the third-party service system layer, generating request simulation rules according to the triggering conditions, and summarizing the request simulation rules to generate a simulation request layer;
the platform construction module is used for constructing a data cache layer at the front end of the simulation request layer and setting a business interaction page at the front end of the data cache layer to finish platform construction.
In an embodiment, the interaction device of the third party service further includes:
the detection acquisition module is used for acquiring the update information of the third-party service platform when the update of the third-party service platform is detected;
the information acquisition module is used for judging whether the third party service platform is added with service functions or not according to the updating information, and if the third party service platform is added with service functions, acquiring data interface updating information corresponding to the added service functions;
and the request triggering module is used for triggering a platform building request based on the data interface update information and executing the step of packaging the data interface corresponding to the data interface information to form a third-party service system layer.
In one embodiment, the acquisition simulation module 30 includes:
The monitoring acquisition unit is used for monitoring the message queue in the data cache layer through the simulation request layer, and acquiring the service information overflowed from the message queue when detecting that the service information in the message queue accords with the reading authority and overflows from the message queue;
the simulation generation unit is used for acquiring a request simulation rule corresponding to the service information through the simulation request layer, simulating the operation request according to the request simulation rule and generating an operation simulation request;
and the request sending unit is used for sending the operation simulation request to a third-party service platform.
In an embodiment, the simulation generating unit is further configured to
Acquiring a request simulation rule corresponding to the service information through a predefined component in the simulation request layer;
and encapsulating the request simulation rule and the service information through a predefined component in the simulation request layer to generate an operation simulation request.
In one embodiment, the receiving output module 40 includes:
the request judging unit is used for receiving the execution feedback information sent by the third-party service platform and judging whether the operation simulation request is successful or not according to the execution feedback information;
The first judgment is used for executing the step of simulating the operation request according to the service information to obtain an operation simulation request and sending the operation simulation request to a third-party service platform until the operation simulation request is successful when the operation simulation request is not successful;
and the second judging unit is used for outputting the execution feedback information to the business interaction page when the request of the operation simulation request is successful.
In an embodiment, the interaction device of the third party service further includes:
and outputting a service processing prompt to the service interaction page when the data caching layer receives the service information.
The method executed by each program module may refer to each embodiment of the interaction method of the third party service of the present invention, which is not described herein.
The interactive device of the third party service is arranged on the interactive equipment, the interactive equipment is a hardware carrier of an interactive platform which is interacted with the third party service system and is built at the front end of the financial service system in advance, when the interactive equipment receives an operation request, the user operation request is received by providing a unified service interactive page, so that the user operation is convenient, the occupation of frequent page switching operation on resources of the financial service system is reduced, the prepositioned interactive platform of the financial service system sends the operation request to a data caching layer instead of directly sending the operation request to the third party service system like the traditional technology, the financial service system can execute subsequent processing steps without waiting for the response of the third party service system, the decoupling of the user operation and the third party service system is realized, the processing efficiency of the financial service system is ensured, the waiting time of the user is reduced, the condition that the financial service system is influenced due to untimely processing of the third party service system is avoided, the stability of the financial service system is improved, the normal service of the financial service system is prevented from being influenced by the interactive page of the financial service system when the third party service system is maintained, and the user experience is improved.
The invention also provides a computer storage medium.
The computer storage medium of the invention stores an interactive program of the third party service, and the interactive program of the third party service realizes the steps of the interactive method of the third party service when being executed by a processor.
The method implemented when the interactive program of the third party service running on the processor is executed may refer to various embodiments of the interactive method of the third party service of the present invention, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several requests for a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The interaction method of the third party service is characterized by comprising the following steps of:
Receiving a platform building request, acquiring data interface information of a third-party service platform, and packaging a data interface corresponding to the data interface information to form a third-party service system layer;
acquiring triggering conditions of all data interfaces in the third-party service system layer, generating request simulation rules according to the triggering conditions, and summarizing the request simulation rules to generate a simulation request layer;
constructing a data caching layer at the front end of the simulation request layer, and setting a service interaction page at the front end of the data caching layer to complete the construction of a platform;
receiving an operation request triggered by a user based on the unified service interaction page, and acquiring a service type and service information corresponding to the operation request, wherein the service information is input by the user through the service interaction page;
when the service type is a third party service type, inputting the service information into the data caching layer;
when the data caching layer receives the service information, outputting a service processing prompt to the service interaction page, wherein the service processing prompt is used for prompting the user that the service information is submitted, and new service information can be input through the service interaction page;
Acquiring service information from a message queue of the data caching layer, simulating the operation request according to the service information to acquire an operation simulation request, and sending the operation simulation request to the third-party service platform;
and receiving the execution feedback information sent by the third-party service platform, and outputting the execution feedback information to the service interaction page.
2. The method for interaction of a third party service according to claim 1, wherein the method for interaction of a third party service comprises:
when the update of a third-party service platform is detected, acquiring the update information of the third-party service platform;
judging whether the third party service platform is added with service functions or not according to the updating information, and if the third party service platform is added with service functions, acquiring data interface updating information corresponding to the added service functions;
and triggering a platform construction request based on the data interface update information, and executing the step of packaging the data interface corresponding to the data interface information to form a third-party service system layer.
3. The method for interaction of third party service according to claim 1, wherein the step of obtaining service information from the message queue of the data caching layer, obtaining an operation simulation request by simulating the operation request according to the service information, and sending the operation simulation request to a third party service platform comprises the steps of:
Monitoring a message queue in the data cache layer through a simulation request layer, and acquiring service information overflowed from the message queue when detecting that the service information in the message queue accords with the reading authority and overflows from the message queue;
acquiring a request simulation rule corresponding to the service information through the simulation request layer, simulating the operation request according to the request simulation rule, and generating an operation simulation request;
and sending the operation simulation request to a third party service platform.
4. The method for interaction of third party service according to claim 3, wherein the step of obtaining the request simulation rule corresponding to the service information through the simulation request layer, simulating the operation request according to the request simulation rule, and generating the operation simulation request includes:
acquiring a request simulation rule corresponding to the service information through a predefined component in the simulation request layer;
and encapsulating the request simulation rule and the service information through a predefined component in the simulation request layer to generate an operation simulation request.
5. The method for interaction of the third party service according to claim 1, wherein the step of receiving the execution feedback information sent by the third party service platform and outputting the execution feedback information to the service interaction page comprises:
Receiving execution feedback information sent by the third-party service platform, and judging whether the operation simulation request is successful or not according to the execution feedback information;
when the operation simulation request is not successful, executing the step of simulating the operation request according to the service information to obtain the operation simulation request and sending the operation simulation request to a third-party service platform until the operation simulation request is successful;
and when the request of the operation simulation request is successful, outputting the execution feedback information to the service interaction page.
6. An interaction device for a third party service, wherein the interaction device for the third party service comprises:
the interface packaging module is used for receiving a platform building request, acquiring data interface information of a third-party service platform, and packaging a data interface corresponding to the data interface information to form a third-party service system layer;
the simulation determining module is used for acquiring the triggering conditions of all the data interfaces in the third-party service system layer, generating request simulation rules according to the triggering conditions, and summarizing the request simulation rules to generate a simulation request layer;
The platform construction module is used for constructing a data cache layer at the front end of the simulation request layer and setting a business interaction page at the front end of the data cache layer to finish platform construction;
the request receiving module is used for receiving an operation request triggered by a user based on the unified service interaction page, and acquiring a service type and service information corresponding to the operation request, wherein the service information is input by the user through the service interaction page;
the information input module is used for inputting the service information to the data caching layer when the service type is a third party service type;
the receiving and outputting module is used for outputting a service processing prompt to the service interaction page when the data caching layer receives the service information, wherein the service processing prompt is used for prompting the user that the service information is submitted, and new service information can be input through the service interaction page;
the acquisition simulation module is used for acquiring service information from the message queue of the data caching layer, simulating the operation request according to the service information to acquire an operation simulation request, and sending the operation simulation request to the third-party service platform;
The receiving and outputting module is further configured to receive the execution feedback information sent by the third party service platform, and output the execution feedback information to the service interaction page.
7. An interaction device for a third party service, wherein the interaction device for the third party service comprises: memory, a processor and an interactive program of a third party service stored on the memory and executable on the processor, which when executed by the processor implements the steps of the interactive method of a third party service according to any one of claims 1 to 5.
8. A computer storage medium, wherein the computer storage medium has stored thereon an interactive program for a third party service, which when executed by a processor implements the steps of the interactive method for a third party service according to any of claims 1 to 5.
CN202010544193.2A 2020-06-15 2020-06-15 Interaction method, device and equipment of third party service and computer storage medium Active CN111694620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010544193.2A CN111694620B (en) 2020-06-15 2020-06-15 Interaction method, device and equipment of third party service and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010544193.2A CN111694620B (en) 2020-06-15 2020-06-15 Interaction method, device and equipment of third party service and computer storage medium

Publications (2)

Publication Number Publication Date
CN111694620A CN111694620A (en) 2020-09-22
CN111694620B true CN111694620B (en) 2024-04-12

Family

ID=72481162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010544193.2A Active CN111694620B (en) 2020-06-15 2020-06-15 Interaction method, device and equipment of third party service and computer storage medium

Country Status (1)

Country Link
CN (1) CN111694620B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764948A (en) * 2021-01-22 2021-05-07 土巴兔集团股份有限公司 Data transmission method, data transmission device, computer device, and storage medium
CN115250259B (en) * 2021-04-25 2024-03-01 北京字跳网络技术有限公司 Information interaction method and device and electronic equipment
CN113268360A (en) * 2021-05-14 2021-08-17 北京三快在线科技有限公司 Request processing method, device, server and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8015541B1 (en) * 2002-10-24 2011-09-06 Rage Frameworks, Inc. Business process technology for the enterprise
CN102946425A (en) * 2012-11-05 2013-02-27 西安工程大学 Uniform communication platform service integration frame based on OSGi (Open Service Gateway Initiative)
CN105577795A (en) * 2015-12-24 2016-05-11 北京奇虎科技有限公司 Service interface invoking method and apparatus
CN107222524A (en) * 2017-05-08 2017-09-29 广州智淘信息科技有限公司 A kind of open application service integrated framework
CN108829467A (en) * 2018-04-28 2018-11-16 广东蜂助手网络技术股份有限公司 Third-party platform docks implementation method, device, equipment and storage medium
CN109587280A (en) * 2019-01-21 2019-04-05 山东达创网络科技股份有限公司 A kind of Business Process Management method and device
CN109658233A (en) * 2018-12-26 2019-04-19 北京安御道合科技有限公司 A kind of authenticated client system and method towards financial industry
CN110661853A (en) * 2019-09-06 2020-01-07 深圳壹账通智能科技有限公司 Data proxy method, device, computer equipment and readable storage medium
CN110995847A (en) * 2019-12-10 2020-04-10 南京新贝金服科技有限公司 Insurance service bus implementation method and system applied to multi-system communication
CN111064621A (en) * 2019-12-25 2020-04-24 南京三百云信息科技有限公司 Service data docking method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120166526A1 (en) * 2010-12-27 2012-06-28 Amit Ashok Ambardekar Request forwarding and result aggregating systems, methods and computer readable media

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8015541B1 (en) * 2002-10-24 2011-09-06 Rage Frameworks, Inc. Business process technology for the enterprise
CN102946425A (en) * 2012-11-05 2013-02-27 西安工程大学 Uniform communication platform service integration frame based on OSGi (Open Service Gateway Initiative)
CN105577795A (en) * 2015-12-24 2016-05-11 北京奇虎科技有限公司 Service interface invoking method and apparatus
CN107222524A (en) * 2017-05-08 2017-09-29 广州智淘信息科技有限公司 A kind of open application service integrated framework
CN108829467A (en) * 2018-04-28 2018-11-16 广东蜂助手网络技术股份有限公司 Third-party platform docks implementation method, device, equipment and storage medium
CN109658233A (en) * 2018-12-26 2019-04-19 北京安御道合科技有限公司 A kind of authenticated client system and method towards financial industry
CN109587280A (en) * 2019-01-21 2019-04-05 山东达创网络科技股份有限公司 A kind of Business Process Management method and device
CN110661853A (en) * 2019-09-06 2020-01-07 深圳壹账通智能科技有限公司 Data proxy method, device, computer equipment and readable storage medium
CN110995847A (en) * 2019-12-10 2020-04-10 南京新贝金服科技有限公司 Insurance service bus implementation method and system applied to multi-system communication
CN111064621A (en) * 2019-12-25 2020-04-24 南京三百云信息科技有限公司 Service data docking method and device

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Michał Król等.NFaaS: named function as a service.ICN '17: Proceedings of the 4th ACM Conference on Information-Centric Networking.2017,第134-144页. *
Smart-toy-edge-computing-oriented data exchange based on blockchain;Jian Yang等;Journal of Systems Architecture;20180515;第87卷;第36-48页 *
开放式高并发邮件推送系统的设计与实现;黄哲思;中国优秀硕士学位论文全文数据库 信息科技辑;20180315(第3期);I139-330 *
移动电子商务中统一接口平台的研究与设计;关桥;中国优秀硕士学位论文全文数据库 信息科技辑;20131215(第S2期);I138-698 *
金融科技在互联网金融行业性风险防范领域的应用;胡鹏飞;大数据;第04卷(第01期);第117-123页 *

Also Published As

Publication number Publication date
CN111694620A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111694620B (en) Interaction method, device and equipment of third party service and computer storage medium
KR102407334B1 (en) Gateway apparatus and operating method thereof
CN109240697B (en) Call processing method and device and storage medium
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN111241125A (en) Method and device for recording operation log, electronic equipment and storage medium
CN110858172A (en) Automatic test code generation method and device
CN112765166A (en) Data processing method, device and computer readable storage medium
CN111510330A (en) Interface management apparatus, method and storage medium
CN113656735A (en) Message pushing system, method, electronic equipment and storage medium
CN112787999A (en) Cross-chain calling method, device, system and computer readable storage medium
CN113282589A (en) Data acquisition method and device
WO2021093672A1 (en) Method for embedding external system, workflow system, device and computer readable storage medium
CN112800410A (en) Multi-product login management method, device, equipment and storage medium
JP2022542203A (en) Mini-program batch processing method, device, electronic device and readable storage medium
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN111338928A (en) Chrome-based browser testing method and device
CN113779122B (en) Method and device for exporting data
CN114510398A (en) Anomaly monitoring method, apparatus, device, system and medium
CN112559001B (en) Method and device for updating application
CN112182083A (en) File generation method, device, equipment and storage medium
CN111158661A (en) System interface docking method, device, medium and electronic equipment
CN108491448B (en) Data pushing method and device
CN113760487A (en) Service processing method and device
CN111078571A (en) Test method for simulation response, terminal device and computer readable storage medium
CN113901377B (en) Service calling method, device, storage medium and equipment of legacy system

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