Mobile PNR message pushing system and method based on iPhone mobile phone platform
Technical Field
The invention relates to a mobile PNR message pushing system and a method based on an iPhone mobile phone platform.
Background
At present, most passengers generally plan their own journey before considering to select a suitable vehicle. Today, where airline tickets are becoming cheaper and cheaper, it is believed that many people will choose to travel by airplane. Unlike traditional train and bus tickets, the airline ticket may contain much personal information such as name, identification number, travel, etc., and due to this characteristic, it is relatively complicated to store in a computer system (the computer system is specifically referred to as a host system of the chinese airline). It also has its own unique identification in the system, which is the e-ticket number for the outside passenger, but it is stored in the PNR structure within the system.
Each ticket corresponds to the PNR of the passenger, the passenger does not know the PNR of the passenger and does not need to care about the PNR, and the passenger only needs to care about the travel information of the ticket. Today, the size of the number of business travelers is gradually getting larger, the travel information of the business travelers is very much, and the business travelers can be busy in the own business and are not perfect in managing the own travel. Like some people today in Beijing, the next day of travel is to go to Shanghai, which can be cumbersome if forgotten.
The mobile PNR message push system can help you easily manage their own itineraries now. When the user finishes booking the airline ticket, the user receives the PNR journey notification in time, directly enters a corresponding journey interface through the mobile phone client, manages the journey of the user, for example, shares a certain journey to friends of the user or sends the journey to other mobile phone users, and even can get the journey out on a microblog. In the itinerary management interface, the user can also customize services related to his itinerary successions, such as departure reminders, hotel reservations, and the like. If the flight is changed subsequently, the user can receive instant notice after the change of the journey, so that the user can change the plan conveniently.
The mobile PNR message pushing system and method based on the iPhone mobile phone platform solve the problems, timely inform the passenger of the PNR journey, and manage and customize the journey plan according to the journey plan.
Disclosure of Invention
The invention provides a mobile PNR message pushing system based on an iPhone mobile phone platform, which consists of an iPhone client system and a server system. The client system comprises an iPhone client application module; the server-side system includes: the PNR system comprises a PNR subscription module, a PNR analysis module and a PNR pushing module.
And the iPhone client application module is responsible for verifying and submitting user registration data and finally receiving a PNR message notification.
The server PNR subscription module firstly extracts the information of the registered user in the previous day from the client registry, judges whether the user inputs the identity card number, and ends the operation if the identity card number does not exist; and then, calling MQ service according to the identity card number, and subscribing PNR message notification.
The PNR analysis module at the service end periodically inquires MQ service, judges whether subscribed PNR information exists, analyzes the information if the subscribed PNR information exists, judges whether PNR tickets are issued according to analyzed PNR content, and finishes the operation if the PNR tickets are not issued; if the PNR draws a ticket, inquiring user configuration information to judge whether a PNR message reminding switch of the user is started, and if the PNR message reminding switch is not started, ending the process; and if the PNR is enabled, generating and storing a PNR message of the corresponding user ID according to the user information.
And the server side PNR pushing module periodically rounds the PNR library, judges whether a PNR message notice of the iPhone mobile phone user is not sent, generates a final PNR message by the associated user equipment information library if the PNR message notice of the iPhone mobile phone user is not sent, then pushes the PNR message notice to the apple APNS server, and finally pushes down the PNR message notice by the apple server.
The invention also provides a PNR message push notification method based on the iPhone mobile phone platform, which comprises the following steps:
step 1, checking passenger registration data by an iPhone client application module, and submitting the passenger registration data to a server;
step 2, the server side extracts the information of the registered user in the previous day from the passenger registration information regularly every day, and then subscribes PNR message notification service according to the identity card number;
step 3, the server program periodically inquires whether the MQ service has new PNR original information, and analyzes the information when the new PNR information exists; then judging whether the PNR is invoiced or not according to the analyzed content of the PNR message, and finally generating a PNR journey reminding message;
step 4, the server side pushes the PNR journey reminding message to an apple APNS server, and finally pushes the PNR journey reminding message to a client mobile phone;
in step 1, the client application checks whether the passenger registration data is valid, if not, an error prompt is returned, and after the registration is passed, the passenger information is submitted to the server.
In step 2, the server PNR subscription module is entered first. The module judges whether the passenger has identity card information or not, and if so, the module calls MQ subscription service to subscribe PNR message notification;
in step 3, the service end PNR analysis module program can periodically access the MQ service, inquire whether a new PNR original message exists, analyze if so, and finish if not; and then, judging whether the content analyzed by the PNR is a PNR ticket, if so, further judging whether a PNR journey reminding switch personally set by the user is turned on, and if so, generating a PNR message notification storage associated with the user ID.
In step 4, the service end PNR pushing module pushes the PNR message in the final format to the apple server, and the apple server pushes the PNR message to the client mobile phone.
The invention emphasizes that the service end pushes the passenger journey to the iPhone mobile phone client in real time in the form of PNR message, and the passenger directly manages the journey through the PNR message.
Drawings
FIG. 1 is a block diagram of a mobile PNR message push system based on an iPhone handset platform according to the present invention;
FIG. 2 is a general flow chart of the mobile PNR message push system based on the iPhone handset platform according to the present invention;
FIG. 3 is a flow chart of a PNR subscription module of a mobile PNR message push system server based on an iPhone mobile phone platform according to the present invention;
FIG. 4 is a flow chart of a PNR analysis module at a service end of a mobile PNR message push system based on an iPhone mobile phone platform according to the present invention;
FIG. 5 is a flow chart of a PNR push module at a service end of a mobile PNR message push system based on an iPhone mobile phone platform according to the present invention;
FIG. 6 is a diagram of a client registration interface of the mobile PNR message push system based on the iPhone handset platform according to the present invention;
FIG. 7 is a diagram of a client travel reminder switch for a mobile PNR message push system based on an iPhone handset platform in accordance with the present invention;
fig. 8 is a display diagram of a PNR message notification at a client side of the mobile PNR message push system based on the iPhone mobile phone platform according to the present invention;
Detailed Description
Some of the terms used in the present invention:
pnr (passenger Name record): the passenger reservation record in the host system reflects the range of the passenger, the number of seats occupied by the flight and the passenger information. The method is suitable for a civil aviation reservation system. Typically a combination of five digits and letters (now upgraded to six digits).
A host system: a special mainframe, the Unisys system.
Apns (apple Push Notification service): and (3) pushing information by the apple in the operating system of the apple above 3.0.
Mq (message queuing): the message queue is a communication method of an application program to the application program by IBM.
As shown in fig. 1, the mobile PNR message push system based on the iPhone handset platform of the present invention is composed of a client application and a server side system, where the client is an iPhone client application module; the server-side system includes: the PNR system comprises a PNR subscription module, a PNR analysis module and a PNR pushing module. The server side comprises an application server cluster formed by two IBM small machines, an HTTP access server formed by the two small machines, and a database system formed by one small machine. The HTTP access server is responsible for receiving all requests and then distributing the requests to one of the clusters of application servers according to load balancing. And after the application server successfully processes the data record, the data record is written into the database server.
The passenger is atiPhone client applicationWhen the interface is registered, the client firstly verifies whether the registration information is valid or not, then submits the registration information to the server, and meanwhile, the client application must turn on a PNR travel reminding switch.
Server PNR subscription moduleAnd extracting the registered user in the previous day from the client registration information base to judge whether the passenger has the identity card information, calling MQ subscription service to subscribe the PNR message notification if the passenger has the identity card information, and ending the process if the passenger does not have the identity card information.
Server PNR analysis modulePeriodically accessing MQ service to inquire whether a subscribed PNR original message exists, if so, analyzing the message, and if not, returning to wait for starting next time; then judging whether the PNR draws a ticket according to the analyzed PNR content, and ending if the PNR does not draw the ticket; if the PNR draws a ticket, inquiring user configuration information to judge whether a PNR message reminding switch of the user is started, and if the PNR message reminding switch is not started, ending the process; and if the PNR is enabled, generating and storing a PNR message of the corresponding user ID according to the user information.
Server PNR push moduleAnd periodically inquiring whether the PNR library has the PNR message which is not sent to the iPhone mobile phone, if so, sending the PNR message and the mobile phone device information to an apple APNS server by combining the information library of the passenger mobile phone device, and finally pushing the PNR message to the iPhone client by the apple server.
As shown in fig. 2, the push method of the mobile PNR message push system based on the iPhone handset platform of the present invention includes the following steps:
step 1, checking passenger registration data by an iPhone client application module, and submitting the passenger registration data to a server;
step 2, the server side extracts the information of the registered user in the previous day from the passenger registration information regularly every day, and then subscribes PNR message notification service according to the identity card number;
step 3, the server program periodically inquires whether the MQ service has new PNR original information, and analyzes the information when the new PNR information exists; then judging whether the PNR is invoiced or not according to the analyzed content of the PNR message, and finally generating a PNR journey reminding message;
step 4, the server side pushes the PNR journey reminding message to an apple APNS server, and finally pushes the PNR journey reminding message to a client mobile phone;
as shown in fig. 3, the server PNR subscription module of the present invention includes the following steps:
step 1, a server program acquires a passenger registered user in the previous day from passenger registration information;
step 2, judging whether the identity card information exists in the passenger, if so, calling MQ to subscribe PNR notification service, and if not, ending the process;
as shown in fig. 4, the server PNR parsing module of the present invention includes the following steps:
step 1, a server-side program periodically inquires whether a new PNR original message exists in MQ service; continuing the next step if there is;
step 2, analyzing the PNR original message;
step 3, judging whether the PNR ticket is issued according to the analyzed content of the PNR, and if so, continuing the next step;
step 4, judging whether a PNR reminding switch of the user is turned on, if so, generating and storing a PNR message associated with the user ID by combining the user information;
as shown in fig. 5, the server PNR push module of the present invention includes the following steps:
step 1, a message center program periodically inquires whether a PNR library has a message of a user who does not send an iPhone, and if so, the next step is continued;
step 2, combining the user equipment information base and the message base to generate a PNR message in a final format;
step 3, sending the PNR message to an apple server, and finally pushing the PNR message to an iPhone mobile phone;
FIG. 6 is a diagram of registration information submission for an iPhone client of the present invention;
FIG. 7 is a diagram of an iPhone client PNR travel reminder switch of the present invention;
FIG. 8 is a diagram showing an iPhone client PNR itinerary message display;
for example, an iPhone mobile phone client opens a "cruise crossbar" product, a traveler enters a registration interface first to submit registration information, and after successful registration, a client travel reminding switch is opened. See fig. 7, 8.
The service side extracts the passenger registered user in the previous day according to the client passenger registration information, then judges whether the passenger has the identity card information, and calls MQ service subscription PNR message notification according to the identity card information. The PNR notification message arrives asynchronously, the PNR analysis module program can periodically access the MQ service to inquire whether a new PNR original message arrives, the passenger can generate a new PNR after booking tickets, and when inquiring that the PNR message exists, the PNR analysis module program analyzes and performs related processing to generate a PNR message storage of the associated user ID. And the PNR pushing module sends the final PNR message and the information of the corresponding user iPhone mobile phone device to the apple APNS server, and finally pushes the information to the iPhone mobile phone client.
The iPhone mobile phone client automatically receives the PNR travel prompt without opening the client application, and then pops up a message box prompt, so that a traveler can open a 'travel vertical and horizontal' client and directly enter a corresponding travel interface of the PNR by clicking the prompt box, and the travel of the traveler is managed or customized. See fig. 8.