CN112258298A - Data processing method and device and electronic equipment - Google Patents

Data processing method and device and electronic equipment Download PDF

Info

Publication number
CN112258298A
CN112258298A CN202011305522.4A CN202011305522A CN112258298A CN 112258298 A CN112258298 A CN 112258298A CN 202011305522 A CN202011305522 A CN 202011305522A CN 112258298 A CN112258298 A CN 112258298A
Authority
CN
China
Prior art keywords
identification code
log
request message
message
return
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011305522.4A
Other languages
Chinese (zh)
Inventor
伍键
杨毅
谢佳
金圣桐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Travelsky Technology Co Ltd
China Travelsky Holding Co
Original Assignee
China Travelsky Holding Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Travelsky Holding Co filed Critical China Travelsky Holding Co
Priority to CN202011305522.4A priority Critical patent/CN112258298A/en
Publication of CN112258298A publication Critical patent/CN112258298A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a data processing method and device and electronic equipment. After receiving a first request message sent by first equipment, a data processing platform generates and stores a first log generated based on the first request message, processes the first request message into a second request message matched with a target airline company, generates and stores a second log generated based on the second request message, and sends the second request message to second equipment; after receiving a first return message sent by second equipment, the data processing platform generates and stores a third log generated based on the first return message, processes the first return message into a second return message matched with the first equipment, generates and stores a fourth log generated based on the second return message, and sends the second return message and the first identification code to the first equipment. According to the scheme disclosed by the application, the docking cost of the seller and each airline company can be reduced, and when an order is wrong, the fault and the fault reason can be located.

Description

Data processing method and device and electronic equipment
Technical Field
The present application belongs to the field of data processing technologies, and in particular, to a data processing method and apparatus, and an electronic device.
Background
With the development of economy and the improvement of living standard of people, an airplane has become one of basic transportation modes. Besides the flight inquiry, the reservation of the air ticket and the ticket change cancellation through the ticketing system of the airline company, the user can also perform the above operations through the seller (seler). Sellers include, but are not limited to, agents, OTAs, TMC, and intermodal partners. The seller needs to interface with the ticketing system of each airline to provide quality service to the user.
However, the ticketing system of each airline company has a large difference in interface design and logic, which causes a great technical cost for the seller to interface with each airline company.
Disclosure of Invention
In view of the above, an object of the present application is to provide a data processing method, an apparatus and an electronic device, so as to reduce the docking cost of a seller and each airline company.
In order to achieve the above purpose, the present application provides the following technical solutions:
a data processing method is applied to a data processing platform and comprises the following steps:
receiving a first request message sent by first equipment;
generating a first log based on the first request message, and storing the first log, wherein the first log comprises the first request message, a first identification code, a second identification code and a third identification code;
processing the first request message into a second request message matched with a target airline company;
generating a second log based on the second request message, and storing the second log, wherein the second log comprises the second request message, the first identification code, the second identification code and the third identification code;
sending the second request message to a second device;
receiving a first return message sent by the second equipment;
generating a third log based on the first return message, and storing the third log, wherein the third log comprises the first return message, the first identification code, the second identification code and a third identification code;
processing the first return message into a second return message matched with the first equipment;
generating a fourth log based on the second return message, and storing the fourth log, wherein the fourth log comprises the second return message, the first identification code, the second identification code and the third identification code;
sending the second return message and the first identification code to the first equipment, so that the first equipment carries the first identification code in a first request message sent subsequently;
the first identification codes are used for indicating order processing flows, the first identification codes in logs generated in the same order processing flow are the same identification codes, and the first identification codes in logs generated in different order processing flows are different identification codes; the second identification code is used for indicating an order processing sub-process in the same order processing sub-process, the second identification code in the log generated in the same order processing sub-process is the same identification code, and the second identification codes in the logs generated in different order processing sub-processes in the same order processing process are different identification codes; the third identification code is used for indicating a message state, and the message state comprises: a first device to data processing platform request, a data processing platform to airline request, an airline to data processing platform return, and a data processing platform to first device return.
Therefore, the beneficial effects of the application are as follows:
according to the data processing method, after receiving a first request message sent by first equipment, a data processing platform generates and stores a first log generated based on the first request message, processes the first request message into a second request message matched with a target airline company, generates and stores a second log generated based on the second request message, and sends the second request message to second equipment corresponding to the target airline company; after receiving a first return message sent by second equipment, the data processing platform generates and stores a third log generated based on the first return message, processes the first return message into a second return message matched with the first equipment, generates and stores a fourth log generated based on the second return message, and sends the second return message and the first identification code to the first equipment; each generated log comprises a first identification code, a second identification code and a third identification code besides the message.
Based on the data processing method provided by the application, the first equipment at the seller side can complete the order processing flow without directly butting with the second equipment at the airline company side, and the butting cost of the seller is reduced. In addition, when the order has an error, all messages related to the order can be acquired based on the first identification code corresponding to the order, and the context of each message can be known, so that the fault can be located, and the specific reason causing the order error can be determined.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a data processing method provided in one embodiment of the present application;
fig. 2 is a schematic diagram of a first request packet sent by a first device to a data processing platform;
fig. 3 is a schematic diagram of a second request message obtained by processing the first request message shown in fig. 2 by the data processing platform;
FIG. 4 is a schematic diagram of a graphical interface for screening display logs provided herein;
FIG. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a data processing method, a data processing device and electronic equipment, so that the docking cost of a seller and each airline company is reduced.
Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are for illustration purposes only and are not intended to limit the scope of the present application.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present application are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this application are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
Referring to fig. 1, fig. 1 is a flowchart of a data processing method according to an embodiment of the present application. The execution subject of the method is a data processing platform, wherein the data processing platform can be a server or a server cluster, and the data processing platform is deployed by an aggregator. The data processing method comprises the following steps:
s101: receiving a first request message sent by first equipment.
The first device is an electronic device on the seller side. In this application, a request packet sent by a first device to a data processing platform is referred to as a first request packet.
An order processing flow includes a plurality of order processing sub-flows, such as: AirShopping (flight query), offsprice (check price), orderCreate (order creation), orderRetrieve (order query), orderChange (order payment), orderReshop (change sign), orderCancel (refund).
If the first device is currently executing the flight query sub-process, the first request message sent by the first device is specifically a flight query request message airshoppangrq. If the first device is currently executing the order payment sub-process, the first request message sent by the first device is specifically an order payment request message OrderChangeRQ, and the other order processing sub-processes are similar.
S102: and generating a first log based on the first request message, and storing the first log.
The first log comprises a first request message, a first identification code, a second identification code and a third identification code.
S103: and processing the first request message into a second request message matched with the target airline company.
In the application, after receiving a first request message sent by first equipment, a data processing platform determines a target airline corresponding to the first request message, and processes the first request message into a second request message matched with the target airline.
Optionally, the first request packet carries an airline identification, and the data processing platform determines the target airline according to the airline identification carried in the first request packet.
S104: and generating a second log based on the second request message, and storing the second log.
The second log comprises a second request message, a first identification code, a second identification code and a third identification code.
S105: and sending a second request message to the second equipment.
S106: and receiving a first return message sent by the second equipment.
Wherein the second device is an electronic device on the side of the target airline. And after receiving a second request message sent by the data processing platform, the second equipment processes the second request message and returns a corresponding message. In this application, a return message sent by the second device to the data processing platform is referred to as a first return message.
If the first request message sent by the first device is specifically a flight query request message AirshoppingRQ, the first return message sent by the second device is specifically a flight query return message AirshoppingRS. If the first request message sent by the first device is specifically an order payment request message OrderChangeRQ, the first return message sent by the second device is specifically an order payment return message OrderChangeRS, and the other situations are similar.
S107: and generating a third log based on the first return message, and storing the third log.
The third log comprises a first return message, a first identification code, a second identification code and a third identification code.
S108: and processing the first return message into a second return message matched with the first equipment.
S109: and generating a fourth log based on the second return message, and storing the fourth log.
The fourth log comprises a second return message, a first identification code, a second identification code and a third identification code.
S110: and sending the second return message and the first identification code to the first equipment so that the first equipment carries the first identification code in a first request message sent subsequently.
And after receiving the first return message sent by the second equipment, the data processing platform processes the first return message into a second return message matched with the first equipment. In addition, the data processing platform sends a second return message and the first identification code to the first device, so that the first device carries the first identification code in a first request message sent to the data processing platform subsequently.
Here, the first identification code (TrxID), the second identification code (RequestID), and the third identification code are described.
In the above, it is described that one order processing flow includes a plurality of order processing sub-flows.
The first identification code is used for indicating an order processing flow, the first identification codes in logs generated in the same order processing flow are the same identification code, and the first identification codes in logs generated in different order processing flows are different identification codes.
Taking order processing flows order1 and order2 as examples: the first identification codes in the plurality of logs generated during the execution of the order processing flow order1 are the same identification code (e.g., identification code M1), and the first identification codes in the plurality of logs generated during the execution of the order processing flow order2 are the same identification code (e.g., identification code M2, identification code M1 and identification code M2 are different).
The second identification code is used for indicating an order processing sub-process in the same order processing sub-process, the second identification code in the log generated in the same order processing sub-process is the same identification code, and the second identification code in the log generated in different order processing sub-processes in the same order processing process is different identification codes.
Taking order processing flow order1 as an example: the first identification codes in the multiple logs generated in the execution process of the order processing flow order1 are the same identification code (such as identification code M1), the second identification codes in the first log, the second log, the third log and the fourth log generated in the flight inquiry sub-flow are the same identification code (such as identification code M3), and the second identification codes in the first log, the second log, the third log and the fourth log generated in the order payment sub-flow are the same identification code (such as identification code M4, identification code M3 and identification code M4 are different).
Optionally, the second identification codes in the logs generated in the same order processing sub-process in different order processing processes adopt the same identification code.
Here, the order processing flows order1 and order2 are taken as examples: the first identification codes in the multiple logs generated during the execution of the order processing flow order1 are the same identification code (such as identification code M1), the first identification codes in the multiple logs generated during the execution of the order processing flow order2 are the same identification code (such as identification code M2), the second identification codes in the first, second, third and fourth logs generated during the flight inquiry sub-flow execution of the order processing flow order1 and order2 are the same identification code (such as identification code M3), and the second identification codes in the first, second, third and fourth logs generated during the order payment sub-flow execution of the order processing flow order1 and order2 are the same identification code (such as identification codes M4, identification codes M3 and identification code M4 are different).
The third identification code is used for indicating the message state, and the message state comprises: a first device to data processing platform request, a data processing platform to airline request, an airline to data processing platform return, and a data processing platform to first device return.
That is, the first identification code can distinguish the logs stored by the data processing platform as the logs generated in which order processing flow, the second identification code can further determine the logs stored by the data processing platform as the logs generated in which order processing sub-flow, and the third identification code can further determine the logs stored by the data processing platform as the logs generated at which stage in the order processing sub-flow.
It can be seen that, after receiving a first request message sent by a first device, processing the first request message into a second request message, after receiving a first return message sent by a second device, and after processing the first return message into a second return message, the data processing platform generates corresponding logs, and each log includes a first identification code, a second identification code, and a third identification code.
When an order has an error, all messages related to the order can be acquired based on the first identification code corresponding to the order, and the context relationship of each message can be acquired, so that the fault can be located, namely the fault is determined to be in a seller, an aggregator or an airline company, and the specific reason causing the order error, such as parameter input error, can be determined.
In an implementation, the first identification code may be a 32-bit Unique Identifier (UUID), the second identification code may be a 16-bit Identifier, and the third identification code may be a single-character english Identifier, for example: A. b, C and D.
In implementation, the log may be stored in an ELK + FileBeat manner. Namely, the logstack is distributed on each node to collect relevant logs, and the logs are analyzed, filtered and sent to an Elasticsearch on a remote server for storage. The Elasticissearch compresses and stores data in a fragment form and provides various APIs for a user to query.
According to the data processing method, after receiving a first request message sent by first equipment, a data processing platform generates and stores a first log generated based on the first request message, processes the first request message into a second request message matched with a target airline company, generates and stores a second log generated based on the second request message, and sends the second request message to second equipment corresponding to the target airline company; after receiving a first return message sent by second equipment, the data processing platform generates and stores a third log generated based on the first return message, processes the first return message into a second return message matched with the first equipment, generates and stores a fourth log generated based on the second return message, and sends the second return message and the first identification code to the first equipment; each log generated by the data processing platform comprises a first identification code, a second identification code and a third identification code besides the message.
Based on the data processing method provided by the application, the first equipment at the seller side can complete the order processing flow without directly butting with the second equipment at the airline company side, and the butting cost of the seller is reduced. In addition, when the order has an error, all messages related to the order can be acquired based on the first identification code corresponding to the order, and the context of each message can be known, so that the fault can be located, and the specific reason causing the order error can be determined.
In another embodiment of the present application, a scheme for generating a first log based on a first request packet is described.
Generating a first log based on the first request message, including:
if the first request message is a flight query request message, distributing a first identification code, a second identification code and a third identification code for the first request message; and if the first request message is a non-flight inquiry request message, acquiring a first identification code carried by the first request message, and distributing a second identification code and a third identification code to the first request message.
The first order processing sub-process of the order processing process is a flight query sub-process, and if the first request message received by the data processing platform is a flight query request message, this indicates that the first device (i.e., the seller side) opens a new order processing process, and needs to allocate a first identification code, a second identification code, and a third identification code to the first request message.
If the first request message received by the data processing platform is a non-flight query request message, the first device is currently executing other order processing sub-processes except the flight query sub-process. It can be understood that, the data processing platform has sent the first identification code to the first device in the order processing sub-process of the preamble, and the first device carries the first identification code in the first request packet sent this time, so that the data processing platform obtains the first identification code carried in the first request packet, and allocates the second identification code and the third identification code to the first request packet.
In another embodiment of the present application, a scheme is described for processing a first request message into a second request message that matches a target airline.
The first request message contains all data required for constructing the second request message, and then the data processing platform acquires all data required for constructing the second request message from the first request message and generates the second request message matched with the target airline company based on the acquired data.
In another embodiment of the present application, another approach is described for processing a first request message into a second request message that matches a target airline.
Airline-specified request messages have a large amount of redundant information that is duplicated and the seller wishes to be able to simplify the request message. Taking an example that a seller creates an order in an airline company, an order creation request message specified by the airline company needs to carry flight segment information, time information, and OD information, which have been sent to the seller in the preceding order processing sub-flow, and which do not allow the seller to modify. And the airline needs to again provide this information and other new parameters when the seller creates the order.
In order to reduce the burden on the seller side, the first request message is processed into a second request message matched with the target airline company, and the following scheme may be adopted:
acquiring data required for constructing a second request message from the first request message and the stored log; and generating a second request message matched with the target airline company based on the data.
That is, the data required for constructing the second request packet may have a part of the first request packet appearing in the preceding order processing sub-flow, and may also have a part of the first return packet appearing in the preceding order processing sub-flow. In the current order processing sub-process, the first request message sent by the first device may not include the data already stored in the log, but only include new data. And after receiving the first request message, the data processing platform acquires data required for constructing a second request message from the first request message and the stored log, and generates the second request message matched with the target airline company based on the data.
Taking an example that a seller creates an order in an airline company, the creation order request message (first request message) sent by the first device is only 86 lines, and the creation order request message (second request message) obtained after being processed by the data processing platform is 185 lines. The flight leg information, the time information and the OD information in the second request message are carried in a first return report message sent by the second device to the data processing platform in the preamble order processing sub-process, so that the order creation request message sent by the first device does not need to contain the flight leg information, the time information and the OD information, the data processing platform can obtain the information in a third log, and the second request message is constructed based on the order creation request message sent by the first device and the obtained information.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic diagram of a first request packet sent by a first device to a data processing platform, and fig. 3 is a schematic diagram of a second request packet obtained by processing the first request packet shown in fig. 2 by the data processing platform.
In another embodiment of the present application, on the basis of the data processing method shown in fig. 1, the following steps are further provided:
1) and receiving the screening rule.
2) And acquiring a corresponding log from the stored logs according to the screening rule, and outputting the log.
Wherein the screening rule at least comprises a first identification code.
Optionally, the screening rule includes a first identification code, and correspondingly, the log including the first identification code is obtained according to the screening rule.
Optionally, the screening rule includes a first identification code and a second identification code, and correspondingly, the log including the first identification code and the second identification code is obtained according to the screening rule.
The user can quickly acquire the corresponding message by setting the screening rule.
For example, when a user needs to view all messages of an order, all logs corresponding to the order can be obtained by using the first identification code corresponding to the order as the screening rule, and the user can view all messages of the order. When a user needs to check the message of an order in an order processing sub-process, the first identification code corresponding to the order and the second identification code corresponding to the order processing sub-process are used as screening rules, all logs of the order in the order processing sub-process can be obtained, and the user can see all messages of the order in the order processing sub-process.
In one possible implementation, the user enters the filtering rules at the data processing platform.
In another possible implementation, the user inputs the filtering rule at an electronic device associated with the data processing platform, and the electronic device transmits the filtering rule to the data processing platform.
In another possible implementation manner, the data processing platform presents a list page after the user passes the authentication, wherein the list page at least comprises a first identification code list, and generates the screening rule based on the selection of the first identification code in the first identification code list.
In another possible implementation manner, the data processing platform presents a list page after the user passes the authentication, wherein the list page at least comprises a first identification code list and a second identification code list, and the screening rule is generated based on the selection of the first identification code in the first identification code list and the selection of the second identification code in the second identification code list.
Referring to fig. 4, fig. 4 is a schematic view of a graphical interface for screening display logs provided by the present application.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
It should be understood that the various steps recited in the method embodiments of the present application may be performed in a different order and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present application is not limited in this respect.
The embodiment of the present application provides a data processing method as described above, and correspondingly, the embodiment of the present application further provides a data processing apparatus. The descriptions of the two in the specification can be mutually referred.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application. The data processing apparatus includes:
a first message receiving unit 501, configured to receive a first request message sent by a first device.
A first log generating unit 502, configured to generate a first log based on the first request message, and store the first log, where the first log includes the first request message, the first identification code, the second identification code, and the third identification code.
The first message processing unit 503 is configured to process the first request message into a second request message matched with the target airline.
A second log generating unit 504, configured to generate a second log based on the second request message, and store the second log, where the second log includes the second request message, the first identification code, the second identification code, and the third identification code.
A first message sending unit 505, configured to send a second request message to the second device.
A second message receiving unit 506, configured to receive the first return message sent by the second device.
A third log generating unit 507, configured to generate a third log based on the first return packet, and store the third log, where the third log includes the first return packet, the first identification code, the second identification code, and the third identification code.
A second message processing unit 508, configured to process the first return message into a second return message matched with the first device.
A fourth log generating unit 509, configured to generate a fourth log based on the second return packet, and store the fourth log, where the fourth log includes the second return packet, the first identification code, the second identification code, and the third identification code.
A second message sending unit 510, configured to send the second return message and the first identifier to the first device, so that the first device carries the first identifier in a subsequent first request message sent by the first device.
The first identification codes are used for indicating order processing flows, the first identification codes in logs generated in the same order processing flow are the same identification codes, and the first identification codes in logs generated in different order processing flows are different identification codes; the second identification code is used for indicating an order processing sub-process in the same order processing sub-process, the second identification code in the log generated in the same order processing sub-process is the same identification code, and the second identification code in the log generated in different order processing sub-processes in the same order processing process is different identification codes; the third identification code is used for indicating the message state, and the message state comprises: a first device to data processing platform request, a data processing platform to airline request, an airline to data processing platform return, and a data processing platform to first device return.
Optionally, the first log generating unit 502 is specifically configured to: if the first request message is a flight query request message, distributing a first identification code, a second identification code and a third identification code for the first request message; and if the first request message is a non-flight inquiry request message, acquiring a first identification code carried by the first request message, and distributing a second identification code and a third identification code to the first request message.
Optionally, the first packet processing unit 503 is specifically configured to: acquiring data required for constructing a second request message from the first request message and the stored log; and generating a second request message matched with the target airline company based on the acquired data.
Optionally, on the basis of the data processing apparatus shown in fig. 5, the method further includes:
a filtering rule receiving unit for receiving a filtering rule;
and the log acquisition unit is used for acquiring the corresponding log from the stored logs according to the screening rule and outputting the acquired log.
Another embodiment of the present application further provides an electronic device, so as to implement the data processing method provided by the present application.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present application. The electronic device may include a processor 601, a memory 602, and a communication interface 603.
Optionally, the server may further include: an input unit 604, a display 605 and a communication bus 606. The processor 601, the memory 602, the communication interface 603, the input unit 604, and the display 605 all communicate with each other via the communication bus 606.
In the embodiment of the present application, the processor 601 may be a Central Processing Unit (CPU), an application specific integrated circuit, a digital signal processor, an off-the-shelf programmable gate array or other programmable logic device, etc.
The processor 601 may call a program stored in the memory 602.
The memory 602 is used to store one or more programs, which may include program code comprising computer operating instructions. In the embodiment of the present application, a program for implementing any one of the data processing methods described above is stored in the memory.
In one possible implementation, the memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, the above-mentioned programs, and the like; the storage data area may store data created during use of the computer device, and the like.
Further, the memory 602 may include high speed random access memory and may also include non-volatile memory.
The communication interface 603 may be an interface of a communication module.
The input unit 604 may include a touch sensing unit sensing a touch event on the touch display panel, a keyboard, and the like.
The display 605 includes a display panel such as a touch display panel or the like.
Of course, the structure of the electronic device shown in fig. 6 does not constitute a limitation of the electronic device in the embodiment of the present application, and the electronic device may include more or less components than those shown in fig. 6 or some components in combination in practical applications.
It should be noted that the electronic device in the embodiment of the present application may include, but is not limited to, a server, for example, a server cluster or an independent server. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
Another embodiment of the present application provides a storage medium executable by an electronic device, where the storage medium stores a program, and when the program is loaded and executed by a processor of the electronic device, the program causes the electronic device to implement any one of the data processing methods disclosed in the foregoing application.
It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer-readable storage medium may be, but is not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
According to one or more embodiments of the present application, there is provided a data processing method applied to a data processing platform, the data processing method including:
receiving a first request message sent by first equipment;
generating a first log based on the first request message, and storing the first log, wherein the first log comprises the first request message, a first identification code, a second identification code and a third identification code;
processing the first request message into a second request message matched with a target airline company;
generating a second log based on the second request message, and storing the second log, wherein the second log comprises the second request message, the first identification code, the second identification code and the third identification code;
sending the second request message to a second device;
receiving a first return message sent by the second equipment;
generating a third log based on the first return message, and storing the third log, wherein the third log comprises the first return message, the first identification code, the second identification code and a third identification code;
processing the first return message into a second return message matched with the first equipment;
generating a fourth log based on the second return message, and storing the fourth log, wherein the fourth log comprises the second return message, the first identification code, the second identification code and the third identification code;
sending the second return message and the first identification code to the first equipment, so that the first equipment carries the first identification code in a first request message sent subsequently;
the first identification codes are used for indicating order processing flows, the first identification codes in logs generated in the same order processing flow are the same identification codes, and the first identification codes in logs generated in different order processing flows are different identification codes; the second identification code is used for indicating an order processing sub-process in the same order processing sub-process, the second identification code in the log generated in the same order processing sub-process is the same identification code, and the second identification codes in the logs generated in different order processing sub-processes in the same order processing process are different identification codes; the third identification code is used for indicating a message state, and the message state comprises: a first device to data processing platform request, a data processing platform to airline request, an airline to data processing platform return, and a data processing platform to first device return.
According to one or more embodiments of the present application, on the basis of the data processing method, the generating a first log based on the first request packet includes:
if the first request message is a flight query request message, distributing a first identification code, a second identification code and a third identification code for the first request message;
and if the first request message is a non-flight inquiry request message, acquiring a first identification code carried by the first request message, and distributing a second identification code and a third identification code to the first request message.
According to one or more embodiments of the present application, on the basis of the above data processing method, the processing the first request message into a second request message matched with a target airline company includes:
acquiring data required for constructing the second request message from the first request message and the stored log;
and generating a second request message matched with the target airline company based on the data.
According to one or more embodiments of the present application, on the basis of the data processing method, the method further includes:
receiving a screening rule;
and acquiring a corresponding log from the stored logs according to the screening rule, and outputting the acquired log.
According to one or more embodiments of the present application, on the basis of the data processing method, the receiving a filtering rule includes:
displaying a list page after the user passes the verification, wherein the list page at least comprises a first identification code list;
generating a screening rule based on a selection of a first identification code in the first list of identification codes.
According to one or more embodiments of the present application, there is provided a data processing apparatus applied to a data processing platform, the data processing apparatus including:
a first message receiving unit, configured to receive a first request message sent by a first device;
a first log generating unit, configured to generate a first log based on the first request packet, and store the first log, where the first log includes the first request packet, a first identification code, a second identification code, and a third identification code;
the first message processing unit is used for processing the first request message into a second request message matched with a target airline company;
a second log generating unit, configured to generate a second log based on the second request packet, and store the second log, where the second log includes the second request packet, the first identification code, the second identification code, and a third identification code;
a first message sending unit, configured to send the second request message to a second device;
a second message receiving unit, configured to receive a first return message sent by the second device;
a third log generating unit, configured to generate a third log based on the first return packet, and store the third log, where the third log includes the first return packet, the first identifier code, the second identifier code, and a third identifier code;
a second message processing unit, configured to process the first return message into a second return message matched with the first device;
a fourth log generating unit, configured to generate a fourth log based on the second return packet, and store the fourth log, where the fourth log includes the second return packet, the first identification code, the second identification code, and the third identification code;
a second message sending unit, configured to send the second return message and the first identifier to the first device, so that the first device carries the first identifier in a subsequently sent first request message;
the first identification codes are used for indicating order processing flows, the first identification codes in logs generated in the same order processing flow are the same identification codes, and the first identification codes in logs generated in different order processing flows are different identification codes; the second identification code is used for indicating an order processing sub-process in the same order processing sub-process, the second identification code in the log generated in the same order processing sub-process is the same identification code, and the second identification codes in the logs generated in different order processing sub-processes in the same order processing process are different identification codes; the third identification code is used for indicating a message state, and the message state comprises: a first device to data processing platform request, a data processing platform to airline request, an airline to data processing platform return, and a data processing platform to first device return.
According to one or more embodiments of the present application, on the basis of the data processing apparatus, the first log generation unit is specifically configured to: if the first request message is a flight query request message, distributing a first identification code, a second identification code and a third identification code for the first request message; and if the first request message is a non-flight inquiry request message, acquiring a first identification code carried by the first request message, and distributing a second identification code and a third identification code to the first request message.
According to one or more embodiments of the present application, on the basis of the data processing apparatus, the first packet processing unit is specifically configured to: acquiring data required for constructing the second request message from the first request message and the stored log; and generating a second request message matched with the target airline company based on the data.
According to one or more embodiments of the present application, on the basis of the data processing apparatus, the data processing apparatus further includes:
a filtering rule receiving unit for receiving a filtering rule;
and the log acquisition unit is used for acquiring the corresponding log from the stored logs according to the screening rule and outputting the acquired log.
According to one or more embodiments of the present application, there is provided an electronic device comprising a processor, a memory, and a communication interface;
the memory is for storing a program:
the processor is configured to execute the program and implement any one of the data processing methods provided in the present application.
According to one or more embodiments of the present application, a storage medium is provided, in which a program is stored, and when the program is loaded and executed by a processor, the program implements any one of the data processing methods provided in the present application.
In practice, computer program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods, apparatus, and electronic devices according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The names of messages or information exchanged between a plurality of devices in the embodiments of the present application are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Although the operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A data processing method is applied to a data processing platform, and the data processing method comprises the following steps:
receiving a first request message sent by first equipment;
generating a first log based on the first request message, and storing the first log, wherein the first log comprises the first request message, a first identification code, a second identification code and a third identification code;
processing the first request message into a second request message matched with a target airline company;
generating a second log based on the second request message, and storing the second log, wherein the second log comprises the second request message, the first identification code, the second identification code and the third identification code;
sending the second request message to a second device;
receiving a first return message sent by the second equipment;
generating a third log based on the first return message, and storing the third log, wherein the third log comprises the first return message, the first identification code, the second identification code and a third identification code;
processing the first return message into a second return message matched with the first equipment;
generating a fourth log based on the second return message, and storing the fourth log, wherein the fourth log comprises the second return message, the first identification code, the second identification code and the third identification code;
sending the second return message and the first identification code to the first equipment, so that the first equipment carries the first identification code in a first request message sent subsequently;
the first identification codes are used for indicating order processing flows, the first identification codes in logs generated in the same order processing flow are the same identification codes, and the first identification codes in logs generated in different order processing flows are different identification codes; the second identification code is used for indicating an order processing sub-process in the same order processing sub-process, the second identification code in the log generated in the same order processing sub-process is the same identification code, and the second identification codes in the logs generated in different order processing sub-processes in the same order processing process are different identification codes; the third identification code is used for indicating a message state, and the message state comprises: a first device to data processing platform request, a data processing platform to airline request, an airline to data processing platform return, and a data processing platform to first device return.
2. The method of claim 1, wherein generating the first log based on the first request packet comprises:
if the first request message is a flight query request message, distributing a first identification code, a second identification code and a third identification code for the first request message;
and if the first request message is a non-flight inquiry request message, acquiring a first identification code carried by the first request message, and distributing a second identification code and a third identification code to the first request message.
3. The method of claim 1, wherein processing the first request message into a second request message that matches a target airline comprises:
acquiring data required for constructing the second request message from the first request message and the stored log;
and generating a second request message matched with the target airline company based on the data.
4. The method of claim 1, further comprising:
receiving a screening rule;
and acquiring a corresponding log from the stored logs according to the screening rule, and outputting the acquired log.
5. The method of claim 4, wherein receiving the filtering rule comprises:
displaying a list page after the user passes the verification, wherein the list page at least comprises a first identification code list;
generating a screening rule based on a selection of a first identification code in the first list of identification codes.
6. A data processing apparatus, for use in a data processing platform, the data processing apparatus comprising:
a first message receiving unit, configured to receive a first request message sent by a first device;
a first log generating unit, configured to generate a first log based on the first request packet, and store the first log, where the first log includes the first request packet, a first identification code, a second identification code, and a third identification code;
the first message processing unit is used for processing the first request message into a second request message matched with a target airline company;
a second log generating unit, configured to generate a second log based on the second request packet, and store the second log, where the second log includes the second request packet, the first identification code, the second identification code, and a third identification code;
a first message sending unit, configured to send the second request message to a second device;
a second message receiving unit, configured to receive a first return message sent by the second device;
a third log generating unit, configured to generate a third log based on the first return packet, and store the third log, where the third log includes the first return packet, the first identifier code, the second identifier code, and a third identifier code;
a second message processing unit, configured to process the first return message into a second return message matched with the first device;
a fourth log generating unit, configured to generate a fourth log based on the second return packet, and store the fourth log, where the fourth log includes the second return packet, the first identification code, the second identification code, and the third identification code;
a second message sending unit, configured to send the second return message and the first identifier to the first device, so that the first device carries the first identifier in a subsequently sent first request message;
the first identification codes are used for indicating order processing flows, the first identification codes in logs generated in the same order processing flow are the same identification codes, and the first identification codes in logs generated in different order processing flows are different identification codes; the second identification code is used for indicating an order processing sub-process in the same order processing sub-process, the second identification code in the log generated in the same order processing sub-process is the same identification code, and the second identification codes in the logs generated in different order processing sub-processes in the same order processing process are different identification codes; the third identification code is used for indicating a message state, and the message state comprises: a first device to data processing platform request, a data processing platform to airline request, an airline to data processing platform return, and a data processing platform to first device return.
7. The apparatus according to claim 6, wherein the first log generation unit is specifically configured to: if the first request message is a flight query request message, distributing a first identification code, a second identification code and a third identification code for the first request message; and if the first request message is a non-flight inquiry request message, acquiring a first identification code carried by the first request message, and distributing a second identification code and a third identification code to the first request message.
8. The apparatus according to claim 6, wherein the first packet processing unit is specifically configured to: acquiring data required for constructing the second request message from the first request message and the stored log; and generating a second request message matched with the target airline company based on the data.
9. The apparatus of claim 6, further comprising:
a filtering rule receiving unit for receiving a filtering rule;
and the log acquisition unit is used for acquiring the corresponding log from the stored logs according to the screening rule and outputting the acquired log.
10. An electronic device comprising a processor, a memory, and a communication interface;
the memory is for storing a program:
the processor is configured to execute the program to implement the data processing method according to claims 1 to 5.
CN202011305522.4A 2020-11-19 2020-11-19 Data processing method and device and electronic equipment Pending CN112258298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011305522.4A CN112258298A (en) 2020-11-19 2020-11-19 Data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011305522.4A CN112258298A (en) 2020-11-19 2020-11-19 Data processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112258298A true CN112258298A (en) 2021-01-22

Family

ID=74266181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011305522.4A Pending CN112258298A (en) 2020-11-19 2020-11-19 Data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112258298A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017097108A1 (en) * 2015-12-11 2017-06-15 广州市动景计算机科技有限公司 Log information processing method, apparatus, and system
CN108427619A (en) * 2018-03-13 2018-08-21 腾讯科技(深圳)有限公司 Blog management method, device, computing device and storage medium
CN110022289A (en) * 2018-01-10 2019-07-16 北龙中网(北京)科技有限责任公司 Data transmission method, apparatus and system
CN110322035A (en) * 2019-07-10 2019-10-11 中国民航信息网络股份有限公司 A kind of Airline reservation information processing method and system
CN111352902A (en) * 2020-02-28 2020-06-30 中国平安人寿保险股份有限公司 Log processing method and device, terminal equipment and storage medium
CN111614757A (en) * 2020-05-20 2020-09-01 中国建设银行股份有限公司 Message interaction method, device, equipment and medium for client and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017097108A1 (en) * 2015-12-11 2017-06-15 广州市动景计算机科技有限公司 Log information processing method, apparatus, and system
CN110022289A (en) * 2018-01-10 2019-07-16 北龙中网(北京)科技有限责任公司 Data transmission method, apparatus and system
CN108427619A (en) * 2018-03-13 2018-08-21 腾讯科技(深圳)有限公司 Blog management method, device, computing device and storage medium
CN110322035A (en) * 2019-07-10 2019-10-11 中国民航信息网络股份有限公司 A kind of Airline reservation information processing method and system
CN111352902A (en) * 2020-02-28 2020-06-30 中国平安人寿保险股份有限公司 Log processing method and device, terminal equipment and storage medium
CN111614757A (en) * 2020-05-20 2020-09-01 中国建设银行股份有限公司 Message interaction method, device, equipment and medium for client and server

Similar Documents

Publication Publication Date Title
CN111581291A (en) Data processing method and device, electronic equipment and readable medium
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN110430292B (en) Method and device for inviting login of network platform, electronic equipment and readable medium
US20190274028A1 (en) Coordinating the use of independent radio receivers associated with multiple different transmitters
CN110960856B (en) Game data management system, management method and storage medium
CN112416632B (en) Event communication method and device, electronic equipment and computer readable medium
CN110795446A (en) List updating method and device, readable medium and electronic equipment
CN112596720A (en) Service operation method and device, electronic equipment and computer storage medium
CN112486825B (en) Multi-lane environment architecture system, message consumption method, device, equipment and medium
CN112748962A (en) Application loading method and device, electronic equipment and computer readable medium
CN116743785A (en) Cloud network data storage method, device, equipment and medium based on fog calculation
CN112948138A (en) Method and device for processing message
CN112258298A (en) Data processing method and device and electronic equipment
CN113079085B (en) Business service interaction method, business service interaction device, business service interaction equipment and storage medium
CN115098840A (en) Identity authentication method, device, equipment, medium and product
CN113283891A (en) Information processing method and device and electronic equipment
CN112069438B (en) Message merging method, message processing method and device, equipment and medium
CN114968621B (en) Data communication method, device, equipment, storage medium and system
CN112929162B (en) Password management method and system, electronic equipment and readable storage medium
CN112650528B (en) Personalized algorithm generation method, device, electronic equipment and computer readable medium
CN115102992B (en) Data publishing method and device, electronic equipment and computer readable medium
CN113077352B (en) Insurance service article recommending method based on user information and insurance related information
CN114372852A (en) Self-service change method, system, equipment and storage medium
CN114021939A (en) Logistics mapping relation group construction method, logistics product generation method and device
CN116455652A (en) Processing method, device, equipment and medium based on authentication routing rule

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination