Data acquisition methods, devices, computer equipment and storage media

By using API call templates to obtain business data related to business requests in real time, the problem of business data lag was solved, the accuracy and timeliness of business analysis were improved, and the cost of data acquisition was reduced.

CN115203509BActive Publication Date: 2026-03-06SHENZHEN HEYTAP DIGITAL TECH CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-25
Publication Date
2026-03-06

AI Technical Summary

Technical Problem

In existing technologies, business data is often delayed, and data generated in real time is difficult to use immediately, affecting the timeliness and accuracy of business analysis.

Method used

In response to a business request, an interface call template associated with the business request is obtained. Based on the interface call template, business data corresponding to a preset data type is retrieved from the data source of a preset data interface as the target business data.

Benefits of technology

It enables real-time, seamless access and retrieval of data interfaces, improving the accuracy and timeliness of business analysis and reducing the time cost of data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115203509B_ABST
    Figure CN115203509B_ABST
Patent Text Reader

Abstract

This application discloses a data acquisition method, apparatus, computer equipment, and storage medium, relating to the field of data processing technology. The method includes: responding to a business request, acquiring an interface call template associated with the business request, the interface call template including a preset data type and at least one preset data interface; based on the interface call template, acquiring business data associated with the business request from a data source corresponding to the preset data interface; and based on the interface call template, filtering out business data corresponding to the preset data type from the business data as target business data. This enables real-time, undifferentiated invocation and value retrieval of data interfaces, allowing for business analysis using real-time generated business data, thus improving the accuracy and timeliness of business analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a data acquisition method, apparatus, computer equipment, and storage medium. Background Technology

[0002] With the continuous development of internet technology and society, big data has been gradually applied to all walks of life.

[0003] In related technologies, different business data are typically collected in advance from different systems or storage media, and different topic indexes are then created for each type of business data before it can be used. This results in a significant lag in business data processing, making it difficult to immediately utilize real-time business data, thus affecting the timeliness and accuracy of business analysis based on that data. Summary of the Invention

[0004] This application proposes a data acquisition method, apparatus, computer equipment, and storage medium to avoid long delays in business data, preventing real-time generated business data from being used immediately.

[0005] In a first aspect, embodiments of this application provide a data acquisition method, the method comprising: in response to a business request, acquiring an interface call template associated with the business request, the interface call template including a preset data type and at least one preset data interface; based on the interface call template, acquiring business data associated with the business request from a data source corresponding to the preset data interface; and based on the interface call template, filtering out business data corresponding to the preset data type from the business data as target business data.

[0006] Secondly, embodiments of this application provide a data acquisition device, comprising: a template acquisition module, a data acquisition module, and a data filtering module. The template acquisition module is configured to, in response to a business request, acquire an interface call template associated with the business request, the interface call template including a preset data type and at least one preset data interface; the data acquisition module is configured to, based on the interface call template, acquire business data associated with the business request from a data source corresponding to the preset data interface; the data filtering module is configured to, based on the interface call template, filter out business data corresponding to the preset data type from the business data as target business data.

[0007] Thirdly, embodiments of this application provide a computer device, including: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the methods described above.

[0008] Fourthly, embodiments of this application provide a computer-readable storage medium storing program code that can be invoked by a processor to execute the methods described above.

[0009] In the solution provided in this application, in response to a business request, an interface call template associated with the business request is obtained. The interface call template includes a preset data type and at least one preset data interface. Based on the interface call template, business data associated with the business request is obtained from the data source corresponding to the preset data interface. Based on the interface call template, business data corresponding to the preset data type is filtered from the business data and used as target business data. This achieves real-time, indiscriminate calling and value retrieval of data interfaces, enabling business analysis using real-time generated business data, thus improving the accuracy and timeliness of business analysis. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 A flowchart illustrating a data acquisition method provided in an embodiment of this application is shown.

[0012] Figure 2 A flowchart illustrating a data acquisition method provided in another embodiment of this application is shown.

[0013] Figure 3 A schematic diagram of an interface call template provided in an embodiment of this application is shown.

[0014] Figure 4 A flowchart illustrating a data acquisition method provided in another embodiment of this application is shown.

[0015] Figure 5 A flowchart illustrating a data acquisition method provided in another embodiment of this application is shown.

[0016] Figure 6 This is a block diagram of a data acquisition device according to an embodiment of this application.

[0017] Figure 7 This is a block diagram of a computer device for performing a data acquisition method according to an embodiment of this application.

[0018] Figure 8 This is a storage unit in this application embodiment for storing or carrying program code that implements the data acquisition method according to this application embodiment. Detailed Implementation

[0019] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0020] With the development of big data, big data risk control has gradually replaced manual experience-based risk control in the fintech field. However, using big data risk control requires a large amount of raw business data, which is scattered across different systems or storage media and does not necessarily serve only the risk control system.

[0021] In related technologies, raw business data is collected in advance from different systems or storage media, and then a subject index is built before it can be used by the risk control system. As a result, the raw business data has a long lag, and real-time business data is difficult to use immediately.

[0022] The inventors propose a data acquisition method, apparatus, computer device, and storage medium. In response to a business request, based on an interface call template associated with the business request, business data related to the business request is acquired from a data source corresponding to a preset data interface. Furthermore, business data corresponding to a preset data type is filtered from the business data and used as target business data. The data acquisition method provided in this application is described in detail below.

[0023] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a data acquisition method according to an embodiment of this application. The following will be combined with... Figure 1 The data acquisition method provided in the embodiments of this application will be described in detail. This data acquisition method may include the following steps:

[0024] Step S110: In response to a business request, obtain an interface call template associated with the business request, wherein the interface call template includes a preset data type and at least one preset data interface.

[0025] In this embodiment, the business request can be a request used to trigger risk control analysis. Risk control analysis can be understood as using big data to build models to perform risk assessment, risk control, and risk warnings on users. Therefore, business requests include, but are not limited to, loan requests, credit card registration requests, installment shopping requests, installment rental requests, insurance requests, and investment and wealth management requests. The interface call template is essentially an executable code segment. This code segment can be written using a domain-specific language (DSL). DSL languages ​​are written in text code form, making them easy and efficient to modify. Furthermore, their target audience is non-programmers, business personnel, or end users, offering high operability and user-friendliness for various types of users. The code segment constituting the interface call template can be adjusted at any time according to specific needs, improving the flexibility of the interface call template.

[0026] The interface call template includes a preset data type and at least one preset data interface. The preset data type is the data type of the business data ultimately output after executing the interface call template, i.e., the type of business data required for risk control analysis. Understandably, the preset data type can be a data type set by the user in advance according to different risk control analysis needs. The preset data interface is a data interface already existing in other devices, systems, or storage media. This data interface is an interface for information exchange between devices and can be a physical port or a virtual port; this embodiment does not impose any restrictions on this. Understandably, the preset data interface can also be a data interface set by the user in advance according to different risk control analysis needs.

[0027] Understandably, different business requests generally require different data types and sources for risk control analysis. Therefore, for different business requests, the corresponding API call templates for triggering risk control analysis can be pre-set. Within these API call templates, code snippets can be written to specify the preset data types of the required business data and the preset data interfaces corresponding to the data sources from which this data is retrieved. Since risk control analysis may use business data from only one data source or multiple data sources, there can be one or more preset data interfaces. Furthermore, after pre-configuring the API call templates for different business requests, all API call templates can be stored on a computer device.

[0028] Based on this, if a user initiates a business request, the computer device can respond to the business request and obtain the interface call template associated with the business request.

[0029] In some implementations, to facilitate the computer device's rapid acquisition of the interface call template associated with the business request, a unique template identifier can be assigned to each interface call template, and a mapping relationship can be established between different business requests and their associated interface call template identifiers. This allows the computer device to respond to a business request by determining the associated template identifier based on the mapping relationship and obtaining the corresponding interface call template as the interface call template associated with the business request. This improves the efficiency of obtaining interface call templates, thereby improving the response efficiency of business requests.

[0030] Of course, the business requests in this embodiment are not limited to requests that trigger risk control analysis; they can also be other types of business requests. Requests for obtaining data from other devices, systems, or storage media are all within the scope of protection of this application.

[0031] Step S120: Based on the interface call template, obtain the business data associated with the business request from the data source corresponding to the preset data interface.

[0032] Furthermore, after obtaining the interface call template associated with the business request, the computer device can use the language executor (i.e., language execution software) corresponding to the programming language used to write the code segment of the interface call template to run the code segment, that is, execute the interface call template; then the business data associated with the business request can be obtained from the data source corresponding to the preset data interface.

[0033] The data source can be an electronic terminal such as a smartphone, tablet, or laptop, or an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN) services, and big data and artificial intelligence platforms. This embodiment does not limit these.

[0034] Step S130: Based on the interface call template, select business data corresponding to the preset data type from the business data as target business data.

[0035] In practical applications, the preset data interface is often an existing data interface on other devices, data sources, or storage media, meaning it wasn't specifically developed for risk control analysis. For example, if the preset data interface is a front-end data call interface developed by a financial system for its front-end page, the front-end page needs to display Class A, Class B, and Class C business data. However, in this embodiment, risk control analysis only requires Class A business data. This means that the business data obtained from its corresponding data source through the preset data interface may contain redundant business data that is not very helpful for risk control analysis. Based on this, the interface call template can be executed to filter out business data corresponding to the preset data type from the business data, which can then be used as the target business data. The target business data can be understood as the business data used during risk control analysis; that is, risk assessment of the target business data can generate the risk control report, enabling risk control data processing based on a big data platform.

[0036] In this embodiment, upon receiving a business request, the system executes an interface call template associated with the request to retrieve business data related to the business request from the data source corresponding to the preset data interface. Then, it filters out business data corresponding to the preset data type as the target business data. This enables real-time, indiscriminate calling and retrieval of data interfaces, allowing for business analysis using real-time generated business data, thus improving the accuracy and timeliness of business analysis. For example, it can improve the accuracy and timeliness of risk control analysis. Furthermore, since the preset data interface is not specifically developed for business analysis but directly reuses data interfaces from other data sources, the complexity is low. Simultaneously, the elimination of the need for dedicated data interface development reduces the time cost of acquiring business data.

[0037] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a data acquisition method according to another embodiment of this application. The following will be combined with... Figure 2 The data acquisition method provided in the embodiments of this application will be described in detail. This data acquisition method may include the following steps:

[0038] Step S210: In response to a business request, obtain an interface call template associated with the business request. The interface call template includes a preset data type, at least one preset data interface, and user identity information.

[0039] In this embodiment, the interface call template may also include user identity information, including but not limited to the user's name, phone number, email address, ID card information, facial image, and home address. The user identity information can be carried in the business request. Correspondingly, when the computer device receives the business request, it inputs the user identity information carried in the business request as a parameter, that is, it adds the user identity information to the preset variable parameters corresponding to the interface call template.

[0040] For example, please refer to Figure 3 , Figure 3 This is the API call template. Figure 3 The “parameter 1” and “parameter 2” are preset variable parameters. Inputting user identity information means using the user identity information to assign values ​​to “parameter 1” and “parameter 2”.

[0041] Understandably, user identity information is not limited to personal identity information in the narrow sense, but can also include other identity-identifying information such as store information. In this way, risk control analysis of stores can be achieved, and thus risk control analysis of users operating those stores can be achieved.

[0042] Optionally, such as Figure 3 As shown, the interface call template also includes the interface address, interface name, interface version, and interface communication protocol. Based on this, the computer device can parse the interface address according to the interface communication protocol to obtain the port number of the preset data interface in the interface address. For example, the Hypertext Transfer Protocol (HTTP) can be used to parse the interface address (HTTP) to obtain the corresponding port number, so as to obtain business data from the data source corresponding to the port number. The interface communication protocols include, but are not limited to, Dubbo-RPC, Transmission Control Protocol / Internet Protocol (TCP / IP), User Datagram Protocol (UDP), File Transfer Protocol (FTP), Telnet, and Simple Mail Transfer Protocol (SMTP).

[0043] Step S220: Based on the interface call template, obtain the business data associated with the business request under the user identity information from the data source corresponding to the preset data interface.

[0044] In some implementations, it can first detect whether the user identity information of the input parameter conforms to a preset information format; if it does, execute the interface call template to obtain the business data associated with the business request under the user identity information from the data source corresponding to the preset data interface.

[0045] The preset information format can be as follows: Figure 3 The "verification rule" shown states that user identity information cannot be empty or contain spaces (i.e., it cannot exist); that is, if the user identity information is not empty or contains spaces, then step S220 is executed. Of course, the preset information format can also be set according to requirements, for example, excluding non-text characters such as numbers and symbols; this embodiment does not impose any restrictions on this.

[0046] Optionally, if the information does not meet the requirements, the computer device may output a first prompt message, which is used to remind the user who initiated the service request that there is an error in the format of the user identity information and to modify the user identity information.

[0047] Step S230: Based on the interface call template, select business data corresponding to the preset data type from the business data as target business data.

[0048] See also Figure 3 The process of filtering business data corresponding to the preset data type is the "output parameter" process, where "parameter 1" is the target business data. In this embodiment, the specific implementation of step S230 can be found in the preceding embodiments, and will not be repeated here.

[0049] In some implementations, before step S230, the obtained business data associated with the business request under the user identity information can be processed, and it can be determined whether the business data conforms to a preset data format. If it does, step S230 is executed; optionally, if it does not, a second prompt message is output to indicate to the user that the business request response has failed. The determination of whether the business data conforms to the preset data format can be... Figure 3 The "output parameter verification" in this context means that, after all business data conforms to the preset data format, the target business data is then filtered from the business data that conforms to the preset data format. In this way, useless data, incomplete data, erroneous data, or duplicate data are filtered out, thereby improving the accuracy of business analysis based on the target business data.

[0050] In some implementations, the interface call template may include multiple preset data interfaces. If, based on the interface call template, business data associated with the business request cannot be obtained from the data source corresponding to the third data interface, or if the business data obtained from the data source corresponding to the third data interface does not conform to the aforementioned preset data format, then an importance indicator corresponding to the third data interface is obtained. The importance indicator is used to characterize the importance of the business data in the data source corresponding to the preset data interface. The third data interface is any one of the multiple preset data interfaces. If the importance indicator corresponding to the third data interface is a first importance indicator, then a second prompt message is output. The second prompt message is used to indicate that the business request has failed.

[0051] Optionally, if the importance identifier corresponding to the third data interface is the second importance identifier, then based on the interface call template, business data corresponding to the preset data type is selected from the business data related to the business request obtained from the data source corresponding to the fourth data interface, and used as the target business data. The fourth data interface is any other preset data interface among the plurality of preset data interfaces besides the third data interface, and the importance represented by the first importance identifier is greater than the importance represented by the second importance identifier.

[0052] For example, when the business request is a loan request, the required target business data includes bank deposit amount, property ownership information, and family household registration information. The data interfaces for obtaining bank deposit amount and property ownership information are both marked with a first-level importance indicator, while the data interface for obtaining family household registration information is marked with a second-level importance indicator. In this case, if family household registration information is not obtained or the obtained information does not conform to the preset data format, but since family household registration information is not the most important condition for risk control assessment, the obtained bank deposit amount and property ownership information can still be used as target business data for analysis. However, if the bank deposit amount or property ownership information is not obtained, or if either of the obtained bank deposit amount or property ownership information does not conform to the preset data format, since these two pieces of information are very important conditions for risk control assessment, the lack of either condition may lead to risk control assessment failure. Therefore, a second prompt message can be output to indicate that the business request has failed.

[0053] In this embodiment, the values ​​of the aforementioned input and output parameters can be obtained using technologies such as Spring EL expressions. The correctness verification of the aforementioned input and output parameters can also be achieved by outputting "YES" or "NO" using technologies such as Spring EL expressions. Then, based on the output result, it is determined how to execute the code. For details on how to execute the code, please refer to the aforementioned content, which will not be repeated here.

[0054] In this implementation, after the user's identity information is input into the interface call template, the template is executed. It then retrieves business data related to the business request from the data source corresponding to the preset data interface, and filters out business data corresponding to preset data types as the target business data. This allows for timely retrieval of business data related to the user's identity information for business analysis, achieving targeted real-time retrieval of business data and improving the efficiency and accuracy of business analysis.

[0055] Please refer to Figure 4 , Figure 4 This is a flowchart illustrating a data acquisition method provided in another embodiment of this application. The following will be combined with... Figure 4 The data acquisition method provided in the embodiments of this application will be described in detail. This data acquisition method may include the following steps:

[0056] Step S310: In response to a business request, obtain an interface call template associated with the business request. The interface call template includes a preset data type, at least one preset data interface, and a preset call period.

[0057] In this embodiment, the preset call period can be a pre-set data acquisition period, such as within one month prior to the time the business request is received. Of course, the preset call period can be modified according to actual needs, and this embodiment does not impose any restrictions on this. That is to say, business analysis, such as risk control analysis, can be performed based on business data within the preset call period. Furthermore, the preset call period can be manually modified and adjusted, meaning that different time periods of business data can be selected according to actual needs to achieve more targeted business analysis.

[0058] Step S320: Detect whether there are historical call records for the preset data interface.

[0059] Step S330: If a historical call record is detected for the preset data interface, determine whether the historical business data obtained during the historical call contains business data corresponding to the preset data type within the preset call period.

[0060] Understandably, different business requests may call the same data interface and use the same business data for business analysis. Therefore, after obtaining the interface call template, it is possible to check whether there are historical call records for the preset data interface in the interface call template. If historical call records are detected for the preset data interface, it is possible to further obtain the historical business data obtained during the historical calls and determine whether the historical business data contains business data corresponding to the preset data type within the preset call period.

[0061] Step S340: If included, obtain the business data corresponding to the preset data type within the preset call period from the historical business data, and use it as the target business data.

[0062] Optionally, if the historical business data contains business data corresponding to the preset data type within a preset call period, then this represents the business data used by the computer device to perform business analysis in response to other business requests, including business data corresponding to the preset data type required in response to the current business request. Therefore, business data corresponding to the preset data type within a preset call period can be obtained from the historical business data as the target business data. In other words, the computer device can store used business data, and when it needs to use previously used data later, it can directly call it locally, improving the efficiency of business data retrieval and thus improving the efficiency of business analysis based on the business data.

[0063] Step S350: If not included, based on the interface call template, obtain the business data associated with the business request within the preset call period from the data source corresponding to the preset data interface.

[0064] Optionally, if the historical business data does not contain business data corresponding to the preset data type within the preset call period, indicating that the business data used for business analysis when the computer device responds to other business requests does not contain business data corresponding to the preset data type required to respond to the current business request, then based on the interface call template, business data associated with the business request within the preset call period is obtained from the data source corresponding to the preset data interface.

[0065] In this embodiment, the specific implementation of step S350 can be found in the content of the foregoing embodiments, and will not be repeated here.

[0066] In this embodiment, the computer device can flexibly determine whether to retrieve the target business data from local storage or based on the interface call template, based on whether there are historical call records for the preset data interface, and if so, whether the historical business data of the historical calls contains business data corresponding to the preset data type within the preset call period. This improves the efficiency of retrieving target business data while ensuring successful acquisition for business analysis.

[0067] Please refer to Figure 5 , Figure 5 This is a flowchart illustrating a data acquisition method according to another embodiment of this application. The following will be combined with... Figure 5 The data acquisition method provided in the embodiments of this application will be described in detail. This data acquisition method may include the following steps:

[0068] Step S410: Every preset time interval, based on the target call template, obtain business data from the data source corresponding to the target data interface in the target call template as the business data to be queried. The target data interface is a preset data interface corresponding to a specified interface identifier. The specified interface identifier is used to indicate that the update frequency of the data in the data source corresponding to the target data interface is less than the preset frequency.

[0069] In this embodiment, the target data interface is a preset data interface corresponding to a specified interface identifier. The specified interface identifier indicates that the update frequency of the data in the data source corresponding to the target data interface is less than a preset frequency; in other words, the real-time performance of the data in the data source corresponding to the target data interface is relatively low. Therefore, for business data with low real-time performance, business data can be obtained from the data source corresponding to the target data interface in the target call template at preset intervals, based on the target call template, as the business data to be queried. The preset interval can be a pre-set duration, such as one month. Of course, the duration can also be adjusted according to actual needs, and this embodiment does not impose any restrictions on this.

[0070] For example, taking the target data interface as the data interface corresponding to the loan system, users generally do not take out loans frequently. This means that users' loan data is not frequently updated, and the real-time nature of the loan data is low. Therefore, based on the target call template corresponding to the loan request, loan data is obtained from the data source corresponding to the target data interface in the target call template, serving as the business data to be queried.

[0071] Step S420: Store the business data to be queried in the target database.

[0072] Furthermore, after obtaining the business data to be queried, the data can be stored in the target database for easy subsequent querying and improved local query efficiency.

[0073] Step S430: In response to a business request, obtain an interface call template associated with the business request. The interface call template includes a preset data type and multiple preset data interfaces.

[0074] In this embodiment, the specific implementation of step S430 can be found in the content of the foregoing embodiments, and will not be repeated here.

[0075] Step S440: Obtain the query business data associated with the business request from the target database as the first business data. The first business data is the query business data obtained from the data source corresponding to the first data interface of the plurality of preset data interfaces. The first data interface is a preset data interface carrying the specified interface identifier.

[0076] In some implementations, when the interface call template includes multiple preset data interfaces, different data acquisition methods can be adopted depending on whether the preset data interfaces carry a specified interface identifier. For the first data interface carrying a specified interface identifier, the business data to be queried associated with the business request can be obtained from the target database as the first business data. The first business data is the business data to be queried obtained from the data source corresponding to the first data interface of the multiple preset data interfaces. In other words, business data with low real-time requirements can be obtained from the target database, improving the efficiency of business data acquisition.

[0077] Step S450: Based on the interface call template, obtain the business data associated with the business request from the data source corresponding to the second data interface, and use it as the second business data. The second data interface is one of the preset data interfaces other than the first data interface among the plurality of preset data interfaces.

[0078] Optionally, for other preset data interfaces that do not carry a specified interface identifier, namely the aforementioned second data interface, meaning that the business data of the data source corresponding to the second data interface has a high data update frequency and high real-time requirements, storing the high-real-time business data in advance would cause data lag during business analysis, leading to inaccurate business analysis. Therefore, for the second data interface, business data related to the business request can be obtained in real time from the data source corresponding to the second data interface based on the interface call template, and used as the second business data.

[0079] Step S460: Based on the interface call template, select business data corresponding to the preset data type from the first business data and the second business data, and use it as the target business data.

[0080] Furthermore, after obtaining the first business data from the target database and the second business data obtained in real time from the second data interface by executing the interface call template, business data corresponding to the preset data type is selected from the first and second business data based on the interface call template and used as the target business data.

[0081] In this embodiment, for business data with low real-time requirements, values ​​are periodically pre-acquired and stored in the target database. Simultaneously, for business data with high real-time requirements, business data associated with the business request is retrieved in real-time from the data source corresponding to the second data interface based on the interface call template. Finally, target business data is filtered based on the first business data in the target database and the real-time retrieved second business data. This approach ensures data real-time performance while improving data acquisition efficiency, thereby enhancing the efficiency and accuracy of data-driven business analysis.

[0082] Please refer to Figure 6 The diagram illustrates a structural block diagram of a data acquisition device 500 according to an embodiment of this application. The device 500 may include a template acquisition module 510, a data acquisition module 520, and a data filtering module 530.

[0083] The template acquisition module 510 is used to acquire an interface call template associated with the business request in response to the business request. The interface call template includes a preset data type and at least one preset data interface.

[0084] The data acquisition module 520 is used to acquire business data associated with the business request from the data source corresponding to the preset data interface based on the interface call template.

[0085] The data filtering module 530 is used to filter out business data corresponding to the preset data type from the business data based on the interface call template, and use it as target business data.

[0086] In some implementations, the interface call template also includes user identity information. The data acquisition module 520 can be specifically used to acquire business data associated with the business request from the data source corresponding to the preset data interface based on the interface call template.

[0087] In this approach, the data acquisition device 500 further includes a format detection module. This format detection module is used to detect whether the user identity information conforms to a preset information format before retrieving the business data associated with the business request based on the user identity information from the data source corresponding to the preset data interface using the interface call template. If it does, the process of retrieving the business data associated with the business request based on the user identity information from the data source corresponding to the preset data interface using the interface call template is executed.

[0088] In some implementations, the interface call template further includes a preset call period, and the data acquisition device 500 further includes a historical call detection module. The historical call detection module can be used to detect whether there are historical call records in the target interface data before acquiring business data associated with the business request from the data source corresponding to the preset data interface based on the interface call template; if historical call records are detected in the target data interface, it determines whether the historical business data acquired during the historical call contains business data corresponding to the preset data type within the preset call period; if so, it acquires the business data corresponding to the preset data type within the preset call period from the historical business data and uses it as the target business data.

[0089] In this approach, the data acquisition module 520 can be specifically used, if not included, to acquire business data associated with the business request within the preset call period from the data source corresponding to the preset data interface based on the interface call template.

[0090] In some embodiments, the data acquisition device 500 further includes a data timed acquisition module and a data storage module. The data timed acquisition module can be used to acquire business data from the data source corresponding to the target data interface in the target call template at preset intervals before acquiring the interface call template associated with the business request in response to the business request. The target data interface is a preset data interface corresponding to a specified interface identifier, and the specified interface identifier indicates that the update frequency of the data in the data source corresponding to the target data interface is less than a preset frequency. The data storage module can be used to store the business data to be queried in a target database.

[0091] In this approach, the interface call template includes multiple preset data interfaces, and the data acquisition module 520 may include a first data acquisition unit and a second data acquisition unit. The first data acquisition unit can be used to acquire the query business data associated with the business request from the target database, serving as the first business data. The first business data is the query business data acquired from the data source corresponding to the first data interface of the multiple preset data interfaces, where the first data interface is a preset data interface carrying the specified interface identifier. The second data acquisition unit can be used to acquire business data associated with the business request from the data source corresponding to the second data interface based on the interface call template, serving as the second business data. The second data interface is one of the preset data interfaces other than the first data interface.

[0092] In this approach, the data filtering module 530 can be specifically used to: based on the interface call template, filter out business data corresponding to the preset data type from the first business data and the second business data, and use it as the target business data.

[0093] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0094] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0095] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0096] In summary, the solution provided in this application, upon receiving a business request, executes an interface call template associated with the business request to obtain business data related to the business request from the data source corresponding to the preset data interface, and then filters out business data corresponding to the preset data type from the business data as the target business data. This achieves real-time, indiscriminate calling and value retrieval of the data interface, enabling business analysis using real-time generated business data, thus improving the accuracy and timeliness of business analysis. For example, it can improve the accuracy and timeliness of risk control analysis. Furthermore, since the preset data interface is not specifically developed for business analysis but directly reuses data interfaces from other data sources, the difficulty is low. Simultaneously, since no dedicated data interface development is required, the time cost of obtaining business data is reduced.

[0097] The following will combine Figure 7 This application describes a computer device.

[0098] Reference Figure 7 , Figure 7 The diagram shows a structural block diagram of a computer device 600 provided in an embodiment of this application. The above-mentioned method provided in this embodiment can be executed by the computer device 600. The computer device 600 can be an electronic device such as a smartphone, tablet computer, smart bracelet, smartwatch, laptop computer or desktop computer. Of course, it can also be a physical server or cloud server. This embodiment does not limit it.

[0099] The computer device 600 in this embodiment may include one or more of the following components: processor 601, memory 602, and one or more application programs, wherein the one or more application programs may be stored in memory 602 and configured to be executed by one or more processors 601, and the one or more programs are configured to perform the methods as described in the foregoing method embodiments.

[0100] Processor 601 may include one or more processing cores. Processor 601 connects to various parts within the computer device 600 using various interfaces and lines, and performs various functions and processes data of the electronic device 600 by running or executing instructions, programs, code sets, or instruction sets stored in memory 602, and by calling data stored in memory 602. Optionally, processor 601 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 601 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the aforementioned modem can also be integrated into processor 701 and implemented using a separate communication chip.

[0101] The memory 602 may include random access memory (RAM) or read-only memory (ROM). The memory 602 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 602 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the computer device 600 during use (such as the various correspondences described above).

[0102] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0103] In the several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or other forms.

[0104] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0105] Please refer to Figure 8 This diagram illustrates a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 700 stores program code that can be called by a processor to execute the methods described in the above method embodiments.

[0106] The computer-readable storage medium 700 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 700 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 700 has storage space for program code 710 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 710 may, for example, be compressed in a suitable form.

[0107] In some embodiments, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the steps in the above-described method embodiments.

[0108] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A data acquisition method, characterized by, The method comprises: in response to a service request, obtaining an interface calling template associated with the service request, the interface calling template comprising a preset data type, user identity information, and a plurality of preset data interfaces, the service request being a request for triggering risk control analysis, the plurality of preset data interfaces comprising preset data interfaces corresponding to different data sources; based on the interface calling template, obtaining service data associated with the service request under the user identity information from the data source corresponding to the preset data interface; if based on the interface calling template, the service data associated with the service request cannot be obtained from the data source corresponding to the third data interface or the service data obtained from the data source corresponding to the third data interface does not conform to the preset data format, obtaining an importance identifier corresponding to the third data interface, the importance identifier being used to represent the importance of the service data in the data source corresponding to the preset data interface, the third data interface being any one of the plurality of preset data interfaces; if the importance identifier corresponding to the third data interface is a first importance identifier, outputting a second prompt information, the second prompt information being used to prompt that the service request fails; if the importance identifier corresponding to the third data interface is a second importance identifier, based on the interface calling template, filtering out the service data corresponding to the preset data type from the service data associated with the service request obtained from the data source corresponding to the fourth data interface as target service data, the fourth data interface being other preset data interfaces in the plurality of preset data interfaces except the third data interface, the first importance identifier representing a greater importance than the second importance identifier.

2. The method of claim 1, wherein, Before the step of obtaining the service data associated with the service request under the user identity information from the data source corresponding to the preset data interface based on the interface calling template, the method further comprises: detecting whether the user identity information conforms to a preset information format; if it conforms, performing the step of obtaining the service data associated with the service request under the user identity information from the data source corresponding to the preset data interface based on the interface calling template.

3. The method of claim 1, wherein, The interface calling template further comprises a preset calling time period, and before the step of obtaining the service data associated with the service request from the data source corresponding to the preset data interface based on the interface calling template, the method further comprises: detecting whether the preset data interface has a historical calling record; if it is detected that the preset data interface has a historical calling record, judging whether the historical service data obtained in the historical calling contains service data corresponding to the preset data type in the preset calling time period; if it contains, obtaining the service data corresponding to the preset data type in the preset calling time period from the historical service data as the target service data; The method comprises the following steps: If the interface calling template does not contain the preset data interface, the method further comprises the following steps:

4. The method according to any one of claims 1 to 3, characterized in that, Before the step of obtaining the interface calling template associated with the business request in response to the business request, the method further comprises the following steps: Every preset time length, the method further comprises the following steps: The method further comprises the following steps:

5. The method of claim 4, wherein, The interface calling template comprises a plurality of preset data interfaces, and the step of obtaining the business data associated with the business request from the data source corresponding to the preset data interface based on the interface calling template comprises the following steps: The method further comprises the following steps: The method further comprises the following steps:

6. The method of claim 5, wherein, The method further comprises the following steps: The method further comprises the following steps:

7. A data acquisition device, characterized by The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises the following steps: The method further comprises The data screening module is configured to: if the service data associated with the service request fails to be acquired from the data source corresponding to the third data interface based on the interface calling template or the acquired service data from the data source corresponding to the third data interface does not conform to the preset data format, acquire an importance degree identifier corresponding to the third data interface, the importance degree identifier being used to represent an importance degree of the service data in the data source corresponding to the preset data interface, the third data interface being any one of the plurality of preset data interfaces; if the importance degree identifier corresponding to the third data interface is a first importance degree identifier, output a second prompt information, the second prompt information being used to prompt that the service request fails; and if the importance degree identifier corresponding to the third data interface is a second importance degree identifier, based on the interface calling template, screen out, from the service data associated with the service request acquired from the data source corresponding to a fourth data interface, service data corresponding to the preset data type as target service data, the fourth data interface being any one of the plurality of preset data interfaces except the third data interface, the first importance degree identifier representing an importance degree greater than an importance degree represented by the second importance degree identifier.

8. A computer device, comprising: Comprise: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores program code, and the program code can be called and executed by the processor to perform the method of any one of claims 1 to 6.

Citation Information

Patent Citations

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

    CN109842610A

  • Interface calling method and device, computer readable storage medium and computer equipment

    CN112346880A

  • Data query method and device, electronic equipment and computer readable storage medium

    CN112685443A