CN109194495B - Server, message processing method, and computer-readable storage medium - Google Patents
Server, message processing method, and computer-readable storage medium Download PDFInfo
- Publication number
- CN109194495B CN109194495B CN201810694255.0A CN201810694255A CN109194495B CN 109194495 B CN109194495 B CN 109194495B CN 201810694255 A CN201810694255 A CN 201810694255A CN 109194495 B CN109194495 B CN 109194495B
- Authority
- CN
- China
- Prior art keywords
- service
- information
- preset
- gateway interface
- type
- 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
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
- H04L41/5048—Automatic or semi-automatic definitions, e.g. definition templates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
-
- 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/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/0816—Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
-
- 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/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
- H04L41/5054—Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a server, a message processing method and a computer readable storage medium. The invention acquires the service information of the preset first type service, inquires the configuration information and gateway interface information corresponding to the first type service according to the service information of the preset first type service, assembles the preset first type service request message according to the service information and the configuration information, and sends the assembled preset first type service request message to the corresponding gateway interface. Compared with the prior art, the invention does not need to modify codes and restart the server when the gateway interface data processing logic of the service processing party changes, thereby improving the system maintenance efficiency.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a server, a message processing method, and a computer-readable storage medium.
Background
When an existing e-commerce platform (i.e. a service requester) works, financial institutions (i.e. a service processor) such as banks and third-party payment companies need to be called for service processing, before a financial institution is called for service processing, gateway interface docking needs to be performed between the e-commerce platform and the financial institution, and when the gateway interface docking mainly relates to the definition of a gateway interface message processing mode, the existing method for defining the gateway interface message processing mode is as follows: and compiling corresponding codes in a gateway interface proxy layer according to the data processing logic of the gateway interface of the financial institution so as to realize the assembly of the gateway interface message, the analysis of the gateway interface return message, the calling of the gateway interface and the like. The method has a drawback in that when the data processing logic of the financial institution interface is changed, the code needs to be re-modified and the service requester server needs to be restarted.
Disclosure of Invention
The invention mainly aims to provide a server, a message processing method and a computer readable storage medium, aiming at solving the problem that when the data processing logic of a gateway interface of a service processor is changed, a code needs to be modified again and a service requester server needs to be restarted.
In order to achieve the above object, the present invention provides a server, including a memory and a processor, where the memory stores a message processing program, and the message processing program, when executed by the processor, implements the following steps:
an acquisition step: when a preset first type service request instruction is received, acquiring service information of the preset first type service;
a first query step: inquiring configuration information corresponding to the preset first type service according to service processing party service identification information in the acquired service information and a predetermined mapping relation between the service processing party service identification information and the configuration information;
a second query step: inquiring gateway interface information corresponding to the preset first type service according to service processing party service identification information in the acquired service information and a predetermined mapping relation between the service processing party service identification information and the gateway interface information;
assembling: assembling a preset first type service request message according to the service information and the configuration information;
a sending step: and sending the assembled preset first type service request message to a service requester gateway interface corresponding to the inquired gateway interface information, so that the service requester gateway interface sends the preset first type service request message to a corresponding service processor gateway interface.
Preferably, the first querying step comprises:
inquiring a configuration information identifier corresponding to the service identification information of the service processing party in the service information according to a predetermined mapping relation between the service identification information of the service processing party and the configuration information identifier;
and determining the configuration information corresponding to the inquired configuration information identifier according to a predetermined mapping relation between the configuration information identifier and the configuration information, wherein the configuration information is the configuration information corresponding to the preset first type service.
Preferably, the acquiring step comprises:
extracting service request information in the preset first type service request instruction, and selecting an optimal service channel from a plurality of predetermined service channels according to the service request information and a predetermined selection rule;
and acquiring the service channel information of the optimal service channel, and taking the service request information and the service channel information as the service information of the preset first type service.
Preferably, the processor executes the message processing program, and after the sending step, further implements the steps of:
and receiving a preset first type service return message returned by the gateway interface of the service requester, and analyzing the preset first type service return message according to the inquired configuration information.
Preferably, the processor executes the message processing program, and after the sending step, further implements the steps of:
when the return message of the preset first type service is not received within a preset time length, starting a preset second type service, wherein the preset second type service comprises a query service;
when the started preset second type service is a query service, generating query service identification information, acquiring service information corresponding to a preset first type service request message to be queried, and extracting service processing party service identification information and service identification information from the service information as query service information;
acquiring configuration information corresponding to the query service according to the service identification information of the service processor, the query service identification information and the predetermined mapping relation among the service identification information of the service processor, the query service identification information and the configuration information;
acquiring gateway interface information corresponding to the query service information according to the service identification information of the service processor, the query service identification information and the predetermined mapping relation among the service identification information of the service processor, the query service identification information and the gateway interface information;
assembling an inquiry request message according to the inquiry service information and the configuration information, and sending the assembled inquiry request message to a service requester gateway interface corresponding to the acquired gateway interface information, so that the service requester gateway interface sends the inquiry request message to a corresponding service processor gateway interface;
and receiving a query return message returned by the gateway interface of the service requester, and analyzing the query return message according to the configuration information to obtain a query result.
In addition, in order to achieve the above object, the present invention further provides a message processing method, which is characterized in that the method includes:
an acquisition step: when a preset first type service request instruction is received, acquiring service information of the preset first type service;
a first query step: inquiring configuration information corresponding to the preset first type service according to service processing party service identification information in the acquired service information and a predetermined mapping relation between the service processing party service identification information and the configuration information;
a second query step: inquiring gateway interface information corresponding to the preset first type service according to service processing party service identification information in the acquired service information and a predetermined mapping relation between the service processing party service identification information and the gateway interface information;
assembling: assembling a preset first type service request message according to the service information and the configuration information;
a sending step: and sending the assembled preset first type service request message to a service requester gateway interface corresponding to the inquired gateway interface information, so that the service requester gateway interface sends the preset first type service request message to a corresponding service processor gateway interface.
Preferably, the acquiring step comprises:
extracting service request information in the preset first type service request instruction, and selecting an optimal service channel from a plurality of predetermined service channels according to the service request information and a predetermined selection rule;
and acquiring the service channel information of the optimal service channel, and taking the service request information and the service channel information as the service information of the preset first type service.
Preferably, after the sending step, the method further comprises:
and receiving a preset first type service return message returned by the gateway interface of the service requester, and analyzing the preset first type service return message according to the inquired configuration information.
Preferably, after the sending step, the method further comprises:
when the return message of the preset first type service is not received within a preset time length, starting a preset second type service, wherein the preset second type service comprises a query service;
when the started preset second type service is a query service, generating query service identification information, acquiring service information corresponding to a preset first type service request message to be queried, and extracting service processing party service identification information and service identification information from the service information as query service information;
acquiring configuration information corresponding to the query service according to the service identification information of the service processor, the query service identification information and the predetermined mapping relation among the service identification information of the service processor, the query service identification information and the configuration information;
acquiring gateway interface information corresponding to the query service information according to the service identification information of the service processor, the query service identification information and the predetermined mapping relation among the service identification information of the service processor, the query service identification information and the gateway interface information;
assembling an inquiry request message according to the inquiry service information and the configuration information, and sending the assembled inquiry request message to a service requester gateway interface corresponding to the acquired gateway interface information, so that the service requester gateway interface sends the inquiry request message to a corresponding service processor gateway interface;
and receiving a query return message returned by the gateway interface of the service requester, and analyzing the query return message according to the configuration information to obtain a query result.
Furthermore, to achieve the above object, the present invention also provides a computer-readable storage medium storing a message processing program, which is executable by at least one processor to cause the at least one processor to execute the steps of the message processing method according to any one of the above.
The invention acquires the service information of the preset first type service, inquires the configuration information and gateway interface information corresponding to the first type service according to the service information of the preset first type service, assembles the preset first type service request message according to the service information and the configuration information, and sends the assembled preset first type service request message to the corresponding gateway interface. Compared with the prior art, the method and the device have the advantages that when the interface is in butt joint with the service processing party, the configuration information is set according to the gateway interface data processing logic of the service processing party, and when the service requesting party needs to call the service processing party to perform service processing, the message is assembled and analyzed according to the configuration information and the gateway interface is called. When the gateway interface data processing logic of the service processing party changes, the invention only needs to modify the corresponding configuration information without modifying codes and restarting the server, and the modified configuration information is immediately effective once stored, thereby improving the system maintenance efficiency on the premise of not influencing the normal operation of the service requesting party system.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic diagram of an alternative application environment according to various embodiments of the present invention;
FIG. 2 is a diagram illustrating an operating environment of a message handler according to a first embodiment, a second embodiment and a third embodiment of the present invention;
FIG. 3 is a block diagram of a message processing program according to a first embodiment of the present invention;
FIG. 4 is a block diagram of a refinement procedure of the first acquisition module of FIG. 3;
FIG. 5 is a diagram of a refined program module of the first query module of FIG. 3;
FIG. 6 is a block diagram of a message processing program according to a second embodiment of the present invention;
FIG. 7 is a block diagram of a third embodiment of an interface message processing program according to the present invention
Fig. 8 is a flowchart illustrating a first embodiment of a message processing method according to the present invention;
FIG. 9 is a detailed flowchart of step S10 in FIG. 8;
FIG. 10 is a detailed flowchart of step S20 in FIG. 8;
fig. 11 is a flowchart illustrating a second embodiment of a message processing method according to the present invention;
fig. 12 is a flowchart illustrating a message processing method according to a third embodiment of 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
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a schematic diagram of an alternative application environment according to various embodiments of the present invention.
In the present embodiment, the present invention can be applied to an application environment including, but not limited to, a server 1, a plurality of clients 2, a plurality of service requester gateway interfaces 3, a plurality of service handler gateway interfaces 4, and a service handler server 5. The server 1 is respectively connected with a plurality of clients 2 and a plurality of service requester gateway interfaces in a communication way, each service requester gateway interface 3 is connected with a corresponding service processor gateway interface 4 in a communication way, and the plurality of service processor gateway interfaces 4 are connected with a service processor server 5 in a communication way.
The client 2 is a client of a service request party, and the client 2 is used for providing a user operation interface, sending a preset first type service request instruction triggered by a user to the server 1 for processing, and receiving a service processing result returned by the server 1.
The server 1 is a server of a service requester, and the server 1 is configured to run a message processing program to implement the steps of the message processing method of the present invention.
The service requester gateway interface 3 is configured to receive a message sent by the server 1 and send the message to the corresponding service handler gateway interface 4, and the service requester gateway interface 3 is further configured to receive a message returned by the service handler gateway interface 4 and send the returned message to the service requester gateway interface 3.
The service processing side gateway interface 4 is configured to receive a message sent by the service requester gateway interface 3 and parse the message into data readable by the service processing side server 5, and the service processing side gateway interface 4 is further configured to assemble the data sent by the service processing side server 5 into a message and send the message to the corresponding service requester gateway interface 3.
The service processing side server 5 is used for receiving the data sent by the service processing side gateway interface 4, performing service processing according to the data, and returning the result of the service processing to the service processing side gateway interface 4.
The application environment and the hardware structure and function of the related devices of the various embodiments of the present invention have been described in detail so far. Hereinafter, various embodiments of the present invention will be proposed based on the above-described application environment and related devices.
The invention provides a message processing program.
Fig. 2 is a schematic diagram of an operating environment of a message processing program 10 according to a first embodiment of the present invention.
In the present embodiment, the message processing program 10 is installed and run in the server 1. The server 1 is a device capable of automatically performing calculation and/or information processing in accordance with a command set in advance or stored. The server 1 may include, but is not limited to, a memory 11, a processor 12, and a display 13. Fig. 2 only shows the server 1 with components 11-13, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The storage 11 may in some embodiments be an internal storage unit of the server 1, such as a hard disk or a memory of the server 1. The memory 11 may also be an external storage device of the server 1 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the server 1. Further, the memory 11 may also include both an internal storage unit of the server 1 and an external storage device. The memory 11 is used for storing application software installed in the server 1 and various data, such as a program code of the message processing program 10. The memory 11 may also be used to temporarily store data that has been output or is to be output.
Processor 12, which in some embodiments may be a Central Processing Unit (CPU), microprocessor or other data Processing chip, executes program code or processes data stored in memory 11, such as executing message handler 10.
The display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 13 is used for displaying information processed in the server 1 and for displaying a user interface for visualization. The components 11-13 of the server 1 communicate with each other via a program bus.
Fig. 3 is a block diagram of a message processing program 10 according to a first embodiment of the present invention. In this embodiment, the message processing program 10 may be divided into one or more modules, and the one or more modules are stored in the memory 11 and executed by one or more processors (in this embodiment, the processor 12) to complete the present invention. For example, in fig. 3, the message handler 10 may be divided into a first obtaining module 101, a first querying module 102, a second querying module 103, an assembling module 104, and a sending module 105. The module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable than a program for describing the execution process of the message processing program 10 in the server 1, wherein:
the first obtaining module 101 is configured to obtain service information of the preset first type service when receiving a preset first type service request instruction.
Specifically, the preset first-type service request instruction may be initiated by a user through a client, for example, the user needs to pay through a service processor, and when jumping to a payment page, the preset first-type service request is triggered.
The preset first type of service includes but is not limited to: the system comprises a collecting service, a payment service and an authentication service.
The collecting service refers to a service that a business entrusts a business agreement with a merchant (for example, an electronic commerce platform operated by a business requester), and permits the merchant to request and complete payment of a designated payment to a cardholder designated account according to agreement, and is used for realizing the oriented transfer of the account funds of the cardholder to the account of the merchant based on the agreed application.
The payment-on-behalf service refers to a service in which a merchant (e.g., an e-commerce platform operated by a service requester) pays money from a self-organization settlement account to a designated bank card account of a cardholder, such as insurance claim settlement, fund dividend, payment on behalf of a good, and the like.
The authentication service refers to a service for verifying whether a user has the right to access the system by a service processor.
Referring to fig. 4, the first obtaining module 101 includes a selecting unit 1011 and a obtaining unit 1012, wherein:
a selecting unit 1011, configured to extract the service request information in the preset first type service request instruction, and select an optimal service channel from the predetermined multiple service channels according to the service request information and a predetermined selection rule.
Specifically, the service request information includes a service type, service identification information, and service content information.
The service types comprise a collection service, a payment service and an authentication service.
The service identification information includes a service number, for example, an order number.
The service content information is different based on different service types, for example, if the service type is a service for collecting or a service for collecting, the service content information includes information of a payer, information of a payee, a transaction amount, and the like; if the service type is an authentication service, the service content information includes user identity information, bank card information and the like.
The service channels are service processing links divided according to services provided by service processing parties. For example, the unionpay collecting channel, the unionpay authentication channel, the bank A collecting channel, the bank A payment collecting channel, the bank A authentication channel, and the like.
The service provided by the service processing party is the service which can be processed by the service processing party.
In other embodiments besides this embodiment, the service channels may be divided according to specific application scenarios, which is not limited in the present invention.
Preferably, in this embodiment, the predetermined selection rule includes:
firstly, according to the service request information, a service channel supporting the service is determined as a service channel to be selected.
The method for judging whether a service channel supports the preset first type service comprises the following steps:
and judging whether the service channel has the authority to process the preset first type service or not according to the service type, if not, judging that the service channel does not support the preset first type service, and if so, continuously judging whether the service channel is opened or not (for example, if some channels possibly have faults, the channel is closed).
When the preset first type service is the authentication service, if the service channel is opened, the service channel is judged to support the preset first type service, and if the service channel is not opened, the service channel is judged not to support the preset first type service.
When the preset first type service is a collect service or a pay service, according to the transaction amount number in the service content information, determining whether the opened service channel meets a preset limit condition (for example, determining whether a new transaction amount total obtained by adding the transaction amount number in the service content information to the processed transaction amount total on the day of the opened service channel does not exceed a preset threshold), if so, determining that the service channel supports the service channel of the preset first type service, and if not, determining that the service channel does not support the preset first type service.
And then, sequencing the service channels to be selected based on the sequencing parameters of the service channels to be selected, and outputting a sequencing result.
The above-mentioned sequencing parameters include service rate, service timeliness (i.e. time required for the service processing party to complete the service or pay for the service), priority, etc. The sorting parameter can be set according to the requirement, and is not limited to the above-mentioned contents.
The step of performing ranking processing on the to-be-selected service channels based on the ranking parameters of each to-be-selected service channel specifically includes:
and sequencing the service channels to be selected based on the sequence of the priority from high to low.
And sequencing the service channels to be selected with the same priority level from low to high based on the service rates.
And sequencing the service channels to be selected with the same priority and payment rate in the order from short to long based on the service timeliness so as to obtain the sequencing result of the service channels to be selected from good to bad.
The service rate mentioned above refers to a service rate charged by the service processing party to the service requesting party. And if the service type is the authentication service, the service timeliness is not used as the sequencing parameter.
And finally, based on the sequencing result, taking the service channel to be selected which meets the preset condition as the optimal service channel.
The preset condition may be set as required, for example, if the sorting result is a result of sorting the service channels to be selected in an order from good to bad, the preset condition is to select the service channel to be selected that is sorted first.
An obtaining unit 1012, configured to obtain service channel information of the optimal service channel, and use the service request information and the service channel information as service information of the preset first type service.
Preferably, in this embodiment, the service channel information of the optimal service channel includes service identifier information of the service processor, where the service identifier information of the service processor is identifier information of a service provided by the service processor, and for example, the service identifier information received by the bank a is 001002.
In other embodiments besides this embodiment, the service channel information of the optimal service channel may further include service processor organization identification information, for example, the bank a organization identification information is 001.
The first query module 102 is configured to query the configuration information corresponding to the preset first type service according to the obtained service identifier information of the service processor in the service information and a predetermined mapping relationship between the service identifier information of the service processor and the configuration information.
Specifically, the configuration information is set in advance according to the gateway interface data processing logic of the service processing party.
Referring to fig. 5, preferably, in this embodiment, the first query module 102 includes a first query unit 1021 and a second query unit 1022, where:
a first querying unit 1021, configured to query, according to a predetermined mapping relationship between the service identifier information of the service processing party and the configuration information identifier, a configuration information identifier (for example, a configuration information ID) corresponding to the service identifier information of the service processing party in the service information.
The configuration information identifier corresponding to the service identification information of the service processing party is the configuration information identifier corresponding to the preset first type service.
The mapping relationship between the service identifier information of the service processing party and the configuration information identifier may be stored in a corresponding mapping relationship table.
A second querying unit 1022, configured to determine, according to a predetermined mapping relationship between the configuration information identifier and configuration information, the configuration information corresponding to the queried configuration information identifier, where the configuration information is the configuration information corresponding to the preset first type service.
Specifically, the mapping relationship between the configuration information identifier and the configuration information may be stored in a corresponding mapping relationship table.
In addition, referring to the other embodiments besides the present embodiment, the first query unit 1021 and the second query unit 1022 described above may be replaced by a third query unit (not shown in the figure) configured to:
and inquiring configuration information corresponding to the service identification information of the service processor according to the service identification information of the service processor in the acquired service information and a predetermined mapping relation among the service identification information of the service processor, the configuration information identifier and the configuration information, so as to obtain the configuration information corresponding to the preset first type service.
Preferably, in this embodiment, when the message processing program 10 is executed by the processor 12, before the step of querying the configuration information corresponding to the preset first type service according to the service identifier information of the obtained service information and the predetermined mapping relationship between the service identifier information of the service processor and the configuration information, the following steps are further implemented: all configuration information is loaded (i.e. analyzed) in the memory, and all configuration information required by the subsequent message processing of the invention can be inquired from the memory. In addition, whether the configuration information is updated or not is detected in real time or in a timing mode, and if yes, the configuration information is reloaded in the memory.
The second query module 103 is configured to query, according to the obtained service identifier information of the service processor in the service information and a predetermined mapping relationship between the service identifier information of the service processor and the gateway interface information, gateway interface information corresponding to the preset first type service.
Specifically, the gateway interface refers to a gateway interface set by a service requester, and in general, the service requester sets a gateway for each service handler and sets a plurality of gateway interfaces according to each service provided by the service handler.
The gateway interface information includes a gateway interface identifier (e.g., gateway interface ID).
The mapping relationship between the service identifier information of the service processing party and the gateway interface information and the mapping relationship between the service identifier information of the service processing party and the configuration information identifier may be stored in the same mapping relationship table, or the mapping relationship between the service identifier information of the service processing party and the gateway interface information and the mapping relationship between the service identifier information of the service processing party and the configuration information identifier may be stored in different mapping relationship tables, respectively.
And an assembling module 104, configured to assemble a preset first type service request packet according to the service information and the configuration information.
The configuration information defines an assembly template for presetting the first type service request message according to the gateway interface data processing logic of the service processing party, so that the service processing party can directly read the preset first type service request message when receiving the first type service request message by using the service information as the message content to be assembled based on the assembly template.
A sending module 105, configured to send the assembled preset first type service request packet to a service requester gateway interface corresponding to the queried gateway interface information, so that the service requester gateway interface sends the preset first type service request packet to a corresponding service handler gateway interface.
Specifically, firstly, the assembled preset first-type service request message is sent to the queried service requester gateway interface, and the service information corresponding to the preset first-type service request message is stored (for example, in a database). And then, the service requester gateway interface sends the preset first type service request message to a corresponding service processor gateway interface, and the service processor gateway interface processes the preset first type service after receiving the preset first type service request message.
The embodiment acquires service information of a preset first type service, queries configuration information and gateway interface information corresponding to the preset first type service according to the service information of the preset first type service, assembles a preset first type service request message according to the service information and the configuration information, and sends the assembled preset first type service request message to a corresponding gateway interface. Compared with the prior art, in this embodiment, when the service requester performs interface docking with the service processor, configuration information is set according to the gateway interface data processing logic of the service processor, and when the service requester needs to call the service processor to perform service processing, a message is assembled and analyzed according to the configuration information, and a gateway interface is called. In the embodiment, when the gateway interface data processing logic of the service processing party changes, the code does not need to be modified and the server does not need to be restarted, only the corresponding configuration information needs to be modified, and the modified configuration information is immediately effective once being stored, so that the system maintenance efficiency is improved on the premise of not influencing the normal operation of the system of the service requesting party.
As shown in fig. 6, fig. 6 is a program module diagram of a message processing program 10 according to a second embodiment of the present invention.
In this embodiment, on the basis of the first embodiment, the program further includes a receiving module 106, where the receiving module 106 is configured to receive a preset first type service return packet returned by the service requester gateway interface, and analyze the preset first type service return packet according to the queried configuration information.
Specifically, the service processing side gateway interface returns a preset first type service return message to the corresponding service requesting side gateway interface, and the service requesting side gateway interface returns the preset first type service return message. The configuration information comprises analysis data of a return message field preset according to the gateway interface data processing logic of the service processor, so that the preset first type service return message can be analyzed according to the configuration information.
If the preset first type service return message contains an error code, searching corresponding error code analysis information according to a mapping relation between predetermined service processing mode service identification information and the error code analysis information, and performing escape on the error code according to the searched error code analysis information.
Preferably, in this embodiment, when the service type of the preset first type service is a service to be collected or a service to be paid for, the message processing program 10 further includes an updating module (not shown in the figure), and the updating module is configured to update the recorded daily transaction limit data of the payer (deducting the transaction amount from the daily transaction limit data) according to the transaction amount in the service request information.
And the updating module is also used for updating the recorded daily transaction limit data of the payer (rolling back the subtracted transaction amount from the daily transaction limit data) when the service collecting failure or the service paying failure is determined according to the analyzed preset first type service return message.
As shown in fig. 7, fig. 7 is a program module diagram of a message processing program 10 according to a third embodiment of the present invention.
In this embodiment, on the basis of the first and second embodiments, the program further includes a starting module 107 and a service querying module 108, where:
the starting module 107 is configured to start the preset second type service when the preset first type service return packet is not received within the preset time duration.
Specifically, the preset second type of service includes a query service.
Preferably, the program in this embodiment further includes a query service module 108, where the query service module 108 is configured to:
firstly, when the started preset second type service is a query service, generating query service identification information, acquiring service information corresponding to a preset first type service request message to be queried, and extracting service processor service identification information and service identification information from the service information as query service information.
Specifically, when the preset first type service request message to be queried is sent to the gateway interface of the service requester, the service information corresponding to the preset first type service request message to be queried is stored, so that the service information corresponding to the preset first type service request message to be queried only needs to be searched from the storage space.
And then, acquiring configuration information corresponding to the query service according to the service identification information of the service processing party, the query service identification information and the predetermined mapping relation among the service identification information of the service processing party, the query service identification information and the configuration information.
Specifically, a configuration information identifier (for example, a configuration information ID) corresponding to the query service is queried according to service identification information of a service processing party, query service identification information, and a predetermined mapping relationship among the service identification information of the service processing party, the query service identification information, and the configuration information identifier. Specifically, the predetermined mapping relationship among the service identifier information of the service processing party, the query service identifier information, and the configuration information identifier may be stored in a corresponding mapping relationship table.
And inquiring the configuration information corresponding to the configuration information identifier according to the inquired configuration information identifier and the predetermined mapping relation between the configuration information identifier and the configuration information. And the configuration information corresponding to the configuration information identifier obtained by inquiry is the configuration information corresponding to the inquiry service. The mapping relationship between the configuration information identifier and the configuration information may be stored in a corresponding mapping relationship table.
And then, acquiring gateway interface information corresponding to the inquired service information according to the service identification information of the service processor, the inquired service identification information and the predetermined mapping relation among the service identification information of the service processor, the inquired service identification information and the gateway interface information.
The predetermined mapping relationship among the service identifier information of the service processing party, the query service identifier information and the gateway interface information and the predetermined mapping relationship among the service identifier information of the service processing party, the query service identifier information and the configuration information identifier may be stored in the same mapping relationship table, or may be stored in different mapping relationship tables.
And then, assembling an inquiry request message according to the inquiry service information and the configuration information, and sending the assembled inquiry request message to a service requester gateway interface corresponding to the acquired gateway interface information, so that the service requester gateway interface sends the inquiry request message to a corresponding service processor gateway interface.
Specifically, since the configuration information defines an assembly template of the query request packet according to the gateway interface data processing logic of the service processing party, the query service information is assembled as the packet content based on the assembly template, so that the service processing party can directly read the query request packet when receiving the query request packet.
And finally, receiving an inquiry return message returned by the gateway interface of the service requester, and analyzing the inquiry return message according to the configuration information to obtain an inquiry result.
Specifically, since the configuration information includes the analysis data of the query return message field preset according to the service processor gateway interface data processing logic, the query return message can be analyzed according to the configuration information to obtain the query result.
In this embodiment, when the preset first type service return message is not received within the preset duration, the query service is started, so that the state of the service processing party currently processing the preset first type service can be obtained, and thus the service processing policy is adjusted according to the processing state.
In addition, the invention provides a message processing method.
As shown in fig. 8, fig. 8 is a flowchart illustrating a message processing method according to a first embodiment of the present invention.
In this embodiment, the method includes:
step S10, when receiving the request instruction of the preset first type service, obtaining the service information of the preset first type service.
Specifically, the preset first-type service request instruction may be initiated by a user through a client, for example, the user needs to pay through a service processor, and when jumping to a payment page, the preset first-type service request is triggered.
The preset first type of service includes but is not limited to: the system comprises a collecting service, a payment service and an authentication service.
The collecting service refers to a service that a business entrusts a business agreement with a merchant (for example, an electronic commerce platform operated by a business requester), and permits the merchant to request and complete payment of a designated payment to a cardholder designated account according to agreement, and is used for realizing the oriented transfer of the account funds of the cardholder to the account of the merchant based on the agreed application.
The payment-on-behalf service refers to a service in which a merchant (e.g., an e-commerce platform operated by a service requester) pays money from a self-organization settlement account to a designated bank card account of a cardholder, such as insurance claim settlement, fund dividend, payment on behalf of a good, and the like.
The authentication service refers to a service for verifying whether a user has the right to access the system by a service processor.
Referring to fig. 9, the step S10 specifically includes:
step S11, extracting the service request information in the preset first type service request instruction, and selecting an optimal service channel from the predetermined multiple service channels according to the service request information and a predetermined selection rule.
Specifically, the service request information includes a service type, service identification information, and service content information.
The service types comprise a collection service, a payment service and an authentication service.
The service identification information includes a service number, for example, an order number.
The service content information is different based on different service types, for example, if the service type is a service for collection or a service for payment, the service content information includes payer information, payee information, transaction amount, and the like; if the service type is an authentication service, the service content information includes user identity information, bank card information and the like.
The service channels are service processing links divided according to services provided by service processing parties. For example, the unionpay collecting channel, the unionpay authentication channel, the bank A collecting channel, the bank A payment collecting channel, the bank A authentication channel, and the like.
The service provided by the service processing party is the service which can be processed by the service processing party.
In other embodiments besides this embodiment, the service channels may be divided according to specific application scenarios, which is not limited in the present invention.
Preferably, in this embodiment, the predetermined selection rule includes:
firstly, according to the service request information, a service channel supporting the service is determined as a service channel to be selected. The method for judging whether a service channel supports the preset first type service comprises the following steps:
and judging whether the service channel has the authority to process the preset first type service or not according to the service type, if not, judging that the service channel does not support the preset first type service, and if so, continuously judging whether the service channel is opened or not (for example, if some channels possibly have faults, the channel is closed).
When the preset first type service is the authentication service, if the service channel is opened, the service channel is judged to support the preset first type service, and if the service channel is not opened, the service channel is judged not to support the preset first type service.
When the preset first type service is a collect service or a pay service, according to the transaction amount number in the service content information, determining whether the opened service channel meets a preset limit condition (for example, determining whether a new transaction amount total obtained by adding the transaction amount number in the service content information to the processed transaction amount total on the day of the opened service channel does not exceed a preset threshold), if so, determining that the service channel supports the service channel of the preset first type service, and if not, determining that the service channel does not support the preset first type service.
And then, sequencing the service channels to be selected based on the sequencing parameters of the service channels to be selected, and outputting a sequencing result.
The above-mentioned sequencing parameters include service rate, service timeliness (i.e. time required for the service processing party to complete the service or pay for the service), priority, etc. The sorting parameter can be set according to the requirement, and is not limited to the above-mentioned contents.
The step of performing ranking processing on the to-be-selected service channels based on the ranking parameters of each to-be-selected service channel specifically includes:
and sequencing the service channels to be selected based on the sequence of the priority from high to low.
And sequencing the service channels to be selected with the same priority level from low to high based on the service rates.
And sequencing the service channels to be selected with the same priority and payment rate in the order from short to long based on the service timeliness so as to obtain the sequencing result of the service channels to be selected from good to bad.
The service rate mentioned above refers to a service rate charged by the service processing party to the service requesting party. And if the service type is the authentication service, the service timeliness is not used as the sequencing parameter.
And finally, based on the sequencing result, taking the service channel to be selected which meets the preset condition as the optimal service channel.
The preset condition may be set as required, for example, if the sorting result is a result of sorting the service channels to be selected in an order from good to bad, the preset condition is to select the service channel to be selected that is sorted first.
Step S12, obtaining the service channel information of the optimal service channel, and using the service request information and the service channel information as the service information of the preset first type of service.
Preferably, in this embodiment, the service channel information of the optimal service channel includes service identifier information of the service processor, where the service identifier information of the service processor is identifier information of a service provided by the service processor, and for example, the service identifier information received by the bank a is 001002.
In other embodiments besides this embodiment, the service channel information of the optimal service channel may further include service processor organization identification information, for example, the bank a organization identification information is 001.
Step S20, querying configuration information corresponding to the preset first type service according to the service identifier information of the service processor in the acquired service information and a predetermined mapping relationship between the service identifier information of the service processor and the configuration information.
Specifically, the configuration information is set in advance according to the gateway interface data processing logic of the service processing party.
Referring to fig. 10, preferably, in this embodiment, the step S20 specifically includes:
step S21, according to the predetermined mapping relationship between the service identification information of the service processing party and the configuration information identifier, querying a configuration information identifier (for example, configuration information ID) corresponding to the service identification information of the service processing party in the service information.
The configuration information identifier corresponding to the service identification information of the service processing party is the configuration information identifier corresponding to the preset first type service.
The mapping relationship between the service identifier information of the service processing party and the configuration information identifier may be stored in a corresponding mapping relationship table.
Step S22, determining the configuration information corresponding to the queried configuration information identifier according to the predetermined mapping relationship between the configuration information identifier and the configuration information, where the configuration information is the configuration information corresponding to the preset first type service.
Specifically, the mapping relationship between the configuration information identifier and the configuration information may be stored in a corresponding mapping relationship table.
In addition, in other embodiments besides the present embodiment, the above steps S21, S22 may be replaced by the following steps:
and inquiring configuration information corresponding to the service identification information of the service processor according to the service identification information of the service processor in the acquired service information and a predetermined mapping relation among the service identification information of the service processor, the configuration information identifier and the configuration information, so as to obtain the configuration information corresponding to the preset first type service.
Preferably, in this embodiment, before step S20, the method further includes: all configuration information is loaded (i.e. analyzed) in the memory, and all configuration information required by the message processing method of the invention can be inquired from the memory. In addition, whether the configuration information is updated or not is detected in real time or in a timing mode, and if yes, the configuration information is reloaded in the memory.
Step S30, querying gateway interface information corresponding to the preset first type service according to the service identifier information of the service processor in the acquired service information and a predetermined mapping relationship between the service identifier information of the service processor and the gateway interface information.
Specifically, the gateway interface refers to a gateway interface set by a service requester, and in general, the service requester sets a gateway for each service handler and sets a plurality of gateway interfaces according to each service provided by the service handler.
The gateway interface information includes a gateway interface identifier (e.g., gateway interface ID).
The mapping relationship between the service identifier information of the service processing party and the gateway interface information and the mapping relationship between the service identifier information of the service processing party and the configuration information identifier may be stored in the same mapping relationship table, or the mapping relationship between the service identifier information of the service processing party and the gateway interface information and the mapping relationship between the service identifier information of the service processing party and the configuration information identifier may be stored in different mapping relationship tables, respectively.
The steps S20 and S30 may be executed simultaneously or separately, and the execution sequence of the steps S20 and S30 is not limited in the present invention.
Step S40, assembling a preset first type service request message according to the service information and the configuration information.
The configuration information defines an assembly template for presetting the first type service request message according to the gateway interface data processing logic of the service processing party, so that the service processing party can directly read the preset first type service request message when receiving the first type service request message by using the service information as the message content to be assembled based on the assembly template.
Step S50, sending the assembled preset first type service request packet to the service requester gateway interface corresponding to the queried gateway interface information, so that the service requester gateway interface sends the preset first type service request packet to the corresponding service handler gateway interface.
Specifically, firstly, the assembled preset first-type service request message is sent to the queried service requester gateway interface, and the service information corresponding to the preset first-type service request message is stored (for example, in a database). And then, the service requester gateway interface sends the preset first type service request message to a corresponding service processor gateway interface, and the service processor gateway interface processes the preset first type service after receiving the preset first type service request message.
The embodiment acquires service information of a preset first type service, queries configuration information and gateway interface information corresponding to the preset first type service according to the service information of the preset first type service, assembles a preset first type service request message according to the service information and the configuration information, and sends the assembled preset first type service request message to a corresponding gateway interface. Compared with the prior art, in this embodiment, when the service requester performs interface docking with the service processor, configuration information is set according to the gateway interface data processing logic of the service processor, and when the service requester needs to call the service processor to perform service processing, a message is assembled and analyzed according to the configuration information, and a gateway interface is called. In the embodiment, when the gateway interface data processing logic of the service processing party changes, the code does not need to be modified and the server does not need to be restarted, only the corresponding configuration information needs to be modified, and the modified configuration information is immediately effective once being stored, so that the system maintenance efficiency is improved on the premise of not influencing the normal operation of the system of the service requesting party.
As shown in fig. 11, fig. 11 is a flowchart illustrating a message processing method according to a second embodiment of the present invention.
This embodiment is based on the first embodiment, and the method further includes:
step S60, receiving a preset first type service return message returned by the service requester gateway interface, and analyzing the preset first type service return message according to the queried configuration information.
Specifically, the service processing side gateway interface returns a preset first type service return message to the corresponding service requesting side gateway interface, and the service requesting side gateway interface returns the preset first type service return message. The configuration information comprises analysis data of a return message field preset according to the gateway interface data processing logic of the service processor, so that the preset first type service return message can be analyzed according to the configuration information.
If the preset first type service return message contains an error code, searching corresponding error code analysis information according to a mapping relation between predetermined service processing mode service identification information and the error code analysis information, and performing escape on the error code according to the searched error code analysis information.
Preferably, in this embodiment, when the service type of the preset first type service is a service for collecting or paying for a service, before step S50, the method further includes:
and updating the recorded daily transaction limit data of the payer according to the transaction amount in the service request information (deducting the transaction amount from the daily transaction limit data).
When the preset service type of the first type service is a service for collecting or paying for a service, after step S60, the method further includes:
and if the collecting service failure or the paying service failure is determined according to the analyzed preset first type service return message, updating the recorded daily transaction limit data of the payer (rolling back the subtracted transaction amount from the daily transaction limit data).
As shown in fig. 12, fig. 12 is a flowchart illustrating a message processing method according to a third embodiment of the present invention.
In this embodiment, on the basis of the first and second embodiments, the method further includes:
step S70, when the preset first type service return message is not received within a preset time, start a preset second type service.
Specifically, the preset second type of service includes a query service.
Preferably, in this embodiment, after step S70, the method further includes:
firstly, when the started preset second type service is a query service, generating query service identification information, acquiring service information corresponding to a preset first type service request message to be queried, and extracting service processor service identification information and service identification information from the service information as query service information.
Specifically, when the preset first type service request packet to be queried is sent to the gateway interface of the service requester, the service information corresponding to the preset first type service request packet to be queried is stored, so in step S80, it is only necessary to find out the service information corresponding to the preset first type service request packet to be queried from the storage space.
And then, acquiring configuration information corresponding to the query service according to the service identification information of the service processing party, the query service identification information and the predetermined mapping relation among the service identification information of the service processing party, the query service identification information and the configuration information.
Specifically, a configuration information identifier (for example, a configuration information ID) corresponding to the query service is queried according to service identification information of a service processing party, query service identification information, and a predetermined mapping relationship among the service identification information of the service processing party, the query service identification information, and the configuration information identifier. Specifically, the predetermined mapping relationship among the service identifier information of the service processing party, the query service identifier information, and the configuration information identifier may be stored in a corresponding mapping relationship table.
And inquiring the configuration information corresponding to the configuration information identifier according to the inquired configuration information identifier and the predetermined mapping relation between the configuration information identifier and the configuration information. And the configuration information corresponding to the configuration information identifier obtained by inquiry is the configuration information corresponding to the inquiry service. The mapping relationship between the configuration information identifier and the configuration information may be stored in a corresponding mapping relationship table.
And then, acquiring gateway interface information corresponding to the inquired service information according to the service identification information of the service processor, the inquired service identification information and the predetermined mapping relation among the service identification information of the service processor, the inquired service identification information and the gateway interface information.
The predetermined mapping relationship among the service identifier information of the service processing party, the query service identifier information and the gateway interface information and the predetermined mapping relationship among the service identifier information of the service processing party, the query service identifier information and the configuration information identifier may be stored in the same mapping relationship table, or may be stored in different mapping relationship tables.
And then, assembling an inquiry request message according to the inquiry service information and the configuration information, and sending the assembled inquiry request message to a service requester gateway interface corresponding to the acquired gateway interface information, so that the service requester gateway interface sends the inquiry request message to a corresponding service processor gateway interface.
Specifically, since the configuration information defines an assembly template of the query request packet according to the gateway interface data processing logic of the service processing party, the query service information is assembled as the packet content based on the assembly template, so that the service processing party can directly read the query request packet when receiving the query request packet.
And finally, receiving an inquiry return message returned by the gateway interface of the service requester, and analyzing the inquiry return message according to the configuration information to obtain an inquiry result.
Specifically, since the configuration information includes the analysis data of the query return message field preset according to the service processor gateway interface data processing logic, the query return message can be analyzed according to the configuration information to obtain the query result.
In this embodiment, when the preset first type service return message is not received within the preset duration, the query service is started, so that the state of the service processing party currently processing the preset first type service can be obtained, and thus the service processing policy is adjusted according to the processing state.
Further, the present invention also provides a computer-readable storage medium storing a message processing program, which can be executed by at least one processor to cause the at least one processor to execute the steps of the message processing method in any of the above embodiments.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (6)
1. A server comprising a memory and a processor, wherein the memory has stored thereon a message processing program that when executed by the processor performs the steps of:
an acquisition step: when a preset first type service request instruction is received, acquiring service information of the preset first type service;
a first query step: inquiring configuration information corresponding to the preset first type service according to service processing party service identification information in the acquired service information and a predetermined mapping relation between the service processing party service identification information and the configuration information;
a second query step: inquiring gateway interface information corresponding to the preset first type service according to service processing party service identification information in the acquired service information and a predetermined mapping relation between the service processing party service identification information and the gateway interface information;
assembling: assembling a preset first type service request message according to the service information and the configuration information;
a sending step: sending the assembled preset first type service request message to a service requester gateway interface corresponding to the inquired gateway interface information, so that the service requester gateway interface sends the preset first type service request message to a corresponding service processor gateway interface;
the processor executes the message processing program, and after the sending step, further implements the steps of:
receiving a preset first type service return message returned by the service requester gateway interface, and analyzing the preset first type service return message according to the inquired configuration information;
when the return message of the preset first type service is not received within a preset time length, starting a preset second type service, wherein the preset second type service comprises a query service;
when the started preset second type service is a query service, generating query service identification information, acquiring service information corresponding to a preset first type service request message to be queried, and extracting service processing party service identification information and service identification information from the service information as query service information;
acquiring configuration information corresponding to the query service according to the service identification information of the service processor, the query service identification information and the predetermined mapping relation among the service identification information of the service processor, the query service identification information and the configuration information;
acquiring gateway interface information corresponding to the query service information according to the service identification information of the service processor, the query service identification information and the predetermined mapping relation among the service identification information of the service processor, the query service identification information and the gateway interface information;
assembling an inquiry request message according to the inquiry service information and the configuration information, and sending the assembled inquiry request message to a service requester gateway interface corresponding to the acquired gateway interface information, so that the service requester gateway interface sends the inquiry request message to a corresponding service processor gateway interface;
and receiving a query return message returned by the gateway interface of the service requester, and analyzing the query return message according to the configuration information to obtain a query result.
2. The server of claim 1, wherein the first querying step comprises:
inquiring a configuration information identifier corresponding to the service identification information of the service processing party in the service information according to a predetermined mapping relation between the service identification information of the service processing party and the configuration information identifier;
and determining the configuration information corresponding to the inquired configuration information identifier according to a predetermined mapping relation between the configuration information identifier and the configuration information, wherein the configuration information is the configuration information corresponding to the preset first type service.
3. The server of claim 1, wherein the obtaining step comprises:
extracting service request information in the preset first type service request instruction, and selecting an optimal service channel from a plurality of predetermined service channels according to the service request information and a predetermined selection rule;
and acquiring the service channel information of the optimal service channel, and taking the service request information and the service channel information as the service information of the preset first type service.
4. A message processing method is characterized by comprising the following steps:
an acquisition step: when a preset first type service request instruction is received, acquiring service information of the preset first type service;
a first query step: inquiring configuration information corresponding to the preset first type service according to service processing party service identification information in the acquired service information and a predetermined mapping relation between the service processing party service identification information and the configuration information;
a second query step: inquiring gateway interface information corresponding to the preset first type service according to service processing party service identification information in the acquired service information and a predetermined mapping relation between the service processing party service identification information and the gateway interface information;
assembling: assembling a preset first type service request message according to the service information and the configuration information;
a sending step: sending the assembled preset first type service request message to a service requester gateway interface corresponding to the inquired gateway interface information, so that the service requester gateway interface sends the preset first type service request message to a corresponding service processor gateway interface;
after the sending step, the method further comprises:
receiving a preset first type service return message returned by the service requester gateway interface, and analyzing the preset first type service return message according to the inquired configuration information;
when the return message of the preset first type service is not received within a preset time length, starting a preset second type service, wherein the preset second type service comprises a query service;
when the started preset second type service is a query service, generating query service identification information, acquiring service information corresponding to a preset first type service request message to be queried, and extracting service processing party service identification information and service identification information from the service information as query service information;
acquiring configuration information corresponding to the query service according to the service identification information of the service processor, the query service identification information and the predetermined mapping relation among the service identification information of the service processor, the query service identification information and the configuration information;
acquiring gateway interface information corresponding to the query service information according to the service identification information of the service processor, the query service identification information and the predetermined mapping relation among the service identification information of the service processor, the query service identification information and the gateway interface information;
assembling an inquiry request message according to the inquiry service information and the configuration information, and sending the assembled inquiry request message to a service requester gateway interface corresponding to the acquired gateway interface information, so that the service requester gateway interface sends the inquiry request message to a corresponding service processor gateway interface;
and receiving a query return message returned by the gateway interface of the service requester, and analyzing the query return message according to the configuration information to obtain a query result.
5. The message processing method according to claim 4, wherein the obtaining step comprises:
extracting service request information in the preset first type service request instruction, and selecting an optimal service channel from a plurality of predetermined service channels according to the service request information and a predetermined selection rule;
and acquiring the service channel information of the optimal service channel, and taking the service request information and the service channel information as the service information of the preset first type service.
6. A computer-readable storage medium storing a message processing program executable by at least one processor to cause the at least one processor to perform the steps of the message processing method according to any one of claims 4-5.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810694255.0A CN109194495B (en) | 2018-06-29 | 2018-06-29 | Server, message processing method, and computer-readable storage medium |
| PCT/CN2018/107506 WO2020000720A1 (en) | 2018-06-29 | 2018-09-26 | Server, packet processing method, program, and computer-readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810694255.0A CN109194495B (en) | 2018-06-29 | 2018-06-29 | Server, message processing method, and computer-readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109194495A CN109194495A (en) | 2019-01-11 |
| CN109194495B true CN109194495B (en) | 2021-08-24 |
Family
ID=64948645
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810694255.0A Active CN109194495B (en) | 2018-06-29 | 2018-06-29 | Server, message processing method, and computer-readable storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109194495B (en) |
| WO (1) | WO2020000720A1 (en) |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110209377B (en) * | 2019-04-26 | 2024-06-25 | 平安科技(深圳)有限公司 | Interface message processing method, device, equipment and storage medium based on factory class |
| CN111724249A (en) * | 2020-06-29 | 2020-09-29 | 深圳壹账通智能科技有限公司 | Intelligent fund collection method and device, electronic equipment and storage medium |
| CN111935174A (en) * | 2020-09-02 | 2020-11-13 | 平安国际智慧城市科技股份有限公司 | Block chain service system docking method, device and equipment based on middleware gateway |
| CN112116353B (en) * | 2020-09-28 | 2023-08-08 | 中国工商银行股份有限公司 | Account data processing method, device and system |
| CN113055494B (en) * | 2021-03-30 | 2022-11-29 | 中国工商银行股份有限公司 | Communication method and communication device |
| CN113220759B (en) * | 2021-04-27 | 2024-10-29 | 深圳市云网万店科技有限公司 | Big data storage service sharing method, device, computer equipment and storage medium |
| CN113434175B (en) * | 2021-06-29 | 2024-02-27 | 平安科技(深圳)有限公司 | Data processing method, device, storage medium and equipment |
| CN114172979A (en) * | 2021-12-02 | 2022-03-11 | 上海电力设计院有限公司 | Message parsing method, platform, gateway and storage medium |
| CN114500358B (en) * | 2022-02-14 | 2023-10-24 | 西藏创煌信息科技有限公司 | Gateway message distribution method, device, equipment and storage medium |
| CN114860716A (en) * | 2022-03-30 | 2022-08-05 | 北京贝壳时代网络科技有限公司 | Method and device for acquiring service data |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104980488A (en) * | 2015-03-20 | 2015-10-14 | 深圳市腾讯计算机系统有限公司 | Message transfer method, related devices and communication system |
| CN105049256A (en) * | 2015-08-10 | 2015-11-11 | 北京思特奇信息技术股份有限公司 | Method and system for realizing universal custom interface message |
| CN105791178A (en) * | 2014-12-26 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Message assembly method and device |
| CN107169756A (en) * | 2017-05-10 | 2017-09-15 | 北京凤凰理理它信息技术有限公司 | Payment channel distribution method, device, storage medium and payment route system |
| CN107918562A (en) * | 2016-10-11 | 2018-04-17 | 北京京东尚科信息技术有限公司 | A kind of unified interface management method and system |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7801797B2 (en) * | 2003-06-17 | 2010-09-21 | Omx Technology Ab | Trading system supporting credit rating |
| US9551983B2 (en) * | 2011-11-15 | 2017-01-24 | Rockwell Automation Technologies, Inc. | Activity set management in a Manufacturing Execution System |
| CN107241315B (en) * | 2017-05-23 | 2020-08-11 | 广州唯品会网络技术有限公司 | Access method, device and computer-readable storage medium for bank gateway interface |
| CN107705118A (en) * | 2017-09-19 | 2018-02-16 | 深圳金融电子结算中心有限公司 | Transaction payment method, system, server and storage medium based on channel route |
-
2018
- 2018-06-29 CN CN201810694255.0A patent/CN109194495B/en active Active
- 2018-09-26 WO PCT/CN2018/107506 patent/WO2020000720A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105791178A (en) * | 2014-12-26 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Message assembly method and device |
| CN104980488A (en) * | 2015-03-20 | 2015-10-14 | 深圳市腾讯计算机系统有限公司 | Message transfer method, related devices and communication system |
| CN105049256A (en) * | 2015-08-10 | 2015-11-11 | 北京思特奇信息技术股份有限公司 | Method and system for realizing universal custom interface message |
| CN107918562A (en) * | 2016-10-11 | 2018-04-17 | 北京京东尚科信息技术有限公司 | A kind of unified interface management method and system |
| CN107169756A (en) * | 2017-05-10 | 2017-09-15 | 北京凤凰理理它信息技术有限公司 | Payment channel distribution method, device, storage medium and payment route system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109194495A (en) | 2019-01-11 |
| WO2020000720A1 (en) | 2020-01-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109194495B (en) | Server, message processing method, and computer-readable storage medium | |
| AU2020227069B2 (en) | Aggregation source routing | |
| CN109325729B (en) | Method and server for generating electronic contract | |
| CN106649488B (en) | Method and device for calling multi-data-source interactive interface | |
| JP2012533824A (en) | Systems and methods for real-time batch account processing | |
| CN111861717A (en) | Contract account management method, device, equipment and storage medium | |
| US20200286100A1 (en) | Payment complaint method, device, server and readable storage medium | |
| CN114881739B (en) | Order event processing method and device, electronic device and storage medium | |
| CN114218110A (en) | Reconciliation test method, device, computer equipment and storage medium for financial data | |
| CN108830715A (en) | Batch file part disk returning processing method and system | |
| CN112181628B (en) | Resource transfer method, device, system and electronic equipment | |
| CN116993523A (en) | Configurable reconciliation methods, devices, equipment and storage media | |
| CN108416639B (en) | Invoicing data processing method and device, computer equipment and storage medium | |
| CN110782310B (en) | Method, device and system for asynchronously acquiring user attribute information from third-party platform | |
| US12307434B2 (en) | Systems and methods for dynamically switching payment mechanisms for outgoing payments | |
| CN112270626A (en) | Enterprise credit line management method, device, storage medium and server | |
| CN116630072A (en) | Method, device, equipment and storage medium for checking up running water funds | |
| CN113220453B (en) | Method and device for initiating transaction in blockchain system | |
| US20220270147A1 (en) | System and method for streamlining a checkout process of e-commerce websites | |
| CN106528718A (en) | Method and device for processing data from third parties | |
| US20240303126A1 (en) | Systems and Methods for Increasing Request Processing Performance | |
| US20060116961A1 (en) | Method and apparatus for processing checks into an electronic funds transfer system | |
| CN116977056A (en) | User borrowing party matching method, system, computer equipment and storage medium | |
| CN116737439A (en) | Data processing method, device, equipment and storage medium | |
| CN117743282A (en) | Transaction data sharing method and device |
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 |