Railway seat selection method and device, electronic equipment and readable storage medium

By introducing seat change willingness options and priority processing mechanisms in the railway seat selection system, passenger disputes caused by seat selection problems in the railway seat selection system are resolved, and passenger experience and operational efficiency are improved.

CN119250237APending Publication Date: 2025-01-03GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411168667.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Passenger disputes and frictions caused by seat selection problems in the railway seat selection system frequently occur, bringing passengers a bad seat selection experience.

Method used

A railway seat selection method is provided, allowing passengers to express their willingness to change seats when choosing seats, and realize seat replacement application and seat replacement operations through confirmation of peers and system priority processing.

Benefits of technology

It avoids disputes caused by seat selection issues between passengers and peers, improves passenger satisfaction and train operation efficiency, and provides passengers with a better and personalized service experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119250237A_ABST
    Figure CN119250237A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a railway seat selection method and device, electronic equipment and a readable storage medium. The method comprises the following steps: providing a seat change willingness option for a passenger; seat changing willingness information submitted by the passenger for the seat changing willingness option is received; when the seat changing willing information of the passenger is willing to change the seat, if the information of the accompanying persons submitted by the passenger is received, sending a confirmation request of whether to agree to change the seat of the passenger to the corresponding accompanying persons according to the information of the accompanying persons; receiving feedback information fed back by the peer for the confirmation request; when the feedback information is that the passenger is agreed to change the seat, if the free seat of the current train cannot meet the seat selection request submitted by other passengers, submitting a seat change application request to the passenger willing to change the seat; and when the passenger agrees to change the seat according to the seat of the passenger and the unoccupied seat of the train, changing the seat according to the seat of the passenger and the unoccupied seat of the train. According to the embodiment of the invention, higher-quality and personalized service experience is provided for passengers of the train.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular to a railway seat selection method, a railway seat selection device, an electronic device, and a computer-readable storage medium. Background Art

[0002] In today's society, the advancement of transportation technology has led to the emergence of a variety of transportation methods. Railway transportation is still the transportation method of choice for most people and industries because of its large-scale transportation capacity, wide railway network coverage, reasonable price, and high time efficiency. These characteristics of railway transportation determine its important position in the modern transportation system, especially in areas with large-scale frequent movement of people and goods.

[0003] With the advancement of technology, such as the development of high-speed railways and intelligent railway systems, the efficiency and convenience of railway transportation will be further improved. However, in the railway ticketing system, the incomplete seat selection system often brings many inconveniences to travelers. Today's seat selection system can support advance seat selection and arrange adjacent seats with fellow passengers. However, disputes and frictions caused by seat selection issues still occur frequently, which brings passengers a bad seat selection experience. Summary of the invention

[0004] The embodiments of the present invention provide a railway seat selection method, device, electronic device and computer-readable storage medium to solve the problem of disputes and frictions caused by seat selection issues among passengers, thereby causing a bad seat selection experience for passengers.

[0005] The embodiment of the present invention discloses a method for selecting a seat on a railway train, which is applied to a railway seat selection system. The method includes:

[0006] Provide passengers with the option to change seats if they wish;

[0007] receiving seat change intention information submitted by the passenger for the seat change intention option;

[0008] When the seat change intention information of the passenger indicates that the passenger is willing to change seats, if the companion information submitted by the passenger is received, a confirmation request is sent to the corresponding companion according to the companion information to ask whether the passenger agrees to change seats;

[0009] Receiving feedback information from the peer regarding the confirmation request;

[0010] When the feedback information indicates that the passenger is allowed to change seats, if the vacant seats on the current train cannot meet the seat selection requests submitted by other passengers, a seat change application request is submitted to the passenger who is willing to change seats;

[0011] When the passenger agrees to change seats in response to the seat change application request, the seat change is performed based on the passenger's seat and the vacant seats on the train.

[0012] Optionally, the railway seat selection system includes a plurality of databases, each of which stores train information of trains in the railway. Before providing the passenger with the seat change intention option, the method further includes:

[0013] Acquire train information of a train on a railway; wherein the train information includes at least a train identification, a train number, and a train remaining number of seats;

[0014] Extracting target train information from the train information, and determining a shard key based on the target train information;

[0015] The train information is stored in the database respectively according to the sharding key.

[0016] Optionally, the method further comprises:

[0017] receiving an event request submitted by the passenger;

[0018] Determine the priority corresponding to the event request; wherein the priorities respectively have corresponding message queues;

[0019] Putting the event request into the corresponding message queue according to the priority corresponding to the event request;

[0020] The event request in the message queue is processed according to the priority corresponding to the message queue.

[0021] Optionally, the receiving the event request submitted by the passenger includes:

[0022] The event request submitted by the passenger is received according to the preset flow limiting rules.

[0023] Optionally, after processing the event request in the message queue according to the priority corresponding to the message queue, the method further includes:

[0024] When the event request is a target event request, cache data corresponding to the event request is searched in the cache of the railway seat selection system. If cache data corresponding to the event request exists in the cache of the railway seat selection system, the cache data is fed back to the passenger. If cache data corresponding to the event request does not exist in the cache of the railway seat selection system, after obtaining the corresponding data from the database of the railway seat selection system, the data is cached in the cache of the railway seat selection system as cache data within a preset cache time.

[0025] Optionally, after processing the event request in the message queue according to the priority corresponding to the message queue, the method further includes:

[0026] Taking the database of the railway seat selection system that needs to be accessed by the event request as the target database;

[0027] Sending a prepare request to the target database;

[0028] Upon receiving a ready instruction returned by the target database in response to the prepare request, locking the target database and submitting the event request to the target database;

[0029] When all the processing results of the target databases for the event request are obtained, the processing results are fed back to the passenger and the target database is released;

[0030] When the processing results of the event request fed back by all the target databases are not obtained, the target database is released.

[0031] Optionally, when the feedback information is that the passenger is agreed to change seats, if the vacant seats in the current train cannot meet the seat selection requests submitted by other passengers, after submitting a seat change application request to the passenger who is willing to change seats, the method further includes:

[0032] When the passenger disagrees with the seat change application request, a seat change failure prompt message is sent to the other passengers.

[0033] Optionally, the method further comprises:

[0034] Receiving an active seat change application request sent by a seat change passenger; the active seat change application request is generated by the seat change passenger inputting train order information of the seat change passenger;

[0035] If the seat-changing passenger receives consent information for the active seat-changing application request, the seats of the seat-changing passenger and the seat-changing passenger are changed.

[0036] Optionally, the method further comprises:

[0037] After receiving the active seat change application request sent by the seat-changing passenger, the passenger whose seat is changed and the seat-changing passenger are prohibited from sending new active seat change application requests.

[0038] The embodiment of the present invention discloses a railway seat selection device on a railway train, which is applied to a railway seat selection system. The device includes:

[0039] A seat change intention option providing module is used to provide seat change intention options to passengers;

[0040] A seat change intention information receiving module, used to receive the seat change intention information submitted by the passenger for the seat change intention option;

[0041] A confirmation request sending module, configured to, when the seat change willingness information of the passenger indicates that the passenger is willing to change seats, send a confirmation request to the corresponding companion according to the companion information to determine whether the passenger agrees to change seats if the companion information submitted by the passenger is received;

[0042] A feedback information receiving module, used for receiving feedback information from the peer regarding the confirmation request;

[0043] A seat change application request sending module, configured to submit a seat change application request to the passenger who is willing to change seats when the feedback information indicates that the passenger is allowed to change seats and if the vacant seats on the current train cannot meet the seat selection requests submitted by other passengers;

[0044] The seat changing module is used to change the seat according to the passenger's seat and the vacant seats on the train when the passenger agrees to change the seat in response to the seat changing application request.

[0045] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0046] The memory is used to store computer programs;

[0047] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0048] The embodiment of the present invention further discloses a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the embodiment of the present invention.

[0049] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.

[0050] The embodiments of the present invention include the following advantages:

[0051] In an embodiment of the present invention, a seat change willingness option is provided to passengers, and seat change willingness information submitted by passengers for the seat change willingness option is received. When the seat change willingness information of the passenger is willing to change seats, if the information of the companions submitted by the passenger is received, a confirmation request is sent to the corresponding companions according to the companion information to determine whether to agree to the passenger's seat change, and feedback information of the companions for the confirmation request is received; when the feedback information is to agree to the passenger's seat change, if the vacant seats of the current train cannot meet the seat selection requests submitted by other passengers, a seat change application request is submitted to the passenger who is willing to change seats, and when the passenger agrees to change seats for the seat change application request, the seat change is performed according to the passenger's seat and the vacant seats of the train. In the embodiment of the present invention, after the passenger and the passenger's companions have both determined that they are willing to change seats, the passenger who has a seat change demand can be changed according to the passenger's seat and the vacant seats of the train, which not only avoids disputes and frictions caused by seat selection issues between passengers and their companions, but also comprehensively improves passenger satisfaction and train operation efficiency, and provides a more high-quality and personalized service experience for train passengers. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 is a flow chart of steps of a railway seat selection method provided in an embodiment of the present invention;

[0053] Figure 2 is a schematic diagram of an application environment provided in an embodiment of the present invention;

[0054] Figure 3 It is a schematic diagram of a process of selecting and changing a railway seat provided in an embodiment of the present invention;

[0055] Figure 4 is a structural block diagram of a railway seat selection device provided in an embodiment of the present invention;

[0056] Figure 5 It is a schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention. DETAILED DESCRIPTION

[0057] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0058] Looking back at past railway transportation incidents, the problem of verbal friction between passengers has become increasingly serious, especially during the Spring Festival travel season and holidays, most of which are caused by seat issues. At present, the railway seat selection system can support seat selection and can support consecutive seats if multiple people select seats. If there is no middle seat or no seat is selected, the seat selection system will automatically randomly assign consecutive seats (for example, it can randomly assign consecutive seats AB, BC, CD or DF, etc.). When the amount of seat selection data during holidays increases dramatically, the automatic random assignment of consecutive seats is still not perfect.

[0059] In view of the above problems, an embodiment of the present invention provides a sharded railway seat selection method, which can reduce many inconveniences among passengers. Specifically, in the method of the embodiment of the present invention, a seat change application function is added to the railway seat selection system. In this way, passengers can determine whether they need to change seats after determining seats. In the railway seat selection system, the priority of the transaction of the number of travelers can be increased. Then, the priority of the seat change application request proposed based on the seat change application function will be increased accordingly, ensuring that high-priority transactions can be processed first, thereby avoiding a database overload of the railway seat selection system caused by a sudden increase in data volume and causing system errors. Solving the load problem of the railway seat selection system also solves the problem of poor seat selection experience for some passengers caused by seat selection.

[0060] Reference Figure 1 , shows a flow chart of the steps of a railway seat selection method provided in an embodiment of the present invention, which is applied to a railway seat selection system. The method may specifically include the following steps:

[0061] Step 101: Provide the passenger with a seat change option.

[0062] Step 102: Receive seat change intention information submitted by the passenger for the seat change intention option.

[0063] In an embodiment of the present invention, the railway seat selection system is a sharded railway seat selection system. Exemplarily, the sharded railway seat selection system can be a sharded railway seat selection system based on Vitess. Vitess is a horizontal expansion system for MySQL. Vitess supports automatic sharding, and data can be distributed on multiple database instances to achieve horizontal expansion. Sharding is to flexibly design sharding strategies according to business needs and data characteristics. Of course, in actual applications, in addition to the sharded railway seat selection system based on Vitess, there may also be other sharded railway seat selection systems, such as sharded railway seat selection systems based on MongoDB, Apache Cassandra, and Elasticsearch, etc., and the embodiment of the present invention does not need to be limited to this.

[0064] In an embodiment of the present invention, a radio button or drop-down menu style seat change willingness option is added to the railway seat selection system to allow passengers to choose whether they are willing to change seats. Figure 2, is a schematic diagram of an application environment provided in an embodiment of the present invention. The railway seat selection system can be connected to a terminal device such as a passenger's mobile phone for communication. When the passenger selects a seat, locks a seat, pays for a ticket, etc. through the terminal device, the passenger can receive a seat change intention option provided by the railway seat selection system. The passenger selects the option of "willing" or "unwilling" according to his or her actual situation. The corresponding seat change intention information is generated according to the passenger's selection and submitted to the railway seat selection system. The railway seat selection system records the passenger's selection (which can be recorded using a unique identifier) ​​for reference retrieval when processing a seat change application request later.

[0065] Step 103: When the seat change intention information of the passenger indicates that the passenger is willing to change seats, if the companion information submitted by the passenger is received, a confirmation request is sent to the corresponding companion according to the companion information to inquire whether the passenger agrees to change seats.

[0066] Step 104: Receive feedback information from the peer regarding the confirmation request.

[0067] In a specific implementation, a passenger may not be traveling alone, but may be traveling with one or more companions. When the passenger's seat change willingness information indicates that he is willing to change seats, a seat change identity verification is required. Specifically, the passenger is required to provide the companion information of the companions (such as the order number). The railway seat selection system can find the corresponding companions according to the order number and send a confirmation request to the passenger's companions, wherein the confirmation request can be sent through SMS, email, or in-application notification. After receiving the confirmation request, the companions can confirm by clicking on the confirmation link or in the railway seat selection system. After receiving the feedback information submitted by the companions for the confirmation request, if the feedback information is that the passenger agrees to change seats, it can be marked as the seat change identity verification passed. After the seat change identity verification is passed, the railway seat selection system allows the seat change operation based on the passenger's seat.

[0068] In one embodiment of the present invention, the method may further include:

[0069] When the passenger disagrees with the seat change application request, a seat change failure prompt message is sent to the other passengers.

[0070] Of course, when the passenger's willingness to change seats indicates that he is unwilling to change seats, or the feedback information submitted by the companions in response to the confirmation request indicates that they do not agree with the passenger's seat change, the railway seat selection system will not allow seat changes based on the passenger's seat. This can avoid the subsequent forced seat change that may cause passenger dissatisfaction.

[0071] Step 105: When the feedback information indicates that the passenger is allowed to change seats, if the available seats in the current train cannot meet the seat selection requests submitted by other passengers, a seat change application request is submitted to the passenger who is willing to change seats.

[0072] Step 106: When the passenger agrees to change the seat in response to the seat change application, the seat is changed according to the passenger's seat and the available seats on the train.

[0073] In an embodiment of the present invention, other passengers can choose whether they are willing to change seats based on their willingness to change seats, and can also submit the number of seats they need in their own orders. For example, the number of seats they need can be 2. At this time, the railway seat selection system can retrieve the current seat allocation in the database to check whether there are enough consecutive seats to meet the number of seats required by other passengers. If there is a continuous number of seats that meet the requirements, these seats are directly locked and the seat reservation is completed. If there is no continuous number of seats that meet the requirements, the railway seat selection system first locks a single vacant seat to prevent other passengers from having no seats. Then the railway seat selection system retrieves passengers who are willing to change seats, and selects seats from these passengers that meet the number of seats and positions of other passengers (for example, next to the vacant seats). Then, the railway seat selection system sends a seat change application request to these passengers. When the seat change application request is agreed by these passengers, the railway seat selection system can modify the seat information of the passenger and other passengers, regenerate a new order, and notify the passenger and other passengers.

[0074] Of course, if all seat change requests of other passengers are rejected by the passenger, the railway seat selection system can prompt other passengers who cannot change seats and suggest other passengers to choose other seats or other flights.

[0075] In an embodiment of the present invention, a seat change willingness option is provided to passengers, and seat change willingness information submitted by passengers for the seat change willingness option is received. When the seat change willingness information of the passenger is willing to change seats, if the information of the companions submitted by the passenger is received, a confirmation request is sent to the corresponding companions according to the companion information to determine whether to agree to the passenger's seat change, and feedback information of the companions for the confirmation request is received; when the feedback information is to agree to the passenger's seat change, if the vacant seats of the current train cannot meet the seat selection requests submitted by other passengers, a seat change application request is submitted to the passenger who is willing to change seats, and when the passenger agrees to change seats for the seat change application request, the seat change is performed according to the passenger's seat and the vacant seats of the train. In the embodiment of the present invention, after the passenger and the passenger's companions have both determined that they are willing to change seats, the passenger who has a seat change demand can be changed according to the passenger's seat and the vacant seats of the train, which not only avoids disputes and frictions caused by seat selection issues between passengers and their companions, but also comprehensively improves passenger satisfaction and train operation efficiency, and provides a more high-quality and personalized service experience for train passengers.

[0076] In one embodiment of the present invention, the railway seat selection system includes a plurality of databases, each of which stores train information of trains in the railway. Before providing the passenger with a seat change intention option, the method further includes:

[0077] Acquire train information of a train on a railway; wherein the train information includes at least a train identification, a train number, and a train remaining number of seats;

[0078] Extracting target train information from the train information, and determining a shard key based on the target train information;

[0079] The train information is stored in the database respectively according to the sharding key.

[0080] In an embodiment of the present invention, a railway seat selection system includes multiple databases. The railway seat selection system can obtain train information of all trains in the railway, wherein the train information can at least include information such as train identification, number of trains, and number of remaining seats on the train. The target train information is further extracted from the train information. Exemplarily, the target train information can be the number of trains and the number of remaining seats on the train. Then, a shard key can be designed based on the number of trains and the number of remaining seats on the train or other factors, and the train information can be stored in different databases based on the shard key to balance the load and avoid overloading a single database node. Specifically, the shard key is a key field that determines the distribution of data (such as train information) between different shards (databases), which directly affects the load balancing of the data and the efficiency of data query.

[0081] In one embodiment of the present invention, the method may further include:

[0082] receiving an event request submitted by the passenger;

[0083] Determine the priority corresponding to the event request; wherein the priorities respectively have corresponding message queues;

[0084] Putting the event request into the corresponding message queue according to the priority corresponding to the event request;

[0085] The event request in the message queue is processed according to the priority corresponding to the message queue.

[0086] In an embodiment of the present invention, the railway seat selection system defines priority rules. In a specific example of the present invention, event requests submitted by passengers can be prioritized as follows: High-priority event requests (high-priority transactions): event requests (operations) for passenger seat selection and seat locking. These event requests are crucial to the passenger's seat selection experience and require immediate response. Medium-priority event requests (medium-priority transactions): payment and order confirmation. Although these event requests are also important, they can tolerate slight delays. Low-priority event requests (low-priority transactions): train seat map updates, train number updates, etc. These event requests usually do not need to be completed immediately and can be processed when the railway seat selection system load is low.

[0087] Specifically, different message queues are set in the database connection pool. Different message queues have different priorities. Event requests are placed in message queues of corresponding priorities according to their priorities. Then, the railway seat selection system can process event requests in the message queues in order according to their priorities, thereby ensuring that high-priority transactions are processed first.

[0088] In one embodiment of the present invention, the receiving the event request submitted by the passenger includes:

[0089] The event request submitted by the passenger is received according to the preset flow limiting rules.

[0090] In an embodiment of the present invention, the railway seat selection system can process and receive event requests submitted by passengers according to pre-set current limiting rules. Specifically, the current limiting rules limit the upper limit of the number of event requests that the railway seat selection system can process within a certain time window. When the request arrives at the railway seat selection system, the railway seat selection system will check whether the number of requests in the current time window has reached or exceeded the preset limit. If it does not exceed the preset limit, the event request can be received and processed. If it exceeds the preset limit, additional event requests will be rejected or delayed. Of course, in order to ensure that high-priority event requests can be processed normally, the current limiting rules can also be set to receive and process high-priority event requests normally even if they exceed the preset limit, thereby ensuring the passenger's seat selection experience.

[0091] In an embodiment of the present invention, after processing the event request in the message queue according to the priority corresponding to the message queue, the method further includes:

[0092] When the event request is a target event request, cache data corresponding to the event request is searched in the cache of the railway seat selection system. If cache data corresponding to the event request exists in the cache of the railway seat selection system, the cache data is fed back to the passenger. If cache data corresponding to the event request does not exist in the cache of the railway seat selection system, after obtaining the corresponding data from the database of the railway seat selection system, the data is cached in the cache of the railway seat selection system as cache data within a preset cache time.

[0093] In an embodiment of the present invention, for an event request for a target event request, the railway seat selection system can set a cache setTime function for its corresponding data. Specifically, the setTime function refers to setting an expiration time or validity period for the cached data. The setTime function can be used to control the life cycle of the cached data, ensuring that the cached data automatically expires or is removed after a certain period of time, thereby maintaining the freshness and consistency of the data. Among them, the target event request can be an event request for requesting a train seat map update, a train number update, etc. for data that is frequently read from the database. For these event requests, the cache can be used to reduce direct access to the back-end database, thereby reducing the load on the railway seat selection system.

[0094] Specifically, when the event request is a target event request, such as an event request for updating a train seat map, it is possible to search in the cache of the railway seat selection system whether there is cache data corresponding to the event request. If there is cache data corresponding to the event request in the cache of the railway seat selection system, the cache data will be directly fed back to the passenger from the cache. If there is no cache data corresponding to the event request in the cache of the railway seat selection system, the corresponding data can be obtained from the database of the railway seat selection system and cached in the cache of the railway seat selection system as cache data within a preset cache time. In this way, when the target event request is received again subsequently, there is no need to access the database of the railway seat selection system, but only the cache of the railway seat selection system can be accessed.

[0095] In an embodiment of the present invention, after processing the event request in the message queue according to the priority corresponding to the message queue, the method further includes:

[0096] Taking the database of the railway seat selection system that needs to be accessed by the event request as the target database;

[0097] Sending a prepare request to the target database;

[0098] Upon receiving a ready instruction returned by the target database in response to the prepare request, locking the target database and submitting the event request to the target database;

[0099] When all the processing results of the target databases for the event request are obtained, the processing results are fed back to the passenger and the target database is released;

[0100] When the processing results of the event request fed back by all the target databases are not obtained, the target database is released.

[0101] In the specific implementation, after receiving the event request submitted by the passenger, if the event request only requires one shard (database), the event request can be directly submitted to the database and processed. If the event request requires multiple databases, that is, the event request is a cross-shard transaction, the railway seat selection system provides a two-phase commit protocol to ensure ACID (atomicity, consistency, isolation, and durability) properties, while minimizing the time of locking the resources of the railway seat selection system (such as database). Among them, ACID properties are a set of standards in database transaction processing, which are used to ensure the reliability and consistency of transactions.

[0102] Specifically, the processing of event requests by the railway seat selection system can be divided into two stages, namely the preparation stage and the submission stage. In the preparation stage, the transaction manager of the railway seat selection system sends a preparation request to the database, returns a ready instruction if successful and locks the target database that needs to participate in the event request processing, and returns a termination instruction if failed; in the submission stage, after receiving the ready instruction, the event request is submitted to the database so that the database processes the transaction corresponding to the event request. When all target databases feedback the processing results of the event request, the processing results can be fed back to the passengers and the target database is released. Of course, if all target databases do not feedback the processing results of the event request, the target database is released and a termination instruction is received. At this time, the transaction manager is required to roll back the data and release the target database to avoid the railway seat selection system being in an occupied state.

[0103] In one embodiment of the present invention, the method further comprises:

[0104] Receiving an active seat change application request sent by a seat change passenger; the active seat change application request is generated by the seat change passenger inputting train order information of the seat change passenger;

[0105] If the seat-changing passenger receives consent information for the active seat-changing application request, the seats of the seat-changing passenger and the seat-changing passenger are changed.

[0106] In an embodiment of the present invention, when passengers select seats in a railway seat selection system, when two passengers (i.e., the seat-changing passenger and the seat-changed passenger) wish to change seats, but the two passengers are not booked in the same order, that is, the two passengers have reserved seats in different orders, for example, passenger A has reserved seat A1 in order 1, and passenger B has reserved seat B2 in order 2, at this time, passenger A and passenger B can negotiate and decide who will initiate an active seat change application request, and then, the seat-changing passenger (e.g., passenger A) who initiates the active seat change application request needs to input the order number of the seat-changed passenger (e.g., passenger B) in the railway seat selection system. After receiving the active seat change application request from passenger A, the railway seat selection system will send a confirmation request to passenger B, asking passenger B whether he agrees to the seat change. If the consent information of passenger B to the active seat change application request is received, the seats of the seat-changing passenger and the seat-changed passenger can be changed.

[0107] In one embodiment of the present invention, the method further comprises:

[0108] After receiving the active seat change application request sent by the seat-changing passenger, the passenger whose seat is changed and the seat-changing passenger are prohibited from sending new active seat change application requests.

[0109] In an embodiment of the present invention, after the seat-changing passenger sends an active seat-changing application request, the railway seat selection system will temporarily lock the seat-changing passenger and the passenger whose seat is changed. At this time, neither the seat-changing passenger nor the passenger whose seat is changed can initiate new active seat-changing application requests, thereby avoiding malicious seat changes (i.e. malicious passengers (or malicious third parties) constantly initiate active seat-changing application requests to interfere with others) and resource waste (i.e. system resources are occupied by unnecessary seat-changing requests), which interferes with the normal seat-changing process.

[0110] In order to enable those skilled in the art to better understand the embodiments of the present invention, a specific example is used below for illustration. Figure 3 , is a schematic diagram of a process of selecting and changing seats on a railway provided in an embodiment of the present invention. The specific process of selecting and changing seats is as follows:

[0111] When passengers select their seats:

[0112] 1. When passenger A selects his seat: Select seat: Seat 12A; and select whether he is willing to change seats: Yes / No / Ask.

[0113] 2. Passenger A's companion, i.e. Passenger B, receives the confirmation request: Passenger B confirms Passenger A's seat change request through the railway seat selection system (e.g., clicks a confirmation link).

[0114] 3. The railway seat selection system records the seat change request: The railway seat selection system marks the seat change request as approved by the identity review.

[0115] 4. Seat change request processing: The railway seat selection system performs seat change operations based on the selections of passengers A and B.

[0116] When passengers change seats:

[0117] 1. Based on the vitess seat selection system (railway seat selection system);

[0118] 2. Prevent overload (the means to prevent overload may include but are not limited to sharding / caching / current limiting / optimization);

[0119] 3. Priority rules: Priority rules are used to set different priorities for different things (event requests), for example, they can be divided into high / medium / low priority matters;

[0120] 4. Event response; that is, upon receiving an event request, the response can be sorted according to priority;

[0121] 5. If the event request is for passenger seat selection, seat change, etc., it can be submitted to the railway seat selection system to change seats based on the seats and vacancies of the passengers willing to change seats.

[0122] The following processing can be achieved by applying the embodiments of the present invention: 1. Analyze hot data; during holidays, the flow of people is large, and multiple people using the railway seat selection system at the same time will cause the system load to be too high, resulting in system crashes. Intelligent routing and sharding strategies can be used to ensure the load balance of the railway seat selection system so that it can operate normally. Due to the large volume of data, a small amount of data can be migrated to a lower shard (database) that stores the railway seat selection system, so that the system can achieve a uniform distribution effect, avoiding overload of certain shards due to a sudden increase in data volume. Through configuration, high-priority read and write operations can be assigned to shards with better performance or lower load. 2. Cross-shard operation data; in the railway seat selection system, since the seats and the number of travelers are placed in different areas, the database administrator defines corresponding parameters between the areas so that the data on the two shards can be associated. 3. Seat change request: Add a parameter (unique identifier) ​​to indicate whether the passenger is willing to change seats. When passengers choose seats, they can add a seat change willingness option to allow passengers to choose whether they are willing to change seats with other passengers after booking their seats. At the same time, in order to resolve malicious seat changes or avoid seat change conflicts, the passenger's companions also need to complete identity verification, thereby ensuring that there will be no friction caused by the companions' lack of knowledge during subsequent seat changes.

[0123] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0124] Reference Figure 4 , shows a structural block diagram of a railway seat selection device provided in an embodiment of the present invention, which is applied to a railway seat selection system. The device may specifically include the following modules:

[0125] A seat change intention option providing module 401 is used to provide a seat change intention option to the passenger;

[0126] The seat change intention information receiving module 402 is used to receive the seat change intention information submitted by the passenger for the seat change intention option;

[0127] The confirmation request sending module 403 is used for sending a confirmation request to the corresponding companions to determine whether to agree to the seat change of the passenger according to the companion information when the seat change willingness information of the passenger indicates that the passenger is willing to change seats, if the companion information submitted by the passenger is received;

[0128] A feedback information receiving module 404 is used to receive feedback information from the peer regarding the confirmation request;

[0129] The seat change application request sending module 405 is used to submit a seat change application request to the passenger who is willing to change seats when the feedback information indicates that the passenger is allowed to change seats and if the vacant seats on the current train cannot meet the seat selection requests submitted by other passengers;

[0130] The seat changing module 406 is used to change the seat according to the passenger's seat and the available seats on the train when the passenger agrees to change the seat in response to the seat changing application request.

[0131] In one embodiment of the present invention, the railway seat selection system includes a plurality of databases, each of which stores train information of trains in the railway. Before providing the seat change intention option to the passenger, the device further includes: a slicing module for:

[0132] Acquire train information of a train on a railway; wherein the train information includes at least a train identification, a train number, and a train remaining number of seats;

[0133] Extracting target train information from the train information, and determining a shard key based on the target train information;

[0134] The train information is stored in the database respectively according to the sharding key.

[0135] In one embodiment of the present invention, the device further includes: an event request processing module, configured to:

[0136] receiving an event request submitted by the passenger;

[0137] Determine the priority corresponding to the event request; wherein the priorities respectively have corresponding message queues;

[0138] Putting the event request into the corresponding message queue according to the priority corresponding to the event request;

[0139] The event request in the message queue is processed according to the priority corresponding to the message queue.

[0140] In one embodiment of the present invention, the receiving the event request submitted by the passenger includes:

[0141] The event request submitted by the passenger is received according to the preset flow limiting rules.

[0142] In one embodiment of the present invention, the device further comprises: an event type determination module, which is used to

[0143] When the event request is a target event request, cache data corresponding to the event request is searched in the cache of the railway seat selection system. If cache data corresponding to the event request exists in the cache of the railway seat selection system, the cache data is fed back to the passenger. If cache data corresponding to the event request does not exist in the cache of the railway seat selection system, after obtaining the corresponding data from the database of the railway seat selection system, the data is cached in the cache of the railway seat selection system as cache data within a preset cache time.

[0144] In one embodiment of the present invention, the apparatus further includes: a submitting module, configured to:

[0145] Taking the database of the railway seat selection system that needs to be accessed by the event request as the target database;

[0146] Sending a prepare request to the target database;

[0147] Upon receiving a ready instruction returned by the target database in response to the prepare request, locking the target database and submitting the event request to the target database;

[0148] When all the processing results of the target databases for the event request are obtained, the processing results are fed back to the passenger and the target database is released;

[0149] When the processing results of the event request fed back by all the target databases are not obtained, the target database is released.

[0150] In one embodiment of the present invention, the device further comprises: a seat change failure prompt module, which is used to:

[0151] When the passenger disagrees with the seat change application request, a seat change failure prompt message is sent to the other passengers.

[0152] In one embodiment of the present invention, the device further comprises: an event type determination module, which is used to

[0153] Receiving an active seat change application request sent by a seat change passenger; the active seat change application request is generated by the seat change passenger inputting train order information of the seat change passenger;

[0154] If the seat-changing passenger receives consent information for the active seat-changing application request, the seats of the seat-changing passenger and the seat-changing passenger are changed.

[0155] In one embodiment of the present invention, the device further comprises: an active seat changing module, which is used to:

[0156] After receiving the active seat change application request sent by the seat-changing passenger, the passenger whose seat is changed and the seat-changing passenger are prohibited from sending new active seat change application requests.

[0157] In an embodiment of the present invention, a seat change willingness option is provided to passengers, and seat change willingness information submitted by passengers for the seat change willingness option is received. When the seat change willingness information of the passenger is willing to change seats, if the information of the companions submitted by the passenger is received, a confirmation request is sent to the corresponding companions according to the companion information to determine whether to agree to the passenger's seat change, and feedback information of the companions for the confirmation request is received; when the feedback information is to agree to the passenger's seat change, if the vacant seats of the current train cannot meet the seat selection requests submitted by other passengers, a seat change application request is submitted to the passenger who is willing to change seats, and when the passenger agrees to change seats for the seat change application request, the seat change is performed according to the passenger's seat and the vacant seats of the train. In the embodiment of the present invention, after the passenger and the passenger's companions have both determined that they are willing to change seats, the passenger who has a seat change demand can be changed according to the passenger's seat and the vacant seats of the train, which not only avoids disputes and frictions caused by seat selection issues between passengers and their companions, but also comprehensively improves passenger satisfaction and train operation efficiency, and provides a more high-quality and personalized service experience for train passengers.

[0158] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0159] In addition, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned railway seat selection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0160] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned railway seat selection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0161] An embodiment of the present invention also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned railway seat selection method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0162] Figure 5 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0163] The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0164] It should be understood that in the embodiment of the present invention, the radio frequency unit 501 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 510 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 501 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.

[0165] The electronic device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0166] The audio output unit 503 can convert the audio data received by the RF unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 can also provide audio output related to a specific function performed by the electronic device 500 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, etc.

[0167] The input unit 504 is used to receive audio or video signals. The input unit 504 may include a graphics processor (GPU) 5041 and a microphone 5042. The graphics processor 5041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 506. The image frame processed by the graphics processor 5041 can be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502. The microphone 5042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 501 in the case of a telephone call mode.

[0168] The electronic device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 5061 and / or the backlight when the electronic device 500 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 505 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0169] The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0170] The user input unit 507 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 5071 or near the touch panel 5071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 5071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 510, receives the command sent by the processor 510 and executes it. In addition, the touch panel 5071 can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 5071, the user input unit 507 may also include other input devices 5072. Specifically, other input devices 5072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.

[0171] Furthermore, the touch panel 5071 may be overlaid on the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it transmits the information to the processor 510 to determine the type of the touch event. Then, the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Figure 5 In the figure, the touch panel 5071 and the display panel 5061 are used as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.

[0172] The interface unit 508 is an interface for connecting an external device to the electronic device 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 500 or may be used to transmit data between the electronic device 500 and an external device.

[0173] The memory 509 can be used to store software programs and various data. The memory 509 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 509 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0174] The processor 510 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 509 and calling data stored in the memory 509, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 510.

[0175] The electronic device 500 may also include a power supply 511 (such as a battery) for supplying power to each component. Preferably, the power supply 511 may be logically connected to the processor 510 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0176] In addition, the electronic device 500 includes some functional modules not shown, which will not be described in detail here.

[0177] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0178] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0179] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

[0180] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0181] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0182] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0183] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0184] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0185] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0186] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for selecting a seat on a railway train, characterized in that: Applied to a railway seat selection system, the method comprises: Provide passengers with the option to change seats if they wish; receiving seat change intention information submitted by the passenger for the seat change intention option; When the seat change intention information of the passenger indicates that the passenger is willing to change seats, if the companion information submitted by the passenger is received, a confirmation request is sent to the corresponding companion according to the companion information to ask whether the passenger agrees to change seats; Receiving feedback information from the peer regarding the confirmation request; When the feedback information indicates that the passenger is allowed to change seats, if the vacant seats on the current train cannot meet the seat selection requests submitted by other passengers, a seat change application request is submitted to the passenger who is willing to change seats; When the passenger agrees to change seats in response to the seat change application request, the seat change is performed based on the passenger's seat and the vacant seats on the train.

2. The method according to claim 1, characterized in that The railway seat selection system includes a plurality of databases, each of which stores train information of trains in the railway. Before providing the passenger with a seat change intention option, the method further includes: Acquire train information of a train on a railway; wherein the train information includes at least a train identification, a train number, and a train remaining number of seats; Extracting target train information from the train information, and determining a shard key based on the target train information; The train information is stored in the database respectively according to the sharding key.

3. The method according to claim 2, characterized in that The method further comprises: receiving an event request submitted by the passenger; Determine the priority corresponding to the event request; wherein the priorities respectively have corresponding message queues; Putting the event request into the corresponding message queue according to the priority corresponding to the event request; The event request in the message queue is processed according to the priority corresponding to the message queue.

4. The method according to claim 3, characterized in that The receiving the event request submitted by the passenger comprises: The event request submitted by the passenger is received according to the preset flow limiting rules.

5. The method according to claim 3, characterized in that: After processing the event request in the message queue according to the priority corresponding to the message queue, the method further includes: When the event request is a target event request, cache data corresponding to the event request is searched in the cache of the railway seat selection system. If cache data corresponding to the event request exists in the cache of the railway seat selection system, the cache data is fed back to the passenger. If cache data corresponding to the event request does not exist in the cache of the railway seat selection system, after obtaining the corresponding data from the database of the railway seat selection system, the data is cached in the cache of the railway seat selection system as cache data within a preset cache time.

6. The method according to claim 5, characterized in that After processing the event request in the message queue according to the priority corresponding to the message queue, the method further includes: Taking the database of the railway seat selection system that needs to be accessed by the event request as the target database; Sending a prepare request to the target database; Upon receiving a ready instruction returned by the target database in response to the prepare request, locking the target database and submitting the event request to the target database; When all the processing results of the target databases for the event request are obtained, the processing results are fed back to the passenger and the target database is released; When the processing results of the event request fed back by all the target databases are not obtained, the target database is released.

7. The method according to claim 1, characterized in that When the feedback information is that the passenger is allowed to change seats, if the vacant seats in the current train cannot meet the seat selection requests submitted by other passengers, after submitting a seat change application request to the passenger who is willing to change seats, the method further includes: When the passenger disagrees with the seat change application request, a seat change failure prompt message is sent to the other passengers.

8. The method according to claim 1, characterized in that The method further comprises: Receiving an active seat change application request sent by a seat change passenger; the active seat change application request is generated by the seat change passenger inputting train order information of the seat change passenger; If the seat-changing passenger receives consent information for the active seat-changing application request, the seats of the seat-changing passenger and the seat-changing passenger are changed.

9. The method according to claim 8, characterized in that The method further comprises: After receiving the active seat change application request sent by the seat-changing passenger, the passenger whose seat is changed and the seat-changing passenger are prohibited from sending new active seat change application requests.

10. A railway seat selection device on a railway train, characterized in that: Applied to a railway seat selection system, the device comprises: A seat change intention option providing module is used to provide seat change intention options to passengers; A seat change intention information receiving module, used to receive the seat change intention information submitted by the passenger for the seat change intention option; A confirmation request sending module, configured to, when the seat change willingness information of the passenger indicates that the passenger is willing to change seats, send a confirmation request to the corresponding companion according to the companion information to determine whether the passenger agrees to change seats if the companion information submitted by the passenger is received; A feedback information receiving module, used for receiving feedback information from the peer regarding the confirmation request; A seat change application request sending module, configured to submit a seat change application request to the passenger who is willing to change seats when the feedback information indicates that the passenger is allowed to change seats and if the vacant seats on the current train cannot meet the seat selection requests submitted by other passengers; The seat changing module is used to change the seat according to the passenger's seat and the vacant seats on the train when the passenger agrees to change the seat in response to the seat changing application request.

11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 9 when executing the program stored in the memory.

12. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 9.