Method, device and equipment for processing business data and computer readable medium
Through automated code submission, compilation, deployment and testing processes, the problem of low efficiency of manual code processing is solved, and faster business data processing speed is achieved.
Patent Information
- Application Number
- CN202411891262.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-03-07
AI Technical Summary
As the number of channels and business functions increases, the code configuration of the channel integration layer will also increase, resulting in low efficiency in manual code processing, which will make the speed of processing business data slow.
By responding to business processing operation requests, obtaining test tasks based on interface encoding and user identification verification, building configuration files and test messages, submitting them to the code repository and compiling and packaging, pushing them to the remote server, deploying and testing version files, and finally using the successful test version files to execute business processing operation requests.
Improves the efficiency of processing code, thereby accelerating the speed of processing business data, and reducing manual intervention through automated testing.
Smart Images

Figure CN119576796A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic program design technology, and in particular to a method, device, equipment and computer-readable medium for processing business data. Background Art
[0002] In the current era of electronic information expansion, many electronic information systems have the following situation: the original browser / server (B / S) structure provides web access. As time goes by, it is necessary to access different other channels.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: with the increase of channels and business functions, the code configuration of the channel integration layer will also increase accordingly, and manual code processing is inefficient, resulting in a slow speed of processing business data through code. Summary of the invention
[0004] In view of this, embodiments of the present invention provide a method, apparatus, device and computer-readable medium for processing business data, which can improve the efficiency of processing code and thus increase the speed of processing business data.
[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for processing business data is provided, comprising:
[0006] In response to a business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, a test task of the business processing operation request is obtained from an interface code list, and based on the test task, interface information corresponding to the interface code in the test task is obtained from a data interface database to construct a configuration file and a test message of the test task;
[0007] Submitting the configuration file of the test task to the code repository and compiling and packaging it according to the interface coding list through the calling script command of the test task, and pushing the compiled and packaged version file to the remote server;
[0008] After the remote server deploys the version file, the identifier of the version file running on the remote server is verified, and a test of the version file running on the remote server is initiated according to the test message. After the version file running on the remote server is tested successfully, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called using the successfully tested version file to execute the business processing operation request.
[0009] The responding to the business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, obtains the test task of the business processing operation request in the interface code list, and obtains the interface information corresponding to the interface code in the test task from the data interface database based on the test task to construct the configuration file and test message of the test task, including:
[0010] In response to a business processing operation request, traverse the interface code list to obtain the interface code corresponding to the user identifier, and after successfully verifying the business processing operation request based on the interface code corresponding to the message condition in the business processing operation request and the user identifier, establish a test task for the business processing operation request;
[0011] Based on the test task and according to the interface code, the interface information corresponding to the interface code in the test task is obtained from a data interface database to construct a configuration file and a test message of the test task.
[0012] The acquiring, based on the test task and according to the interface code, interface information corresponding to the interface code in the test task from a data interface database to construct a configuration file and a test message for the test task includes:
[0013] Based on the test task and according to the interface code, acquiring interface information corresponding to the interface code in the test task from a data interface database, the interface information including: interface type, request parameters and response parameters;
[0014] After successfully verifying the received configuration file according to the interface type, a request message is generated according to the type attribute and length attribute in the request parameter, and a response message is generated according to the type attribute and length attribute in the response parameter. The test message includes the request message and the response message.
[0015] The calling script command of the test task submits the configuration file of the test task to the code repository and compiles and packages it according to the interface coding list, and pushes the compiled and packaged version file to the remote server, including:
[0016] Determine submission information according to the business processing operation request and the interface code list, and submit the configuration file of the test task to the code repository and compile and package it based on the submission information through the call script command of the test task;
[0017] If the configuration file of the test task has been packaged according to the query cycle, a file push request is initiated to push the compiled and packaged version file to the remote server.
[0018] After the version file is deployed on the remote server, the identifier of the version file running on the remote server is checked, and a test of the version file running on the remote server is initiated according to the test message. After the version file running on the remote server is tested successfully, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called by using the successfully tested version file to execute the business processing operation request, including:
[0019] After the remote server deploys the version file, verifying that the identifier of the version file running on the remote server is consistent with the identifier of the version file received by the remote server;
[0020] A test is initiated for the version file running on the remote server according to the test message, and the version file running on the remote server is updated according to the test result. After the version file running on the remote server is tested successfully, the successfully tested version file is used to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request.
[0021] The step of initiating a test on the version file running on the remote server according to the test message, updating the version file running on the remote server according to the test result, and after the version file running on the remote server is successfully tested, using the successfully tested version file to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the service processing operation request includes:
[0022] Initiate a test on the version file running on the remote server according to the request message in the test message, determine the test result based on the response message in the test message and the response parameter of the version file running on the remote server, and update the version file running on the remote server according to the test result;
[0023] After the version file running on the remote server is tested successfully, the successfully tested version file is used to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request.
[0024] The method further comprises:
[0025] In response to a business processing operation request, the business processing operation request is executed based on a version file corresponding to the business processing operation request.
[0026] According to a second aspect of an embodiment of the present invention, there is provided a device for processing service data, including:
[0027] A construction module, used for responding to a business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, obtaining the test task of the business processing operation request from the interface code list, and obtaining the interface information corresponding to the interface code in the test task from the data interface database based on the test task, so as to construct a configuration file and test message of the test task;
[0028] A push module, used to submit the configuration file of the test task to the code repository and compile and package it according to the interface coding list through the calling script command of the test task, and push the compiled and packaged version file to the remote server;
[0029] A test module is used to verify the identifier of the version file running on the remote server after the version file is deployed on the remote server, and to initiate a test on the version file running on the remote server according to the test message. After the version file running on the remote server is tested successfully, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called using the successfully tested version file to execute the business processing operation request.
[0030] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for processing service data, including:
[0031] one or more processors;
[0032] a storage device for storing one or more programs,
[0033] When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.
[0034] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method as described above is implemented.
[0035] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the program is executed by a processor, the method as described above provided by an embodiment of the present invention is implemented.
[0036] An embodiment of the above invention has the following advantages or beneficial effects: in response to a business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, obtaining the test task of the business processing operation request in the interface code list, obtaining the interface information corresponding to the interface code in the test task from the data interface database based on the test task, so as to construct the configuration file and test message of the test task; submitting the configuration file of the test task to the code warehouse and compiling and packaging it according to the interface code list through the call script command of the test task, and pushing the compiled and packaged version file to the remote server; after the remote server deploys the version file, checking the identifier of the remote server running version file, and initiating the test for the version file running on the remote server according to the test message, after the version file running on the remote server is tested successfully, using the successfully tested version file to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request. The automatic execution of the version file test can improve the processing code efficiency, thereby improving the speed of processing business data.
[0037] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0039] Figure 1 is a schematic diagram of the main flow of a method for processing business data according to an embodiment of the present invention;
[0040] Figure 2 It is a schematic diagram of the process of establishing a test task and constructing a configuration file and a test message of the test task according to an embodiment of the present invention;
[0041] Figure 3 is a schematic diagram of a process of obtaining interface information of a test task from a data interface database according to an embodiment of the present invention;
[0042] Figure 4 It is a schematic diagram of the process of pushing the compiled and packaged version file to the remote server according to an embodiment of the present invention;
[0043] Figure 5 It is a schematic diagram of a process of initiating a test of a version file running on a remote server according to a test message according to an embodiment of the present invention;
[0044] Figure 6It is a schematic diagram of a flow chart of testing a version file running on a remote server according to a request message and a response message according to an embodiment of the present invention;
[0045] Figure 7 is a schematic diagram of the main structure of a device for processing business data according to an embodiment of the present invention;
[0046] Figure 8 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0047] Fig. 9 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description. The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0049] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0050] Provide web page access in the browser / server mode structure. Different access specifications and message specifications may be used. In order to prevent the need to change one or more backend service systems for each access to a different channel, the middle layer system can be extracted to perform message interaction conversion for different channels and different service systems. This middle layer is the channel integration layer.
[0051] Currently, the interface document is downloaded manually from the data interface management system. The relevant code and configuration files are developed according to the interface document and submitted to the code repository. The version file is compiled and packaged. The version file is deployed. After manually initiating a simulated message test to verify whether the transaction green light is normal, the code that succeeded the test is set in the channel integration layer. The above manual processing code processing efficiency is low, resulting in a slow speed of processing business data through code.
[0052] In order to solve the problem of low efficiency in manual code processing, which results in slow processing of business data through code, the following technical solution in the embodiments of the present invention may be adopted.
[0053] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of the main flow of a method for processing business data according to an embodiment of the present invention, using a test task test version file to execute a business processing operation request. Figure 1 As shown in 100, the following steps are specifically included:
[0054] S101. In response to a business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message conditions in the business processing operation request, obtain the test task of the business processing operation request in the interface code list, and based on the test task, obtain the interface information corresponding to the interface code in the test task from the data interface database to construct a configuration file and test message for the test task.
[0055] In the embodiment of the present invention, the business processing operation request implements web page access through the browser / server mode structure. Since the channel integration layer does not set a version file corresponding to the business processing operation request, the business processing operation request cannot implement web page access.
[0056] In response to the business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, a test task of the business processing operation request is obtained from the interface code list. Based on the test task, interface information corresponding to the interface code in the test task is obtained from the data interface database to construct a configuration file and test message of the test task.
[0057] After receiving a business processing operation request, in order to improve the security of data in banking business, the business processing operation request needs to be verified.
[0058] Specifically, the business processing operation request is verified based on the interface code corresponding to the message condition in the business processing operation request and the user identifier. As an example, the user identifier in the business processing operation request queries the interface code list to obtain the interface code corresponding to the user identifier. If the interface code corresponding to the user identifier is consistent with the interface code corresponding to the message condition in the business processing operation request, it means that the user has the authority to operate the interface, and the business processing operation request is successfully verified. If the interface code corresponding to the user identifier is different from the interface code corresponding to the message condition in the business processing operation request, it means that the user does not have the authority to operate the interface, and the verification of the business processing operation request fails. The interface code list is used to ensure the security of data during the transmission process.
[0059] See also Figure 2 That is 200, Figure 2 The present invention is a flowchart of establishing a test task and constructing a configuration file and a test message for the test task according to an embodiment of the present invention. The flowchart specifically includes the following steps:
[0060] S201. In response to a business processing operation request, traverse the interface code list to obtain the interface code corresponding to the user identifier, and after successfully verifying the business processing operation request based on the interface code corresponding to the message condition in the business processing operation request and the user identifier, establish a test task for the business processing operation request.
[0061] After receiving the business processing operation request sent by the user, respond to the business processing operation request. In order to establish a test task, traverse the interface code list to obtain the interface code corresponding to the user identifier in the business processing operation request to verify the business processing operation request.
[0062] The interface code list includes multiple interface codes, each of which corresponds to a test function. As an example, the interface code for the single transfer function is ZH0001, the interface code for the batch transfer function is ZH0002, the interface code for the batch transfer result query function is CH0002, the interface code for the account balance query function is CH0003, and the interface code for the account detail query function is CH0004.
[0063] In an embodiment of the present invention, after traversing the interface code list to obtain the interface code corresponding to the user identifier, the interface code corresponding to the message condition in the business processing operation request is verified with the interface code corresponding to the user identifier. If the interface code corresponding to the user identifier is consistent with the interface code corresponding to the message condition in the business processing operation request, it means that the user has the authority to operate the interface, and the business processing operation request is successfully verified.
[0064] After the user ID successfully verifies the business process operation request, a test task for the business process operation request is established.
[0065] S202. Based on the test task and according to the interface code, obtain interface information corresponding to the interface code in the test task from a data interface database to construct a configuration file and a test message of the test task.
[0066] According to the interface code, the interface information corresponding to the interface code in the test task is obtained from the data interface database, and the configuration file and test message of the test task can be constructed.
[0067] As an example, the interface information is obtained from the data interface database. As an example, the interface information includes: interface type, request field, and response field.
[0068] See also Figure 3 That is 300, Figure 3 The flowchart of obtaining the interface information of the test task from the data interface database according to an embodiment of the present invention includes the following steps:
[0069] S301. Based on the test task and according to the interface code, obtain the interface information corresponding to the interface code in the test task from the data interface database, where the interface information includes: interface type, request parameters and response parameters.
[0070] Based on the test task and the interface code in the network request, the interface information corresponding to the interface code in the test task is obtained from the data interface database. The interface information includes: interface type, request parameters and response parameters. As an example, the request parameters include: request parameter field; the response parameters include: response parameter field.
[0071] In banking systems, since there are many interfaces involved, interface coding can quickly locate and identify specific interfaces.
[0072] S302. After successfully verifying the received configuration file according to the interface type, a request message is generated according to the type attribute and length attribute in the request parameter, and a response message is generated according to the type attribute and length attribute in the response parameter. The test message includes a request message and a response message.
[0073] In an embodiment of the present invention, the received configuration file is successfully verified according to the interface type, that is, the configuration file needs to satisfy the interface type.
[0074] The test message includes a request message and a response message. The request message is generated according to the type attribute and the length attribute in the request parameter. Specifically, the request message is generated according to the type attribute of the request parameter field in the request parameter and the length attribute of the request parameter field in the request parameter. The request message is used to simulate the interaction with the front-end system to verify the correctness of the version file. Moreover, the format of the request message includes xml or json, and the diversity of the format of the request message improves the adaptability with various front-end systems.
[0075] A response message is generated according to a type attribute and a length attribute in a response parameter. Specifically, a response message is generated according to a type attribute of a response parameter field in a response parameter and a length attribute of a response parameter field in a response parameter. As an example, the response message is used for a baffle test. The format of the response message includes xml or json, and the diversity of the format of the response message improves compatibility with a variety of backend systems.
[0076] exist Figure 3 In the embodiment, the interface information is used to generate request messages and response messages in multiple formats to achieve automatic testing.
[0077] S102: Submit the configuration file of the test task to the code repository and compile and package it according to the interface coding list through the calling script command of the test task, and push the compiled and packaged version file to the remote server.
[0078] In an embodiment of the present invention, the configuration file needs to be sent to the remote server. The configuration file of the test task can be submitted to the code repository and compiled and packaged according to the interface coding list using the call script command of the test task, and the compiled and packaged version file can be pushed to the remote server to realize automatic push of the version file.
[0079] See also Figure 4 That is 400, Figure 4 This is a flow chart of pushing the compiled and packaged version file to a remote server according to an embodiment of the present invention. Specifically, it includes the following steps:
[0080] S401. Determine submission information according to the business processing operation request and the interface code list, and submit the configuration file of the test task to the code repository and compile and package it based on the submission information through the call script command of the test task.
[0081] In an embodiment of the present invention, the submission information is determined according to the business processing operation request and the interface code list. As an example, the submission information includes: newly added transactions ZH0001 and CH0001.
[0082] Based on the submission information, the test task configuration file is submitted to the code repository and compiled and packaged through the test task call script command.
[0083] S402: If the configuration file of the test task is packaged according to the query period, a file push request is initiated to push the compiled and packaged version file to the remote server.
[0084] In an embodiment of the present invention, a query cycle is used to actively query whether the configuration file of the test task has been packaged. If the configuration file of the test task has been packaged according to the query cycle, a file push request is actively initiated to push the compiled and packaged version file to the remote server. As an example, the file push request includes an http request or an sftp request.
[0085] exist Figure 4 In the embodiment, after the configuration file of the test task is compiled and packaged, the version file can be pushed to the remote server in a timely manner.
[0086] S103. After the version file is deployed on the remote server, the identifier of the version file running on the remote server is checked, and a test of the version file running on the remote server is initiated according to the test message. After the version file running on the remote server is tested successfully, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called using the successfully tested version file to execute the business processing operation request.
[0087] In an embodiment of the present invention, the remote service area stores version files with multiple identifiers. After the remote server deploys the version file, the identifier of the version file running on the remote server is checked to determine the test object. Then, a test of the version file running on the remote server is initiated according to the test message. After the version file running on the remote server is successfully tested, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called using the successfully tested version file to execute the service processing operation request.
[0088] See also Figure 5 That is 500, Figure 5 This is a flow chart of initiating a test of a version file running on a remote server according to a test message according to an embodiment of the present invention. Specifically, the following steps are included:
[0089] S501: After the remote server deploys the version file, verify that the identifier of the version file running on the remote server is consistent with the identifier of the version file received by the remote server.
[0090] In an embodiment of the present invention, considering that a remote server stores multiple identified version files, it is necessary to check the remote server running version file. Specifically, after the remote server deploys the version file, it is checked that the identification of the remote server running version file is consistent with the identification of the version file received by the remote server, and then the version file can be tested; if it is checked that the identification of the remote server running version file is different from the identification of the version file received by the remote server, since the test message does not correspond to the identification of the remote server running version file, the test version file fails, and it is necessary to run the version file corresponding to the test message on the remote server.
[0091] S502. Initiate a test on the version file running on the remote server according to the test message, update the version file running on the remote server according to the test result, and after the version file running on the remote server is tested successfully, use the successfully tested version file to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request.
[0092] In an embodiment of the present invention, a test is initiated for the version file running on the remote server according to the test message. The test result reflects the applicability of the version file, and the version file running on the remote server can be updated according to the test result.
[0093] After the version file test of the remote server is successful, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called using the successfully tested version file to execute the business processing operation request. Only when the version file test is successful can the interface information corresponding to the interface code be used to execute the business processing operation request, otherwise the business processing operation request cannot be executed through the interface information corresponding to the interface code. This makes the interface information controllable.
[0094] See also Figure 6 That is 600, Figure 6 This is a flow chart of testing a version file running on a remote server according to a request message and a response message according to an embodiment of the present invention. Specifically, it includes the following steps:
[0095] S601. Initiate a test on the version file running on the remote server according to the request message in the test message, determine the test result based on the response message in the test message and the response parameters of the version file running on the remote server, and update the version file running on the remote server according to the test result.
[0096] In an embodiment of the present invention, a test on a version file running on a remote server is initiated according to a request message in a test message to verify the integrity of the version file.
[0097] The test result is determined based on the response message in the test message and the response parameters of the version file running on the remote server, and the version file running on the remote server is updated according to the test result. As an example, the test result includes: the version file lacks a configuration payment account error, and during the test, the payment account cannot be transmitted to the backend system. The payment account is configured in the version file according to the test result to update the version file running on the remote server.
[0098] S602: After the version file running on the remote server is tested successfully, the successfully tested version file is used to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request.
[0099] After the version file running on the remote server is tested successfully, the successfully tested version file is used to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request.
[0100] exist Figure 6 In the embodiment, the version file running on the remote server is updated through the test results to improve the validity of the version file.
[0101] In one embodiment of the present invention, in response to a business processing operation request, the business processing operation request is executed based on a version file corresponding to the business processing operation request.
[0102] The channel integration layer has set up the code configuration and version file corresponding to the business processing operation request, then in response to the business processing operation request, the business processing operation request is executed based on the version file corresponding to the business processing operation request to realize web page access.
[0103] In the above-mentioned embodiment of the present invention, in response to a business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, obtain the test task of the business processing operation request in the interface code list, and obtain the interface information corresponding to the interface code in the test task from the data interface database based on the test task to construct the configuration file and test message of the test task; submit the configuration file of the test task to the code warehouse and compile and package it according to the interface code list through the call script command of the test task, and push the compiled and packaged version file to the remote server; after the remote server deploys the version file, check the identifier of the remote server running version file, and initiate a test for the version file running on the remote server according to the test message, and after the version file running on the remote server is tested successfully, use the successfully tested version file to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request. The automatic execution of the version file test can improve the processing code efficiency, thereby improving the speed of processing business data.
[0104] See also Figure 7 , Figure 7 is a schematic diagram of the main structure of a device for processing business data according to an embodiment of the present invention. The device for processing business data can implement a method for processing business data, such as Figure 7 As shown in 700, the device for processing business data specifically includes:
[0105] A construction module 701 is used to respond to a business processing operation request, obtain a test task of the business processing operation request from an interface code list after successfully verifying the business processing operation request based on the interface code corresponding to the message condition in the business processing operation request and the user identifier, and obtain interface information corresponding to the interface code in the test task from a data interface database based on the test task to construct a configuration file and a test message for the test task;
[0106] The push module 702 is used to submit the configuration file of the test task to the code repository and compile and package it according to the interface code list through the calling script command of the test task, and push the compiled and packaged version file to the remote server;
[0107] The test module 703 is used to verify the identifier of the version file running on the remote server after the version file is deployed on the remote server, and to initiate a test on the version file running on the remote server according to the test message. After the version file running on the remote server is tested successfully, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called using the successfully tested version file to execute the business processing operation request.
[0108] In one embodiment of the present invention, the construction module 701 is specifically used to respond to the business processing operation request, traverse the interface code list to obtain the interface code corresponding to the user identifier, and after successfully verifying the business processing operation request based on the interface code corresponding to the message condition in the business processing operation request and the user identifier, establish a test task for the business processing operation request;
[0109] Based on the test task and according to the interface code, the interface information corresponding to the interface code in the test task is obtained from a data interface database to construct a configuration file and a test message of the test task.
[0110] In one embodiment of the present invention, the construction module 701 is specifically used to obtain interface information corresponding to the interface code in the test task from a data interface database based on the test task according to the interface code, the interface information including: interface type, request parameters and response parameters;
[0111] After successfully verifying the received configuration file according to the interface type, a request message is generated according to the type attribute and length attribute in the request parameter, and a response message is generated according to the type attribute and length attribute in the response parameter. The test message includes the request message and the response message.
[0112] In one embodiment of the present invention, the push module 702 is specifically used to determine the submission information according to the business processing operation request and the interface code list, and submit the configuration file of the test task to the code repository and compile and package it based on the submission information through the call script command of the test task;
[0113] If the configuration file of the test task has been packaged according to the query cycle, a file push request is initiated to push the compiled and packaged version file to the remote server.
[0114] In one embodiment of the present invention, the testing module 703 is specifically used to verify that the identifier of the version file running on the remote server is consistent with the identifier of the version file received by the remote server after the version file is deployed on the remote server;
[0115] A test is initiated for the version file running on the remote server according to the test message, and the version file running on the remote server is updated according to the test result. After the version file running on the remote server is tested successfully, the successfully tested version file is used to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request.
[0116] In one embodiment of the present invention, the test module 703 is specifically used to initiate a test on the version file running on the remote server according to the request message in the test message, determine the test result based on the response message in the test message and the response parameter of the version file running on the remote server, and update the version file running on the remote server according to the test result;
[0117] After the version file running on the remote server is tested successfully, the successfully tested version file is used to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request.
[0118] In one embodiment of the present invention, the construction module 701 is specifically configured to respond to a business processing operation request and execute the business processing operation request based on a version file corresponding to the business processing operation request.
[0119] Figure 8 An exemplary system architecture 800 is shown to which the method for processing business data or the apparatus for processing business data according to the embodiments of the present invention can be applied.
[0120] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. Network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and server 805. Network 804 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0121] Users can use terminal devices 801, 802, and 803 to interact with server 805 through network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, and 803, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0122] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0123] The server 805 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 801, 802, and 803. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0124] It should be noted that the method for processing business data provided in the embodiment of the present invention is generally executed by the server 805 , and accordingly, the device for processing business data is generally set in the server 805 .
[0125] It should be understood that Figure 8 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0126] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the method for processing business data provided by the embodiment of the present invention is implemented.
[0127] Reference below Fig. 9 , which shows a schematic diagram of the structure of a computer system 900 of a terminal device suitable for implementing an embodiment of the present invention. Fig. 9 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0128] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0129] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.
[0130] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present invention are executed.
[0131] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0132] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0133] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, may be described as: a processor includes a construction module 701, a push module 702 and a test module 703. The names of these modules do not constitute limitations on the modules themselves in certain cases. For example, the construction module may also be described as "used to respond to a business processing operation request, and after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, obtain the test task of the business processing operation request in the interface code list, and obtain the interface information corresponding to the interface code in the test task from the data interface database based on the test task, so as to construct a configuration file and test message for the test task".
[0134] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0135] In response to a business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, a test task of the business processing operation request is obtained from an interface code list, and based on the test task, interface information corresponding to the interface code in the test task is obtained from a data interface database to construct a configuration file and a test message of the test task;
[0136] Submitting the configuration file of the test task to the code repository and compiling and packaging it according to the interface coding list through the calling script command of the test task, and pushing the compiled and packaged version file to the remote server;
[0137] After the remote server deploys the version file, the identifier of the version file running on the remote server is verified, and a test of the version file running on the remote server is initiated according to the test message. After the version file running on the remote server is tested successfully, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called using the successfully tested version file to execute the business processing operation request.
[0138] According to the technical solution of the embodiment of the present invention, in response to a business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, obtain the test task of the business processing operation request in the interface code list, and obtain the interface information corresponding to the interface code in the test task from the data interface database based on the test task to construct the configuration file and test message of the test task; submit the configuration file of the test task to the code warehouse and compile and package it according to the interface code list through the call script command of the test task, and push the compiled and packaged version file to the remote server; after the remote server deploys the version file, check the identifier of the remote server running version file, and initiate the test for the version file running on the remote server according to the test message, after the version file running on the remote server is tested successfully, use the successfully tested version file to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request. The automatic execution of the version file test can improve the processing code efficiency, thereby improving the speed of processing business data.
[0139] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0140] It should be noted that in the technical solution of the present invention, the collection, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Necessary measures should be taken for user personal information to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. Once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0141] When applicable, including in certain relevant applications, protect user privacy by de-identifying data, such as by removing specific identifiers (e.g., date of birth, etc.) when applicable, controlling the amount or specificity of data stored (e.g., collecting location data at a city level rather than at a specific address level), controlling how data is stored, and / or other de-identification methods.
Claims
1. A method for processing business data, characterized in that: include: In response to a business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, a test task of the business processing operation request is obtained from an interface code list, and based on the test task, interface information corresponding to the interface code in the test task is obtained from a data interface database to construct a configuration file and a test message of the test task; Submitting the configuration file of the test task to the code repository and compiling and packaging it according to the interface coding list through the calling script command of the test task, and pushing the compiled and packaged version file to the remote server; After the remote server deploys the version file, the identifier of the version file running on the remote server is verified, and a test of the version file running on the remote server is initiated according to the test message. After the version file running on the remote server is tested successfully, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called using the successfully tested version file to execute the business processing operation request.
2. The method for processing business data according to claim 1, characterized in that: The responding to the business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, obtains the test task of the business processing operation request in the interface code list, and obtains the interface information corresponding to the interface code in the test task from the data interface database based on the test task to construct the configuration file and test message of the test task, including: In response to the business processing operation request, traverse the interface code list to obtain the interface code corresponding to the user identifier, and after successfully verifying the business processing operation request based on the interface code corresponding to the message condition in the business processing operation request and the user identifier, establish a test task for the business processing operation request; Based on the test task and according to the interface code, the interface information corresponding to the interface code in the test task is obtained from a data interface database to construct a configuration file and a test message of the test task.
3. The method for processing business data according to claim 2, characterized in that: The acquiring, based on the test task and according to the interface code, interface information corresponding to the interface code in the test task from a data interface database to construct a configuration file and a test message for the test task includes: Based on the test task and according to the interface code, acquiring interface information corresponding to the interface code in the test task from a data interface database, the interface information including: interface type, request parameters and response parameters; After successfully verifying the received configuration file according to the interface type, a request message is generated according to the type attribute and length attribute in the request parameter, and a response message is generated according to the type attribute and length attribute in the response parameter. The test message includes the request message and the response message.
4. The method for processing business data according to claim 1, characterized in that: The calling script command of the test task submits the configuration file of the test task to the code repository and compiles and packages it according to the interface coding list, and pushes the compiled and packaged version file to the remote server, including: Determine submission information according to the business processing operation request and the interface code list, and submit the configuration file of the test task to the code repository and compile and package it based on the submission information through the call script command of the test task; If the configuration file of the test task has been packaged according to the query cycle, a file push request is initiated to push the compiled and packaged version file to the remote server.
5. The method for processing business data according to claim 1, characterized in that: After the version file is deployed on the remote server, the identifier of the version file running on the remote server is checked, and a test of the version file running on the remote server is initiated according to the test message. After the version file running on the remote server is tested successfully, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called by using the successfully tested version file to execute the business processing operation request, including: After the remote server deploys the version file, verifying that the identifier of the version file running on the remote server is consistent with the identifier of the version file received by the remote server; A test is initiated for the version file running on the remote server according to the test message, and the version file running on the remote server is updated according to the test result. After the version file running on the remote server is tested successfully, the successfully tested version file is used to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request.
6. The method for processing business data according to claim 5, characterized in that: The step of initiating a test on the version file running on the remote server according to the test message, updating the version file running on the remote server according to the test result, and after the version file running on the remote server is successfully tested, using the successfully tested version file to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the service processing operation request includes: Initiate a test on the version file running on the remote server according to the request message in the test message, determine the test result based on the response message in the test message and the response parameter of the version file running on the remote server, and update the version file running on the remote server according to the test result; After the version file running on the remote server is tested successfully, the successfully tested version file is used to call the interface information corresponding to the interface code corresponding to the message condition in the processing operation request to execute the business processing operation request.
7. The method for processing business data according to claim 1, characterized in that: The method further comprises: In response to a business processing operation request, the business processing operation request is executed based on a version file corresponding to the business processing operation request.
8. A device for processing business data, characterized in that: include: A construction module, used for responding to a business processing operation request, after successfully verifying the business processing operation request based on the interface code and user identifier corresponding to the message condition in the business processing operation request, obtaining the test task of the business processing operation request from the interface code list, and obtaining the interface information corresponding to the interface code in the test task from the data interface database based on the test task, so as to construct a configuration file and test message of the test task; A push module, used to submit the configuration file of the test task to the code repository and compile and package it according to the interface coding list through the calling script command of the test task, and push the compiled and packaged version file to the remote server; A test module is used to verify the identifier of the version file running on the remote server after the version file is deployed on the remote server, and to initiate a test on the version file running on the remote server according to the test message. After the version file running on the remote server is tested successfully, the interface information corresponding to the interface code corresponding to the message condition in the processing operation request is called using the successfully tested version file to execute the business processing operation request.
9. An electronic device for processing business data, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.