CN116150188A - Information query method, device, computer equipment and storage medium - Google Patents

Information query method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116150188A
CN116150188A CN202211653504.4A CN202211653504A CN116150188A CN 116150188 A CN116150188 A CN 116150188A CN 202211653504 A CN202211653504 A CN 202211653504A CN 116150188 A CN116150188 A CN 116150188A
Authority
CN
China
Prior art keywords
target
request
platform
credit
information
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.)
Pending
Application number
CN202211653504.4A
Other languages
Chinese (zh)
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.)
Merchants Union Consumer Finance Co Ltd
Original Assignee
Merchants Union Consumer Finance 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 Merchants Union Consumer Finance Co Ltd filed Critical Merchants Union Consumer Finance Co Ltd
Priority to CN202211653504.4A priority Critical patent/CN116150188A/en
Publication of CN116150188A publication Critical patent/CN116150188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • 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)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present application relates to an information query method, apparatus, computer device, storage medium and computer program product. The method comprises the following steps: receiving a first query request; the first query request carries target credit inquiry information and target credit platform identification; the target credit-worthiness platform mark is the mark of the target credit-worthiness platform; selecting a preset message generation method corresponding to the target credit standing platform from a plurality of preset message generation methods based on the target credit standing platform identification; each preset message generating method corresponds to different credit standing platforms respectively; the preset message generation method is used for generating a request message meeting the requirements of the corresponding credit-worthiness platform; generating a target request message based on a preset message generation method and target credit inquiry information corresponding to the target credit platform; and sending a second query request carrying the target request message to the equipment of the target credit standing system. By adopting the method, the information query efficiency can be improved.

Description

Information query method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technology, and in particular, to an information query method, an information query apparatus, a computer device, a storage medium, and a computer program product.
Background
With the development of the internet financial field, more and more financial institutions provide financial services, such as consumer credits, to users via the internet. To reduce the security risk, financial institutions need to evaluate the user's risk by means of credit data of the user provided by a third party credit platform. Before inquiring the accessed third party credit platform through the service system of the financial institution, the third party credit platform needs to be accessed in the service system.
In the traditional technology, the access of the third party credit-worthiness platform is carried out in a manual mode, and the code development, test and online of interface call are carried out in a service system, so that the third party credit-worthiness platform is accessed in the service system, and the inquiry of credit-worthiness data is realized.
However, the service system of the financial institution needs to be continuously docked with the third party credit-worthiness service provider, and inquires the credit-worthiness data of the user by calling the interface of the partner, and because the complex processes of code development, test, online and the like need to be performed for each docking, the problem of long time consumption exists, so that the access efficiency of the third party credit-worthiness platform is lower, and the information inquiry efficiency is lower.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an information query method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the efficiency of information query.
In a first aspect, the present application provides an information query method. The method comprises the following steps: receiving a first query request; the first query request carries target credit investigation query information and target credit investigation platform identification; the target credit-worthiness platform identifier is an identifier of the target credit-worthiness platform; selecting a preset message generating method corresponding to the target credit standing platform from a plurality of preset message generating methods based on the target credit standing platform identification; each preset message generating method corresponds to different credit standing platforms respectively; the preset message generation method is used for generating a request message meeting the requirements of the corresponding credit investigation platform; generating a target request message based on a preset message generation method corresponding to the target credit information platform and the target credit information inquiry information; and sending a second query request carrying the target request message to the equipment of the target credit standing system.
In a second aspect, the present application further provides an information query apparatus. The device comprises: the request receiving module receives a first query request; the first query request carries target credit investigation query information and target credit investigation platform identification; the target credit-worthiness platform identifier is an identifier of the target credit-worthiness platform; the method selection module is used for selecting a preset message generation method corresponding to the target credit standing platform from a plurality of preset message generation methods based on the target credit standing platform identification; each preset message generating method corresponds to different credit standing platforms respectively; the preset message generation method is used for generating a request message meeting the requirements of the corresponding credit investigation platform; the message generation module is used for generating a target request message based on a preset message generation method corresponding to the target credit information platform and the target credit information inquiry information; and the request sending module is used for sending a second query request carrying the target request message to the equipment of the target credit-worthiness platform.
In some embodiments, the target request message includes a target request body, and the preset message generating method includes a request body generating method; the message generation module is further configured to: and processing the target credit inquiry information based on the request body generation method to obtain the target request body.
In some embodiments, the target credit inquiry information includes a plurality of identity information, and the request body generating method includes a preset encryption mode and a preset combination mode for the plurality of identity information; the message generation module is further configured to: encrypting the plurality of identity information according to the preset encryption mode to obtain encrypted identity information corresponding to the plurality of identity information; and combining the encrypted identity information according to the preset combination mode to obtain the target request body.
In some embodiments, the target request message further includes a target request header; the preset message generating method comprises a request head generating method; the message generation module is further configured to: determining a request identifier of the first query request; and processing a request identifier of the first query request and a communication key of the target credit-worthiness platform based on the request header generation method to generate the target request header.
In some embodiments, the information query apparatus further includes a return message parsing module, where the return message parsing module is configured to: receiving a target query result returned by the equipment of the target credit standing platform in response to the second query request; determining a preset message analysis method corresponding to the target credit standing platform; analyzing the target query result by using a preset message analysis method corresponding to the target credit information platform to obtain target credit information data; and returning the target credit worthiness data to the terminal sending the first query request.
In some embodiments, the information query device further includes a generating method configuration module, where the generating method configuration module is configured to obtain a preset message generating method corresponding to the target tariff platform: receiving message configuration information aiming at the target credit standing platform; the message configuration information comprises a query information encryption method, wherein the query information encryption method is used for encrypting the credit inquiry information to obtain a request message conforming to the target credit platform; and generating a preset message generation method corresponding to the target credit standing platform based on the inquiry information encryption method.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps in the information query method when executing the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the information query method described above.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the information query method described above.
According to the information query method, the device, the computer equipment, the storage medium and the computer program product, the first query request carrying the target credit inquiry information and the target credit platform identification is received, the preset message generation method corresponding to the target credit platform is selected from the multiple preset message generation methods based on the target credit platform identification, and the preset message generation method is used for generating the request message meeting the requirements of the corresponding credit platform, so that the target request message is generated based on the preset message generation method corresponding to the target credit platform, and the second query information carrying the target request message is sent to the equipment of the target credit platform, namely, the information query of the credit platform is realized through the stored preset message generation methods corresponding to different credit platforms, and the information query efficiency is improved.
Drawings
FIG. 1 is an application environment diagram of a method of information query in one embodiment;
FIG. 2 is a flow chart of a method for querying information in one embodiment;
FIG. 3 is a flow chart of a method for querying information in a business system according to an embodiment;
FIG. 4A is a schematic diagram of an interface configuration region of a configuration page in one embodiment;
FIG. 4B is a schematic diagram of a request header configuration area of a configuration page in one embodiment;
FIG. 4C is a diagram of a requestor configuration region of a configuration page in one embodiment;
FIG. 4D is a schematic diagram of a configuration page of a preset message parsing method in an embodiment;
FIG. 5 is a block diagram of an information query apparatus in one embodiment;
FIG. 6 is an internal block diagram of a computer device in one embodiment;
fig. 7 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The information query method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The application environment comprises a terminal 102, a first server 104 and a plurality of second servers, wherein the plurality of second servers are 106_1-106_n respectively, the first server 104 is a server corresponding to a service platform of a query party, and the plurality of second servers are servers corresponding to different credit-worthiness platforms respectively. The first server 104 communicates with the terminal 102 and the plurality of second servers via a network. The data storage system may store data that the first server 104 needs to process. The data storage system may be integrated on the first server 104 or may be located on a cloud or other network server.
Specifically, the terminal 102 sends a first query request to the first server 104 in response to a credit inquiry operation of a service platform, which is a platform used by a financial institution to process a service. The first server 104 receives a first query request sent by the terminal 102; the first query request carries target credit inquiry information and target credit platform identification; the target credit-worthiness platform mark is the mark of the target credit-worthiness platform; the first server 104 selects a preset message generation method corresponding to the target credit information platform from a plurality of preset message generation methods based on the target credit information platform identification; each preset message generating method corresponds to different credit standing platforms respectively; the preset message generation method is used for generating a request message meeting the requirements of the corresponding credit-worthiness platform; then the first server 104 generates a target request message based on a preset message generation method and target credit inquiry information corresponding to the target credit platform; and sends a second query request carrying the target request message to the device of the target credit worthiness platform, for example, in the case that the device of the target credit worthiness platform is the second server 106_1, the second query request carrying the target request message is sent to the second server 106_1.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, which may be smart watches, smart bracelets, headsets, etc. The first server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In some embodiments, as shown in fig. 2, an information query method is provided, and the method is applied to the first server 104 in fig. 1 for illustration, and includes the following steps:
step 202, receiving a first query request; the first query request carries target credit inquiry information and target credit platform identification; the target credit-worthiness platform identifier is an identifier of the target credit-worthiness platform.
The first query request is used for querying credit worthiness data corresponding to a target object, the target object corresponds to the credit worthiness data, the target object is an object to be queried for the credit worthiness data, for example, for a service platform of a financial institution, the object may be a user served by the financial institution, and the target object may be a user applying for a loan. Credit worthiness data is used to characterize the economic viability and credit status of an object, including various documents, vouchers, etc. that are presented by a bank or other institution as sufficient to prove the asset, credit status of an enterprise or individual. The target credit inquiry information is used for inquiring and obtaining credit data corresponding to the target object from the credit platform, and comprises a plurality of identity information of the target object, wherein the identity information is used for identifying the identity of the target object, and can comprise at least one of the name, the identity or the mobile phone number of the target object.
The credit platform is used for acquiring information of the object and performing multidimensional evaluation to generate credit data of the object, and providing the credit data to the financial institution, and the financial institution can perform risk evaluation on the target object according to the credit data acquired from the credit platform, so that loan qualification of the target object is determined, and loan risk is reduced. The target credit platform is a credit platform to be inquired, and the identifications of the credit platforms are preset identifications for distinguishing different credit platforms, so that the target credit platform has uniqueness, and the identifications of the credit platforms corresponding to the credit platforms are different. The target credit-worthiness platform identifier is an identifier of the target credit-worthiness platform.
Specifically, the terminal displays a credit inquiry page of the service platform, wherein the credit inquiry page comprises filling areas corresponding to target credit inquiry information and target credit platform respectively, and the filling areas are used for inputting data. The terminal responds to the credit inquiry operation of the service platform, acquires data in the filling area corresponding to the credit inquiry information as target credit inquiry information, determines a target credit platform identification based on the data in the filling area corresponding to the credit platform, generates a first inquiry request based on the target credit inquiry information and the target credit platform identification, and sends the first inquiry request to the first server. The first server receives a first query request sent by the terminal, and obtains target credit investigation query information and target credit investigation platform identification from the first query request.
Step 204, selecting a preset message generating method corresponding to the target credit standing platform from a plurality of preset message generating methods based on the target credit standing platform identification; each preset message generating method corresponds to different credit standing platforms respectively; the preset message generating method is used for generating a request message meeting the requirements of the corresponding credit-worthiness platform.
The preset message generating method is preconfigured and stored in the first server and is used for generating a request message meeting the requirements of the corresponding credit platforms, and as the message format of each credit platform is different, the corresponding preset message generating method of each credit platform is different, namely one credit platform corresponds to one preset message generating method. The request message is used for acquiring credit information data from the credit information platform.
Specifically, the first server searches target credit information data in the credit information data corresponding to a plurality of objects cached by the first server based on the target credit inquiry information and the target credit platform identification, the target credit information data is the credit information data corresponding to the target objects, and the target credit information data is sent to the terminal under the condition that the searching is successful; under the condition of failure in searching, the first server can select a preset message generating method corresponding to the target credit information platform from a plurality of preset message generating methods based on the target credit information platform identification.
Step 206, generating a target request message based on a preset message generation method corresponding to the target credit platform and the target credit inquiry information.
The target request message is generated based on a preset message generation method and target credit inquiry information corresponding to the target credit platform and is used for acquiring target credit data from the target credit platform.
Specifically, the first server processes the target credit inquiry information by using a preset message generation method corresponding to the target credit platform to generate a target request message. For example, assume that the request message format of the target credit platform is: the method comprises the steps of { "header" { "request": { "serial", "signature": signature "," secret ": key" } "request": request ciphertext "}, wherein the header represents a request header field of a request message, the request indicates a serial number of the request message, the signature represents a request signature of the request message, the secret represents a communication key between a service platform and a target credit platform, the request represents a request body field of the request message, and for each field, as shown in fig. 4B and 4C, a variable code and variable computing logic corresponding to the field are included in a preset message generation method corresponding to the target credit platform, the variable code can be used for identifying the field in the request message, and the variable computing logic is a method for computing the value of the field for obtaining the variable code identification. The first server may calculate the value of each field by using variable calculation logic, that is, abstract the step of generating the target request message into a variable calculation process, so as to obtain the target request message.
Step 208, a second query request carrying the target request message is sent to the equipment of the target credit standing system.
The device of the target credit-worthiness platform refers to a background server of the target credit-worthiness platform, namely a second server. The second query request carries a target request message and is a query request sent to the equipment of the target credit-worthiness platform.
Specifically, the first server generates a second query request based on the target request message, and sends the second query request to the equipment of the target credit standing platform, namely the second server. The second server responds to the second query request, acquires target credit inquiry information from a request message carried in the second query request, searches by utilizing the target credit inquiry information to acquire target credit data corresponding to the target object, and returns a target query result carrying the target credit data to the first server, namely the target query result is a return message generated by the second server for the second query request.
In some embodiments, the first server may analyze the target query result by using a preset message analysis method corresponding to the target credit information platform to obtain target credit information data, and return the target credit information data to the terminal that sends the first query request. The preset message analysis method is preconfigured and stored in the first server and is used for analyzing the target query result to obtain target credit standing data.
In some embodiments, as shown in fig. 3, a schematic flow chart of querying target credit worthiness data of a target object through a service platform is illustrated. The terminal responds to the credit inquiry operation of the service platform, firstly, the service check is carried out on the target credit inquiry information, for example, the service check can be carried out by confirming whether the mobile phone number is 11 digits or not; after the confirmation service passes the verification, the terminal sends a first query request to the first server. The first server responds to the first query request, searches target credit data in the credit data corresponding to the objects cached by the first server, and returns target credit data, namely a credit report, to the terminal under the condition that the searching is successful; under the condition of failure in searching, the first server inquires an external partner, namely a target credit-worthiness platform, assembles a request message according to the requirement of the partner, namely a preset message generating method corresponding to the target credit-worthiness platform, generates a target request message, initiates the invocation of an http interface of the partner, and sends a second inquiry request to a second server of the partner. The first server receives a target query result returned by the equipment of the partner, namely a returned message, analyzes the returned message according to a preset message analysis method to obtain target credit information data, namely a credit information report, stores the target credit information data and returns the credit information report to the terminal.
In the information query method, a first query request carrying target credit inquiry information and target credit platform identification is received, a preset message generation method corresponding to the target credit platform is selected from a plurality of preset message generation methods based on the target credit platform identification, and the preset message generation method is used for generating a request message meeting the requirements of the corresponding credit platform, so that a target request message is generated based on the preset message generation method corresponding to the target credit platform, and second query information carrying the target request message is sent to equipment of the target credit platform, namely, the information query of the credit platform is realized through the stored preset message generation methods corresponding to different credit platforms, and the information query efficiency is improved.
In some embodiments, the target request message includes a target request body, and the preset message generating method includes a request body generating method; step 206 further comprises: and processing the target credit inquiry information based on the request body generation method to obtain a target request body.
The target request body is a request body in a target request message, and the request body generation method is used for generating the target request body and comprises a preset encryption mode and a preset combination mode. The preset encryption mode is used for encrypting the target credit inquiry information, the preset combination mode is used for combining the character strings, and the preset encryption mode and the preset combination mode can be modified by the service platform aiming at the configuration page of the target credit platform.
Specifically, the first server may process the target credit inquiry information by using a request body generating method to obtain a target request body, for example, may encrypt or combine the target credit inquiry information by using at least one of a preset encryption mode or a preset combination mode to obtain the target request body.
In this embodiment, the target credit inquiry information is processed based on the request body generating method to obtain the target request body, so that the target request message is generated based on the target request body, and the efficiency of information inquiry is improved.
In some embodiments, the target credit inquiry information includes a plurality of identity information, and the request body generation method includes a preset encryption mode and a preset combination mode for the plurality of identity information; processing the target credit inquiry information based on the request body generation method, wherein the obtaining of the target request body comprises the following steps: encrypting the plurality of identity information according to a preset encryption mode to obtain encrypted identity information corresponding to the plurality of identity information respectively; and combining the encrypted identity information according to a preset combination mode to obtain a target request body.
The target credit inquiry information comprises a plurality of identity information, and the identity information is used for identifying the identity of the target object, and can comprise at least one of the name, the identity card number or the mobile phone number of the target object.
Specifically, the first server may process a plurality of identity information of the target object according to a request body generating method corresponding to the target credit platform, encrypt the plurality of identity information according to an encryption mode in the request body generating method, obtain encrypted identity information corresponding to the plurality of identity information, and then combine the encrypted identity information according to a preset combination mode in the request body generating method to obtain the target request body. For example, assuming that the encryption manner in the request body generation method is to encrypt the name, the identification card number and the mobile phone number with sha256 respectively, the encrypted name, the encrypted identification card number and the encrypted mobile phone number are obtained after encryption, and the preset combination manner in the request body generation method is to combine the encrypted name, the encrypted identification card number and the encrypted mobile phone number into a json character string, and then the target request body is obtained based on the combined character string.
In some embodiments, because preset message request methods corresponding to different credit standing platforms are different, the first server may further combine a plurality of identity information according to a preset combination manner, and then encrypt the combined identity information according to an encryption manner, so as to obtain the target request body. For example, assume that, as shown in fig. 4C, name, mobile, certNo is a field corresponding to a name, a mobile phone number, and an id card number of a target object, an EncryptType indicates a field corresponding to an encryption manner, a before encrypt is a field corresponding to a character string to be encrypted, and a request is a request field. The first server may combine Name, mobile, certNo according to the configuration information of the request body generating method and the combination mode corresponding to the before encryptions to obtain the value of the before encryptions, and then encrypt the before encryptions according to the encryption mode corresponding to the encryptions type to obtain the value corresponding to the request to obtain the target request body.
In this embodiment, since the preset encryption mode and the preset combination mode are preconfigured by the configuration page and stored in the first server, the multiple pieces of identity information included in the target credit inquiry information can be encrypted and combined by using the preset encryption mode and the preset combination mode, so as to obtain the target request body, and improve the efficiency of information inquiry.
In some embodiments, the target request message further includes a target request header; the preset message generating method comprises a request head generating method; step 206 further comprises: determining a request identifier of a first query request; and processing the request identifier of the first query request and the communication key of the target credit-worthiness platform based on the request header generation method to generate a target request header.
The target request header is a request header in the target request message, and the request header generating method is used for generating the target request header. The request identification for identifying the first query request, also referred to as a request serial number, may be randomly generated. The communication secret key is a secret key used for communication between the service platform and the target credit platform, and can be preset or generated according to a preset secret key generation mode. The generation method of the request identifier and the key generation mode corresponding to the communication key can be configured by the service platform aiming at the configuration page of the target credit investigation platform.
Specifically, the first server first determines a request identifier of the first query request, for example, a code formed by numbers may be randomly generated as the request identifier, and then processes the request identifier of the first query request and a communication key of the target credit platform according to a request header generation method corresponding to the target credit platform to generate the target request header. After the first server generates the target request head and the target request body, the first server combines the target request head and the target request body to generate a target request message.
For example, assume that, as shown in fig. 4B, the configuration information of the request header generation method in the preset message generation method corresponding to the target tariff platform is shown, the RequestID indicates a field corresponding to the request identifier, the Secretid indicates a field corresponding to the communication key, the before indicates a field corresponding to the character string to be signed, the Sign indicates a field corresponding to the request signature, and the head indicates a request header field. The first server may generate the request identifier according to the variable computation logic corresponding to the request id according to the configuration information of the request header generation method, then combine RequestID, secretid according to the combination mode corresponding to the before Sign to obtain the value of the before Sign, then Sign the before Sign according to the signature mode corresponding to the Sign to obtain the value of the Sign, and then combine RequestID, secretid, sign according to the combination mode corresponding to the head to obtain the value corresponding to the head to obtain the target request header.
In some embodiments, multiple encryption modes and multiple signature modes are stored in the first server, for example, encryption modes such as AES, sha256 encryption, 3des, base64 and the like, signature modes such as HmacSHA1, RSA, DSA and the like can be abstractly understood as including an encryption processor packaged with multiple encryption modes and a signature processor packaged with multiple signature modes, a string splicing processor for performing string splicing, a serial number processor for generating serial numbers and the like in the first server. The first server generates a target request message according to a preset message generating method corresponding to the target credit platform, namely, different processors are called according to the steps of the preset message generating method so that the processors execute corresponding tasks, and therefore, the interface calling processing process corresponding to different credit platforms is realized through the combined use of a plurality of processors.
In this embodiment, the request header generation method is preconfigured by the configuration page and stored in the first server, and the request identifier of the first query request and the communication key of the target credit-worthiness platform are processed by using the request header generation method, so that the target request header is generated, and the efficiency of information query is improved.
In some embodiments, the information query method further comprises: receiving a target query result returned by the equipment of the target credit standing platform in response to the second query request; determining a preset message analysis method corresponding to a target credit standing platform; analyzing and obtaining target credit information data from a target query result by using a preset message analysis method corresponding to the target credit information platform; and returning the target credit standing data to the terminal sending the first query request.
The preset message analysis method comprises a return code analysis method and a target credit field, wherein the return code is used for identifying the response state of the target credit platform, and the return code analysis method comprises corresponding return codes under different response states of the target credit platform and corresponding processing modes of the return codes. The response status includes at least one of response success or response failure. The target credit field is a field name corresponding to target credit data in the target query result. As shown in fig. 4D, a configuration page of a preset message parsing method corresponding to the target credit platform is shown, where "00000" is a return code of the target credit platform in case of successful response, and "score" is a target credit field.
Specifically, the first server receives a target query result returned by the equipment of the target credit platform, determines a preset message analysis method corresponding to the target credit platform from a plurality of preset message analysis methods based on the target credit platform identification, analyzes the target query result by using the preset message analysis method corresponding to the target credit platform, acquires a target return code from the target query result, analyzes the target return code by using the return code analysis method, and acquires a value corresponding to a target credit field from the target query result when the target return code is confirmed to represent that the response of the target credit platform is successful, so as to obtain target credit data. For example, assuming "00000" is a return code of the target credit platform under the condition of successful response, and the target credit field is "score", the first server obtains the return code in the target query result, and obtains a value corresponding to "score" from the target query result under the condition that the return code is 00000, so as to obtain the target credit data.
In this embodiment, since the preset message parsing method is preconfigured by the configuration page and stored in the first server, the target credit information data is parsed from the target query result by using the preset message parsing method corresponding to the target credit information platform, thereby improving the efficiency of information query.
In some embodiments, the step of obtaining a preset message generating method corresponding to the target credit standing system includes: receiving message configuration information aiming at a target credit standing platform; the message configuration information comprises a query information encryption method and a query information encryption method, wherein the query information encryption method is used for encrypting the credit inquiry information to obtain a request message conforming to a target credit platform; and generating a preset message generating method corresponding to the target credit information platform based on the inquiry information encryption method.
The message configuration information is used for generating a preset message generation method, and the query information encryption method is used for encrypting the credit investigation query information.
Specifically, the terminal responds to the message configuration start operation of the service platform aiming at the target credit platform, and displays a configuration page to be edited corresponding to the target credit platform, wherein the configuration page comprises an interface configuration area, a request head configuration area and a request body configuration area, for example, as shown in fig. 4A, 4B and 4C, the interface configuration area, the request head configuration area and the request body configuration area in the configuration page are respectively displayed, each area is used for inputting corresponding message configuration information, and the interface configuration area can be used for configuring a target credit platform identifier of the target credit platform, namely an interface operation code; the request header configuration area can be used for configuring configuration information corresponding to a request header generation method, and the request body configuration area can be used for configuring configuration information corresponding to a request body generation method, wherein the request body generation method comprises a query information encryption mode. The terminal responds to the message configuration completion operation aiming at the target credit-worthiness platform, and can send the message configuration information of the target credit-worthiness platform to the first server. The first server may receive the message configuration information of the target credit-worthiness platform, and generate a preset message generation method corresponding to the target credit-worthiness platform based on the message configuration information.
In this embodiment, by receiving the message configuration information for the target credit-worthiness platform, a preset message generation method corresponding to the target credit-worthiness platform is generated, so that the message generation mode corresponding to the target credit-worthiness platform can be configured and modified directly through the configuration page, code development is not required, access of the service platform to the target credit-worthiness platform is rapidly completed, configuration efficiency is improved, and information query efficiency is improved. In addition, the time consumption of accessing the service platform to the external credit-worthiness platform is reduced, powerful support is provided for identifying high-risk and high-value target objects, namely clients, and the risk of system faults is reduced because code development is not required.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an information query device for realizing the information query method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more information query devices provided below may refer to the limitation of the information query method hereinabove, and will not be repeated herein.
In some embodiments, as shown in fig. 5, there is provided an information query apparatus, including: a request receiving module 502, a method selecting module 504, a message generating module 506 and a request sending module 508, wherein:
a request receiving module 502 that receives a first query request; the first query request carries target credit inquiry information and target credit platform identification; the target credit-worthiness platform identifier is an identifier of the target credit-worthiness platform.
The method selection module 504 is configured to select a preset message generation method corresponding to the target credit standing platform from a plurality of preset message generation methods based on the target credit standing platform identifier; each preset message generating method corresponds to different credit standing platforms respectively; the preset message generating method is used for generating a request message meeting the requirements of the corresponding credit-worthiness platform.
The message generating module 506 is configured to generate a target request message based on a preset message generating method and target credit inquiry information corresponding to the target credit platform.
The request sending module 508 is configured to send a second query request carrying the target request packet to the device of the target credit standing system.
In some embodiments, the target request message includes a target request body, and the preset message generating method includes a request body generating method; the message generation module 506 is further configured to: and processing the target credit inquiry information based on the request body generation method to obtain a target request body.
In some embodiments, the target credit inquiry information includes a plurality of identity information, and the request body generation method includes a preset encryption mode and a preset combination mode for the plurality of identity information; the message generation module 506 is further configured to: encrypting the plurality of identity information according to a preset encryption mode to obtain encrypted identity information corresponding to the plurality of identity information respectively; and combining the encrypted identity information according to a preset combination mode to obtain a target request body.
In some embodiments, the target request message further includes a target request header; the preset message generating method comprises a request head generating method; the message generation module 506 is further configured to: determining a request identifier of a first query request; and processing the request identifier of the first query request and the communication key of the target credit-worthiness platform based on the request header generation method to generate a target request header.
In some embodiments, the information query apparatus further includes a return message parsing module, where the return message parsing module is configured to: receiving a target query result returned by the equipment of the target credit standing platform in response to the second query request; determining a preset message analysis method corresponding to a target credit standing platform; analyzing and obtaining target credit information data from a target query result by using a preset message analysis method corresponding to the target credit information platform; and returning the target credit standing data to the terminal sending the first query request.
In some embodiments, the information query device further includes a generating method configuration module, where the generating method configuration module is configured to obtain a preset message generating method corresponding to the target grant platform: receiving message configuration information aiming at a target credit standing platform; the message configuration information comprises a query information encryption method and a query information encryption method, wherein the query information encryption method is used for encrypting the credit inquiry information to obtain a request message conforming to a target credit platform; and generating a preset message generating method corresponding to the target credit information platform based on the inquiry information encryption method.
The modules in the information query apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In some embodiments, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing relevant data related to the information query method. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of querying information.
In some embodiments, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of querying information. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 6 and 7 are block diagrams of only some of the structures associated with the present application and are not intended to limit the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In some embodiments, a computer device is provided, comprising a memory having a computer program stored therein and a processor, which when executing the computer program implements the steps of the information query method described above.
In some embodiments, a computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the information query method described above.
In some embodiments, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the above-described information query method.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to comply with the related laws and regulations and standards of the related countries and regions.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. An information query method, the method comprising:
receiving a first query request; the first query request carries target credit investigation query information and target credit investigation platform identification; the target credit-worthiness platform identifier is an identifier of the target credit-worthiness platform;
selecting a preset message generating method corresponding to the target credit standing platform from a plurality of preset message generating methods based on the target credit standing platform identification; each preset message generating method corresponds to different credit standing platforms respectively; the preset message generation method is used for generating a request message meeting the requirements of the corresponding credit investigation platform;
Generating a target request message based on a preset message generation method corresponding to the target credit information platform and the target credit information inquiry information;
and sending a second query request carrying the target request message to the equipment of the target credit standing system.
2. The method according to claim 1, wherein the target request message includes a target request body, and the preset message generating method includes a request body generating method;
the generating a target request message based on the preset message generating method corresponding to the target credit information platform and the target credit information query information comprises the following steps:
and processing the target credit inquiry information based on the request body generation method to obtain the target request body.
3. The method according to claim 2, wherein the target credit inquiry information includes a plurality of identity information, and the request body generation method includes a preset encryption method and a preset combination method for the plurality of identity information;
the processing the target credit inquiry information based on the request body generation method to obtain the target request body comprises the following steps:
encrypting the plurality of identity information according to the preset encryption mode to obtain encrypted identity information corresponding to the plurality of identity information;
And combining the encrypted identity information according to the preset combination mode to obtain the target request body.
4. The method of claim 1, wherein the target request message further comprises a target request header; the preset message generating method comprises a request head generating method;
the generating a target request message based on the preset message generating method corresponding to the target credit information platform and the target credit information query information comprises the following steps:
determining a request identifier of the first query request;
and processing a request identifier of the first query request and a communication key of the target credit-worthiness platform based on the request header generation method to generate the target request header.
5. The method according to claim 1, wherein the method further comprises:
receiving a target query result returned by the equipment of the target credit standing platform in response to the second query request;
determining a preset message analysis method corresponding to the target credit standing platform;
analyzing the target query result by using a preset message analysis method corresponding to the target credit information platform to obtain target credit information data;
and returning the target credit worthiness data to the terminal sending the first query request.
6. The method according to claim 1, wherein the step of obtaining a preset message generation method corresponding to the target tariff platform includes:
receiving message configuration information aiming at the target credit standing platform; the message configuration information comprises a query information encryption method, wherein the query information encryption method is used for encrypting the credit inquiry information to obtain a request message conforming to the target credit platform;
and generating a preset message generation method corresponding to the target credit standing platform based on the inquiry information encryption method.
7. An information query apparatus, the apparatus comprising:
the request receiving module receives a first query request; the first query request carries target credit investigation query information and target credit investigation platform identification; the target credit-worthiness platform identifier is an identifier of the target credit-worthiness platform;
the method selection module is used for selecting a preset message generation method corresponding to the target credit standing platform from a plurality of preset message generation methods based on the target credit standing platform identification; each preset message generating method corresponds to different credit standing platforms respectively; the preset message generation method is used for generating a request message meeting the requirements of the corresponding credit investigation platform;
The message generation module is used for generating a target request message based on a preset message generation method corresponding to the target credit information platform and the target credit information inquiry information;
and the request sending module is used for sending a second query request carrying the target request message to the equipment of the target credit-worthiness platform.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202211653504.4A 2022-12-21 2022-12-21 Information query method, device, computer equipment and storage medium Pending CN116150188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211653504.4A CN116150188A (en) 2022-12-21 2022-12-21 Information query method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211653504.4A CN116150188A (en) 2022-12-21 2022-12-21 Information query method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116150188A true CN116150188A (en) 2023-05-23

Family

ID=86355434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211653504.4A Pending CN116150188A (en) 2022-12-21 2022-12-21 Information query method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116150188A (en)

Similar Documents

Publication Publication Date Title
CN109872151A (en) For carrying out the method and system of risk score to anonymous deal
CN110162722A (en) Products Show method, server and storage medium based on two dimensional code
CN114006705B (en) Digital signature processing method and device, computer equipment and storage medium
CN116150188A (en) Information query method, device, computer equipment and storage medium
CN117078263A (en) Resource transfer method, device, computer equipment and storage medium
CN114492490B (en) NFC label management system
CN114549187B (en) Method and system for controlling marketing two-dimensional code use range by electronic bank
US20240086549A1 (en) Systems and methods for user characteristic determination through cryptographic tokenized data
US20240089105A1 (en) Systems and methods for user control and exclusion of cryptographic tokenized data
CN117151856A (en) Resource borrowing service handling method, device, computer equipment and storage medium
Kathiravan et al. Improved Security on Mobile Payments Using IMEI Verification
CN116629797A (en) Method and device for processing resource data, computer equipment and storage medium
CN117792684A (en) Data verification method, device, computer equipment and storage medium
CN117495519A (en) Financial document processing method, apparatus, computer device and storage medium
CN117332164A (en) Financial business page display method, device, computer equipment and storage medium
CN115361164A (en) Processing method and device for account application request, computer equipment and storage medium
CN117436854A (en) Signing method, signing system, signing device, signing computer equipment and storage medium
CN117151717A (en) Device password modification method, device, computer device and storage medium
CN116797189A (en) Information processing method, apparatus, computer device, and storage medium
CN114240424A (en) Payment data processing method and device, computer equipment and storage medium
CN117151842A (en) Virtual resource management method, device, computer equipment and storage medium
CN116846974A (en) Service request processing method, device, computer equipment and storage medium
CN115174260A (en) Data verification method, data verification device, computer, storage medium and program product
CN113962346A (en) Bank card business processing method, device, equipment, medium and program product
CN117667883A (en) Data transfer method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Zhaolian Consumer Finance Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: MERCHANTS UNION CONSUMER FINANCE Co.,Ltd.

Country or region before: China

CB02 Change of applicant information