Session Management Method, Device, Server, and Storage Medium

By receiving the service change request from the merchant terminal, a time schedule is generated based on the theme duration, opening time interval and business time period, which solves the problem of low session management efficiency in the existing technology, and achieves more efficient process schedule and user needs satisfaction.

CN111882221BActive Publication Date: 2025-05-27BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010748546.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-30
Publication Date
2025-05-27
Estimated Expiration
2040-07-30

AI Technical Summary

Technical Problem

The prior art is inefficient when managing the number of games of real-life escape rooms and cannot meet the increase in user demand.

Method used

By receiving the session change request sent by the merchant terminal, a session arrangement table is generated based on the topic duration, opening time interval and business time period, and the sliding window and sliding step length methods are used to optimize the session arrangement and increase the number of sessions.

Benefits of technology

It improves the efficiency of schedule and increases the number of schedules during the business hours, which can better meet users' experience needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111882221B_ABST
    Figure CN111882221B_ABST
Patent Text Reader

Abstract

The present disclosure provides a session management method, apparatus, server, and storage medium, belonging to the field of Internet technologies. The method includes: receiving a session change request carrying the theme duration of a specified theme activity, the start time interval between two adjacent sessions, and the business hours of a merchant, where the start time interval between two adjacent sessions is less than the theme duration; generating a session arrangement table corresponding to the specified theme activity according to the theme duration, the start time interval between two adjacent sessions, and the business hours, the session arrangement table being used to indicate the session distribution of the specified theme activity during the business hours; and sending the session arrangement table to a terminal. The present disclosure receives a session change request sent by a terminal, the session change request carrying the start time interval between two adjacent sessions of a specified theme activity. Since the start time interval between two adjacent sessions is less than the theme duration, there is an overlap in the session time periods of two adjacent sessions, so that the number of sessions arranged within the determined business hours increases, improving the session arrangement efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technologies, and particularly to a method, apparatus, server, and storage medium for session management. Background Art

[0002] In recent years, themed activities focusing on different contents have developed rapidly and have become the most popular entertainment and leisure projects at present. Taking the live escape room game as an example, due to its strong interest, challenge, and sense of scenario, it has attracted a large number of users who pursue freshness and excitement to participate in the experience. Limited by the demand for venues for live escape room games and the number of merchants that can provide live escape room games, in the face of a large number of users who hope to participate in the experience, how to reasonably manage the sessions of live escape room games has become the top priority in the industry.

[0003] Currently, when the related technology performs session management, the following method is mainly adopted: a session management model is preset, and based on the session management model, with the theme duration of each themed activity as the shortest opening time interval between two adjacent sessions, the sessions of the themed activity are arranged. For example, if the theme duration of a certain themed activity is 120 minutes, then within four hours from 10:00 to 14:00, based on the session management model, two sessions can be arranged for this themed activity. The session time period of the first session is 10:00 to 12:00, and the session time period of the second session is 12:00 to 14:00.

[0004] However, with the increase in the demand for themed activities by users, the original session management method can no longer meet the demand of users, and the session arrangement efficiency is low. Therefore, there is an urgent need to provide a new session management method. Summary of the Invention

[0005] Embodiments of the present disclosure provide a method, apparatus, server, and storage medium for session management, which can improve the session arrangement efficiency. The technical solution is as follows:

[0006] On the one hand, a method for session management is provided, and the method includes:

[0007] Receiving a session change request sent by a terminal, where the terminal is a terminal used by a merchant providing a specified themed activity, and the session change request includes the theme duration of the specified themed activity, the opening time interval between two adjacent sessions, and the business hours of the merchant, and the opening time interval is less than the theme duration;

[0008] In response to the session change request, generating a session arrangement table corresponding to the specified themed activity according to the theme duration, the opening time interval, and the business hours, where the session arrangement table is used to indicate the session distribution of the specified themed activity within the business hours;

[0009] Send the session arrangement table to the terminal.

[0010] In another embodiment of the present disclosure, generating the session arrangement table corresponding to the specified theme activity according to the theme duration, the start time interval, and the business hours includes:

[0011] Taking the theme duration as a sliding window and the start time interval as a sliding step, slide from the start time to the end time of the business hours;

[0012] Obtain the number of sliding windows during the sliding process from the start time to the end time of the business hours;

[0013] Determine the number of sessions as the number of sliding windows;

[0014] Determine the time period corresponding to each sliding window as the session time period of the corresponding session;

[0015] Generate the session arrangement table according to the number of sessions and the session time period of each session.

[0016] In another embodiment of the present disclosure, after generating the session arrangement table corresponding to the specified theme activity according to the theme duration, the start time interval, and the business hours, it further includes:

[0017] Obtain the reservation situation of the original sessions before the session change;

[0018] Determine the status of each session in the session arrangement table according to the reservation situation of the original sessions.

[0019] In another embodiment of the present disclosure, determining the status of each session in the session arrangement table according to the reservation situation of the original sessions includes:

[0020] For the original sessions with successful reservations, obtain the session time periods of the original sessions;

[0021] Obtain the target sessions in the session arrangement table that overlap with the session time period of the original session and the time interval between the start time of the original session is less than the start time interval;

[0022] Determine the status of the target sessions as the occupied status.

[0023] In another embodiment of the present disclosure, determining the status of each session in the session arrangement table according to the reservation situation of the original sessions includes:

[0024] For the original sessions being reserved, release the session time periods occupied by the original sessions;

[0025] Determine the status of the original session as the idle state.

[0026] In another embodiment of the present disclosure, after determining the status of the original session as the idle state, it further includes:

[0027] Send a reservation failure prompt message to the terminal that has reserved the original session.

[0028] In another embodiment of the present disclosure, after sending the session arrangement table to the terminal, the method further includes:

[0029] Receive a session adjustment request sent by the terminal, where the session adjustment request includes the start time of the session to be adjusted;

[0030] In response to the session adjustment request, adjust the arrangement of each session in the session arrangement table according to the start time of the session to be adjusted and the start time interval.

[0031] In another embodiment of the present disclosure, after sending the session arrangement table to the terminal, the method further includes:

[0032] Receive a price storage request sent by the terminal, where the price storage request includes the price of each session in the session arrangement table;

[0033] In response to the price storage request, store the price corresponding to each session in the session arrangement table.

[0034] On the other hand, a session management device is provided, and the device includes:

[0035] A receiving module, configured to receive a session change request sent by a terminal, where the terminal is a terminal used by a merchant providing a specified theme activity, and the session change request includes the theme duration of the specified theme activity, the start time interval between two adjacent sessions, and the business hours of the merchant, and the start time interval is less than the theme duration;

[0036] A generating module, configured to, in response to the session change request, generate a session arrangement table corresponding to the specified theme activity according to the theme duration, the start time interval, and the business hours, where the session arrangement table is used to indicate the session distribution of the specified theme activity within the business hours;

[0037] A sending module, configured to send the session arrangement table to the terminal.

[0038] In another embodiment of the present disclosure, the generating module is configured to slide from the start time to the end time of the business period with the theme duration as the sliding window and the start time interval as the sliding step; obtain the number of sliding windows during the sliding process from the start time to the end time of the business period; determine the number of sliding windows as the number of sessions; determine the time period corresponding to each sliding window as the session time period of the corresponding session; and generate the session arrangement table according to the number of sessions and the session time period of each session.

[0039] In another embodiment of the present disclosure, the apparatus further includes:

[0040] An obtaining module, configured to obtain the reservation situation of the original session before the session change;

[0041] A determining module, configured to determine the status of each session in the session arrangement table according to the reservation situation of the original session.

[0042] In another embodiment of the present disclosure, the determining module is configured to, for the original session with a successful reservation, obtain the session time period of the original session; obtain the target session in the session arrangement table that overlaps with the session time period of the original session and the time interval between the start time of the original session is less than the start time interval; and determine the status of the target session as the occupied status.

[0043] In another embodiment of the present disclosure, the determining module is configured to, for the original session being reserved, release the session time period occupied by the original session; and determine the status of the original session as the idle status.

[0044] In another embodiment of the present disclosure, the sending module is further configured to send a reservation failure prompt message to the terminal that has reserved the original session.

[0045] In another embodiment of the present disclosure, the receiving module is further configured to receive a session adjustment request sent by the terminal, where the session adjustment request includes the start time of the session to be adjusted; and in response to the session adjustment request, adjust the arrangement of each session in the session arrangement table according to the start time of the session to be adjusted and the start time interval.

[0046] In another embodiment of the present disclosure, the apparatus further includes:

[0047] The receiving module is further configured to receive a price storage request sent by the terminal, where the price storage request includes the price of each session in the session arrangement table;

[0048] A storage module, configured to store the price corresponding to each session in the session arrangement table in response to the price storage request.

[0049] On the other hand, a server is provided, which includes a processor and a memory. At least one program code is stored in the memory and is loaded and executed by the processor to implement the session management method described above.

[0050] On the other hand, a computer-readable storage medium is provided. At least one program code is stored in the storage medium and is loaded and executed by a processor to implement the session management method described above.

[0051] The beneficial effects brought by the technical solutions provided in the embodiments of the present disclosure are as follows:

[0052] Receive a session change request sent by a terminal. The session change request carries the start time interval between two adjacent sessions of a specified theme activity. Since the start time interval is less than the theme duration, the session time periods of two adjacent sessions overlap. Therefore, the number of sessions arranged within the determined business hours increases, improving the session arrangement efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0054] Figure 1 is a schematic diagram of the implementation environment related to the session management method provided by the embodiments of the present disclosure;

[0055] Figure 2 is a session arrangement diagram before and after rolling provided by the embodiments of the present disclosure;

[0056] Figure 3 is a flowchart of a session management method provided by the embodiments of the present disclosure;

[0057] Figure 4 is a schematic diagram of a session setting interface provided by the embodiments of the present disclosure;

[0058] Figure 5 is a schematic diagram of inventory migration provided by the embodiments of the present disclosure;

[0059] Figure 6 is a schematic diagram of a pricing scheme provided by the embodiments of the present disclosure;

[0060] Figure 7 is a schematic diagram of the structure of a session management device provided by the embodiments of the present disclosure;

[0061] Figure 8 A server for session management shown according to an exemplary embodiment. Detailed implementation manners

[0062] To make the objectives, technical solutions, and advantages of the present disclosure clearer, the following will further describe the embodiments of the present disclosure in detail with reference to the accompanying drawings.

[0063] Before implementing the embodiments of the present disclosure, first, the nouns involved in the embodiments of the present disclosure are explained.

[0064] A session refers to the number of times a competition, movie, activity, etc. are held.

[0065] A themed activity refers to an activity carried out around a certain theme. The designated themed activities can be themes such as Jurassic Park, Escape Room, and Pyramid Invasion.

[0066] Rolling session means offline themed area operation. When the previous group of players are experiencing the lower half of the theme, the next group of players can enter the upper half of the theme. The two groups of players do not interfere with each other, improving the efficiency of session arrangement.

[0067] It can be understood that the terms "each", "multiple", and "any one" used in the embodiments of the present disclosure, multiple includes two or more, each refers to each one of the corresponding multiple, and any one refers to any one of the corresponding multiple. For example, multiple words include 10 words, and each word refers to each of these 10 words, and any one word refers to any one of the 10 words.

[0068] Please refer to Figure 1 , which shows the implementation environment involved in the session management method provided by the embodiments of the present disclosure. The implementation environment includes: a terminal 101 and a server 102.

[0069] Among them, the terminal 101 is the terminal used by the merchant providing the designated themed activity. The designated application is installed in the terminal 101. Based on the designated application, the merchant can manage the designated themed activity. The management includes setting the duration of the designated themed activity, the business hours of the merchant, the start time interval between two adjacent sessions, the price of each session, etc. The terminal 101 can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The embodiments of the present disclosure do not specifically limit the product type of the terminal 101.

[0070] Server 102 designates the background server of the application. This server 102 can receive requests sent by the terminal 101, process the received requests, and send the processing results to the terminal 101. This server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers.

[0071] The terminal 101 and the server 102 can be directly or indirectly connected through wired or wireless communication methods, and the embodiments of the present disclosure do not limit this here.

[0072] The embodiments of the present disclosure provide a session management method. This method provides a rolling session function, allowing merchants to reset the valid period of the session and the time interval between sessions. For theme activities that can achieve partitioned operation, the merchant can set the start time interval between two adjacent sessions to be less than the theme duration. In this way, when the players of the previous session enter the second half of the theme activity to experience, the players of the next session can enter the first half of the theme activity. Within the same time period, the number of arranged sessions increases, improving the session arrangement efficiency and operation efficiency. See Figure 2 , the theme duration of a certain theme activity is 120 minutes. Within four hours from 10:00 to 14:00, 2 sessions can be arranged for this theme activity before rolling. The session time period of the first session is 10:00 - 12:00, and the session time period of the second session is 12:00 - 14:00; after rolling, 3.5 sessions can be arranged for this theme activity. The session time period of the first session is 10:00 - 12:00, the session time period of the second session is 11:00 - 13:00, the session time period of the third session is 12:00 - 14:00, and the first half of the session time period of the fourth session is 13:00 - 14:00.

[0073] Based on Figure 1 the implementation environment shown, the embodiments of the present disclosure provide a session management method. See Figure 3 , the method flow provided by the embodiments of the present disclosure includes:

[0074] 301. The server receives the session change request sent by the terminal.

[0075] When the original session arrangement of the designated theme activity cannot meet the user volume demand, the merchant can send a session change request to the server through the used terminal to trigger the server to change the original sessions of the designated theme activity provided by the merchant daily, improving the merchant's operation efficiency to meet the experience needs of more users.

[0076] Among them, the session change request includes the theme duration of the specified theme activity, the start time interval between two adjacent sessions, and the business hours of the merchant, etc. The theme duration of the specified theme activity is determined by the theme content, and the theme duration of the specified theme activity can be 120 minutes, 180 minutes, etc. The start time interval between two adjacent sessions can be set by the merchant according to its own business status. The start time interval between two adjacent sessions can be a fixed duration, that is, the start time intervals between two adjacent sessions in the arranged sessions are the same. For example, the start time interval between any two adjacent sessions is 1 hour; the start time interval between two adjacent sessions can be an unfixed duration, that is, the start time intervals between two adjacent sessions in the arranged sessions are different. For example, the start time interval between the first session and the second session is 1 hour, the start time interval between the second session and the third session is 2 hours, and the start time interval between the third session and the fourth session is 1.5 hours, etc. This start time interval is less than the theme duration, so that more sessions can be arranged for the merchant within the business hours of the merchant, improving the business efficiency. The business hours of the merchant refer to the time period between the start business time and the end business time of the merchant every day. According to its own business conditions and different dates, the business hours of each merchant may be different. Considering that the number of users participating in the specified theme activity during holidays is more than that on weekdays, the business hours of the merchant can be relatively long during holidays and relatively short during weekdays. For example, the business hours of the merchant can be 7:00~21:00 during holidays and 10:00~19:00 during weekdays.

[0077] 302. In response to the session change request, the server generates a session arrangement table corresponding to the specified theme activity according to the theme duration, the start time interval, and the business hours.

[0078] Among them, the session arrangement table is used to indicate the session arrangement of the specified theme activity during the business hours. When the server generates a session arrangement table corresponding to the specified theme activity according to the theme duration, the start time interval, and the business hours, the following method can be adopted:

[0079] 3021. The server slides from the start time to the end time of the business hours with the theme duration as the sliding window and the start time interval as the sliding step.

[0080] To ensure that each theme activity can be carried out normally, the server will slide from the start time to the end time of the business hours with the theme duration of the specified theme activity as the sliding window. During the sliding process, the sliding step of each sliding is the start time interval, so that when sliding with the theme duration as the sliding window, the interval duration between two adjacent specified theme activities can be the start time interval.

[0081] 3022. The server obtains the number of sliding windows during the sliding process from the start time to the end time of the business period, and determines the number of sliding windows as the number of sessions.

[0082] During the sliding process of the sliding time window from the start time to the end time of the business period, the server records the number of sliding windows passed by, obtains the recorded number of sliding windows, and then determines the obtained number of sliding windows as the number of sessions. This number of sessions is the number of sessions that a merchant can arrange daily.

[0083] 3023. The server determines the time period corresponding to each sliding window as the session time period of the corresponding session.

[0084] For each sliding window, during the sliding process from the start time to the end time of the business period, each sliding window corresponds to a time period, and this time period is the session time period of the session corresponding to the sliding window.

[0085] 3024. The server generates a session arrangement table according to the number of sessions and the session time period of each session.

[0086] The server adds each session and its session time period to the table according to the number of sessions to obtain the session arrangement table. This session arrangement table shows the session arrangement situation of the merchant daily. Based on this session arrangement table, users can reserve different sessions of a specified activity on that day.

[0087] 303. The server sends the session arrangement table to the terminal.

[0088] After generating the session arrangement table, the server can send the generated session arrangement table to the terminal. When receiving the session arrangement table sent by the server, the terminal displays the session arrangement table.

[0089] Based on the displayed session arrangement table, the embodiments of the present disclosure also support the merchant to modify the generated session arrangement table according to its own operating ability, so as to reserve the rest time of staff such as the central control and NPC (Non-Player Character), and achieve a better operating state. Specifically, during implementation, the terminal can modify the start time of the session to be adjusted on the management interface of the specified activity, and send a session adjustment request including the start time of the session to be adjusted to the server. When receiving the session adjustment request sent by the terminal, in response to the session adjustment request, the server adjusts the arrangement of each session in the session arrangement table according to the start time of the session to be adjusted and the start time interval.

[0090] For the adjustment process of the session arrangement table, the following takes Figure 4 the shown session arrangement table as an example for illustration.

[0091] See Figure 4 , in the session arrangement table, the start time of the first session is 12:00 and the end time is 15:00, the start time of the second session is 14:00 and the end time is 17:00, the start time of the third session is 16:00 and the end time is 19:00... Merchants can adjust the start time of the sessions in the session arrangement table and send a session adjustment request to the server. After receiving the session adjustment request, the server adjusts the arrangement of each session in the session arrangement table according to the start time of the session to be adjusted and the start time interval.

[0092] Generally, users of live escape room games can book sessions within 14 days in advance on the platform. Therefore, when the merchant modifies the session arrangement, the original session arrangement changes, and the new inventory table will replace the old inventory table. It is very likely that some of the original sessions have been sold. To prevent the same session from being over-sold, resulting in two groups of players placing orders and arriving during the same session time period, it is necessary to map the occupied inventory in the old inventory table to the new inventory table.

[0093] Specifically, when implementing, the server can obtain the reservation situation of the original sessions before the session change, and then determine the status of each session in the session arrangement table according to the reservation situation of the original sessions. For the reservation situation of the original sessions, the following situations may be included:

[0094] First, for the original sessions with successful reservations.

[0095] Among them, the original sessions with successful reservations include the sessions with successful joint sessions, the private sessions, and the sessions manually reserved by the merchant. For the original sessions with successful reservations, the server can obtain the session time period of the original sessions, compare the session time period of the original sessions with the session time periods of each session in the session arrangement table, and according to the comparison result, obtain the target sessions in the session arrangement table whose session time periods overlap with the session time period of the original sessions and the time interval between the start time of the target sessions and the start time of the original sessions is less than the start time interval, and then determine the status of the target sessions as the occupied status.

[0096] Second, for the original sessions that are being reserved.

[0097] Among them, the original sessions that are being reserved include the sessions that are being jointly played, etc. For the original sessions that are being reserved, the server can release the session time period occupied by the original sessions and determine the status of the original sessions as the idle status. For the released sessions, to avoid losses to the users who have reserved the original sessions, the session fees paid by the users who have reserved the original sessions can be refunded to the users.

[0098] In another embodiment of the present disclosure, the server will also send a reservation failure prompt message to the terminals that have reserved the original session, so that the reserved users can timely learn that the session has been released and this reservation has failed.

[0099] For the inventory migration process, the following will take Figure 5 the inventory status mapping relationship shown as an example for illustration.

[0100] Refer to Figure 5 , for the sessions that have been combined, the sessions that have been booked for a private screening, and the sessions manually reserved by the merchant in the original inventory before modification, they are locked in the new inventory after modification; for the sessions that have not been combined in the original inventory before modification, they are released in the new inventory after modification, and the payments of the users are automatically refunded. The inventory occupancy logic for the sessions that have been combined, the sessions that have been booked for a private screening, and the sessions manually reserved by the merchant in the original inventory before modification in the inventory after modification is: lock the sessions whose start time intervals with the original session in the sessions covered by the time period of the original session coverage are less than the start time interval of adjacent sessions set by the merchant. Figure 5 If the effective period of session 1 in the original inventory in [reference] covers the effective periods of session 1 and session 2 in the new inventory, and the start time interval between the effective periods of session 1 and session 2 in the new inventory is less than the start time interval of adjacent sessions set by the merchant, then session 1 and session 2 in the new inventory are locked. For example, if the session from 10:00 to 12:00 in the original inventory is purchased and the merchant sets the rolling session, the session arrangement changes to: one session from 9:30 to 11:30, one session from 10:30 to 12:30, and one session from 11:30 to 13:30. The actual exclusive time of the purchased session in the original inventory is only one hour. Therefore, the two sessions from 9:30 to 11:30 and from 10:30 to 12:30 in the new inventory are locked.

[0101] In the live-action escape room game, the original system priced according to time periods. After adopting the new system of rolling sessions, it is impossible to price the sessions across time periods. For this reason, the embodiments of the present disclosure will provide a new pricing scheme, which changes the time-period pricing to session-based pricing. In this way, it is also possible to price the sessions across time periods. Based on this function, the server can provide users with options for setting session prices. When it detects that the user has set the prices for each session in the session arrangement table, the terminal generates a price storage request, which includes the prices of each session in the session arrangement table, and sends the price storage request to the server. The server receives the price storage request sent by the terminal and, in response to the price storage request, stores the prices corresponding to each session in the session arrangement table. By providing users with a price setting function, users can flexibly set the prices of different sessions. For the sessions during peak time periods, users can set relatively high prices to increase revenue; for the sessions during off-peak time periods, users can set relatively low prices to attract more users to participate.

[0102] For the price setting schemes before and after rolling sessions, the following will take Figure 6 as an example for illustration.

[0103] See Figure 6 , for the original session arrangement before rolling sessions, the price of each session within the time period from T1 to T2 is Price One, and the price of each session within the time period from T2 to T3 is Price Two. For the new session arrangement after rolling sessions, if the original price setting scheme is adopted, it is impossible to price the sessions across the time periods from T1 to T2 and from T2 to T3. By using the method provided by the embodiments of the present disclosure, the time-period-based pricing method is changed to a session-based pricing method, so as to price the sessions across the time periods from T1 to T2 and from T2 to T3.

[0104] The method provided by the embodiments of the present disclosure receives a session change request sent by a terminal. The session change request carries the start time interval between two adjacent sessions of a specified theme activity. Since the start time interval is less than the theme duration, there is an overlap in the session time periods of two adjacent sessions, so the number of sessions arranged within the determined business hours increases, improving the session arrangement efficiency.

[0105] See Figure 7 , the embodiments of the present disclosure provide a session management device, which includes:

[0106] A receiving module 701, configured to receive a session change request sent by a terminal. The terminal is a terminal used by a merchant providing a specified theme activity. The session change request includes the theme duration of the specified theme activity, the start time interval between two adjacent sessions, and the business hours of the merchant. The start time interval is less than the theme duration;

[0107] A generating module 702, configured to generate a schedule table for a specified theme activity according to the theme duration, the start time interval, and the business hours in response to a session change request, where the schedule table is used to indicate the session distribution of the specified theme activity within the business hours;

[0108] A sending module 703, configured to send the schedule table to a terminal.

[0109] In another embodiment of the present disclosure, the generating module 702 is configured to slide from the start time to the end time of the business hours with the theme duration as a sliding window and the start time interval as a sliding step; obtain the number of sliding windows during the sliding process from the start time to the end time of the business hours; determine the number of sliding windows as the number of sessions; determine the time period corresponding to each sliding window as the session time period of the corresponding session; and generate a schedule table according to the number of sessions and the session time period of each session.

[0110] In another embodiment of the present disclosure, the apparatus further includes:

[0111] An obtaining module, configured to obtain the reservation status of the original session before the session change;

[0112] A determining module, configured to determine the status of each session in the schedule table according to the reservation status of the original session.

[0113] In another embodiment of the present disclosure, the determining module is configured to, for the original session with a successful reservation, obtain the session time period of the original session; obtain a target session in the schedule table that overlaps with the session time period of the original session and the time interval between the start time of the target session and the start time of the original session is less than the start time interval; and determine the status of the target session as an occupied status.

[0114] In another embodiment of the present disclosure, the determining module is configured to, for the original session being reserved, release the session time period occupied by the original session; and determine the status of the original session as an idle status.

[0115] In another embodiment of the present disclosure, the sending module is further configured to send a reservation failure prompt message to the terminal that has reserved the original session.

[0116] In another embodiment of the present disclosure, the receiving module is further configured to receive a session adjustment request sent by the terminal, where the session adjustment request includes the start time of the session to be adjusted; and in response to the session adjustment request, adjust the arrangement of each session in the schedule table according to the start time of the session to be adjusted and the start time interval.

[0117] In another embodiment of the present disclosure, the apparatus further includes:

[0118] The receiving module is further configured to receive a price storage request sent by a terminal, where the price storage request includes the price of each session in the session arrangement table.

[0119] The storage module is configured to, in response to the price storage request, store the price corresponding to each session in the session arrangement table.

[0120] In summary, the device provided by the embodiments of the present disclosure receives a session change request sent by a terminal, and the session change request carries the start time interval between two adjacent sessions of a specified theme activity. Since the start time interval is less than the theme duration, there is an overlap in the session time periods of two adjacent sessions, so that the number of sessions arranged within the determined business hours increases, improving the session arrangement efficiency.

[0121] Figure 8 is a server for session management shown according to an exemplary embodiment. Refer to Figure 8 , the server 800 includes a processing component 822, which further includes one or more processors, and memory resources represented by a memory 832 for storing instructions executable by the processing component 822, such as application programs. The application programs stored in the memory 832 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 822 is configured to execute instructions to perform the functions performed by the server in the above session management.

[0122] The server 800 may further include a power supply component 826 configured to perform power management of the server 800, a wired or wireless network interface 850 configured to connect the server 800 to a network, and an input / output (I / O) interface 858. The server 800 may operate based on an operating system stored in the memory 832, such as Windows Server TM , Mac OSX TM , Unix TM , Linux TM , FreeBSD TM or the like.

[0123] The server provided by the embodiments of the present disclosure receives a session change request sent by a terminal, and the session change request carries the start time interval between two adjacent sessions of a specified theme activity. The start time interval is less than the theme duration, so that there is an overlap in the session time periods of two adjacent sessions, thereby increasing the number of sessions arranged within the business hours and improving the session arrangement efficiency, and being able to meet user needs.

[0124] The embodiments of the present disclosure provide a computer-readable storage medium, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement Figure 3The described session management method

[0125] The computer-readable storage medium provided by the embodiments of the present disclosure receives a session change request sent by a terminal. The session change request carries the start time interval between two adjacent sessions of a specified theme activity. The start time interval is less than the theme duration, so that the session time periods of two adjacent sessions overlap, thereby increasing the number of sessions arranged within the business hours and improving the session arrangement efficiency, and being able to meet the user's needs.

[0126] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware or by a program instructing relevant hardware. The described program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a magnetic disk or an optical disc, etc.

[0127] The above are only optional embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.

Claims

1. A method for session management, characterized in that, the method includes: Receiving a session change request sent by a terminal, where the terminal is a terminal used by a merchant providing a specified theme activity, and the session change request includes the theme duration of the specified theme activity, the start time interval between two adjacent sessions, and the business hours of the merchant, and the start time interval is less than the theme duration; In response to the session change request, generating a session arrangement table corresponding to the specified theme activity according to the theme duration, the start time interval, and the business hours, where the session arrangement table is used to indicate the session distribution of the specified theme activity within the business hours; Sending the session arrangement table to the terminal; The generating a session arrangement table corresponding to the specified theme activity according to the theme duration, the start time interval, and the business hours includes: Sliding from the start time to the end time of the business hours with the theme duration as the sliding window and the start time interval as the sliding step; Obtaining the number of sliding windows during the sliding process from the start time to the end time of the business hours; Determining the number of sliding windows as the number of sessions; Determining the time period corresponding to each sliding window as the session time period of the corresponding session; Generating the session arrangement table according to the number of sessions and the session time period of each session.

2. The method according to claim 1, characterized in that, after generating the session arrangement table corresponding to the specified theme activity according to the theme duration, the start time interval, and the business hours, it further includes: Obtaining the reservation situation of the original sessions before the session change; Determining the status of each session in the session arrangement table according to the reservation situation of the original sessions.

3. The method according to claim 2, characterized in that, the determining the status of each session in the session arrangement table according to the reservation situation of the original sessions includes: For the original sessions with successful reservations, obtaining the session time periods of the original sessions; Obtaining target sessions in the session arrangement table that overlap with the session time period of the original session and have a time interval between the start time of the original session and the start time of the target session less than the start time interval; Determining the status of the target sessions as occupied status.

4. The method according to claim 2, characterized in that, the determining the status of each session in the session arrangement table according to the reservation situation of the original sessions includes: For the original sessions that are being reserved, releasing the session time periods occupied by the original sessions; Determining the status of the original sessions as idle status.

5. The method according to claim 3, characterized in that, after determining the status of the original sessions as idle status, it further includes: Sending a reservation failure prompt message to the terminals that have reserved the original sessions.

6. The method according to any one of claims 1 to 5, characterized in that, after sending the session arrangement table to the terminal, the method further includes: Receiving a session adjustment request sent by the terminal, where the session adjustment request includes the start time of the session to be adjusted; In response to the session adjustment request, adjust the arrangement of each session in the session arrangement table according to the start time of the session to be adjusted and the start time interval.

7. The method according to any one of claims 1 to 5, wherein, after sending the session arrangement table to the terminal, the method further includes: receiving a price storage request sent by the terminal, the price storage request including the price of each session in the session arrangement table; in response to the price storage request, storing the price corresponding to each session in the session arrangement table.

8. A session management device, wherein, the device includes: a receiving module, configured to receive a session change request sent by a terminal, the terminal being a terminal used by a merchant providing a specified theme activity, the session change request including the theme duration of the specified theme activity, the start time interval between two adjacent sessions, and the business hours of the merchant, the start time interval being less than the theme duration; a generating module, configured to generate a session arrangement table corresponding to the specified theme activity in response to the session change request, the session arrangement table being used to indicate the session distribution of the specified theme activity during the business hours; a sending module, configured to send the session arrangement table to the terminal; the generating the session arrangement table corresponding to the specified theme activity according to the theme duration, the start time interval, and the business hours includes: using the theme duration as a sliding window and the start time interval as a sliding step length, sliding from the start time to the end time of the business hours, obtaining the number of sliding windows during the sliding process from the start time to the end time of the business hours, determining the number of sliding windows as the number of sessions, determining the time period corresponding to each sliding window as the session time period of the corresponding session, and generating the session arrangement table according to the number of sessions and the session time period of each session.

9. A server, wherein, the server includes a processor and a memory, and at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the session management method according to any one of claims 1 to 7.

10. A computer-readable storage medium, wherein, at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to implement the session management method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Reservation processing method, server and computer storage medium

    CN107403228A