International air ticket price verification method and device, storage medium and electronic equipment
By sending the verification request for international air ticket prices to the first subsystem that correctly calculates the international air ticket prices and the second subsystem to be verified, the processing results of the second subsystem are verified based on the processing results of the first subsystem, which solves the problem of inaccurate verification results caused by the inability to cover the airline function by the agent application, and achieves more accurate verification results.
Patent Information
- Application Number
- CN202411782593.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-03-28
AI Technical Summary
When verifying the freight calculation results of the airline's open system through the agent's application, the verification results are inaccurate because the functions supported by each application cannot cover the existing functions of the airline.
A method for verifying international air ticket prices is provided. By sending a target request to the first subsystem that correctly calculates the international air ticket prices and the second subsystem to be verified, the processing results of the second subsystem are verified based on the processing results of the first subsystem to obtain the verification results.
This method can perform verification analysis of full requests without affecting normal services, improves the accuracy of verification results of the second subsystem and solves the problem of inaccurate verification results.
Smart Images

Figure CN119722201A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of aviation technology, and more specifically, to a method, device, storage medium and electronic device for verifying international air ticket prices. Background Art
[0002] The airline intends to achieve de-hosting construction, transfer the host command function of the agent booking system to the microservice platform, and realize the open construction of the open booking management system, including the transfer of functions related to querying international air ticket prices and entering international air ticket prices. De-hosting requires that the open booking management system can completely replace the host system and achieve consistent functions. The open construction of the international air ticket price query and entry function includes message interactions between 10 systems. The traditional testing plan is to perform functional tests on each system, and after each system passes the test, an integration test is performed. The integration test is to string each system together according to the architecture deployment diagram to test the function of the entire system. The request for the integration test is initiated through the general front end of the airline agent, and the request is manually constructed using a test account. However, the limitations of the integration test are manifested in: on the one hand, the functions supported by the general front end of the agent cannot fully cover the existing functions of the airline customers, resulting in insufficient testing; on the other hand, the number of use cases manually operated by the test account is limited, and the test of the message between the interfaces is prone to missing use cases.
[0003] In the process of verifying the fare calculation results of the airline's open system through the agent's application in the related technology, the verification results are inaccurate because the functions supported by each application cannot cover the existing functions of the airline. No effective solution has been proposed yet. Summary of the invention
[0004] The main purpose of this application is to provide a method, device, storage medium and electronic device for verifying international air ticket prices, so as to solve the problem in the related art that in the process of verifying the fare calculation results of the airline's open system through the agent's application, the functions supported by each application cannot cover the existing functions of the airline, resulting in inaccurate verification results.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for verifying international air ticket prices is provided, and the method for verifying international air ticket prices is applied to a target system, and the target system at least includes: a first subsystem and a second subsystem, wherein the first subsystem is a system for correctly calculating international air ticket prices, and the second subsystem is a system for verifying whether the calculation result of the international air ticket price is correct, and the method includes: when it is detected that a target user initiates a target request, sending the target request to the first subsystem and the second subsystem, wherein the target request is a request for calculating the international air ticket price; processing the target request by the first subsystem to obtain a first processing result, and returning the first processing result to the target user; processing the target request by the second subsystem to obtain a second processing result; verifying the second processing result based on the first processing result to obtain a verification result, wherein the verification result represents whether the calculation result of the second subsystem is correct or incorrect.
[0006] Furthermore, the target request is a first type of request, which is a request for querying international air ticket prices. The target request is processed by the first subsystem to obtain a first processing result, and the target request is processed by the second subsystem to obtain a second processing result, including: sending the target request to the first subsystem, spelling the calculation instructions of the target request through the first subsystem, and receiving the calculation parameters of the target request; calculating the first processing result according to the calculation instructions, the calculation parameters and the calculation rules; sending the target request to the second subsystem, and calculating the third processing result based on the calculation parameters and the calculation rules through the second subsystem; converting the third processing result into a preset host instruction format to obtain the second processing result.
[0007] Furthermore, the target request is a second-type request, and the second-type request is a request for entering an international air ticket price. The target request is processed by the first subsystem to obtain a first processing result, and the target request is processed by the second subsystem to obtain a second processing result, including: sending the target request to the first subsystem, spelling the calculation instruction of the target request through the first subsystem, and receiving the calculation parameters of the target request; calculating the first international air ticket price according to the calculation instruction, the calculation parameters and the calculation rules; writing the first international air ticket price into the passenger order information, and determining the first processing result according to the writing result; sending the target request to the second subsystem, and calculating the second international air ticket price based on the calculation parameters and the calculation rules through the second subsystem; writing the second international air ticket price into the log data according to the preset host instruction format to obtain the second processing result.
[0008] Furthermore, the second processing result is verified based on the first processing result to obtain a verification result, including: obtaining index information, wherein the index information stores the correspondence between first-category identification information and second-category identification information, the first-category identification information includes identification information of the processing result of the first subsystem, and the second-category identification information includes identification information of the processing result of the second subsystem; storing the first processing result in a target database based on the first identification information, wherein the first identification information is identification information of the first processing result; determining second identification information based on the index information, wherein the second identification information is identification information that has a corresponding relationship with the first identification information; storing the second processing result in the target database based on the second identification information; comparing the first processing result and the second processing result in the target database, and determining the verification result based on the comparison result.
[0009] Furthermore, storing the first processing result in a target database based on the first identification information includes: acquiring the first log data of the first subsystem at every preset time period; determining, in the first log data, the first log data corresponding to the first processing result based on the first identification information; parsing the first log data and converting it into a preset message format to obtain first message data; and storing the second identification information and the first message data in the target database.
[0010] Furthermore, storing the second processing result in the target database according to the second identification information includes: acquiring second log data of the second subsystem at every preset time period; determining second message data corresponding to the second processing result in the second log data according to the second identification information; deleting the first message data stored in the target database; and storing the first message data and the second message data in the target database.
[0011] Furthermore, after verifying the second processing result based on the first processing result to obtain a verification result, the method also includes: when the verification result indicates that the calculation result of the second subsystem is incorrect, determining target difference information between the first processing result and the second processing result; and adjusting and optimizing the second subsystem based on the target difference information.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a device for verifying international air ticket prices is provided, and the device for verifying international air ticket prices is applied to a target system, and the target system at least includes: a first subsystem and a second subsystem, wherein the first subsystem is a system for correctly calculating international air ticket prices, and the second subsystem is a system for verifying whether the calculation result of the international air ticket prices is correct, and the device includes: a sending unit, which is used to send the target request to the first subsystem and the second subsystem when it is detected that the target user initiates a target request, wherein the target request is a request for calculating the international air ticket price; a first processing unit, which is used to process the target request through the first subsystem, obtain a first processing result, and return the first processing result to the target user; a second processing unit, which is used to process the target request through the second subsystem, obtain a second processing result; and a verification unit, which is used to verify the second processing result based on the first processing result to obtain a verification result, wherein the verification result represents whether the calculation result of the second subsystem is correct or incorrect.
[0013] Furthermore, the target request is a first type of request, which is a request for querying international air ticket prices. The first processing unit includes: a first spelling subunit, used to send the target request to the first subsystem, spell the calculation instructions of the target request through the first subsystem, and receive the calculation parameters of the target request; a first calculation subunit, used to calculate the first processing result based on the calculation instructions, the calculation parameters and the calculation rules; the second processing unit includes: a second calculation subunit, used to send the target request to the second subsystem, and calculate the third processing result based on the calculation parameters and the calculation rules through the second subsystem; a conversion subunit, used to convert the third processing result into a preset host instruction format to obtain the second processing result.
[0014] Furthermore, the target request is a second type of request, and the second type of request is a request for entering an international air ticket price. The first processing unit includes: a second spelling subunit, used to send the target request to the first subsystem, spell the calculation instruction of the target request through the first subsystem, and receive the calculation parameters of the target request; a third calculation subunit, used to calculate the first international air ticket price according to the calculation instruction, the calculation parameters and the calculation rules; a first determination subunit, used to write the first international air ticket price into the passenger order information, and determine the first processing result according to the writing result; the second processing unit includes: a fourth calculation subunit, used to send the target request to the second subsystem, and calculate the second international air ticket price based on the calculation parameters and the calculation rules through the second subsystem; a writing subunit, used to write the second international air ticket price into the log data according to a preset host instruction format to obtain the second processing result.
[0015] Further, the verification unit includes: an acquisition subunit, used to acquire index information, wherein the index information stores the correspondence between first-category identification information and second-category identification information, the first-category identification information includes identification information of the processing result of the first subsystem, and the second-category identification information includes identification information of the processing result of the second subsystem; a first storage subunit, used to store the first processing result in a target database based on the first identification information, wherein the first identification information is identification information of the first processing result; a second determination subunit, used to determine the second identification information based on the index information, wherein the second identification information is identification information that has a corresponding relationship with the first identification information; a second storage subunit, used to store the second processing result in the target database based on the second identification information; a comparison subunit, used to compare the first processing result and the second processing result in the target database, and determine the verification result based on the comparison result.
[0016] Furthermore, the first storage subunit includes: a first acquisition module, used to acquire the first log data of the first subsystem at every preset time period; a first determination module, used to determine the first log data corresponding to the first processing result in the first log data according to the first identification information; a parsing module, used to parse the first log data and convert it into a preset message format to obtain first message data; a first storage module, used to store the second identification information and the first message data in the target database.
[0017] Furthermore, the second storage subunit includes: a second acquisition module, used to acquire second log data of the second subsystem at every preset time period; a second determination module, used to determine the second message data corresponding to the second processing result in the second log data according to the second identification information; a deletion module, used to delete the first message data stored in the target database; and a second storage module, used to store the first message data and the second message data in the target database.
[0018] Furthermore, the device also includes: a determination unit, used to verify the second processing result based on the first processing result, and after obtaining the verification result, when the verification result indicates that the calculation result of the second subsystem is incorrect, determine the target difference information between the first processing result and the second processing result; an optimization unit, used to adjust and optimize the second subsystem based on the target difference information.
[0019] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements any one of the above-mentioned methods for verifying international air ticket prices, and which, when executed by a processor, implements the steps of the method for verifying international air ticket prices described in each embodiment of the present application.
[0020] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned methods for verifying international air ticket prices is implemented.
[0021] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned methods for verifying international air ticket prices.
[0022] Through this application, the following steps are adopted: when it is detected that the target user initiates a target request, the target request is sent to the first subsystem and the second subsystem, wherein the target request is a request for calculating the international air ticket price; the target request is processed by the first subsystem to obtain a first processing result, and the first processing result is returned to the target user; the target request is processed by the second subsystem to obtain a second processing result; the second processing result is verified according to the first processing result to obtain a verification result, wherein the verification result represents whether the calculation result of the second subsystem is correct or incorrect, and solves the problem that in the process of verifying the fare calculation result of the airline's open system through the agent's application in the related technology, the verification result is inaccurate because the functions supported by each application cannot cover the existing functions of the airline. By using the first subsystem as a system for processing business requests and the second subsystem as a system for functions to be verified, the verification analysis of the full amount of requests can be performed without affecting normal business. At the same time, by sending the target request initiated by the target user to the first subsystem and the second subsystem, the real operation of the target user can be processed in the second subsystem to be verified, and the functions of the second subsystem are fully integrated and tested and verified, thereby improving the accuracy of the verification result of the second subsystem. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0024] Figure 1 is a flow chart of a method for verifying international air ticket prices provided in accordance with Embodiment 1 of the present application;
[0025] Figure 2 This is a schematic diagram of an optional international air ticket price verification method provided in Example 1 of the present application. Figure 1 ;
[0026] Figure 3 This is a schematic diagram of an optional international air ticket price verification method provided in Example 1 of the present application. Figure 2 ;
[0027] Figure 4 This is a schematic diagram of an optional international air ticket price verification method provided in Example 1 of the present application. Figure 3 ;
[0028] Figure 5 This is a schematic diagram of an optional international air ticket price verification method provided in Example 1 of the present application. Figure 4 ;
[0029] Figure 6 This is a schematic diagram of an optional international air ticket price verification method provided in Example 1 of the present application. Figure 5 ;
[0030] Figure 7 is a schematic diagram of a verification device for international air ticket prices provided according to Embodiment 2 of the present application;
[0031] Figure 8 This is a schematic diagram of an electronic device for verifying international air ticket prices provided according to Embodiment 5 of the present application. DETAILED DESCRIPTION
[0032] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0033] It should be noted that the user information (including but not limited to user device information, user personal information, collected data, used data, generated data, processed data, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, collected information, used information, generated information, processed information, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of relevant countries and regions, necessary confidentiality measures are taken, and public order and good morals are not violated, and corresponding operation portals are provided for users to choose to authorize or refuse. For example, an interface is set between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0034] It should be noted that this application provides users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0035] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0037] Embodiment 1
[0038] The international air ticket price verification method provided in the first embodiment of the present application is applied to a target system, and the target system at least includes: a first subsystem and a second subsystem, wherein the first subsystem is a system for correctly calculating the international air ticket price, and the second subsystem is a system for verifying whether the calculation result of the international air ticket price is correct. The present invention is described below in conjunction with the preferred implementation steps. Figure 1 : is a flow chart of a method for verifying international air ticket prices according to the first embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0039] Step S101, when it is detected that a target user initiates a target request, the target request is sent to the first subsystem and the second subsystem, wherein the target request is a request for calculating international air ticket prices.
[0040] The verification method for international air ticket prices provided in Example 1 of the present application can be applied to the airline's system (i.e., the target system mentioned above), wherein the target system includes at least: a first subsystem and a second subsystem. The first subsystem can be called an agent reservation system, which allows various agents to book flights for customers, query flight information, manage customers' travel plans, and provide other travel-related services. In order to implement de-hosting construction in the airline's system, transfer the host command function of the agent reservation system to the microservice platform, and realize the function transfer including querying international air ticket prices and entering international air ticket price-related instructions, it is necessary to build and verify an open reservation management system, i.e., the second subsystem mentioned above.
[0041] In the first embodiment, in order to verify the accuracy of the functions of the second subsystem for querying and entering international air ticket prices, when the target user initiates a target request related to calculating the international air ticket price, the target request can be sent to the agent reservation system (CRS for short, i.e. the first subsystem mentioned above) and the open reservation management system (i.e. the second subsystem mentioned above) respectively, so as to verify whether the execution function of the second subsystem is accurate based on the processing results of the first subsystem on the target request and the processing results of the second subsystem on the target request.
[0042] Target users refer to users who initiate target requests related to calculating international air ticket prices, for example, users using the airline sales front end, users using the agent general front end (agents refer to individuals or companies that sell air tickets, provide customer service, and handle other airline-related business on behalf of an airline, and the agent general front end refers to the front-end application used by airline agents to provide services to customers), or internal employees of the airline.
[0043] The target request refers to a target request related to calculating international air ticket prices, for example, a query request for querying international air ticket prices (i.e., a first-class request) and an entry request for entering international air ticket prices (i.e., a second-class request). It should be noted that the first-class request and the second-class request are key links in the airline system business process, and the target request may also include other requests in addition to the first-class request and the second-class request, which are not specifically limited in the first embodiment.
[0044] Step S102: Process the target request through the first subsystem to obtain a first processing result, and return the first processing result to the target user.
[0045] In the first embodiment, the first subsystem parses the user request into a host instruction format, and the simulation access interface (MCSS for short) forwards the instruction corresponding to the target request to the first subsystem, and the first subsystem completes the target request to obtain a first processing result, and sends the first processing result returned by the target request to the target user.
[0046] Exemplarily, if the target request is a first-category request, the query result of the target request is obtained through the first subsystem, and the query result is returned to the Internet booking service interface, and then returned to the target user through the Internet booking service interface, and the above-mentioned first processing result is determined based on the query result returned to the Internet booking service interface; if the target request is a second-category request, the calculation result of the target request is obtained through the first subsystem, the international air ticket price selected by the target user is entered, and written into the passenger order information (PNR for short) to obtain the above-mentioned first processing result.
[0047] Step S103: Process the target request through the second subsystem to obtain a second processing result.
[0048] In the first embodiment, the second subsystem does not need to spell out the host command, but only needs to forward the target request to multiple modules included in the second subsystem, and execute the target request through multiple modules to obtain the above-mentioned second processing result. Exemplarily, if the target request is a first-class request, the target request is forwarded to the fare module of the second subsystem, and the fare module executes the query of the international air ticket price to obtain the above-mentioned second processing result; if the target request is a second-class request, the fare calculation group generation service (DFSQ for short) is called to obtain the fare calculation group item, which is entered into the log file through the reservation access module and the reservation management module to obtain the above-mentioned second processing result.
[0049] Step S104, verifying the second processing result according to the first processing result to obtain a verification result, wherein the verification result indicates whether the calculation result of the second subsystem is correct or incorrect.
[0050] In the first embodiment, in order to verify that the second subsystem can accurately execute the target request and obtain accurate processing results, it is necessary to compare and verify the first processing result of the first subsystem and the second processing result of the second subsystem, and determine whether the function of the second subsystem is normal according to the verification result. Exemplarily, if the first processing result and the second processing result are consistent, it is determined that the second subsystem can accurately execute the target request; if the first processing result and the second processing result are inconsistent, it is determined that the second subsystem cannot accurately execute the target request and needs to be further modified and adjusted.
[0051] In an optional embodiment, the process of verifying the first processing result of the first subsystem and the second processing result of the second subsystem can be as follows: Figure 2 After receiving the target request initiated by the target user, the target request is sent to the Internet booking service interface, and the target request is asynchronously sent to the transaction service interface of the first subsystem (such as Figure 2 "Transaction Service Interface (Host)" in the second subsystem) and the transaction service interface of the second subsystem (such as Figure 2 The first subsystem (such as Figure 2 The "agent reservation system" in the second subsystem processes the target request to obtain a first processing result and writes it into the log data. Figure 2 The "Open Booking Management System" in the first subsystem) obtains the second processing result by processing the target request, and obtains the message data. The log data processed by the first subsystem and the message data processed by the second subsystem are compared, and the verification result for the second subsystem is determined according to the comparison result.
[0052] In summary, the verification method of international air ticket prices provided in the first embodiment of the present application, when a target user initiates a target request, sends the target request to the first subsystem and the second subsystem, wherein the target request is a request for calculating the international air ticket price; the target request is processed by the first subsystem to obtain a first processing result, and the first processing result is returned to the target user; the target request is processed by the second subsystem to obtain a second processing result; the second processing result is verified according to the first processing result to obtain a verification result, wherein the verification result represents whether the calculation result of the second subsystem is correct or incorrect, and solves the problem that in the process of verifying the fare calculation result of the airline's open system through the agent's application in the related technology, the verification result is inaccurate because the functions supported by each application cannot cover the existing functions of the airline. By using the first subsystem as a system for processing business requests and the second subsystem as a system for functions to be verified, the verification analysis of the full amount of requests can be performed without affecting normal business. At the same time, by sending the target request initiated by the target user to the first subsystem and the second subsystem, the real operation of the target user can be processed in the second subsystem to be verified, and the functions of the second subsystem are fully integrated and tested and verified, thereby improving the accuracy of the verification result of the second subsystem.
[0053] Optionally, in the method for verifying international air ticket prices provided in Example 1 of the present application, the above-mentioned target request is a first type of request, and the first type of request is a request for querying international air ticket prices. The target request is processed by the first subsystem to obtain a first processing result, and the target request is processed by the second subsystem to obtain a second processing result, including: sending the target request to the first subsystem, spelling the calculation instructions of the target request through the first subsystem, and receiving the calculation parameters of the target request; calculating the first processing result according to the calculation instructions, calculation parameters and calculation rules; sending the target request to the second subsystem, and calculating the third processing result based on the calculation parameters and calculation rules through the second subsystem; converting the third processing result into a preset host instruction format to obtain the second processing result.
[0054] In an optional embodiment, when the target request is a query request, the processing process of the first subsystem may be as follows: Figure 3 As shown, the target request is received by the Internet booking service interface, and the transaction service interface (such as Figure 3 The first subsystem then sends the required information to the passenger information service system (such as Figure 3 "Passenger Information Service System (Host)" in the Figure 3The first fare calculation system receives the user information (e.g., user order information, identity information, amount information, etc., i.e., the above-mentioned calculation parameters) provided by the passenger information service system, and calculates the international air ticket price of the target request according to the calculation instructions, user information and calculation parameters and the calculation rules provided by the first fare calculation system, and writes it into the log file as the query result of the target request, i.e., the above-mentioned first processing result.
[0055] In an optional embodiment, when the target request is a query request, the processing process of the second subsystem may be as follows: Figure 3 As shown, when the Internet booking service interface sends the target request to the first subsystem, the transaction service interface (such as Figure 3 The target request is asynchronously sent to the verification interface of the second subsystem (such as Figure 3 The "Open Booking Management System-Verification Interface" in the system is a microservice that specifically verifies the query and entry functions of international air ticket prices. This microservice is compatible with processing international fare query requests and international fare entry requests. The second subsystem sends the required information to the passenger information service system (such as Figure 3 Passenger Information Service System (Open)) and the second fare calculation system (such as Figure 3 The second fare calculation system receives the user information provided by the passenger information service system and determines the calculation rules required for calculation, and calculates the query results of the international transportation price according to the calculation rules and user information. Figure 3 The "Freight Rate Entry System (Open)" in the verification interface outputs the message data of the query result of the international transport price according to the host instruction format defined by the verification interface, and writes it into the log to obtain the above-mentioned second processing result.
[0056] Optionally, in the international air ticket price verification method provided in Example 1 of the present application, the above-mentioned target request is a second-category request, and the second-category request is a request for entering an international air ticket price. The target request is processed by the first subsystem to obtain a first processing result, and the target request is processed by the second subsystem to obtain a second processing result, including: sending the target request to the first subsystem, spelling the calculation instruction of the target request through the first subsystem, and receiving the calculation parameters of the target request; calculating the first international air ticket price according to the calculation instruction, calculation parameters and calculation rules; writing the first international air ticket price into the passenger order information, and determining the first processing result according to the writing result; sending the target request to the second subsystem, and calculating the second international air ticket price based on the calculation parameters and calculation rules through the second subsystem; generating message data for the second international air ticket price according to a preset host instruction format, and writing it into the log data to obtain the second processing result.
[0057] In an optional embodiment, when the target request is an input request, the processing process of the first subsystem may be as follows: Figure 3 As shown, the target request for international air ticket prices from the Internet booking service interface passes through the transaction service interface of the first subsystem (such as Figure 3 The "Transaction Service Interface (Host)" in the first subsystem) transmits the target request to the first subsystem, and writes the calculation instructions of the target request; the first subsystem sends the required information to the passenger information service system (such as Figure 3 "Passenger Information Service System (Host)" in the Figure 3 The first fare calculation system receives the user information provided by the passenger information service system, and calculates the international air ticket price requested by the target according to the received calculation parameters, calculation instructions, user information and calculation rules provided by the first fare calculation system; the first fare entry system of the first subsystem (such as Figure 3 The "fare calculation system (host)" in the system writes the calculation result of the international air ticket price into the passenger order information, and returns the written result to the Internet booking service interface to obtain the above-mentioned second processing result.
[0058] In an optional embodiment, when the target request is an input request, the processing process of the second subsystem may be as follows: Figure 3 As shown, when the Internet booking service interface sends the target request to the first subsystem, the transaction service interface (such as Figure 3 The target request is asynchronously sent to the verification interface of the second subsystem (such as Figure 3 The second subsystem sends the required information to the passenger information service system (such as Figure 3 Passenger Information Service System (Open)) and the second fare calculation system (such as Figure 3 The second fare calculation system receives the user information provided by the passenger information service system and calculates the international transport price according to the calculation parameters, user information and the calculation rules provided by the second fare calculation system. Figure 3 The "Freight Entry System (Open)" in the system formats the calculation result of the international transport price into a host instruction to obtain a freight calculation group item; the verification interface extracts the instruction format of the freight calculation group item, records it in a log file, and obtains the above-mentioned second processing result.
[0059] Optionally, in the international air ticket price verification method provided in Example 1 of the present application, the second processing result is verified based on the first processing result to obtain a verification result, including: obtaining index information, wherein the index information stores the correspondence between the first type of identification information and the second type of identification information, the first type of identification information includes the identification information of the processing result of the first subsystem, and the second type of identification information includes the identification information of the processing result of the second subsystem; storing the first processing result in a target database based on the first identification information, wherein the first identification information is the identification information of the first processing result; determining the second identification information based on the index information, wherein the second identification information is the identification information that has a corresponding relationship with the first identification information; storing the second processing result in the target database based on the second identification information; comparing the first processing result and the second processing result in the target database, and determining the verification result based on the comparison result.
[0060] In this first embodiment, in order to verify whether the second subsystem can accurately process the target request, it is necessary to compare the first processing result with the second processing result, and determine whether the first processing result of the first subsystem and the second processing result of the second subsystem are consistent based on the comparison result to obtain the above-mentioned verification result.
[0061] In an optional embodiment, the second processing result is verified according to the first processing result, and the process of obtaining the verification result can be as follows: Figure 4 For each target request, a corresponding relationship is established between the first processing result of the first subsystem for the target request and the second processing result of the second subsystem for the target request, and the corresponding relationship is written into the index file (i.e., the above-mentioned acquisition index information). The first processing result and the second processing result both have a unique transaction number in the index information (i.e., the above-mentioned identification information, such as Figure 4 The above-mentioned first-category identification information represents the transaction number of the first processing result, and the above-mentioned second-category identification information represents the transaction number of the second processing result.
[0062] Then, the transaction number of the first processing result of the target request (i.e., the first identification information mentioned above) is determined according to the index information, and then the first processing result is stored in the key-value database (i.e., the target database mentioned above, for example, the Redis database) according to the first identification information. The transaction number of the second processing result of the target request (i.e., the second identification information mentioned above) is searched in the index information according to the first identification information, and the second processing result is stored in the Redis database according to the second identification information.
[0063] Finally, the data stored in each key-value pair of the first processing result and the data stored in each key-value pair of the second processing result are compared in the Redis database to obtain a comparison result. If the comparison result indicates that the first processing result and the second processing result are the same, it is determined that the second subsystem has passed the verification of processing the target request, and the above verification result is obtained; if the comparison result indicates that the first processing result and the second processing result are different, it is determined that the second subsystem has failed to pass the verification of processing the target request, and the difference information between the first processing result and the second processing result is recorded to obtain the above verification result.
[0064] By establishing index information, the first processing result and the second processing result of each request can be associated, which is beneficial for comparing the first processing result and the second processing result, so as to verify that the second subsystem can accurately perform its function.
[0065] Optionally, in the international air ticket price verification method provided in Example 1 of the present application, the first processing result is stored in the target database based on the first identification information, including: obtaining the first log data of the first subsystem at every preset time period; determining the first log data corresponding to the first processing result in the first log data based on the first identification information; parsing the first log data and converting it into a preset message format to obtain first message data; and storing the second identification information and the first message data in the target database.
[0066] In an optional embodiment, the process of writing the first processing result into the target database may be as follows: Figure 5 After a preset time (for example, 2 hours, 12 hours, etc., which is not specifically limited in the first embodiment), the operation log of each request in the first subsystem is exported, the first identification information corresponding to the second identification information is determined in the index information, and the first identification information (such as Figure 4 The “SAT transaction number (host)” in the message format is used to determine the operation log of the first processing result of the target request, and the first log data is obtained. The first log data is parsed into a message format that is the same as the message format of the second subsystem (that is, the preset message format) to obtain the first message data, and the first message data is stored in the Redis database with the second identification information as the key value.
[0067] Optionally, in the international air ticket price verification method provided in Example 1 of the present application, the second processing result is stored in the target database based on the second identification information, including: obtaining second log data of the second subsystem at every preset time period; determining second message data corresponding to the second processing result in the second log data based on the second identification information; deleting the first message data stored in the target database; and storing the first message data and the second message data in the target database.
[0068] In an optional embodiment, the process of writing the second processing result into the target database may be as follows: Figure 6 After a preset time (for example, 2 hours, 12 hours, etc., which is not specifically limited in the first embodiment), the operation log of each request in the second subsystem is exported, and the operation log of each request in the second subsystem is exported according to the second identification information (such as Figure 4 The "SAT transaction number (open)" in the target request is used to determine the open message corresponding to the second processing result of the target request in the operation log to obtain the second message data mentioned above. The data content corresponding to the second identification information is deleted from the Redis database, and the first message data and the second message data are stored in the Redis database again with the second identification information as the key value.
[0069] Optionally, in the international air ticket price verification method provided in Example 1 of the present application, after verifying the second processing result based on the first processing result to obtain the verification result, the above method also includes: when the verification result indicates that the calculation result of the second subsystem is incorrect, determining target difference information between the first processing result and the second processing result; and adjusting and optimizing the second subsystem based on the target difference information.
[0070] In the first embodiment, in order to ensure the normal operation of the second subsystem, after processing the log data of the target request, the first processing result stored in the target data can be used to verify the second processing result to obtain a verification result. If the verification result indicates that the second message data of the second processing result is completely consistent with the first message data of the first processing result, then it is determined that the first processing result of the first subsystem and the second processing result of the second subsystem are the same, that is, it is determined that the second subsystem is operating normally; if the verification result indicates that there is an inconsistency between the second message data of the second processing result and the first message data of the first processing result, then it is determined that the first processing result of the first subsystem and the second processing result of the second subsystem are different, that is, it is determined that there is a problem with the second subsystem, and it is necessary to mark the inconsistent content in the second message data, that is, the above-mentioned target difference information, determine the current problem of the second subsystem based on the target difference information, and make corrections and adjustments to achieve the effect of consistent processing logic between the second subsystem and the first subsystem.
[0071] Optionally, in this embodiment 1, Figure 3 It also includes Internet Booking Business Interface (IBE), Transaction Service Interface (SAT), Passenger Information Service System (CSM), Booking Query System (OR), Booking Management System (OM), Open Booking Management System-Verification Interface, International Rate System (IPRIC), Booking Access System (OI), and Agent Reservation System (CRS).
[0072] The Internet booking service interface provides sales services to the outside world. When processing the query request of international air ticket prices, the query request is encapsulated and forwarded to the backend application; when processing the entry request of international air ticket prices, the calculation result of the international air ticket prices is first verified, and then the fare calculation group items are extracted, and finally the fare calculation group items are entered into the passenger order information.
[0073] The transaction service interface includes the transaction service interface of the first subsystem (such as Figure 3 "Transaction Service Interface (Host)" in the second subsystem) and the transaction service interface of the second subsystem (such as Figure 3 The transaction service interface encapsulates and defines unified data interfaces internally, and provides interface services and push services for flight and passenger status changes externally.
[0074] The passenger information service system provides a management system for passenger and corporate customer data. When processing international air ticket price inquiry requests, it is responsible for providing corporate customer identity verification services and corporate customer quota information management.
[0075] The booking inquiry system provides inquiry services to passengers based on unified passenger order information. It can provide passenger order information based on the second subsystem and support the first subsystem to query passenger order information. When processing the inquiry request of international air ticket prices, it is responsible for providing passenger order information and supporting the information extraction and verification of the calculation rules of air ticket prices.
[0076] The booking management system provides airline users with peripheral services such as flight booking, creating or updating orders, and other order changes. When processing international air ticket price query requests, it constructs international air ticket price query requests based on the query results of the booking query system and the corporate customer identity verification results, and provides structured international air ticket price query results based on the return data of the fare calculation system; when processing international air ticket price entry requests, the fare calculation group items are written into the passenger order information.
[0077] Booking Management System - Verification Interface: A microservice designed by the booking management system to verify the query and entry functions of international air ticket prices. This microservice is compatible with processing query requests and entry requests.
[0078] The international freight rate system includes two subsystems, namely the international freight rate calculation system and the international freight rate entry system. The international freight rate calculation system provides functions such as price inquiry, price calculation, and tax calculation services for international air tickets, and the international freight rate entry system provides the host instruction format of the freight rate calculation group. When processing the query request of international air ticket prices, it receives the request of the reservation management system and generates the query result of the international air ticket prices according to the request parameters and calculation rules; when processing the entry request of international air ticket prices, it formats the calculation result of the international air ticket prices into the host instruction.
[0079] The agent reservation system refers to the host system that provides passenger reservation services to agent users, providing agent users with functions such as flight availability information query, passenger reservation and ticket issuance, and passenger refund and change services.
[0080] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0081] Embodiment 2
[0082] Embodiment 2 of the present application also provides a device for verifying international air ticket prices, and the device for verifying international air ticket prices is applied to a target system, and the target system at least includes: a first subsystem and a second subsystem, wherein the first subsystem is a system for correctly calculating international air ticket prices, and the second subsystem is a system to be verified whether the calculation result of the international air ticket price is correct. It should be noted that the device for verifying international air ticket prices of embodiment 2 of the present application can be used to execute the verification method for international air ticket prices provided in embodiment 1 of the present application. The following introduces the device for verifying international air ticket prices provided in embodiment 2 of the present application.
[0083] Figure 7 Schematic diagram of a device for verifying international air ticket prices according to Embodiment 2 of the present application. Figure 7 As shown, the device includes: a sending unit 701, a first processing unit 702, a second processing unit 703 and a verification unit 704.
[0084] Specifically, the sending unit 701 is used to send the target request to the first subsystem and the second subsystem when it is detected that the target user initiates a target request, wherein the target request is a request for calculating the price of an international air ticket.
[0085] The first processing unit 702 is used to process the target request through the first subsystem, obtain a first processing result, and return the first processing result to the target user.
[0086] The second processing unit 703 is used to process the target request through the second subsystem to obtain a second processing result.
[0087] The verification unit 704 is used to verify the second processing result according to the first processing result to obtain a verification result, wherein the verification result indicates whether the calculation result of the second subsystem is correct or incorrect.
[0088] The device for verifying international air ticket prices provided in the second embodiment of the present application, when detecting that a target user initiates a target request, sends the target request to the first subsystem and the second subsystem through the sending unit 701, wherein the target request is a request for calculating the international air ticket price; the first processing unit 702 processes the target request through the first subsystem to obtain a first processing result, and returns the first processing result to the target user; the second processing unit 703 processes the target request through the second subsystem to obtain a second processing result; the verification unit 704 verifies the second processing result based on the first processing result to obtain a verification result, wherein the verification result indicates whether the calculation result of the second subsystem is correct or incorrect, and solves the problem in the related art that in the process of verifying the fare calculation result of the airline's open system through the agent's application, the functions supported by each application cannot cover the existing functions of the airline, resulting in inaccurate verification results. By making the first subsystem a system that processes business requests and the second subsystem a system with functions to be verified, it is possible to perform verification analysis of all requests without affecting normal business. At the same time, by sending the target request initiated by the target user to the first subsystem and the second subsystem, the actual operation of the target user can be processed in the second subsystem to be verified, fully integrating and testing the functions of the second subsystem, thereby improving the accuracy of the verification results of the second subsystem.
[0089] Optionally, in the international air ticket price verification device provided in Example 2 of the present application, the above-mentioned target request is a first type of request, and the first type of request is a request to query international air ticket prices. The above-mentioned first processing unit 702 includes: a first spelling subunit, used to send the target request to the first subsystem, spell the calculation instructions of the target request through the first subsystem, and receive the calculation parameters of the target request; a first calculation subunit, used to calculate the first processing result based on the calculation instructions, calculation parameters and calculation rules; the above-mentioned second processing unit 703 includes: a second calculation subunit, used to send the target request to the second subsystem, and calculate the third processing result based on the calculation parameters and calculation rules through the second subsystem; a conversion subunit, used to convert the third processing result into a preset host instruction format to obtain a second processing result.
[0090] Optionally, in the international air ticket price verification device provided in Example 2 of the present application, the above-mentioned target request is a second-category request, and the second-category request is a request for entering an international air ticket price. The above-mentioned first processing unit 702 includes: a second spelling subunit, used to send the target request to the first subsystem, spell the calculation instruction of the target request through the first subsystem, and receive the calculation parameters of the target request; a third calculation subunit, used to calculate the first international air ticket price according to the calculation instruction, calculation parameters and calculation rules; a first determination subunit, used to write the first international air ticket price into the passenger order information, and determine the first processing result according to the writing result; the above-mentioned second processing unit 703 includes: a fourth calculation subunit, used to send the target request to the second subsystem, and calculate the second international air ticket price based on the calculation parameters and calculation rules through the second subsystem; a writing subunit, used to write the second international air ticket price into the log data according to a preset host instruction format to obtain a second processing result.
[0091] Optionally, in the international air ticket price verification device provided in Example 2 of the present application, the above-mentioned verification unit 704 includes: an acquisition subunit, used to acquire index information, wherein the index information stores the correspondence between the first type of identification information and the second type of identification information, the first type of identification information includes the identification information of the processing result of the first subsystem, and the second type of identification information includes the identification information of the processing result of the second subsystem; a first storage subunit, used to store the first processing result in the target database based on the first identification information, wherein the first identification information is the identification information of the first processing result; a second determination subunit, used to determine the second identification information based on the index information, wherein the second identification information is the identification information that has a corresponding relationship with the first identification information; the second storage subunit, used to store the second processing result in the target database based on the second identification information; a comparison subunit, used to compare the first processing result and the second processing result in the target database, and determine the verification result based on the comparison result.
[0092] Optionally, in the international air ticket price verification device provided in Example 2 of the present application, the above-mentioned first storage subunit includes: a first acquisition module, used to obtain the first log data of the first subsystem at every preset time period; a first determination module, used to determine the first log data corresponding to the first processing result in the first log data according to the first identification information; a parsing module, used to parse the first log data and convert it into a preset message format to obtain the first message data; and a first storage module, used to store the second identification information and the first message data in the target database.
[0093] Optionally, in the international air ticket price verification device provided in Example 2 of the present application, the above-mentioned second storage subunit includes: a second acquisition module, used to obtain second log data of the second subsystem at every preset time period; a second determination module, used to determine the second message data corresponding to the second processing result in the second log data according to the second identification information; a deletion module, used to delete the first message data stored in the target database; and a second storage module, used to store the first message data and the second message data in the target database.
[0094] Optionally, in the international air ticket price verification device provided in Example 2 of the present application, the above-mentioned device also includes: a determination unit, used to verify the second processing result based on the first processing result, and after obtaining the verification result, when the verification result indicates that the calculation result of the second subsystem is incorrect, determine the target difference information between the first processing result and the second processing result; an optimization unit, used to adjust and optimize the second subsystem based on the target difference information.
[0095] The international air ticket price verification device includes a processor and a memory. The above-mentioned sending unit 701, the first processing unit 702, the second processing unit 703 and the verification unit 704 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0096] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the accuracy of the verification result of the international air ticket price can be improved by adjusting the kernel parameters.
[0097] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0098] Embodiment 3 of the present invention provides a computer-readable storage medium having a program stored thereon, and the program, when executed by a processor, implements a method for verifying international air ticket prices.
[0099] A fourth embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes a method for verifying international air ticket prices when the program is running.
[0100] like Figure 8As shown, embodiment 5 of the present invention provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: when it is detected that a target user initiates a target request, the target request is sent to a first subsystem and a second subsystem, wherein the target request is a request for calculating an international air ticket price; the target request is processed by the first subsystem to obtain a first processing result, and the first processing result is returned to the target user; the target request is processed by the second subsystem to obtain a second processing result; the second processing result is verified based on the first processing result to obtain a verification result, wherein the verification result indicates whether the calculation result of the second subsystem is correct or incorrect.
[0101] When the processor executes the program, the following steps are also implemented: the above-mentioned target request is a first type of request, the first type of request is a request to query the price of international air tickets, the target request is processed by the first subsystem to obtain a first processing result, and the target request is processed by the second subsystem to obtain a second processing result, including: sending the target request to the first subsystem, spelling the calculation instruction of the target request through the first subsystem, and receiving the calculation parameters of the target request; calculating the first processing result according to the calculation instruction, calculation parameters and calculation rules; sending the target request to the second subsystem, and calculating the third processing result based on the calculation parameters and calculation rules through the second subsystem; converting the third processing result into a preset host instruction format to obtain the second processing result.
[0102] When the processor executes the program, the following steps are also implemented: the above-mentioned target request is a second-category request, the second-category request is a request for entering an international air ticket price, the target request is processed by the first subsystem to obtain a first processing result, and the target request is processed by the second subsystem to obtain a second processing result, including: sending the target request to the first subsystem, spelling the calculation instruction of the target request through the first subsystem, and receiving the calculation parameters of the target request; calculating the first international air ticket price according to the calculation instruction, calculation parameters and calculation rules; writing the first international air ticket price into the passenger order information, and determining the first processing result according to the writing result; sending the target request to the second subsystem, and calculating the second international air ticket price based on the calculation parameters and calculation rules through the second subsystem; writing the second international air ticket price into the log data according to the preset host instruction format to obtain the second processing result.
[0103] When the processor executes the program, the following steps are also implemented: verifying the second processing result based on the first processing result to obtain a verification result, including: obtaining index information, wherein the index information stores the correspondence between the first type of identification information and the second type of identification information, the first type of identification information includes the identification information of the processing result of the first subsystem, and the second type of identification information includes the identification information of the processing result of the second subsystem; storing the first processing result in a target database based on the first identification information, wherein the first identification information is the identification information of the first processing result; determining the second identification information based on the index information, wherein the second identification information is the identification information that has a corresponding relationship with the first identification information; storing the second processing result in the target database based on the second identification information; comparing the first processing result and the second processing result in the target database, and determining the verification result based on the comparison result.
[0104] When the processor executes the program, the following steps are also implemented: storing the first processing result in the target database based on the first identification information, including: obtaining the first log data of the first subsystem at every preset time period; determining the first log data corresponding to the first processing result in the first log data based on the first identification information; parsing the first log data and converting it into a preset message format to obtain the first message data; storing the second identification information and the first message data in the target database.
[0105] When the processor executes the program, the following steps are also implemented: storing the second processing result in the target database based on the second identification information, including: obtaining the second log data of the second subsystem at every preset time period; determining the second message data corresponding to the second processing result in the second log data based on the second identification information; deleting the first message data stored in the target database; and storing the first message data and the second message data in the target database.
[0106] When the processor executes the program, the following steps are also implemented: after verifying the second processing result based on the first processing result and obtaining the verification result, the above method also includes: when the verification result indicates that the calculation result of the second subsystem is incorrect, determining the target difference information between the first processing result and the second processing result; adjusting and optimizing the second subsystem based on the target difference information.
[0107] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0108] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: when it is detected that a target user initiates a target request, the target request is sent to a first subsystem and a second subsystem, wherein the target request is a request for calculating an international air ticket price; the target request is processed by the first subsystem to obtain a first processing result, and the first processing result is returned to the target user; the target request is processed by the second subsystem to obtain a second processing result; the second processing result is verified based on the first processing result to obtain a verification result, wherein the verification result indicates whether the calculation result of the second subsystem is correct or incorrect.
[0109] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: the above-mentioned target request is a first type of request, the first type of request is a request to query the price of international air tickets, the target request is processed by the first subsystem to obtain a first processing result, and the target request is processed by the second subsystem to obtain a second processing result, including: sending the target request to the first subsystem, spelling the calculation instructions of the target request through the first subsystem, and receiving the calculation parameters of the target request; calculating the first processing result according to the calculation instructions, calculation parameters and calculation rules; sending the target request to the second subsystem, and calculating the third processing result based on the calculation parameters and calculation rules through the second subsystem; converting the third processing result into a preset host instruction format to obtain the second processing result.
[0110] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: the above-mentioned target request is a second-category request, the second-category request is a request for entering an international air ticket price, the target request is processed by the first subsystem to obtain a first processing result, and the target request is processed by the second subsystem to obtain a second processing result, including: sending the target request to the first subsystem, spelling the calculation instruction of the target request through the first subsystem, and receiving the calculation parameters of the target request; calculating the first international air ticket price according to the calculation instruction, calculation parameters and calculation rules; writing the first international air ticket price into the passenger order information, and determining the first processing result according to the writing result; sending the target request to the second subsystem, and calculating the second international air ticket price based on the calculation parameters and calculation rules through the second subsystem; writing the second international air ticket price into the log data according to the preset host instruction format to obtain the second processing result.
[0111] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: verifying the second processing result based on the first processing result to obtain a verification result, including: obtaining index information, wherein the index information stores the correspondence between the first type of identification information and the second type of identification information, the first type of identification information includes the identification information of the processing result of the first subsystem, and the second type of identification information includes the identification information of the processing result of the second subsystem; storing the first processing result in a target database based on the first identification information, wherein the first identification information is the identification information of the first processing result; determining the second identification information based on the index information, wherein the second identification information is the identification information that has a corresponding relationship with the first identification information; storing the second processing result in the target database based on the second identification information; comparing the first processing result and the second processing result in the target database, and determining the verification result based on the comparison result.
[0112] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: storing a first processing result in a target database based on first identification information, including: obtaining first log data of the first subsystem at every preset time period; determining, in the first log data, the first log data corresponding to the first processing result based on the first identification information; parsing the first log data and converting it into a preset message format to obtain first message data; storing the second identification information and the first message data in the target database.
[0113] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: storing the second processing result in a target database based on the second identification information, including: obtaining the second log data of the second subsystem at every preset time period; determining the second message data corresponding to the second processing result in the second log data based on the second identification information; deleting the first message data stored in the target database; and storing the first message data and the second message data in the target database.
[0114] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: after verifying the second processing result based on the first processing result and obtaining the verification result, the above method also includes: when the verification result indicates that the calculation result of the second subsystem is incorrect, determining the target difference information between the first processing result and the second processing result; adjusting and optimizing the second subsystem based on the target difference information.
[0115] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0116] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0119] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0120] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0121] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0122] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0123] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0124] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for verifying international air ticket prices, characterized in that: The method for verifying international air ticket prices is applied to a target system, which at least includes: a first subsystem and a second subsystem, wherein the first subsystem is a system for correctly calculating international air ticket prices, and the second subsystem is a system to verify whether the calculation result of the international air ticket prices is correct, including: In the case of detecting that the target user initiates a target request, sending the target request to the first subsystem and the second subsystem, wherein the target request is a request for calculating the price of an international air ticket; Processing the target request through the first subsystem to obtain a first processing result, and returning the first processing result to the target user; Processing the target request by the second subsystem to obtain a second processing result; The second processing result is verified according to the first processing result to obtain a verification result, wherein the verification result represents whether the calculation result of the second subsystem is correct or incorrect.
2. The method according to claim 1, characterized in that The target request is a first type of request, which is a request for querying international air ticket prices. The first subsystem processes the target request to obtain a first processing result, and the second subsystem processes the target request to obtain a second processing result, including: Sending the target request to the first subsystem, spelling the calculation instruction of the target request through the first subsystem, and receiving the calculation parameters of the target request; Calculating the first processing result according to the calculation instruction, the calculation parameters and the calculation rule; Sending the target request to the second subsystem, and calculating a third processing result based on the calculation parameter and the calculation rule by the second subsystem; The third processing result is converted into a preset host instruction format to obtain the second processing result.
3. The method according to claim 1, characterized in that The target request is a second type of request, and the second type of request is a request for entering international air ticket prices. The first subsystem processes the target request to obtain a first processing result, and the second subsystem processes the target request to obtain a second processing result, including: Sending the target request to the first subsystem, spelling the calculation instruction of the target request through the first subsystem, and receiving the calculation parameters of the target request; Calculating the first international air ticket price according to the calculation instruction, the calculation parameters and the calculation rules; Writing the first international air ticket price into the passenger order information, and determining the first processing result according to the writing result; Sending the target request to the second subsystem, and calculating a second international air ticket price based on the calculation parameters and the calculation rules by the second subsystem; The second international air ticket price is written into the log data according to a preset host instruction format to obtain the second processing result.
4. The method according to claim 1, characterized in that Verifying the second processing result according to the first processing result to obtain a verification result includes: Acquire index information, wherein the index information stores a correspondence between first-category identification information and second-category identification information, the first-category identification information includes identification information of a processing result of the first subsystem, and the second-category identification information includes identification information of a processing result of the second subsystem; storing the first processing result in a target database according to first identification information, wherein the first identification information is identification information of the first processing result; Determine second identification information according to the index information, wherein the second identification information is identification information that has a corresponding relationship with the first identification information; storing the second processing result in the target database according to the second identification information; The first processing result and the second processing result in the target database are compared, and the verification result is determined according to the comparison result.
5. The method according to claim 4, characterized in that Storing the first processing result in a target database according to the first identification information includes: Acquire first log data of the first subsystem at intervals of a preset time period; In the first log data, determining the first log data corresponding to the first processing result according to the first identification information; Parsing the first log data and converting it into a preset message format to obtain first message data; The second identification information and the first message data are stored in the target database.
6. The method according to claim 5, characterized in that Storing the second processing result in the target database according to the second identification information includes: Acquire second log data of the second subsystem at intervals of a preset time period; In the second log data, determining the second message data corresponding to the second processing result according to the second identification information; Deleting the first message data stored in the target database; The first message data and the second message data are stored in the target database.
7. The method according to claim 1, characterized in that After verifying the second processing result according to the first processing result to obtain a verification result, the method further includes: In a case where the verification result indicates that the calculation result of the second subsystem is incorrect, determining target difference information between the first processing result and the second processing result; The second subsystem is adjusted and optimized according to the target difference information.
8. A device for verifying international air ticket prices, characterized in that: The international air ticket price verification device is applied to a target system, and the target system at least includes: a first subsystem and a second subsystem, wherein the first subsystem is a system for correctly calculating the international air ticket price, and the second subsystem is a system to verify whether the calculation result of the international air ticket price is correct, and the device includes: A sending unit, configured to send the target request to the first subsystem and the second subsystem when detecting that the target user initiates a target request, wherein the target request is a request for calculating the price of an international air ticket; A first processing unit, configured to process the target request through the first subsystem, obtain a first processing result, and return the first processing result to the target user; A second processing unit, configured to process the target request through the second subsystem to obtain a second processing result; A verification unit is used to verify the second processing result according to the first processing result to obtain a verification result, wherein the verification result represents whether the calculation result of the second subsystem is correct or incorrect.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, the method for verifying the international air ticket price according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the international air ticket price verification method described in any one of claims 1 to 7.
Citation Information
Cited By
Data stream processing method and device, program product and electronic equipment
CN120804050A
Multi-dimensional aviation freight rate validity verification method
CN122390818A