Interface calling method and device based on project factoring and computer equipment

Through the interface call method based on project factoring, the problem of interface adjustment difficulties of financial institutions during system upgrade and business expansion is solved, the interface call efficiency is improved and the reliability of data transmission is achieved, and the stability of financial services and users are ensured. Experience.

CN119002962APending Publication Date: 2024-11-22TIANYI COMMERCIAL FACTORING CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411087072.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

When financial institutions upgrade the system and expand their business, they have difficulty adjusting interfaces, resulting in inconsistent and loss of data transmission, affecting user experience and service quality.

Method used

Using the interface call method based on project factoring, determine the configuration information of the interface to be called through the pre-set project factoring implementation process, generate and send the interface call request, and implement a retry strategy in case of failure to ensure the integrity of data transmission. and accuracy.

Benefits of technology

It improves interface call efficiency and flexibility, simplifies the system upgrade and business expansion process, ensures accurate data transmission and processing, and enhances the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002962A_ABST
    Figure CN119002962A_ABST
Patent Text Reader

Abstract

The invention discloses an interface calling method and device based on project factoring and computer equipment. The method comprises the steps that configuration information corresponding to a to-be-called interface is determined based on an interface calling process included in a preset project factoring implementation process, and the interface calling process is used for indicating to call the to-be-called interface; generating an interface calling request according to the configuration information corresponding to the to-be-called interface; the interface calling request is sent to a to-be-called interface, and the to-be-called interface responds to the interface calling request, processes to-be-processed data included in the interface calling request and returns the processed data. The technical problem that interface adjustment is difficult when a financial institution carries out system upgrading and business expansion is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology, and in particular, to an interface calling method, device and computer equipment based on project factoring. Background Art

[0002] With the rapid development of the Internet finance industry, more and more financial institutions and service providers have begun to bring their services and products online to meet the convenience needs of users. In this process, the stability and efficiency of interface calls have become crucial factors. When users perform various financial operations online, they need to use interfaces to interact with banking systems, third-party payment service providers, etc. to ensure accurate transmission and processing of information.

[0003] Especially when it comes to processing sensitive user information, such as bank card information, ID card numbers, etc., the security of the interface is even more critical. Financial institutions need to ensure that users' personal information is not leaked or tampered with, and also need to ensure the synchronization of data between various systems to avoid data inconsistency or loss.

[0004] However, there are some problems in the relevant technologies, such as the need to adjust the interface when the system is upgraded, and the need to consider the compatibility and stability of the interface when the business is expanded. These problems have brought certain challenges to the development of the Internet financial industry and also affected the user experience and service quality.

[0005] When implementing financial services, there are problems such as difficulty in adjusting interfaces during system upgrades and business expansion.

[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0007] The embodiment of the present invention provides an interface calling method, device and computer equipment based on project factoring, so as to at least solve the technical problem of difficulty in interface adjustment when financial institutions perform system upgrades and business expansion.

[0008] According to one aspect of an embodiment of the present invention, there is provided an interface calling method based on project factoring, comprising: determining configuration information corresponding to an interface to be called based on an interface calling process included in a preset project factoring implementation process, wherein the interface calling process is used to indicate calling the interface to be called; generating an interface calling request according to the configuration information corresponding to the interface to be called; sending the interface calling request to the interface to be called, wherein the interface to be called responds to the interface calling request, processes the data to be processed included in the interface calling request, and returns the processed data.

[0009] Optionally, based on the interface calling process included in the pre-set project factoring implementation process, the configuration information corresponding to the interface to be called is determined, including: reading the progress of the project factoring implementation process; when the progress of the project factoring implementation process reaches the interface calling process, retrieving the configuration information of the interface to be called from the database.

[0010] Optionally, based on the interface calling process included in the pre-set project factoring implementation process, determining the configuration information corresponding to the interface to be called also includes: retrieving the respective configuration information of multiple interfaces from the database at a predetermined frequency; reading the progress of the project factoring implementation process; and when the progress of the project factoring implementation process reaches the interface calling process, determining the configuration information corresponding to the interface to be called from the respective configuration information of the multiple interfaces.

[0011] Optionally, an interface call request is generated based on the configuration information corresponding to the interface to be called, including: identifying the configuration information corresponding to the interface to be called, determining the identification address and request format of the interface to be called; obtaining the data to be processed included in the interface call process; and generating an interface call request based on the identification address and request format of the interface to be called, and the data to be processed.

[0012] Optionally, the method further includes: obtaining an interface call result; when the interface call result indicates a failure in calling the interface to be called, identifying configuration information corresponding to the interface to be called and determining a retry strategy for the interface to be called; and re-requesting to call the interface to be called based on the retry strategy.

[0013] Optionally, the method also includes: identifying configuration information corresponding to the interface to be called, and determining prompt conditions and prompt policies of the interface to be called; when the response of the interface to be called meets the corresponding prompt conditions, sending prompt information according to the prompt policy of the interface to be called, wherein the prompt information indicates that an error has occurred in the interface to be called.

[0014] According to another aspect of an embodiment of the present invention, there is also provided an interface calling device based on project factoring, including: a determination module, used to determine the configuration information corresponding to the interface to be called based on the interface calling process included in the preset project factoring implementation process, wherein the interface calling process is used to indicate the calling of the interface to be called; a generation module, used to generate an interface calling request according to the configuration information corresponding to the interface to be called; a sending module, used to send the interface calling request to the interface to be called, wherein the interface to be called responds to the interface calling request, processes the data to be processed included in the interface calling request, and returns the processed data.

[0015] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, the non-volatile storage medium including a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute any one of the above-mentioned interface calling methods based on project factoring.

[0016] According to another aspect of the embodiments of the present invention, a computer device is provided. The computer device includes a processor, and the processor is used to run a program. When the program is running, any one of the above-mentioned interface calling methods based on project factoring is executed.

[0017] According to another aspect of an embodiment of the present invention, there is further provided a computer program product, including a computer program, which implements any one of the above-mentioned interface calling methods based on project factoring when executed by a processor.

[0018] In an embodiment of the present invention, configuration information corresponding to the interface to be called is determined through an interface calling process included in a pre-set implementation process of project factoring, wherein the interface calling process is used to indicate the calling of the interface to be called; an interface calling request is generated according to the configuration information corresponding to the interface to be called; the interface calling request is sent to the interface to be called, wherein the interface to be called responds to the interface calling request, processes the data to be processed included in the interface calling request, and returns the processed data, thereby achieving the purpose of generating an interface calling request according to the corresponding configuration information. When the financial institution performs system upgrades and business expansions, the configuration information corresponding to the interface to be called can be reset, and a new interface calling request can be generated according to the new configuration information and the interface can be re-called accordingly, thereby solving the technical problem of difficulty in adjusting the interface when the financial institution performs system upgrades and business expansions, thereby achieving the technical effect of improving the efficiency of interface calling. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0020] Figure 1 A hardware structure block diagram of a computer terminal for implementing an interface calling method based on project factoring is shown;

[0021] Figure 2 It is a flowchart of an interface calling method based on project factoring provided in accordance with an embodiment of the present invention;

[0022] Figure 3 It is a structural block diagram of an interface calling device based on project factoring provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] According to an embodiment of the present invention, a method embodiment of an interface call based on project factoring is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0026] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal for implementing an interface calling method based on project factoring is shown. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0027] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0028] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the interface calling method based on project factoring in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the interface calling method based on project factoring of the above-mentioned application program is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0029] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .

[0030] Project factoring is a financial service, generally targeting industries such as construction, engineering and manufacturing. It obtains immediate financial support by transferring project accounts receivable to factoring companies. Project factoring helps to ease the financial pressure of enterprises and improve the efficiency of capital turnover. In general, the implementation process of project factoring is as follows: First, the enterprise will reach an agreement with the factoring company on factoring services and sign a contract; secondly, the enterprise will submit relevant information about accounts receivable, such as contracts, invoices, etc. to the factoring company; then, the factoring company will review the information provided by the enterprise to ensure the authenticity and legality of the accounts receivable. After the review is passed, the factoring company will pay the funds to the enterprise according to the agreed proportion; then, the enterprise will complete the design, construction and other work of the project in accordance with the contract, and the enterprise's customers will pay the enterprise according to the contract after the project is completed; after the enterprise receives the customer's payment and ends the project, it will settle with the factoring company and distribute the proceeds according to the agreed proportion.

[0031] With the advancement of digital transformation, enterprises and industries are seeking to use Internet technology to optimize business processes, and project factoring is no exception. Through Internet technology, project factoring can be automated and digitized, thereby improving processing speed and efficiency and reducing manual intervention and errors. In addition, the project retention and circulation process established based on the Internet can ensure that all participants can view the progress and status of project factoring in real time, increase transparency, reduce information asymmetry, and facilitate tracking and monitoring by all parties to ensure the smooth progress of the project and carry out relevant risk control.

[0032] In the process of project factoring based on the Internet, when the enterprise exchanges data with the factoring company, it is necessary to realize real-time data transmission through interface calls. In addition, when the factoring company reviews the accounts receivable information submitted by the enterprise, it may need to call the interface of the enterprise system to verify the authenticity of the data. When funds are transferred between the factoring company, the enterprise and the customer, it may also be necessary to call the interface of the enterprise bank account, the factoring company's bank account interface and the customer's bank account interface to realize automatic transfer of funds.

[0033] However, in the related technologies, there is a common problem of lack of efficient retry mechanism after interface call failure. When the interface call fails, the system usually returns failure information immediately without trying to call the interface again to ensure the integrity and accuracy of data transmission. In this case, users may encounter data loss or incompleteness, which affects the normal operation of business processes.

[0034] In addition, the difficulty in adjusting interfaces during system upgrades and factoring business expansion is also a problem that restricts the smooth operation of factoring business processes. With the development of factoring business, the system often needs to be continuously upgraded and expanded, which requires the adjustment and modification of interfaces. However, due to the high dependency between interfaces, once one interface is adjusted, the normal operation of other interfaces may be affected, resulting in system failures or data inconsistencies.

[0035] In order to solve the above problems, Figure 2 is a flow chart of an interface calling method based on project factoring provided in an embodiment of the present invention, such as Figure 2 As shown, the method comprises the following steps:

[0036] Step S202, based on the interface calling process included in the pre-set project factoring implementation process, determine the configuration information corresponding to the interface to be called, wherein the interface calling process is used to indicate the calling of the interface to be called.

[0037] In this step, the execution entity can be the business system of the factoring company. The implementation process of project factoring can refer to the entire process that the factoring company follows certain procedures and specifications when conducting project factoring business. This process may include multiple links, such as project establishment, project evaluation, risk control, fund management, etc.

[0038] In the process of project factoring implementation, it may be necessary to interact with other systems or services to obtain or transfer data. These interactions can be achieved through interface calls. The interface call process specifies the entire process of calling the interface, and clarifies which interfaces need to be called at different stages, as well as the order and conditions of the calls.

[0039] The interface to be called can be the interface of the system or service that needs to interact with it in the current link or scenario. For example, in the project evaluation link, it may be necessary to call the interface of a risk assessment system to obtain the risk assessment results. After determining the interface to be called based on the interface call process, in order to implement the interface call, some necessary information needs to be determined, such as the interface's Uniform Resource Locator (URL), calling method (such as HTTP request method), request parameters, authentication information, etc. This information is called configuration information, which is usually pre-set during system initialization or configuration.

[0040] Step S204: Generate an interface calling request according to the configuration information corresponding to the interface to be called.

[0041] In this step, an interface call request can be generated according to the interface to be called and its configuration information determined in the previous step. The interface call request can be a data packet encapsulated in a specific format and specification, including a necessary request header, a request body, etc., wherein the request header usually includes authentication information, a request method, a URL, etc.; the request body contains parameters or data to be passed according to the requirements of the interface. The interface call request can be generated by a programming language or tool. For example, an HTTP client library can be used to set the request URL, method, parameters, etc. according to the configuration information to generate an HTTP request.

[0042] Step S206: sending the interface call request to the interface to be called, wherein the interface to be called responds to the interface call request, processes the data to be processed included in the interface call request, and returns the processed data.

[0043] In this step, the generated interface call request can be sent to the interface to be called. The way of sending the request depends on the type and protocol of the interface, such as HTTP requests can be sent to the specified server through the network. After receiving the request, the interface to be called will process it according to the content of the request and its own logic. The processing process may include verifying the legitimacy of the request, executing business logic, querying the database, etc. After the processing is completed, the interface to be called will return the processing results to the requester in some form. The format of the returned data follows a certain format of the response specification of the interface. After receiving the returned data, the business system of the factoring company can parse and process the data to facilitate the implementation of subsequent project factoring processes. For example, the returned data is parsed into a corresponding data structure, or conditional judgment and error handling are performed based on the returned results.

[0044] Through the above steps, the purpose of generating an interface call request according to the corresponding configuration information is achieved. When the financial institution performs system upgrades and business expansions, the configuration information corresponding to the interface to be called can be reset, and a new interface call request can be generated according to the new configuration information and the interface can be re-called accordingly, thereby solving the technical problem of difficulty in adjusting the interface when the financial institution performs system upgrades and business expansions, thereby achieving the technical effect of improving the efficiency of interface calls, helping to improve the efficiency and flexibility of interface calls, and facilitating financial institutions to adjust the interface during system upgrades and business expansions.

[0045] As an optional embodiment, based on the interface calling process included in the pre-set project factoring implementation process, determining the configuration information corresponding to the interface to be called can be achieved through the following steps: reading the progress of the project factoring implementation process; when the progress of the project factoring implementation process reaches the interface calling process, retrieving the configuration information of the interface to be called from the database.

[0046] Optionally, when the factoring company's business system performs project factoring according to a pre-set implementation process, the implementation steps of the project factoring can be read in real time to understand its current progress. This can be achieved by querying relevant data in the project management system, such as project status, completed task nodes, etc. After understanding the progress of the project factoring implementation process, it can be determined whether the current progress has reached the stage where an interface call is required. When it is determined that the project factoring implementation process has reached the interface call process, the configuration information of the interface to be called is queried from the database. The configuration information corresponding to the interface may include the address of the interface, call parameters, call frequency, etc., which are the key to implementing the interface call.

[0047] It should be noted that the configuration information corresponding to the interface stored in the database can be modified. The administrator can manually adjust the configuration information in the database according to business changes or system upgrades, and can also directly create an interface and record its corresponding configuration information. When determining the configuration information, this optional embodiment determines that after the task reaches the interface call stage, the latest configuration information is searched in real time from the database and retrieved.

[0048] Correspondingly, after the interface call is completed, the progress of the project factoring implementation process can also be updated according to the call result to ensure the real-time and accuracy of the project factoring implementation process.

[0049] As an optional embodiment, the configuration information corresponding to the interface to be called is determined based on the interface calling process included in the pre-set project factoring implementation process. It can also be achieved through the following steps: according to a predetermined frequency, the configuration information of multiple interfaces is retrieved from the database; the progress of the project factoring implementation process is read; when the progress of the project factoring implementation process reaches the interface calling process, the configuration information corresponding to the interface to be called is determined in the configuration information of multiple interfaces.

[0050] Optionally, the configuration information of each of the multiple interfaces can be retrieved from the database at a predetermined frequency. In this optional embodiment, the system can periodically retrieve the configuration information of the preset multiple interfaces from the database and store it locally for subsequent calls. Then, in the process of project factoring according to the implementation process, the system can detect the current progress in real time. When the progress of the implementation process of the project factoring reaches the interface call process, the interface configuration information related to the current implementation process can be screened out from the configuration information of each of the multiple interfaces cached locally, and the interface call can be made accordingly.

[0051] As an optional embodiment, generating an interface call request according to the configuration information corresponding to the interface to be called can be achieved through the following steps: identifying the configuration information corresponding to the interface to be called, and determining the identification address and request format of the interface to be called; obtaining the data to be processed included in the interface call process; generating an interface call request based on the identification address and request format of the interface to be called, and the data to be processed.

[0052] Optionally, after obtaining the configuration information corresponding to the interface to be called, the configuration information of the interface can be identified and understood, which may specifically include the name, version, permission requirements, etc. of the interface. Then, based on the identified configuration information, the unique identification address (such as URL or API endpoint) of the interface is determined. At the same time, the data format required for the interface request is understood so as to generate a request that the interface can correctly parse. In addition, before generating an interface call request, the data required for the interface call, such as input parameters, user authentication information, etc., can also be collected and organized.

[0053] After completing the above steps, you can start generating interface call requests. Organize the data to be processed according to the request format, and then send it to the identification address of the interface to be called through HTTP requests, etc. When sending the request, you may also need to add some additional request header information, such as authentication tokens, content types, etc.

[0054] After the interface call request is sent, the response data returned by the interface can also be received and processed. Based on the response content, it can be determined whether the request is successful and the required result data can be obtained.

[0055] Through the above steps, the request of the interface to be called can be effectively generated and processed to ensure the smooth progress of the interface call. This optional embodiment is suitable for scenarios where an interface needs to be called, such as integrating data interaction between different systems and services.

[0056] As an optional embodiment, the method may also include the following steps: the method also includes: obtaining an interface call result; when the interface call result indicates a failure in calling the interface to be called, identifying the configuration information corresponding to the interface to be called, and determining a retry strategy for the interface to be called; based on the retry strategy, re-requesting to call the interface to be called.

[0057] An optional embodiment of the present invention also provides a mechanism for handling interface call failures. After each interface call request is generated and sent to the interface to be called, the business system needs to obtain the result of the interface call and determine whether the call is successful or failed based on the obtained interface call result. This can be achieved by checking the status code, error information or other relevant data returned by the interface. For example, if an incorrect status code or error information is returned, it is determined that the interface call has failed and the system will proceed to the next step of processing.

[0058] When an interface call fails, the system can identify the retry strategy in the configuration information corresponding to the interface to be called. The retry strategy may include the number of retries, the retry interval, whether to use the exponential backoff algorithm, etc., and then re-request to call the interface to be called based on the determined retry strategy.

[0059] When re-requesting to call the interface to be called, the original request parameters can be modified, and in the process of re-requesting the call, the system needs to follow the retry strategy, such as initiating the request again after a specified retry interval.

[0060] Through this optional embodiment, the system can automatically retry when the interface call fails, thereby improving the robustness and reliability of the system. At the same time, through a flexible retry strategy, the system can be adjusted according to different interfaces and scenarios to achieve the best call effect.

[0061] As an optional embodiment, the method may also include the following steps: identifying the configuration information corresponding to the interface to be called, and determining the prompt conditions and prompt policies of the interface to be called; when the response of the interface to be called meets the corresponding prompt conditions, sending prompt information according to the prompt policy of the interface to be called, wherein the prompt information indicates that an error has occurred in the interface to be called.

[0062] Optionally, an alarm can be issued when a problem with an interface call is detected, and the message can be pushed to the system's operation and maintenance personnel so that the operation and maintenance personnel can be aware of the interface call failure in a timely manner and adjust the interface in a timely manner to minimize the impact of the interface call failure.

[0063] In this optional embodiment, the system can first identify the configuration information corresponding to the interface to be called, and the configuration information includes the prompt conditions and prompt policies of the interface to be called. The prompt conditions refer to the circumstances under which the prompt information needs to be sent, such as interface call failure, interface call timeout, etc. The prompt policy refers to the strategy that should be adopted when sending the prompt information, such as sending an error prompt, sending a warning prompt, reminding the operation and maintenance personnel by phone, reminding the operation and maintenance personnel by text message within the station, etc.

[0064] When the response of the interface to be called is returned, the system can determine whether the response meets the conditions according to the prompt conditions determined by the configuration information. If the response meets the conditions, such as the interface call fails or times out, the system will send a prompt message according to the prompt policy of the interface to be called. The content of the prompt message can be customized according to the actual situation, such as indicating that an error has occurred in the interface to be called and that the interface needs to be called again. The prompt message can be presented in the form of a pop-up window, sound, vibration, etc. to alert the operation and maintenance personnel.

[0065] By identifying the configuration information of the interface to be called, the intelligent customer service system can call the interface more accurately and send prompt information in time according to the response of the interface to remind the operation and maintenance personnel to pay attention to the interface call situation. This helps to improve the reliability of the system.

[0066] As a specific embodiment, the present invention can be implemented by the following steps:

[0067] Step 1. Configure information settings

[0068] Step 1.1: The operation and maintenance personnel log in to the system configuration center, which can be a centralized configuration management platform.

[0069] Step 1.2: After the operation and maintenance personnel successfully log in to the configuration center, they can create or update configuration information for a specific partner interface in the configuration center, including but not limited to interface call parameters (such as URL, request header, request body, etc.), retry strategy (number of retries, interval time, etc.) and push logic (which information needs to be pushed and when to push it).

[0070] Step 1.3: After the operation and maintenance personnel complete the configuration, save and publish the new configuration to make the configuration information take effect.

[0071] Step 2. Logical control layer analysis and scheduling

[0072] Step 2.1: The interface management system periodically pulls the latest configuration information from the configuration center.

[0073] Step 2.2: The logic control layer parses the pulled configuration information and identifies the specific requirements, retry rules, and push logic of the interface call.

[0074] Step 2.3: Based on the parsing result of the configuration information, the logic control layer schedules the corresponding interface processor to prepare to execute the interface call task.

[0075] Step 3. The execution layer performs the push operation

[0076] Step 3.1: The execution layer (interface processor) receives the scheduling instruction from the logic control layer, and constructs a complete HTTP request or other type of message packet based on the parsing result, including all necessary parameters and information.

[0077] Step 3.2: Initiate an interface call request to the target system behind the interface to be called, and wait for the target system to respond to the interface call request.

[0078] Step 3.3: If the interface call is successful, record the success log; if it fails, automatically retry according to the retry strategy in the configuration information until the maximum number of retries is reached.

[0079] Step 4. Monitoring and alarming

[0080] Step 4.1: The system integrated detection module continuously tracks the status of each interface call, including indicators such as response time and success rate.

[0081] Step 4.2: When an interface call exception is detected (such as timeout, return error code, etc.), the alarm mechanism is immediately triggered.

[0082] Step 4.3: The alarm notification can be in the form of email, SMS or system notification, and is sent to operation and maintenance personnel or a pre-set notification group.

[0083] Step 4.4: At the same time, according to the configured policy, the system may automatically start the preset error handling process, such as switching to a backup interface, increasing log detail, etc., to reduce the operation and maintenance burden and restore services as soon as possible.

[0084] Through the above series of steps, the present invention realizes a highly automated, configurable and self-monitoring interface management system, which effectively improves the reliability and efficiency of information interaction in the field of Internet finance.

[0085] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that the interface calling method based on project factoring according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0087] According to an embodiment of the present invention, there is also provided a project factoring-based interface calling device for implementing the above-mentioned project factoring-based interface calling method. Figure 3 is a structural block diagram of an interface calling device based on project factoring according to an embodiment of the present invention, such as Figure 3 As shown, the interface calling device based on project factoring includes: a determination module 31, a generation module 32 and a sending module 33. The interface calling device based on project factoring is described below.

[0088] The determination module 31 is used to determine the configuration information corresponding to the interface to be called based on the interface calling process included in the preset project factoring implementation process, wherein the interface calling process is used to indicate the calling of the interface to be called.

[0089] The generating module 32 is connected to the determining module 31 and is used to generate an interface calling request according to the configuration information corresponding to the interface to be called.

[0090] The sending module 33 is connected to the generating module 32, and is used for sending the interface calling request to the interface to be called, wherein the interface to be called responds to the interface calling request, processes the data to be processed included in the interface calling request, and returns the processed data.

[0091] It should be noted that the above-mentioned determination module 31, generation module 32 and sending module 33 correspond to steps S202 to S206 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment. It should be noted that the above-mentioned modules as part of the device can be run in the computer terminal 10 provided in the embodiment.

[0092] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.

[0093] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the interface calling method and device based on project factoring in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned interface calling method based on project factoring. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0094] The processor can call the information and application programs stored in the memory through the transmission device to execute the following steps: determine the configuration information corresponding to the interface to be called based on the interface calling process included in the preset project factoring implementation process, wherein the interface calling process is used to indicate the call of the interface to be called; generate an interface calling request according to the configuration information corresponding to the interface to be called; send the interface calling request to the interface to be called, wherein the interface to be called responds to the interface calling request, processes the data to be processed included in the interface calling request, and returns the processed data.

[0095] Optionally, the processor may also execute the program code of the following steps: based on the interface calling process included in the pre-set project factoring implementation process, determine the configuration information corresponding to the interface to be called, including: reading the progress of the project factoring implementation process; when the progress of the project factoring implementation process reaches the interface calling process, retrieving the configuration information of the interface to be called from the database.

[0096] Optionally, the processor may also execute program code for the following steps: determining configuration information corresponding to the interface to be called based on an interface calling process included in a preset project factoring implementation process, and also including: retrieving configuration information of multiple interfaces from a database at a predetermined frequency; reading the progress of the project factoring implementation process; and determining configuration information corresponding to the interface to be called in the configuration information of multiple interfaces when the progress of the project factoring implementation process reaches the interface calling process.

[0097] Optionally, the processor may also execute program code of the following steps: generating an interface call request according to the configuration information corresponding to the interface to be called, including: identifying the configuration information corresponding to the interface to be called, and determining the identification address and request format of the interface to be called; obtaining the data to be processed included in the interface call process; generating an interface call request based on the identification address and request format of the interface to be called, and the data to be processed.

[0098] Optionally, the processor may also execute program code of the following steps: the method also includes: obtaining an interface call result; when the interface call result indicates a failure in calling the interface to be called, identifying configuration information corresponding to the interface to be called, and determining a retry strategy for the interface to be called; and re-requesting to call the interface to be called based on the retry strategy.

[0099] Optionally, the processor may also execute program code of the following steps: the method also includes: identifying configuration information corresponding to the interface to be called, and determining prompt conditions and prompt policies of the interface to be called; when the response of the interface to be called meets the corresponding prompt conditions, sending prompt information according to the prompt policy of the interface to be called, wherein the prompt information indicates that an error has occurred in the interface to be called.

[0100] By adopting the embodiment of the present invention, a scheme for interface calling based on project factoring is provided. The configuration information corresponding to the interface to be called is determined by the interface calling process included in the implementation process of the pre-set project factoring, wherein the interface calling process is used to indicate the calling of the interface to be called; according to the configuration information corresponding to the interface to be called, an interface calling request is generated; the interface calling request is sent to the interface to be called, wherein the interface to be called responds to the interface calling request, processes the data to be processed included in the interface calling request, and returns the processed data, thereby achieving the purpose of generating an interface calling request according to the corresponding configuration information. When the financial institution performs system upgrades and business expansions, the configuration information corresponding to the interface to be called can be reset, and a new interface calling request can be generated according to the new configuration information and the interface can be called again accordingly, thereby solving the technical problem of the difficulty of adjusting the interface when the financial institution performs system upgrades and business expansions, thereby achieving the technical effect of improving the efficiency of interface calling.

[0101] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0102] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the interface calling method based on project factoring provided in the above embodiment.

[0103] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0104] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: determining configuration information corresponding to the interface to be called based on an interface calling process included in a preset project factoring implementation process, wherein the interface calling process is used to indicate the calling of the interface to be called; generating an interface calling request according to the configuration information corresponding to the interface to be called; sending the interface calling request to the interface to be called, wherein the interface to be called responds to the interface calling request, processes the data to be processed included in the interface calling request, and returns the processed data.

[0105] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: based on the interface calling process included in the pre-set project factoring implementation process, determining the configuration information corresponding to the interface to be called, including: reading the progress of the project factoring implementation process; when the progress of the project factoring implementation process reaches the interface calling process, retrieving the configuration information of the interface to be called from the database.

[0106] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: determining configuration information corresponding to the interface to be called based on an interface calling process included in a preset project factoring implementation process, and also including: retrieving the respective configuration information of multiple interfaces from a database at a predetermined frequency; reading the progress of the project factoring implementation process; and when the progress of the project factoring implementation process reaches the interface calling process, determining the configuration information corresponding to the interface to be called in the respective configuration information of the multiple interfaces.

[0107] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: generating an interface call request based on configuration information corresponding to the interface to be called, including: identifying the configuration information corresponding to the interface to be called, and determining the identification address and request format of the interface to be called; obtaining the data to be processed included in the interface call process; generating an interface call request based on the identification address and request format of the interface to be called, and the data to be processed.

[0108] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: the method also includes: obtaining an interface call result; when the interface call result indicates a failure in calling the interface to be called, identifying configuration information corresponding to the interface to be called, and determining a retry strategy for the interface to be called; based on the retry strategy, re-requesting to call the interface to be called.

[0109] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: the method also includes: identifying configuration information corresponding to the interface to be called, and determining the prompt conditions and prompt policies of the interface to be called; when the response of the interface to be called meets the corresponding prompt conditions, sending prompt information according to the prompt policy of the interface to be called, wherein the prompt information indicates that an error has occurred in the interface to be called.

[0110] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the interface calling method based on project factoring in each embodiment of the present application.

[0111] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0112] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0113] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0116] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0117] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An interface calling method based on project factoring, It is characterized in that include: Determine configuration information corresponding to the interface to be called based on an interface calling process included in a preset project factoring implementation process, wherein the interface calling process is used to instruct to call the interface to be called; Generate an interface call request according to the configuration information corresponding to the interface to be called; The interface call request is sent to the interface to be called, wherein the interface to be called responds to the interface call request, processes the data to be processed included in the interface call request, and returns the processed data.

2. The method according to claim 1, It is characterized in that The implementation process of the project factoring based on the preset includes an interface calling process, and determining the configuration information corresponding to the interface to be called, including: Read the progress of the implementation process of the project factoring; When the progress of the implementation process of the project factoring reaches the interface calling process, the configuration information of the interface to be called is retrieved from the database.

3. The method according to claim 1, It is characterized in that The implementation process of the project factoring based on the preset includes an interface calling process, determining the configuration information corresponding to the interface to be called, and also includes: Retrieving respective configuration information of the plurality of interfaces from a database according to a predetermined frequency; Read the progress of the implementation process of the project factoring; When the progress of the implementation process of the project factoring reaches the interface calling process, the configuration information corresponding to the interface to be called is determined in the configuration information of each of the multiple interfaces.

4. The method according to claim 1, It is characterized in that The step of generating an interface call request according to the configuration information corresponding to the interface to be called includes: Identify the configuration information corresponding to the interface to be called, and determine the identification address and request format of the interface to be called; Obtaining the data to be processed included in the interface calling process; The interface calling request is generated based on the identification address and request format of the interface to be called and the data to be processed.

5. The method according to any one of claims 1 to 4, It is characterized in that Also includes: Get the interface call result; In the case where the interface call result indicates that calling the interface to be called has failed, identifying the configuration information corresponding to the interface to be called, and determining a retry strategy for the interface to be called; Based on the retry strategy, re-request to call the to-be-called interface.

6. The method according to claim 5, It is characterized in that Also includes: Identify the configuration information corresponding to the interface to be called, and determine the prompt condition and prompt strategy of the interface to be called; When the response of the interface to be called meets the corresponding prompt condition, a prompt message is sent according to the prompt policy of the interface to be called, wherein the prompt message indicates that an error occurs in the interface to be called.

7. An interface calling device based on project factoring, It is characterized in that include: A determination module, configured to determine configuration information corresponding to the interface to be called based on an interface calling process included in a preset project factoring implementation process, wherein the interface calling process is used to indicate calling the interface to be called; A generating module, used for generating an interface calling request according to the configuration information corresponding to the interface to be called; The sending module is used to send the interface call request to the interface to be called, wherein the interface to be called responds to the interface call request, processes the data to be processed included in the interface call request, and returns the processed data.

8. A non-volatile storage medium, It is characterized in that The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the interface calling method based on project factoring as described in any one of claims 1 to 6.

9. A computer device, It is characterized in that include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is running, the processor executes the interface calling method based on project factoring as described in any one of claims 1 to 6.

10. A computer program product comprising computer instructions, It is characterized in that The computer instructions are executed by the processor to implement the interface calling method based on project factoring as described in any one of claims 1 to 6.

Citation Information

Cited By

  • Electronic tax invoice processing method and apparatus, and related device

    WO2026194296A1