Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar modules or modules having the same or similar functionality throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flowchart of a method for detecting whether a lock seat abnormality occurs in a ticket purchasing process according to an embodiment of the present application, where the method includes:
s11: and selecting a seller, and acquiring seat information corresponding to the purchase ticket from the selected seller.
The embodiment will take a movie ticket as an example, and it is understood that the method can also be applied to other ticket processes capable of locking seats, for example, to the purchase and seat selection of an airline ticket.
The method of the embodiment can be applied to a movie platform to automatically complete the detection of the seat locking success rate. The movie platform refers to a platform provided for a user to purchase movie tickets online, for example, the method of the present embodiment is performed based on a Taobao movie.
The method of this embodiment may be implemented with a timer, for example, by a timer, timed to start on a daily basis.
After the system is started, the system can log in according to a preset user account to finish operations such as ticket buying, seat selection and the like. The preset user account is pre-registered, and can be used for buying tickets, selecting seats and the like on a ticketing system like a common user account.
Taking movie tickets as an example, the seller is a cinema. After start-up, cinema, movie, etc. information may be selected. For example, after the user logs in the movie platform, movie information is displayed to the user, after the user selects one movie, theater information showing the movie can be displayed, and the user can select one theater from the displayed theater information. Corresponding to each movie, each movie can be provided with a plurality of times, a user can select one time according to the needs of the user, and after the time is selected, corresponding seat information is obtained from the cinema.
The seat information includes, for example: a layout of seats, selected seats, unselected seats, etc.
S12: and selecting a seat according to the seat information, and triggering a ticketing system to lock the selected seat.
The user can enter the ticket buying and order placing process after selecting the seat, and can enter the payment process after clicking the order placing button. Wherein, before the user pays after placing the order, the ticketing system locks the seat selected by the user, and the seat locking state is usually kept for a certain time, such as 15 minutes.
Ticketing systems are typically located in theatre ticketing system providers. After a user selects seats on the movie platform and places an order, the movie platform can send an order placing instruction to the ticketing system, wherein the order placing instruction comprises seat information, and after the ticketing system receives the instruction, corresponding seats are locked according to the seat information.
S13: and acquiring a seat locking result of the selected seller according to the seat information acquisition result and the seat locking operation result, counting seat locking success rates after the seat locking result corresponding to each seller in the sellers to be inspected is acquired, and judging whether seat locking abnormality occurs according to the seat locking success rates.
For example, when seat information is not successfully acquired or seat locking is not successfully performed, it is determined that the seat locking result is failed, but when seat information is successfully acquired and seat locking is successfully performed, it is determined that the seat locking result is successful.
The seat locking result corresponding to each seller can be obtained by sequentially selecting one seller from all sellers needing to be inspected and triggering the ticketing system to lock the seat of the seller.
After the lock seat result corresponding to each seller is obtained, the success rate of the lock seat can be obtained through statistics. The seat locking success rate is the number of seats that can be successfully locked in all theaters divided by the total number of theaters. For example, the number of cinemas to be inspected is N, and each cinema in the N cinemas is respectively locked to obtain the locking result of each cinema, for example, if the number of cinemas successfully locked is M, the locking success rate is M/N.
After the seat locking success rate is obtained, whether seat locking abnormality occurs can be judged according to the seat locking success rate, for example, when the seat locking success rate is smaller than a preset value, the seat locking abnormality is determined to occur.
After the seat locking abnormality is determined, the cinema with the seat locking abnormality can be checked from the seat locking result detail, so that subsequent active investigation, detection and the like are performed to determine the reason of the seat locking abnormality, for example, the abnormality is caused in a movie platform, a ticketing system or a cinema, and further, a notification message can be sent to the system with the abnormality to remind the system of performing the abnormality processing.
In the embodiment, seat locking operation is performed on the preset seat by triggering the ticketing system, and seat locking abnormity can be timely found according to seat locking success rate, so that early warning is realized.
Fig. 2 is a schematic flowchart of a method for detecting whether an abnormal lock holder occurs in a ticket purchasing process according to another embodiment of the present application, where the present embodiment is an example of a lock holder in a ticket purchasing process.
Referring to fig. 2, the method includes:
s201: the automatic online inspection tool determines the cinema to be inspected.
The automatic online inspection tool can be arranged in a movie platform product, and the abnormality of the lock seat can be discovered in time.
The tool may be triggered to execute at a daily timing by a timer.
The tool can acquire city information to be inspected in the database, and theater information to be inspected in each city, so that all theaters to be inspected can be determined.
The theaters to be inspected in each city include, for example: theaters that can purchase tickets at the movie platform, and in addition, theaters that have a temporary absence of tickets can be filtered out in the theaters.
S202: the automatic online inspection tool sequentially traverses each cinema to be inspected which is not inspected in the cinemas to be inspected.
S203: the automatic online inspection tool selects a film with a schedule corresponding to the currently traversed cinema, acquires the showing time of the selected film, and preferentially selects the next showing time.
For example, for a theater, the number of movies currently shown in the theater may be multiple, and one movie may be randomly selected among the multiple movies.
After selecting a movie, the movie may include scenes corresponding to a plurality of presentation times, respectively, e.g., 9-11 am scenes, 2-4 pm scenes, etc. Of the plurality of sessions, the session with the presentation time at the last is selected first, and if the last session is full, the penultimate session is selected, and so on. The more back the show time is, the less probability of a full seat, and therefore the more favorable it is to select a valid seat.
S204: and the automatic online inspection tool sends a request message to the cinema corresponding to the selected session to acquire the seat information of the selected session.
S205: the cinema feeds back seat information or failure information.
S206: and the automatic online inspection tool judges whether the seat information is successfully acquired, if so, S207 is executed, and if not, S215 is executed.
The seat information includes, for example: layout coordinates of the seating map and the selected state of the seat, etc.
S207: and the automatic online inspection tool selects a seat which is not selected from the acquired seat information.
S208: the automatic online inspection tool adopts a preset user account to log in and sends an order placing instruction to the ticketing system.
The preset user account is pre-registered, and ticket buying, seat selection and the like can be carried out on the movie platform like common user accounts.
After the seat is selected, the user account and the selected seat information may be included in the next order.
S209: and the ticket selling system unlocks the historical lock seat information in the user account.
Generally, the number of the lock holders capable of being locked by each user is limited, so that in order to ensure that the lock holders can continue to execute, the historical lock holder information can be unlocked first.
For example, theater a seats were previously locked. If theater B is currently being traversed, theater a's seat may be unlocked prior to locking theater B's seat.
Of course, it is understood that if there is no historical lock seat information in the user account, the subsequent steps may be performed directly.
S210: the ticketing system locks the seat currently selected.
For example, after the automatic online inspection tool selects seats by using the logged-in user account, the automatic online inspection tool can send an order placing instruction to the ticketing system, the order placing instruction comprises selected seat information, and after the ticketing system receives the order placing instruction, the seat is locked according to the seat information in the order placing instruction.
S211: the ticketing system judges whether the seat locking is successful, if so, S212 is executed, otherwise, S213 is executed.
S212: and the ticketing system feeds back success information to the automatic online inspection tool.
E.g., successful theater log.
S213: the ticketing system judges whether the retry times are reached, if so, the step S214 is executed, otherwise, the step S210 and the subsequent steps are repeatedly executed.
For example, after the key seat fails, the key seat may be retried again after waiting for a preset time until the number of retries is reached, and the number of retries is preset.
S214: and the ticketing system feeds back failure information to the automatic online inspection tool.
The failure information mainly comprises network abnormity, seat information abnormity, server problem, cinema ticketing system database problem and the like.
S215: and the automatic online inspection tool acquires the lock seat result of the currently traversed cinema.
For example, if failure information fed back by the cinema is received, the seat locking result is determined to be failure, or if failure information fed back by the ticketing system is received, the seat locking result is also determined to be failure. Or if the success information fed back by the ticketing system is received, determining that the seat locking result is successful.
S216: and judging whether all the cinemas to be inspected are traversed, if so, executing S217, and otherwise, repeatedly executing S202 and the subsequent steps.
S217: and counting the success rate of the lock seat.
And counting the seat locking success rate of all the cinemas according to the success or failure of the seat locking result corresponding to each cinema.
After the seat locking success rate is obtained, corresponding processing can be carried out according to the seat locking success rate. For example, when the success rate of the lock seat is less than the preset value, early warning is carried out, and problems are timely checked.
In addition, the failure information can record the cinema with abnormal lock seat, and record the cinema with abnormal lock seat in the lock seat result detail, thereby carrying out subsequent active elimination and detection.
In the embodiment, seat locking operation is performed on the preset seat by triggering the ticketing system, and seat locking abnormity can be timely found according to seat locking success rate, so that early warning is realized. By automatically starting execution at a fixed time, automatic detection at a fixed time can be realized. By preferentially selecting the next showing session, the seats can be effectively selected. The success rate of the lock base can be improved by unlocking the historical lock base information before the lock base.
Fig. 3 is a schematic structural diagram of a device for detecting whether a lock seat abnormality occurs in a ticket purchasing process according to another embodiment of the present application. The device 30 comprises: an acquisition module 31, a lock seat module 32 and a statistics module 33.
And the obtaining module 31 is used for selecting a seller and obtaining seat information corresponding to the purchase ticket from the selected seller.
The present embodiment will take a movie ticket as an example, and it will be understood that the device may also be applied to other ticket processes capable of locking seats, for example, to the purchase and seat selection of an airline ticket.
The device of the embodiment can be applied to a movie platform to automatically complete the detection of the seat locking success rate. The movie platform refers to a platform provided for a user to purchase movie tickets online, and for example, the present embodiment is based on a Taobao movie.
The apparatus of this embodiment may be implemented in a timed start, for example, by a timer, timed to start on a daily basis.
Accordingly, referring to fig. 4, the apparatus further comprises:
and the starting module 34 is configured to receive a trigger instruction sent by the timer, and automatically start each module according to the trigger instruction.
After the system is started, the system can log in according to a preset user account to finish operations such as ticket buying, seat selection and the like. The preset user account is pre-registered, and can be used for buying tickets, selecting seats and the like on a ticketing system like a common user account.
Taking movie tickets as an example, the seller is a cinema. After start-up, cinema, movie, etc. information may be selected. For example, after the user logs in the movie platform, movie information is displayed to the user, after the user selects one movie, theater information showing the movie can be displayed, and the user can select one theater from the displayed theater information. Corresponding to each movie, each movie can be provided with a plurality of times, a user can select one time according to the needs of the user, and after the time is selected, corresponding seat information is obtained from the cinema.
The seat information includes, for example: a layout of seats, selected seats, unselected seats, etc.
In some embodiments, the obtaining module 31 is configured to obtain seat information corresponding to a purchase ticket at a selected seller, and includes:
selecting a film with a schedule from the selected sellers;
acquiring the showing time of the film, and preferentially selecting the next field of the showing time;
seat information corresponding to the selected session is acquired from the selected seller.
The seat locking module 32 is used for selecting a seat according to the seat information and triggering the ticketing system to lock the selected seat;
in some embodiments, the seat-locking module 32 is configured to trigger the ticketing system to perform a seat-locking operation on a selected seat, and includes:
after logging in a preset user account, sending an order placing instruction to a ticketing system, wherein the order placing instruction comprises selected seat information, so that the ticketing system performs seat locking operation according to the seat information.
The user can enter the ticket buying and order placing process after selecting the seat, and can enter the payment process after clicking the order placing button. Wherein, before the user pays after placing the order, the ticketing system locks the seat selected by the user, and the seat locking state is usually kept for a certain time, such as 15 minutes.
Ticketing systems are typically located in theatre ticketing system providers. After a user selects seats on the movie platform and places an order, the movie platform can send an order placing instruction to the ticketing system, wherein the order placing instruction comprises seat information, and after the ticketing system receives the instruction, corresponding seats are locked according to the seat information.
In some embodiments, the ticketing system is configured to perform seat locking operation according to the seat information, and comprises:
unlocking historical lock seat information corresponding to the user account;
and after the historical seat locking information is unlocked, performing seat locking operation according to the seat information.
The counting module 33 is configured to obtain a seat locking result of the selected seller according to the seat information obtaining result and the seat locking operation result, count a seat locking success rate after obtaining a seat locking result corresponding to each seller in the sellers to be inspected, and determine whether a seat locking abnormality occurs according to the seat locking success rate.
For example, when seat information is not successfully acquired or seat locking is not successfully performed, it is determined that the seat locking result is failed, but when seat information is successfully acquired and seat locking is successfully performed, it is determined that the seat locking result is successful.
The seat locking result corresponding to each seller can be obtained by sequentially selecting one seller from all sellers needing to be inspected and triggering the ticketing system to lock the seat of the seller.
After the lock seat result corresponding to each seller is obtained, the success rate of the lock seat can be obtained through statistics. The seat locking success rate is the number of seats that can be successfully locked in all theaters divided by the total number of theaters. For example, the number of cinemas to be inspected is N, and each cinema in the N cinemas is respectively locked to obtain the locking result of each cinema, for example, if the number of cinemas successfully locked is M, the locking success rate is M/N.
After the seat locking success rate is obtained, whether seat locking abnormality occurs can be judged according to the seat locking success rate, for example, when the seat locking success rate is smaller than a preset value, the seat locking abnormality is determined to occur.
After the seat locking abnormality is determined, the cinema with the seat locking abnormality can be checked from the seat locking result detail, so that subsequent active investigation, detection and the like are performed to determine the reason of the seat locking abnormality, for example, the abnormality is caused in a movie platform, a ticketing system or a cinema, and further, a notification message can be sent to the system with the abnormality to remind the system of performing the abnormality processing.
For the specific content of the above modules, reference may be made to the related description in the method embodiment, and details are not described herein again.
In the embodiment, seat locking operation is performed on the preset seat by triggering the ticketing system, and seat locking abnormity can be timely found according to seat locking success rate, so that early warning is realized. By automatically starting execution at a fixed time, automatic detection at a fixed time can be realized. By preferentially selecting the next showing session, the seats can be effectively selected. The success rate of the lock base can be improved by unlocking the historical lock base information before the lock base.
Fig. 5 is a schematic structural diagram of an electronic device according to another embodiment of the present application. The electronic device may specifically be a server. Referring to fig. 5, the electronic device 50 includes: the device comprises a shell 51, a processor 52, a memory 53, a circuit board 54 and a power circuit 55, wherein the circuit board 54 is arranged inside a space enclosed by the shell 51, and the processor 52 and the memory 53 are arranged on the circuit board 54; a power supply circuit 55 for supplying power to each circuit or device of the electronic apparatus; the memory 53 is used to store executable program code; the processor 52 runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the steps of:
selecting a seller, and acquiring seat information corresponding to a ticket purchase from the selected seller;
selecting a seat according to the seat information, and triggering a ticketing system to lock the selected seat;
and acquiring a seat locking result of the selected seller according to the seat information acquisition result and the seat locking operation result, counting seat locking success rates after the seat locking result corresponding to each seller in the sellers to be inspected is acquired, and judging whether seat locking abnormality occurs according to the seat locking success rates.
Optionally, the triggering ticketing system performs seat locking operation on the selected seat, including:
after logging in a preset user account, sending an order placing instruction to a ticketing system, wherein the order placing instruction comprises selected seat information, so that the ticketing system performs seat locking operation according to the seat information.
Optionally, the ticketing system performs seat locking operation according to the seat information, including:
unlocking historical lock seat information corresponding to the user account;
and after the historical seat locking information is unlocked, performing seat locking operation according to the seat information.
Optionally, the ticket purchase is a movie ticket, and the seller is a cinema.
Optionally, the obtaining, at the selected seller, seat information corresponding to the ticket purchase includes:
selecting a film with a schedule from the selected sellers;
acquiring the showing time of the film, and preferentially selecting the next field of the showing time;
seat information corresponding to the selected session is acquired from the selected seller.
Optionally, the method further includes:
and receiving a trigger instruction sent by the timer, and automatically starting according to the trigger instruction so as to execute the subsequent flow.
For specific contents of this embodiment, reference may be made to related descriptions in the foregoing embodiments, which are not described herein again.
In the embodiment, seat locking operation is performed on the preset seat by triggering the ticketing system, and seat locking abnormity can be timely found according to seat locking success rate, so that early warning is realized. By automatically starting execution at a fixed time, automatic detection at a fixed time can be realized. By preferentially selecting the next showing session, the seats can be effectively selected. The success rate of the lock base can be improved by unlocking the historical lock base information before the lock base.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.