Method, device, equipment and medium for obtaining credit data from external data sources

By configuring a credit platform and using the number acquisition component to obtain business and non-service access parameters, we can directly obtain credit data from external data sources, solving the problem of time-consuming and error-prone traditional manual code writing methods, and achieving efficient and accurate credit data acquisition.

CN118363587BActive Publication Date: 2025-04-04SHANGHAI SHUHE INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410460940.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2025-04-04
Estimated Expiration
2044-04-17

AI Technical Summary

Technical Problem

Traditional manual code writing method to obtain information data from external data sources is time-consuming and error-prone, making it difficult to meet the requirements of data acquisition efficiency and accuracy.

Method used

By configuring the credit platform, receiving the credit data query request from the upstream platform, determining the target external data source, using the number fetch component to obtain the service entry parameters and non-service entry parameters, splicing and generating the acquisition request, and directly obtaining the credit data from the external data source.

Benefits of technology

There is no need to write code manually in the application, which significantly improves the efficiency and accuracy of credit data acquisition of external data sources and simplifies the data access process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118363587B_ABST
    Figure CN118363587B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for obtaining credit data of an external data source, including: receiving a query request for credit data sent by an upstream platform, determining a target external data source corresponding to the credit data; sending a first acquisition request for business input parameters of the target external data source to a data acquisition component, wherein the first acquisition request encapsulates a label platform input item of the business input parameter, and the data acquisition component obtains the business input parameter from the target application based on the label platform input item; receiving the business input parameter returned by the data acquisition component, and obtaining the non-business input parameter of the interface of the target external data source; splicing the business input parameter and the non-business input parameter to generate a second acquisition request, and sending the second acquisition request to the target external data source; receiving the credit data obtained by the target external data source in response to the second acquisition request. The above method can improve the data acquisition efficiency and data acquisition accuracy of the credit data of the external data source.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, computer equipment and storage medium for acquiring credit data from an external data source. Background Art

[0002] With the development of Internet technology, the demand for data exchange between different systems is increasing, and data interaction through third-party interfaces has become the norm. The traditional way of data interaction requires developers to manually write code in the application. Developers can edit other functional codes in the application, which has certain risks. In addition, multiple people in the enterprise maintain a set of codes, and code submission conflicts may also need to be resolved. Therefore, the traditional way of manually writing code to connect to third-party interfaces is time-consuming and error-prone.

[0003] Currently, when a credit data usage system needs to obtain credit data from an external data source, the above-mentioned traditional manual coding method is generally used to write code in the application, which is time-consuming and prone to errors. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for obtaining credit data from an external data source in response to the above-mentioned technical problems. By configuring a credit platform, the credit data from the external data source can be obtained without manually writing code in the application, which can improve the data acquisition efficiency and accuracy of the credit data from the external data source.

[0005] A method for acquiring credit data of an external data source, applied to a credit platform, comprises: receiving a query request for credit data sent by an upstream platform, determining a target external data source corresponding to the credit data; sending a first acquisition request for business input parameters of the target external data source to a data acquisition component, wherein the first acquisition request encapsulates a label platform input item of the business input parameter, and the data acquisition component obtains the business input parameter from a target application based on the label platform input item; receiving the business input parameter returned by the data acquisition component, and acquiring non-business input parameters of an interface of the target external data source; generating a second acquisition request after splicing the business input parameter and the non-business input parameter, and sending the second acquisition request to the target external data source; and receiving the credit data obtained by the target external data source in response to the second acquisition request.

[0006] In one of the embodiments, a method for acquiring credit data from an external data source also includes: configuring application identifiers, application interfaces, and data request methods for each application of a data acquisition component, the data acquisition component obtaining the domain name and port of a target application from a registration center through the application identifier of the target application, and generating an application address of the target application according to the application interface, domain name, and port of the target application, sending a third acquisition request to the target application based on the application address and the data request method, so that the target application returns business input parameters to the data acquisition component after responding to the third acquisition request; configuring a parsing method for the business input parameters of the data acquisition component, and the data acquisition component parses the corresponding business input parameters through the parsing method.

[0007] In one of the embodiments, a method for obtaining credit data from an external data source also includes: configuring non-business input parameters and an input parameter processing script of an interface of a target external data source; splicing business input parameters and non-business input parameters to generate a second acquisition request, including: executing the input parameter processing script, the input parameter processing script is used to splice business input parameters and non-business input parameters to generate a second acquisition request.

[0008] In one embodiment, the non-business input parameter includes a first encryption key, the business input parameter is an input parameter related to the user, and a method for obtaining credit data from an external data source further includes:

[0009] Configure the second encryption key and encryption algorithm of the target external data source; wherein, the input parameter processing script is used to encrypt the business input parameter with the first encryption key to obtain encrypted information, and use the second encryption key and the encryption algorithm to process the encrypted information to generate a second acquisition request.

[0010] In one of the embodiments, a method for obtaining credit data from an external data source also includes: configuring an output parameter processing script and a storage table of a target external data source, the output parameter processing script being based on storage table settings; after receiving the credit data returned by the target external data source, it also includes: executing the output parameter processing script, the output parameter processing script parsing the credit data returned by the target external data source to obtain table data; and storing the table data in the storage table.

[0011] In one of the embodiments, a method for obtaining credit data from an external data source also includes: identifying a supplier of a target external data source and obtaining a code template of the supplier; rewriting a target method in the code template based on an interface of the target external data source and business input parameters to obtain an output parameter processing script.

[0012] In one of the embodiments, a method for obtaining credit data of an external data source also includes: configuring communication information of a target external data source, the communication information including request address information, request method and interface timeout period of the target external data source; sending a second acquisition request to the target external data source, including: identifying a target export gateway based on the request address information of the target external data source; forwarding the second acquisition request to the target external data source through the target export gateway based on the request address information and request method of the target external data source; and managing the sending request of the second acquisition request based on the interface timeout period of the target external data source.

[0013] A device for acquiring credit data of an external data source, applied to a credit platform, comprises: a determination module, for receiving a query request for credit data sent by an upstream platform, and determining a target external data source corresponding to the credit data; a first sending module, for sending a first acquisition request for business input parameters of the target external data source to a data acquisition component, wherein the first acquisition request encapsulates a label platform input item of the business input parameter, and the data acquisition component obtains the business input parameter from a target application based on the label platform input item; a first receiving module, for receiving the business input parameter returned by the data acquisition component, and acquiring non-business input parameters of an interface of the target external data source; a second sending module, for generating a second acquisition request after splicing the business input parameter and the non-business input parameter, and sending the second acquisition request to the target external data source; and a second receiving module, for receiving the credit data obtained by the target external data source in response to the second acquisition request.

[0014] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of any of the above-mentioned embodiments are implemented.

[0015] A computer-readable storage medium stores a computer program, which implements the steps of any of the above-mentioned method embodiments when the computer program is executed by a processor.

[0016] The above-mentioned method, device, computer equipment and storage medium for obtaining credit data of an external data source are applied to a credit platform, including: receiving a query request for credit data sent by an upstream platform, determining the target external data source corresponding to the credit data; sending a first acquisition request for business input parameters of the target external data source to a data acquisition component, the first acquisition request encapsulating a label platform input item of the business input parameter, and the data acquisition component obtains the business input parameter from the target application based on the label platform input item; receiving the business input parameter returned by the data acquisition component, and obtaining the non-business input parameter of the interface of the target external data source; splicing the business input parameter and the non-business input parameter to generate a second acquisition request, and sending the second acquisition request to the target external data source; receiving the credit data obtained by the target external data source in response to the second acquisition request.

[0017] Therefore, when the upstream platform needs to obtain credit data from an external data source, it can send a query request for credit data to the credit platform. The credit platform determines the target external data source, and obtains the business input parameters of the target external data source through the data acquisition component, and obtains the non-business input parameters of the target external data source at the same time, and generates a second acquisition request by combining the business input parameters and the non-business input parameters. The target external data source can respond to the second acquisition request and feedback the corresponding credit data. At this time, the upstream platform can directly obtain credit data through the credit platform without manually writing code in the application, which can improve the data acquisition efficiency and accuracy of the credit data of the external data source. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is an application environment diagram of a method for obtaining credit data from an external data source in one embodiment;

[0019] Figure 2 A schematic diagram of a flow chart of a method for acquiring credit data from an external data source in one embodiment;

[0020] Figure 3 A schematic diagram of a configuration interface for data calculation configuration of a data acquisition component in one embodiment;

[0021] Figure 4 A schematic diagram of a configuration interface for data reading configuration of a data acquisition component in one embodiment;

[0022] Figure 5 A schematic diagram of a configuration interface for basic information of an interface in interface configuration management in an embodiment;

[0023] Figure 6 A schematic diagram of a configuration interface for business input parameters of a target external data source in one embodiment;

[0024] Figure 7 A schematic diagram of a configuration interface of an interface of an external data source in interface configuration management in one embodiment;

[0025] Figure 8 It is a flowchart of a method for obtaining credit data from an external data source in a specific embodiment;

[0026] Fig. 9 It is a structural block diagram of a credit data acquisition device of an external data source in one embodiment;

[0027] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0029] The present application provides a method for obtaining credit data from an external data source, which is applied to Figure 1 In the application environment shown. Figure 1 As shown, the credit system 100 is configured with an upstream platform 102 and a credit platform 101, and the external data source 200 includes an external data source 1, an external data source 2... an external data source N. The credit platform 101 is used to execute a credit data acquisition method of an external data source of the present application, so as to obtain the credit data required by the upstream platform 102 from the external data source. Specifically, the credit platform 101 receives a query request for credit data sent by the upstream platform 102, determines the target external data source corresponding to the credit data, and sends a first acquisition request for the business input parameter of the target external data source to the data acquisition component, the first acquisition request encapsulates the label platform input item of the business input parameter, the data acquisition component obtains the business input parameter from the target application based on the label platform input item, receives the business input parameter returned by the data acquisition component, and obtains the non-business input parameter of the interface of the target external data source, splices the business input parameter and the non-business input parameter to generate a second acquisition request, sends the second acquisition request to the target external data source, and receives the credit data obtained by the target external data source in response to the second acquisition request. Therefore, through the credit platform 101, the upstream platform 102 can obtain the credit data of the external data source without manually writing code in the application, which can improve the data acquisition efficiency and accuracy of the credit data of the external data source.

[0030] In one embodiment, Figure 2 As shown, a method for obtaining credit data from an external data source is provided. Figure 1 Taking the credit platform 101 in the example as an example, the following steps are included:

[0031] S202, receiving a query request for credit data sent by an upstream platform, and determining a target external data source corresponding to the credit data.

[0032] In this embodiment, the upstream platform is the application platform of the credit data in the credit system. The upstream platform includes the risk control platform and the strategy platform. The credit platform is responsible for connecting to the external data source, and the interface of the external data source is uniformly connected by the credit platform. The external data source provides credit data for the credit platform.

[0033] When the upstream platform needs to use the credit data, it sends a query request for the credit data to the credit platform. The credit platform determines the target external data source in the external data source that can provide the credit data. Among them, the credit data fed back by each external data source, the interface configuration of each external data source, and the basic information of interface access are configured in the credit platform. For example, the interface configuration of each external data source includes the data source name, the data source interface name, and the interface code. The data source can be represented by the supplier. The basic information of the interface access of each external data source includes the interface URL address, etc. Therefore, when receiving the credit data query request sent by the upstream platform, the corresponding target external data source can be determined.

[0034] S204, sending a first acquisition request for business input parameters of the target external data source to the data acquisition component, the first acquisition request encapsulating the label platform input items of the business input parameters, and the data acquisition component obtains the business input parameters from the target application based on the label platform input items.

[0035] In this embodiment, business input parameters of various external data sources are configured in the credit platform. Among them, the business input parameters are related to the user. For example, the business input parameters are input parameters of the user's identity information, including the user's name, phone number, ID card, and face picture. Different external data sources may require the same or different business input parameters. For example, when an external data source provides credit data, it uses the ID card OCR (Optical Character Recognition), then the credit platform needs to provide the external data source with the ID card picture as a business input parameter.

[0036] Among them, the credit platform obtains the business input parameters of the target external data source through the data acquisition component configured by the credit system. Specifically, the credit platform and the data acquisition component set the same credit code for the same business input parameter, that is, the label platform input item of the business input parameter. The credit platform sends the label platform input item of the business input parameter to the data acquisition component, and the data acquisition component obtains the business input parameter from the target application based on the label platform input item.

[0037] In one embodiment, before the above step S204, it also includes: configuring the application identifier, application interface and data request method of each application of the data acquisition component, the data acquisition component obtains the domain name and port of the target application from the registration center through the application identifier of the target application, and generates the application address of the target application according to the application interface, domain name and port of the target application, and sends a third acquisition request to the target application based on the application address and the data request method, so that the target application returns the business input parameters to the data acquisition component after responding to the third acquisition request; configuring the parsing method of the business input parameters of the data acquisition component, and the data acquisition component parses the corresponding business input parameters through the parsing method.

[0038] In this embodiment, the acquisition of business input parameters depends on the input items of the tag platform. The tag platform is a data acquisition component. This data acquisition component also obtains application data within the system through configuration. The configuration of the data acquisition component is divided into two parts. One part is the data calculation configuration, which mainly configures the application identification, application interface and data request method of each application of the data acquisition component. For details, see Figure 3 As shown in the figure, the specific configuration content includes request application, request interface, request method and request parameters. The other part is data reading configuration, which mainly configures the parsing method of the business input parameter of the data acquisition component. Figure 4 As shown in the figure, the data acquisition component is a Rubik's Cube component, the label platform input item is used to input the Rubik's Cube key, and the custom expression is used to input the parsing method. Specifically, the custom expression can be an Aviator expression or an expression configured by a groovy script. The required feature value is parsed by the Aviator expression or the groovy script, and this feature value is the business input parameter.

[0039] Specifically, the Rubik's Cube platform also obtains interface data in a configured manner, which is different from the access configuration of external data sources. The Rubik's Cube platform configures the applications and interfaces of the internal system, and can automatically find the domain name and port information of the application service through the application. Among them, the internal applications use the same registration center, and the domain name and port information will be synchronized to the registration center when the application is started. The Rubik's Cube platform obtains the domain name and port of the target application from the registration center through the application identifier, and generates the application address of the target application based on the application interface, domain name and port of the target application. The application address can be used to request the corresponding business input parameters from the target application.

[0040] S206, receiving the business input parameter returned by the data acquisition component, and obtaining the non-business input parameter of the interface of the target external data source.

[0041] In this embodiment, non-business input parameters corresponding to the interface of each external data source are set. Generally, business input parameters are input parameters related to the user, and non-business input parameters are input parameters that are not related to the user but are related to the interface of the external data source. For example, non-business input parameters include encryption and decryption keys and signature verification corresponding to the interface. Among them, business input parameters are obtained from related applications through data acquisition components, and non-business input parameters are obtained by the credit platform configuration for each external data source. Among them, the configuration of business input parameters can be found in Figure 6 For non-business input configuration, see Figure 7 shown.

[0042] S208: Concatenate the business input parameters and the non-business input parameters to generate a second acquisition request, and send the second acquisition request to the target external data source.

[0043] In this embodiment, the business input and non-business input are spliced ​​according to the communication protocol and request format of the target external data source, thereby generating a second acquisition request for the target external data source. The second acquisition request is used to request the credit data required by the upstream platform from the target external data source.

[0044] In one embodiment, the above S208 includes: configuring non-business input parameters and an input parameter processing script of the interface of the target external data source; the above-mentioned splicing of the business input parameters and non-business input parameters to generate a second acquisition request includes: executing the input parameter processing script, and the input parameter processing script is used to splice the business input parameters and non-business input parameters to generate a second acquisition request.

[0045] In one example, non-business input parameters include a first encryption key, and business input parameters are user-related input parameters. Before the above-mentioned steps of configuring the non-business input parameters of the interface of the target external data source and the input parameter processing script, it also includes: configuring the second encryption key and encryption algorithm of the target external data source; wherein the input parameter processing script is used to encrypt the business input parameters using the first encryption key to obtain encrypted information, and use the second encryption key and the encryption algorithm to process the encrypted information to generate a second acquisition request.

[0046] In this embodiment, the business input parameters and non-business input parameters are processed by a pre-configured input parameter processing script to generate a second acquisition request. Among them, the non-business input parameters include a first encryption key, and a second encryption key is also configured. The first encryption key is used to encrypt the business input parameters, and the second encryption key is used to encrypt and encapsulate the encrypted business input parameters again to generate a second acquisition request that meets the interface request format of the target external data source.

[0047] Specifically, perform interface configuration management for the target external data source in advance. In [Interface Configuration Management], select or add a third-party interface to be connected. The third-party interface is the interface of the external data source, and fill in the basic information of the interface and the parameter information of the request. For example, configure the basic information of the interface of the target external data source. The basic information of the interface is as follows: Figure 5 As shown. The basic information of the interface includes the supplier interface configuration, supplier charging logic, basic information of interface access and access files. In the above step S202, the step of determining the target external data source corresponding to the credit data includes: determining the target external data source based on the supplier interface configuration, supplier charging logic and basic information of interface access of each external data source. Specifically, it can be based on the supplier charging logic to determine the external data source whose price performance ratio meets the requirements, and then based on the supplier interface configuration and basic information of interface access to identify the external data source, and use it as the target external data source.

[0048] In addition, configure the business input parameters of the target external data source. The business input parameters are as follows: Figure 6As shown in the figure, it includes the user's name, phone number and ID card, etc. Figure 6 As shown, the label platform input item is used here, that is, the input item of the above-mentioned data acquisition component. The user's business parameters can be obtained according to the user's unique code uid and the label platform input item key. For example, the key of name defined in the label platform is r_name_r_personas. That is, by sending the label platform input item key and the user's unique code uid to the data acquisition component, the user's name, which is a business input parameter, can be obtained.

[0049] In addition, in [Access Configuration Management], select the interface to access the external data source. Figure 7 As shown in the figure, configure non-business input parameters, communication configuration, storage table, encryption configuration, and message processing. Among them, non-business input parameters are fixed input parameters required by the interface provided by the supplier, and fixed input parameters to be filled in after extracting the unified and fixed code framework of the same supplier. Different interfaces have different fixed input parameters. For example, interface A and interface B of a credit data source are the same except for the code, such as encryption and decryption input parameters and other parameters. The communication configuration defines the request URL, request method, interface timeout, etc. of the interface. Among them, internal applications cannot directly access the public domain name provided by the supplier. The export gateway service is connected here. Convert it into the address of the request export gateway, and forward it to the supplier interface address by the export gateway. The storage structure, storage table, and field are defined in the storage table. Code templates are configured in message processing. In encryption configuration, internal application calls are generally completed in the intranet, and encryption is basically not involved. However, when connecting to external interfaces, data must be encrypted and decrypted when transmitted on the public network. It can be considered that encryption and decryption, signature verification, etc. are further encapsulated. When developing code templates, there is no need to repeat the unified logic.

[0050] Specifically, combined Figure 7 As shown, users can perform the following operations:

[0051] 1. Select the supplier interface to be connected, that is, the interface of the external data source;

[0052] 2. Configure the communication address;

[0053] Interface URL, request method, interface timeout, etc.

[0054] 3. Message processing;

[0055] In the message processing, we have pre-developed [input parameter processing script] and [output parameter processing script].

[0056] These two scripts are equivalent to templates and there are multiple sets. Developers can maintain and develop new templates. Generally, one data source has one set of templates (the template has completed the logic of encryption and decryption, signature and parameter splicing and assembly in advance). After selecting the template, the fixed input parameters and storage table of the development configuration interface are as follows. The fixed input parameters are the non-business input parameters mentioned above.

[0057] The [input parameter processing script] corresponds to the configured [business input parameters and non-business input parameters of the interface].

[0058] The [Parameter processing script] corresponds to the configured [Storage table].

[0059] The input parameter processing and output parameter scripts are grovvy scripts, and the grovvy script code can be executed directly in Java.

[0060] After the configuration is saved and submitted, a work order review will be automatically initiated. After the review is passed, the code will be launched online.

[0061] In one example, before sending the second acquisition request to the target external data source, it also includes: configuring the communication information of the target external data source, the communication information includes the request address information, request method and interface timeout period of the target external data source; the step of sending the second acquisition request to the target external data source includes: identifying the target export gateway based on the request address information of the target external data source; forwarding the second acquisition request to the target external data source through the target export gateway based on the request address information and request method of the target external data source; and managing the sending request of the second acquisition request based on the interface timeout period of the target external data source.

[0062] Specifically, Figure 7 As shown, the communication information of the target data source is preconfigured. The communication information includes the request address information, request method and interface timeout of the target external data source. Through the communication information, the request to the target external data source is managed.

[0063] S210, receiving the credit data obtained by the target external data source in response to the second acquisition request.

[0064] In this embodiment, the target external data source responds to the second acquisition request and sends the credit data to the credit platform. The credit platform stores the credit data in a table and / or feeds back the credit data to the upstream platform so that the upstream platform can obtain the credit data for corresponding business processing.

[0065] In one example, before the above S210, it also includes: configuring the parameter output processing script and the storage drop table of the target external data source, and the parameter output processing script is based on the storage drop table setting; after the above S210, that is, after receiving the credit data returned by the target external data source, it also includes: executing the parameter output processing script, the parameter output processing script parses the credit data returned by the target external data source to obtain the drop table data; and storing the drop table data in the storage drop table.

[0066] In one example, before the above step of configuring the output parameter processing script of the target external data source, it also includes: identifying the supplier of the target external data source and obtaining the supplier's code template; rewriting the target method in the code template based on the interface of the target external data source and the business input parameters to obtain the output parameter processing script.

[0067] Specifically, Figure 7 As shown, the parameter processing script for message processing can be configured by means of code templates. The code template is obtained by extracting and configuring a unified and fixed code framework. However, the selection of a code template may not be completely applicable. Here, code snippets can be configured to rewrite some methods in the code template. For example, the same supplier provides multiple interfaces, each corresponding to an external data source. The same supplier uses the same code framework when configuring the interface. On the premise of determining the supplier's code template, the corresponding target method can be modified to obtain the parameter processing script. Therefore, the workload of configuring the parameter processing script can be reduced. For example: A supplier's code template includes a decryption module, a charging / free module, a logic judgment module, and a parsing / storage module. For the different data sources corresponding to it, the decryption module code is the same. The method of the charging / free module and the method of the parsing / storage module can be modified to obtain the parameter processing script of the corresponding data source.

[0068] Regarding the above-mentioned credit data acquisition method from an external data source, a specific application example is given below. Figure 8 As shown:

[0069] The external data source is the supplier system that provides credit data. The data acquisition component is the magic cube. Figure 8 As shown, when the credit platform receives a credit query request initiated by the upstream system, it executes supplier selection and selects the target external data source. Based on the selected supplier, the four elements or ID card information are obtained through the magic cube, and then assembly, bottom-up and verification parameters are performed. Then, the supplier interface is queried, that is, the interface of the target external data source is queried, and the gateway interface corresponding to the supplier is queried according to the interface ID, and the credit data in the supplier system is queried through the gateway interface. Finally, the credit data is saved to OSS (object storage service), and then a prompt message of successful query is returned to the upstream system to prompt the upstream system to read the queried credit data.

[0070] In summary, the present application provides a method for obtaining credit data from an external data source, which can be quickly put online without having to be developed in the application and packaged and released for verification, as in the case of traditional interface docking. Here, you can configure or submit a script change to trigger a work order review, which will automatically go online after passing the review. In addition, both business input parameters and non-business input parameters can be obtained through interface configuration, and the external data source can also be determined through configuration. After configuring the docking, when the upstream platform requests the credit data source, it only needs to pass the UID and credit code, which reduces the docking cost, shortens the interface docking cycle, and enhances the stability and maintainability of the system.

[0071] It should be understood that, although the steps in the flowchart are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0072] The present application also provides a device for obtaining credit data from an external data source. Fig. 9 As shown, a device for obtaining credit data of an external data source is applied to a credit platform, and includes a determination module 902, a first sending module 904, a first receiving module 906, a second sending module 908, and a second receiving module 910. The determination module 902 is used to receive a query request for credit data sent by an upstream platform, and determine the target external data source corresponding to the credit data; the first sending module 904 is used to send a first acquisition request for business input parameters of the target external data source to the data acquisition component, and the first acquisition request encapsulates a label platform input item of the business input parameter, and the data acquisition component obtains the business input parameter from the target application based on the label platform input item; the first receiving module 906 is used to receive the business input parameter returned by the data acquisition component, and obtain the non-business input parameter of the interface of the target external data source; the second sending module 908 is used to generate a second acquisition request after splicing the business input parameter and the non-business input parameter, and send the second acquisition request to the target external data source; the second receiving module 910 is used to receive the credit data obtained by the target external data source in response to the second acquisition request.

[0073] In one embodiment, a credit data acquisition device for an external data source also includes a first configuration module, which is used to configure the application identifier, application interface and data request method of each application of the data acquisition component, the data acquisition component obtains the domain name and port of the target application from the registration center through the application identifier of the target application, and generates the application address of the target application according to the application interface, domain name and port of the target application, sends a third acquisition request to the target application based on the application address and the data request method, so that the target application returns business input parameters to the data acquisition component after responding to the third acquisition request; configures the parsing method of the business input parameters of the data acquisition component, and the data acquisition component parses the corresponding business input parameters through the parsing method.

[0074] In one embodiment, a credit data acquisition device for an external data source also includes a second configuration module, which is used to configure non-business input parameters and an input parameter processing script of the interface of the target external data source; wherein, the business input parameters and non-business input parameters are spliced ​​together to generate a second acquisition request, including: executing the input parameter processing script, the input parameter processing script is used to splice the business input parameters and non-business input parameters to generate a second acquisition request.

[0075] In one embodiment, non-business input parameters include a first encryption key, business input parameters are input parameters related to the user, and a credit data acquisition device for an external data source also includes a third configuration module, which is used to configure a second encryption key and encryption algorithm for the target external data source; wherein the input parameter processing script is used to encrypt the business input parameters using the first encryption key to obtain encrypted information, and use the second encryption key and the encryption algorithm to process the encrypted information to generate a second acquisition request.

[0076] In one embodiment, a device for acquiring credit data of an external data source also includes a fourth configuration module, which is used to configure the parameter processing script and storage table of the target external data source, and the parameter processing script is set based on the storage table; wherein, after receiving the credit data returned by the target external data source, it also includes: executing the parameter processing script, the parameter processing script parses the credit data returned by the target external data source to obtain the table data; and storing the table data in the storage table.

[0077] In one embodiment, a credit data acquisition device for an external data source also includes a fifth configuration module, which is used to identify the supplier of the target external data source and obtain the supplier's code template; rewrite the target method in the code template based on the interface of the target external data source and business input parameters to obtain an output parameter processing script.

[0078] In one embodiment, a credit data acquisition device for an external data source also includes a sixth configuration module, which is used to configure the communication information of the target external data source, the communication information including the request address information, request method and interface timeout period of the target external data source; wherein, sending a second acquisition request to the target external data source includes: identifying a target export gateway based on the request address information of the target external data source; forwarding the second acquisition request to the target external data source through the target export gateway based on the request address information and request method of the target external data source; and managing the sending request of the second acquisition request based on the interface timeout period of the target external data source.

[0079] The specific definition of a device for acquiring credit data from an external data source can be found in the definition of a method for acquiring credit data from an external data source mentioned above, and will not be repeated here. Each module in the above-mentioned device for acquiring credit data from an external data source can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0080] In one embodiment, a computer device is provided. The computer device may be a server supporting the operation of the credit platform 101. The internal structure diagram thereof may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to interact with an upstream platform or an external data source for data, etc. When the computer program is executed by the processor, it implements the above-mentioned credit data acquisition method of an external data source.

[0081] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0082] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: receiving a query request for credit data sent by an upstream platform, and determining a target external data source corresponding to the credit data; sending a first acquisition request for business input parameters of the target external data source to a data acquisition component, wherein the first acquisition request encapsulates a label platform input item of the business input parameter, and the data acquisition component obtains the business input parameter from a target application based on the label platform input item; receiving the business input parameter returned by the data acquisition component, and obtaining the non-business input parameter of the interface of the target external data source; generating a second acquisition request after splicing the business input parameter and the non-business input parameter, and sending the second acquisition request to the target external data source; and receiving the credit data obtained by the target external data source in response to the second acquisition request.

[0083] In one of the embodiments, the processor implements the following steps when executing the computer program: configuring the application identifier, application interface and data request method of each application of the data acquisition component, the data acquisition component obtains the domain name and port of the target application from the registration center through the application identifier of the target application, and generates the application address of the target application according to the application interface, domain name and port of the target application, and sends a third acquisition request to the target application based on the application address and the data request method, so that the target application returns the business input parameter to the data acquisition component after responding to the third acquisition request; configuring the parsing method of the business input parameter of the data acquisition component, and the data acquisition component parses the corresponding business input parameter through the parsing method.

[0084] In one of the embodiments, when the processor executes a computer program, the following steps are implemented: configuring non-business input parameters and an input parameter processing script of the interface of the target external data source; when the processor executes the computer program to implement the above-mentioned step of splicing the business input parameters and non-business input parameters to generate a second acquisition request, the following steps are specifically implemented: executing the input parameter processing script, and the input parameter processing script is used to splice the business input parameters and non-business input parameters to generate a second acquisition request.

[0085] In one of the embodiments, non-business input parameters include a first encryption key, and business input parameters are input parameters related to the user. When the processor executes the computer program, the following steps are implemented: configuring a second encryption key and an encryption algorithm for the target external data source; wherein the input parameter processing script is used to encrypt the business input parameters using the first encryption key to obtain encrypted information, and then use the second encryption key and the encryption algorithm to process the encrypted information to generate a second acquisition request.

[0086] In one of the embodiments, the processor implements the following steps when executing the computer program: configuring the output parameter processing script and the storage drop table of the target external data source, the output parameter processing script is based on the storage drop table setting; executing the output parameter processing script, the output parameter processing script parses the credit data returned by the target external data source to obtain the drop table data; and storing the drop table data in the storage drop table.

[0087] In one of the embodiments, the processor implements the following steps when executing the computer program: identifying the supplier of the target external data source and obtaining the supplier's code template; rewriting the target method in the code template based on the interface of the target external data source and business input parameters to obtain an output parameter processing script.

[0088] In one of the embodiments, when the processor executes the computer program, the following steps are implemented: configuring the communication information of the target external data source, the communication information includes the request address information, request method and interface timeout period of the target external data source; when the processor executes the computer program to implement the above-mentioned step of sending a second acquisition request to the target external data source, the following steps are specifically implemented: identifying the target egress gateway based on the request address information of the target external data source; forwarding the second acquisition request to the target external data source through the target egress gateway based on the request address information and request method of the target external data source; and managing the sending request of the second acquisition request based on the interface timeout period of the target external data source.

[0089] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: receiving a query request for credit data sent by an upstream platform, and determining a target external data source corresponding to the credit data; sending a first acquisition request for business input parameters of the target external data source to a data acquisition component, wherein the first acquisition request encapsulates a label platform input item of the business input parameter, and the data acquisition component obtains the business input parameter from the target application based on the label platform input item; receiving the business input parameter returned by the data acquisition component, and obtaining the non-business input parameter of the interface of the target external data source; generating a second acquisition request after splicing the business input parameter and the non-business input parameter, and sending the second acquisition request to the target external data source; and receiving the credit data obtained by the target external data source in response to the second acquisition request.

[0090] In one of the embodiments, when the computer program is executed by the processor, the following steps are implemented: the application identifier, application interface and data request method of each application of the data acquisition component are configured, the data acquisition component obtains the domain name and port of the target application from the registration center through the application identifier of the target application, and generates the application address of the target application according to the application interface, domain name and port of the target application, and sends a third acquisition request to the target application based on the application address and the data request method, so that the target application returns the business input parameter to the data acquisition component after responding to the third acquisition request; the parsing method of the business input parameter of the data acquisition component is configured, and the data acquisition component parses the corresponding business input parameter through the parsing method.

[0091] In one of the embodiments, when the computer program is executed by the processor, the following steps are implemented: configuring non-business input parameters and an input parameter processing script of the interface of the target external data source; when the computer program is executed by the processor to implement the above-mentioned step of splicing the business input parameters and non-business input parameters to generate a second acquisition request, the following steps are specifically implemented: executing the input parameter processing script, and the input parameter processing script is used to splice the business input parameters and non-business input parameters to generate a second acquisition request.

[0092] In one of the embodiments, non-business input parameters include a first encryption key, and business input parameters are input parameters related to the user. When the computer program is executed by the processor, the following steps are implemented: configuring a second encryption key and an encryption algorithm for the target external data source; wherein the input parameter processing script is used to encrypt the business input parameters using the first encryption key to obtain encrypted information, and then use the second encryption key and the encryption algorithm to process the encrypted information to generate a second acquisition request.

[0093] In one of the embodiments, when the computer program is executed by the processor, the following steps are implemented: configuring the output parameter processing script and the storage drop table of the target external data source, the output parameter processing script is based on the storage drop table setting; executing the output parameter processing script, the output parameter processing script parses the credit data returned by the target external data source to obtain the drop table data; storing the drop table data in the storage drop table.

[0094] In one of the embodiments, when the computer program is executed by a processor, the following steps are implemented: identifying the supplier of the target external data source and obtaining the supplier's code template; rewriting the target method in the code template based on the interface of the target external data source and business input parameters to obtain an output parameter processing script.

[0095] In one of the embodiments, when the computer program is executed by the processor, the following steps are implemented: configuring communication information of the target external data source, the communication information includes request address information, request method and interface timeout period of the target external data source; when the computer program is executed by the processor to implement the above-mentioned step of sending a second acquisition request to the target external data source, the following steps are specifically implemented: identifying the target egress gateway based on the request address information of the target external data source; forwarding the second acquisition request to the target external data source through the target egress gateway based on the request address information and request method of the target external data source; and managing the sending request of the second acquisition request based on the interface timeout period of the target external data source.

[0096] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0097] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0098] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for obtaining credit data from an external data source, characterized in that: Applied to the credit information platform, the method comprises: Receive a query request for credit data sent by an upstream platform, and determine a target external data source corresponding to the credit data; Sending a first acquisition request for the business input parameter of the target external data source to the data acquisition component, wherein the first acquisition request encapsulates a label platform input item of the business input parameter, and the data acquisition component obtains the business input parameter from the target application based on the label platform input item; Receive the business input parameter returned by the data acquisition component, and obtain the non-business input parameter of the interface of the target external data source, wherein the business input parameter is an input parameter related to the user, and the non-business input parameter is an input parameter not related to the user but related to the interface of the target external data source, and the non-business input parameter is obtained by the credit platform configuration for the target external data source; Concatenate the business input parameter and the non-business input parameter to generate a second acquisition request, and send the second acquisition request to the target external data source; Receiving the credit data obtained by the target external data source in response to the second acquisition request; Wherein, before the step of sending the first acquisition request of the business input parameter of the target external data source to the data acquisition component, it also includes: configuring the application identifier, application interface and data request method of each application of the data acquisition component, the data acquisition component obtains the domain name and port of the target application from the registration center through the application identifier of the target application, and generates the application address of the target application according to the application interface, domain name and port of the target application, and sends a third acquisition request to the target application based on the application address and data request method, so that the target application returns the business input parameter to the data acquisition component after responding to the third acquisition request, wherein multiple internal applications of the credit platform use the same registration center, and each internal application synchronizes the domain name and port information of each internal application to the registration center when it is started; A parsing method for the business input parameter of the data acquisition component is configured, and the data acquisition component parses the corresponding business input parameter through the parsing method.

2. The method according to claim 1, characterized in that The method further comprises: Configure the non-business input parameters and input parameter processing script of the interface of the target external data source; The step of concatenating the business input parameter and the non-business input parameter to generate a second acquisition request includes: Execute the input parameter processing script, where the input parameter processing script is used to concatenate the business input parameter and the non-business input parameter to generate the second acquisition request.

3. The method according to claim 2, characterized in that The non-business input parameter includes a first encryption key, and the method further includes: configuring a second encryption key and an encryption algorithm for the target external data source; Among them, the input parameter processing script is used to encrypt the business input parameter by using the first encryption key to obtain encrypted information, and use the second encryption key and combined with the encryption algorithm to process the encrypted information to generate the second acquisition request.

4. The method according to claim 2, characterized in that: The method further includes: configuring a parameter output processing script and a storage drop table of the target external data source, wherein the parameter output processing script is set based on the storage drop table; After receiving the credit data returned by the target external data source, the method further includes: Executing the parameter output processing script, the parameter output processing script parses the credit data returned by the target external data source to obtain the table data; The drop table data is stored in the storage drop table.

5. The method according to claim 4, characterized in that The method further comprises: Identify a supplier of the target external data source, and obtain a code template of the supplier; The target method in the code template is rewritten based on the interface of the target external data source and the business input parameters to obtain the output parameter processing script.

6. The method according to claim 1, characterized in that The method further comprises: Configure the communication information of the target external data source, wherein the communication information includes the request address information, request method and interface timeout period of the target external data source; The sending the second acquisition request to the target external data source includes: Identifying a target egress gateway based on the request address information of the target external data source; forwarding the second acquisition request to the target external data source through the target egress gateway based on the request address information and the request mode of the target external data source; The second acquisition request is managed based on an interface timeout of the target external data source.

7. A device for acquiring credit data from an external data source, characterized in that: Applied to the credit platform, the device comprises: A determination module, used to receive a query request for credit data sent by an upstream platform, and determine a target external data source corresponding to the credit data; A first sending module is used to send a first acquisition request for the business input parameter of the target external data source to the data acquisition component, wherein the first acquisition request encapsulates a label platform input item of the business input parameter, and the data acquisition component obtains the business input parameter from the target application based on the label platform input item; A first receiving module is used to receive the business input parameter returned by the data acquisition component, and obtain the non-business input parameter of the interface of the target external data source, wherein the business input parameter is an input parameter related to the user, and the non-business input parameter is an input parameter not related to the user but related to the interface of the target external data source, and the non-business input parameter is obtained by the credit platform configuration for the target external data source; A second sending module, configured to concatenate the business input parameter and the non-business input parameter to generate a second acquisition request, and send the second acquisition request to the target external data source; A second receiving module, configured to receive the credit data obtained by the target external data source in response to the second acquisition request; Wherein, before sending the first acquisition request of the business input parameter of the target external data source to the data acquisition component, it also includes: configuring the application identifier, application interface and data request method of each application of the data acquisition component, the data acquisition component obtains the domain name and port of the target application from the registration center through the application identifier of the target application, and generates the application address of the target application according to the application interface, domain name and port of the target application, and sends a third acquisition request to the target application based on the application address and data request method, so that the target application returns the business input parameter to the data acquisition component after responding to the third acquisition request, wherein multiple internal applications of the credit platform use the same registration center, and each internal application synchronizes the domain name and port information of each internal application to the registration center when it is started; A parsing method for the business input parameter of the data acquisition component is configured, and the data acquisition component parses the corresponding business input parameter through the parsing method.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and device for acquiring data of external data source, electronic equipment and storage medium

    CN115454674A

  • Information query method and device, computer equipment and storage medium

    CN116150188A

  • Data request processing method and device, computer equipment and storage medium

    CN116320015A