Itinerary collaborative editing method, device, storage medium and apparatus
By receiving the edit request request from the requested user in the itinerary collaborative editing method, obtaining the current status and determining the editing permissions, the time-consuming and laborious problem of itinerary editing in the existing technology is solved, and multi-user collaborative editing is realized, and user experience is improved.
Patent Information
- Application Number
- CN202111624542.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2041-12-27
AI Technical Summary
In the prior art, travel itineraries require the creator to count the opinions of peers one by one, which leads to time-consuming and labor-intensive and poor user experience.
It provides a co-edited itinerary order collaborative editing method, which obtains the current status of the itinerary by receiving a collaborative editing request from the requesting user, and determines whether editing is allowed based on the current status. If allowed, editing the itinerary based on the editing operation of the requesting user.
The editing method of itinerary orders has been optimized, allowing multiple users to collaborate on editing, improving user experience and reducing time and energy during the editing process.
Smart Images

Figure CN114493495B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a method, equipment, storage medium and device for collaborative editing of itinerary sheets. Background Art
[0002] Currently, travel itineraries are usually edited by the creator and then shared with fellow travelers. If fellow travelers have more reasonable arrangements for the itinerary, they usually need to express their opinions in writing, and then the creator will modify it.
[0003] However, the above method requires the creator to collect the opinions of fellow travelers one by one, which is time-consuming and labor-intensive, and has a poor user experience.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a collaborative editing method, device, storage medium and apparatus for an itinerary, aiming to solve the technical problem in the prior art that the itinerary creator needs to count the opinions of fellow travelers one by one, which is time-consuming and labor-intensive and has a poor user experience.
[0006] To achieve the above object, the present invention provides a collaborative editing method for an itinerary, the collaborative editing method for an itinerary comprising the following steps:
[0007] Upon receiving a collaborative editing request initiated by a requesting user based on an itinerary, obtaining a current status of the itinerary;
[0008] Determining whether the itinerary is allowed to be edited according to the current state;
[0009] If so, the itinerary is edited based on the editing operation of the requesting user.
[0010] Optionally, the step of judging whether the itinerary is allowed to be edited according to the current state includes:
[0011] Matching the current state with a preset locking state;
[0012] It is determined whether the itinerary is allowed to be edited based on the matching result.
[0013] Optionally, the step of judging whether the itinerary is allowed to be edited according to the matching result includes:
[0014] When the matching result is successful, obtaining the last editing time of the itinerary;
[0015] Whether the itinerary is allowed to be edited is determined according to the last editing time.
[0016] Optionally, the step of judging whether the itinerary is allowed to be edited according to the last editing time includes:
[0017] Obtaining the current time, and determining the time difference according to the current time and the last editing time;
[0018] Comparing the time difference with a preset time threshold;
[0019] Determine whether the itinerary is allowed to be edited based on the comparison result.
[0020] Optionally, if yes, the step of editing the itinerary based on the editing operation of the requesting user includes:
[0021] If yes, reset the itinerary;
[0022] The itinerary information of the reset itinerary is edited based on the editing operation of the requesting user.
[0023] Optionally, before the step of judging whether the itinerary is allowed to be edited according to the current state, the method further includes:
[0024] Obtaining user information of the requesting user;
[0025] Determining whether the requesting user has the right to edit the itinerary according to the user information;
[0026] Accordingly, the step of determining whether the itinerary is allowed to be edited according to the current state includes:
[0027] If so, determine whether the itinerary is allowed to be edited based on the current status.
[0028] Optionally, after the step of determining whether the itinerary is allowed to be edited according to the current state, the method further includes:
[0029] If not, a prompt message is generated;
[0030] The prompt information is sent to the requesting user.
[0031] Optionally, if not, the step of generating a prompt message comprises:
[0032] If not, obtaining the current editing information of the itinerary;
[0033] Prompt information is generated according to the current editing information.
[0034] Optionally, if yes, after the step of editing the itinerary based on the editing operation of the requesting user, the method further includes:
[0035] When the itinerary is in an editing state, the itinerary is temporarily locked so that only the requesting user is allowed to edit the itinerary.
[0036] Optionally, if yes, after the step of editing the itinerary based on the editing operation of the requesting user, the method further includes:
[0037] Acquire user information of the requesting user and operation time of the editing operation;
[0038] An editing log is generated according to the user information, the editing operation and the operation time.
[0039] Optionally, if yes, the step of editing the itinerary based on the editing operation of the requesting user includes:
[0040] If so, obtaining collaborative editing permissions of the requesting user;
[0041] The itinerary is edited based on the editing operation of the requesting user and the collaborative editing authority.
[0042] Optionally, if yes, after the step of editing the itinerary based on the editing operation of the requesting user, the method further includes:
[0043] Upon receiving a save request initiated by the requesting user based on the edited itinerary, generating save information based on the edited itinerary and the itinerary;
[0044] The saved information is stored in a preset storage area.
[0045] In addition, to achieve the above-mentioned purpose, the present invention also proposes an itinerary collaborative editing device, which includes a memory, a processor, and an itinerary collaborative editing program stored in the memory and executable on the processor, and the itinerary collaborative editing program is configured to implement the itinerary collaborative editing method as described above.
[0046] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which an itinerary collaborative editing program is stored, and when the itinerary collaborative editing program is executed by a processor, the itinerary collaborative editing method as described above is implemented.
[0047] In addition, to achieve the above-mentioned purpose, the present invention also proposes a collaborative editing device for itinerary sheets, the collaborative editing device for itinerary sheets comprising: a state acquisition module, an editing judgment module and an itinerary sheet editing module;
[0048] The status acquisition module is used to acquire the current status of the itinerary upon receiving a collaborative editing request initiated by a requesting user based on the itinerary;
[0049] The editing judgment module is used to judge whether the itinerary is allowed to be edited according to the current state;
[0050] The itinerary editing module is used to edit the itinerary based on the editing operation of the requesting user.
[0051] Optionally, the editing judgment module is further used to match the current state with a preset locking state;
[0052] The editing judgment module is also used to judge whether the itinerary is allowed to be edited based on the matching result.
[0053] Optionally, the editing judgment module is further used to obtain the last editing time of the itinerary when the matching result is a successful match;
[0054] The editing judgment module is also used to judge whether the itinerary is allowed to be edited based on the last editing time.
[0055] Optionally, the editing judgment module is further used to obtain the current time, and determine the time difference according to the current time and the previous editing time;
[0056] The editing judgment module is further used to compare the time difference with a preset time threshold;
[0057] The editing judgment module is also used to judge whether the itinerary is allowed to be edited based on the comparison result.
[0058] Optionally, the itinerary editing module is further configured to reset the itinerary if yes;
[0059] The itinerary editing module is also used to edit the itinerary information of the reset itinerary based on the editing operation of the requesting user.
[0060] Optionally, the itinerary collaborative editing device further includes: a user judgment module;
[0061] The user determination module is used to obtain user information of the requesting user;
[0062] The user determination module is further used to determine whether the requesting user has the right to edit the itinerary according to the user information;
[0063] Correspondingly, the editing judgment module is also used to determine whether the itinerary is allowed to be edited based on the current status.
[0064] The present invention discloses that when a collaborative editing request based on an itinerary is received from a requesting user, the current status of the itinerary is obtained, and whether the itinerary is allowed to be edited is determined according to the current status; if so, the itinerary is edited based on the editing operation of the requesting user; because the present invention allows the requesting user to initiate a collaborative editing request for an itinerary, and when the itinerary is allowed to be edited, the itinerary is edited based on the editing operation of the requesting user, thereby enabling the itinerary to be collaboratively edited when the itinerary is allowed to be edited, thereby optimizing the editing method of the itinerary and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a structural schematic diagram of an itinerary collaborative editing device in a hardware operating environment involved in an embodiment of the present invention;
[0066] Figure 2 A schematic diagram of a flow chart of a first embodiment of a collaborative editing method for an itinerary sheet of the present invention;
[0067] Figure 3 It is a flowchart of a second embodiment of the collaborative editing method of an itinerary sheet of the present invention;
[0068] Figure 4 A schematic diagram of a flow chart of a third embodiment of a collaborative editing method for an itinerary sheet of the present invention;
[0069] Figure 5 A schematic diagram of a flow chart of a fourth embodiment of a collaborative editing method for an itinerary sheet of the present invention;
[0070] Figure 6 It is a structural block diagram of the first embodiment of the itinerary collaborative editing device of the present invention.
[0071] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0072] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0073] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the structure of the itinerary collaborative editing device in the hardware operating environment involved in the embodiment of the present invention.
[0074] like Figure 1As shown, the itinerary collaborative editing device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), and the user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable memory (Non-volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0075] Those skilled in the art will understand that Figure 1 The structure shown in does not constitute a limitation on the itinerary collaborative editing device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0076] like Figure 1 As shown, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and an itinerary collaborative editing program.
[0077] exist Figure 1 In the itinerary collaborative editing device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user device; the itinerary collaborative editing device calls the itinerary collaborative editing program stored in the memory 1005 through the processor 1001, and executes the itinerary collaborative editing method provided by the embodiment of the present invention.
[0078] Based on the above hardware structure, an embodiment of the itinerary collaborative editing method of the present invention is proposed.
[0079] Reference Figure 2 , Figure 2 The flowchart of the first embodiment of the collaborative editing method of an itinerary list of the present invention is shown, and the first embodiment of the collaborative editing method of an itinerary list of the present invention is proposed.
[0080] In a first embodiment, the itinerary collaborative editing method comprises the following steps:
[0081] Step S10: upon receiving a collaborative editing request initiated by a requesting user based on an itinerary, obtaining the current status of the itinerary.
[0082] It should be understood that the executor of the method of this embodiment can be an itinerary collaborative editing device with data processing, network communication and program running functions, such as a server, etc., or other electronic devices that can achieve the same or similar functions, and this embodiment does not impose any restrictions on this.
[0083] It should be noted that the requesting user may be the user who applies for collaborative editing of the itinerary.
[0084] It is understandable that in actual applications, if multiple people edit the itinerary at the same time, it may cause the itinerary to be disordered. Therefore, in order to overcome the above defects, in this embodiment, when receiving a collaborative editing request initiated by a requesting user based on the itinerary, the current state of the itinerary is also obtained, and it is determined whether the itinerary is allowed to be edited based on the current state. When the itinerary is edited, the itinerary is edited based on the editing operation of the requesting user.
[0085] It should be noted that the current state of the itinerary can be an open state or a closed state. When the itinerary is opened by the user, the itinerary is in the open state; when the itinerary is not opened by the user, the itinerary is in the closed state.
[0086] It should be understood that obtaining the current status of the itinerary may be to detect whether the itinerary is opened by the user and determine the current status of the itinerary based on the detection result.
[0087] Step S20: Determine whether the itinerary is allowed to be edited according to the current status.
[0088] It is understandable that when the itinerary is in an open state, it means that other users are opening the itinerary for editing. At this time, if the requesting user is allowed to edit the itinerary, it may cause the itinerary to be disordered. Therefore, in this embodiment, judging whether the itinerary is allowed to be edited according to the current state can be that when the itinerary is in an open state, it is determined that the itinerary is not allowed to be edited; when the itinerary is in a closed state, it is determined that the itinerary is allowed to be edited.
[0089] Furthermore, in order to prompt the user when the user cannot edit the itinerary, after step S20, the method further includes:
[0090] If not, a prompt message is generated;
[0091] The prompt information is sent to the requesting user.
[0092] It should be noted that the prompt information can be preset or generated based on the current editing information of the itinerary, and this embodiment does not limit this.
[0093] In a specific implementation, for example, the prompt message can be pre-set to "The itinerary is being edited by other users, please wait."
[0094] Furthermore, in order to make the prompt information more in line with the actual needs of the user, if not, then generating the prompt information includes:
[0095] If not, obtaining the current editing information of the itinerary;
[0096] Prompt information is generated according to the current editing information.
[0097] It should be noted that the current editing information may include information such as the current editing user and editing time.
[0098] It should be understood that generating prompt information according to the current editing information may be to write the current editing information into a preset template to obtain the prompt information. The preset template may be preset. For example, the preset template may be preset as: "User XXX is editing the itinerary, the editing time is XXX, you cannot edit it temporarily".
[0099] Step S30: If yes, the itinerary is edited based on the editing operation of the requesting user.
[0100] It is understandable that when the itinerary is allowed to be edited, the itinerary can be edited based on the editing operation of the requesting user to achieve multi-user collaborative editing of the itinerary.
[0101] It should be noted that editing operations may include adding or deleting destinations, modifying subjects, modifying dates, modifying modes of transportation, and modifying titles.
[0102] Furthermore, in order to avoid interference from other users when requesting the user to edit the itinerary, after step S30, the following is further included:
[0103] When the itinerary is in an editing state, the itinerary is temporarily locked so that only the requesting user is allowed to edit the itinerary.
[0104] It should be understood that when the itinerary is in the editing state, if other users edit the itinerary together, it may cause the itinerary to be disordered. Therefore, in order to overcome the above defects, in this embodiment, when the itinerary is in the editing state, the itinerary is temporarily locked so that only the requesting user is allowed to edit the itinerary until the requesting user completes the editing.
[0105] Furthermore, in order to reduce the amount of information stored when saving the itinerary, after step S30, the method further includes:
[0106] Upon receiving a save request initiated by the requesting user based on the edited itinerary, generating save information based on the edited itinerary and the itinerary;
[0107] The saved information is stored in a preset storage area.
[0108] It can be understood that generating saved information based on the edited itinerary and the itinerary can be to compare the edited itinerary with the itinerary, obtain the edited modification information, and use the edited modification information as the saved information.
[0109] It should be noted that the preset storage area can be pre-set for storing itineraries.
[0110] In the first embodiment, it is disclosed that when a collaborative editing request based on an itinerary is received from a requesting user, the current status of the itinerary is obtained, and whether the itinerary is allowed to be edited is determined based on the current status. If so, the itinerary is edited based on the editing operation of the requesting user; because in this embodiment, the requesting user can initiate a collaborative editing request for the itinerary, and when the itinerary is allowed to be edited, the itinerary is edited based on the editing operation of the requesting user, so that the itinerary can be collaboratively edited when the itinerary is allowed to be edited, thereby optimizing the editing method of the itinerary and improving the user experience.
[0111] Reference Figure 3 , Figure 3 This is a flow chart of the second embodiment of the collaborative editing method for itinerary sheets of the present invention. Figure 2 The first embodiment shown proposes a second embodiment of the itinerary collaborative editing method of the present invention.
[0112] In the second embodiment, the step S20 includes:
[0113] Step S201: Match the current state with a preset locking state.
[0114] It should be understood that in actual applications, in order to facilitate the user to set when the itinerary can be edited. In this embodiment, the current state can be matched with the preset lock state, and whether the itinerary is allowed to be edited can be determined based on the matching result.
[0115] It should be noted that the preset locking state can be preset. For example, the preset locking state can be preset as the open state of the itinerary.
[0116] Step S202: Determine whether the itinerary is allowed to be edited based on the matching result.
[0117] It can be understood that judging whether the itinerary is allowed to be edited based on the matching result can be that when the current state matches the preset locked state successfully, it is determined that the itinerary is not allowed to be edited; when the current state fails to match the preset locked state, it is determined that the itinerary is allowed to be edited.
[0118] In the second embodiment, it is disclosed to match the current state with the preset lock state, and determine whether the itinerary is allowed to be edited based on the matching result; since this embodiment matches the current state with the preset lock state, and determines whether the itinerary is allowed to be edited based on the matching result, the user can set when the itinerary can be edited, thereby improving the user experience.
[0119] In the second embodiment, after step S30, the method further includes:
[0120] Step S40: When the itinerary is in the editing state, the itinerary is temporarily locked so that the itinerary is only allowed to be edited by the requesting user.
[0121] It should be understood that when the itinerary is in the editing state, if other users edit the itinerary together, it may cause the itinerary to be disordered. Therefore, in order to overcome the above defects, in this embodiment, when the itinerary is in the editing state, the itinerary is temporarily locked so that only the requesting user is allowed to edit the itinerary until the requesting user completes the editing.
[0122] In the second embodiment, when the itinerary is in the editing state, the itinerary is temporarily locked so that only the requesting user is allowed to edit the itinerary, thereby avoiding the itinerary being confused due to other users editing the itinerary together while the itinerary is in the editing state.
[0123] Reference Figure 4 , Figure 4 This is a flow chart of the third embodiment of the collaborative editing method for itinerary sheets of the present invention. Figure 3 The second embodiment shown provides the third embodiment of the itinerary collaborative editing method of the present invention.
[0124] In the third embodiment, the step S202 includes:
[0125] Step S2021: When the matching result is successful, obtaining the last editing time of the itinerary;
[0126] It should be understood that when the matching result is a successful match, it means that the itinerary is being edited by other users. Considering that some users may open the itinerary for editing and then forget to close it, the itinerary is locked and cannot be edited by other users. Therefore, in this embodiment, when the matching result is a successful match, the last edit time of the itinerary is also obtained, and it is determined whether the itinerary is allowed to be edited based on the last edit time.
[0127] Step S2022: Determine whether the itinerary is allowed to be edited based on the last editing time.
[0128] It can be understood that judging whether the itinerary is allowed to be edited based on the last editing time can be to obtain the current time, determine the time difference based on the current time and the last editing time, compare the time difference with the preset time threshold, and judge whether the itinerary is allowed to be edited based on the comparison result.
[0129] It should be noted that the preset time threshold can be preset. For example, the preset time threshold can be preset to 10 minutes.
[0130] It should be understood that judging whether the itinerary is allowed to be edited according to the comparison result may be that when the time difference is greater than the preset time threshold, other users have not edited the itinerary for a long time. Therefore, it is determined that the itinerary is allowed to be edited. When the time difference is less than or equal to the preset time threshold, other users are editing the itinerary. Therefore, it is determined that the itinerary is not allowed to be edited.
[0131] In the third embodiment, it is disclosed that when the matching result is a successful match, the last editing time of the itinerary is obtained, and whether the itinerary is allowed to be edited is judged according to the last editing time; because this embodiment will also judge whether the time difference between the current time and the last editing time is greater than the preset time threshold when the matching result is a successful match, it avoids the itinerary being locked due to some users opening the itinerary for editing and forgetting to close it, thereby improving the reliability of the itinerary editing judgment.
[0132] In the third embodiment, the step S30 includes:
[0133] Step S301: If yes, reset the itinerary.
[0134] It is understandable that, in practical applications, in order to prevent the unedited information from interfering with the itinerary, in this embodiment, when the time difference between the current time and the last edited time is greater than a preset time threshold, the itinerary is also reset.
[0135] It should be understood that resetting the itinerary may be resetting the content, opening status, and time of the itinerary.
[0136] Step S302: Edit the itinerary information of the reset itinerary based on the editing operation of the requesting user.
[0137] It is understandable that after the itinerary is reset, the itinerary can be opened on the client of the requesting user, and the itinerary information of the reset itinerary can be edited based on the editing operation of the requesting user.
[0138] In the third embodiment, it is disclosed that if so, the itinerary is reset, and the itinerary information of the reset itinerary is edited based on the editing operation of the requesting user; since this embodiment also resets the itinerary when the time difference between the current time and the previous editing time is greater than a preset time threshold, it avoids interference with the itinerary by unedited information.
[0139] Furthermore, step S30 further includes:
[0140] If yes, obtain the previous edit information of the itinerary, and update the itinerary according to the previous edit information;
[0141] The itinerary information of the updated itinerary is edited based on the editing operation of the requesting user.
[0142] It should be understood that in actual applications, some users may forget to close and save the itinerary after opening it for editing. In order to avoid the loss of editing information of other users, in this embodiment, when the time difference between the current time and the last editing time is greater than a preset time threshold, the last editing information of the itinerary can be obtained, and the itinerary can be updated according to the last editing information.
[0143] Reference Figure 5 , Figure 5 This is a flow chart of a fourth embodiment of the collaborative editing method for itinerary sheets of the present invention. Figure 2 The first embodiment shown is a fourth embodiment of the itinerary collaborative editing method of the present invention.
[0144] In the fourth embodiment, before step S20, the method further includes:
[0145] Step S110: Obtain user information of the requesting user.
[0146] It should be understood that in order to prevent unauthorized users from modifying the itinerary, this embodiment will also obtain the user information of the requesting user before determining whether editing is allowed, and determine whether the requesting user has the right to edit the itinerary based on the user information.
[0147] It should be noted that user information may include information such as user account and user login environment.
[0148] Step S120: Determine whether the requesting user has the right to edit the itinerary based on the user information.
[0149] It is understandable that judging whether the requesting user has the right to edit the itinerary based on the user information may be to match the user account with the user account in the preset authorized user library. When the match is successful, it is judged that the requesting user has the right to edit the itinerary; when the match fails, it is judged that the requesting user has no right to edit the itinerary. The user account in the preset authorized user library may be preset by the creator of the itinerary or by the user who manages the itinerary, and this embodiment does not limit this.
[0150] To determine whether the requesting user has the right to edit the itinerary based on the user information, the user account can be matched with the user account in the preset authorized user library, and then the user login environment is checked to see if it is safe. If the user account matches the user account in the preset authorized user library and the user login environment is safe, the requesting user is determined to have the right to edit the itinerary. In other cases, the requesting user is determined to have no right to edit the itinerary.
[0151] Accordingly, the step S20 includes:
[0152] Step S20': If yes, determine whether the itinerary is allowed to be edited according to the current state.
[0153] It should be understood that after determining that the requesting user has the right to edit the itinerary, it is also necessary to determine whether the itinerary is allowed to be edited based on the current status.
[0154] In the fourth embodiment, the user information of the requesting user is obtained, and it is determined based on the user information whether the requesting user has the right to edit the itinerary. If so, it is determined based on the current status whether the itinerary is allowed to be edited. Because this embodiment also obtains the user information of the requesting user before determining whether editing is allowed, and determines based on the user information whether the requesting user has the right to edit the itinerary, it is possible to prevent unauthorized users from maliciously modifying the itinerary, thereby improving the security of itinerary editing.
[0155] In the fourth embodiment, the step S30 includes:
[0156] Step S301: If yes, then obtain the collaborative editing authority of the requesting user.
[0157] It should be understood that in actual applications, some users may only be able to edit part of the itinerary. For example, the creator of the itinerary may pre-set that the collaborator can only edit the destination. Therefore, before the requesting user edits the itinerary, this embodiment will also obtain the requesting user's collaborative editing authority, and edit the itinerary based on the requesting user's editing operation and collaborative editing authority.
[0158] It should be noted that the collaborative editing authority of the requesting user may be pre-set by the creator of the itinerary or by the management user of the itinerary, and this embodiment does not impose any limitation on this.
[0159] Step S302: Edit the itinerary based on the editing operation of the requesting user and the collaborative editing authority.
[0160] It can be understood that editing the itinerary based on the requesting user's editing operation and collaborative editing authority can be achieved by first determining whether the requesting user's editing operation complies with the collaborative editing authority. If so, the itinerary is edited based on the requesting user's editing operation; if not, the requesting user's editing operation is rejected, and a reminder message is generated to remind the requesting user.
[0161] In the fourth embodiment, it is disclosed that if so, the collaborative editing authority of the requesting user is obtained, and the itinerary is edited based on the editing operation and the collaborative editing authority of the requesting user; because this embodiment also obtains the collaborative editing authority of the requesting user before the requesting user edits the itinerary, and edits the itinerary based on the editing operation and the collaborative editing authority of the requesting user, it ensures that the requesting user can only edit the content within the authorized scope, thereby realizing hierarchical editing of the itinerary.
[0162] In the fourth embodiment, after step S30, the method further includes:
[0163] Step S40: Obtain the user information of the requesting user and the operation time of the editing operation.
[0164] It should be understood that in order to record the editing information of the requesting user after the itinerary is edited, in this embodiment, after the itinerary is edited, the user information of the requesting user and the operation time of the editing operation are also obtained, and an editing log is generated based on the user information, editing operation and operation time.
[0165] It should be noted that the user information may be the user name of the requesting user, and the operation time may be the time of the editing operation.
[0166] Step S50: Generate an editing log according to the user information, the editing operation and the operation time.
[0167] It can be understood that generating an editing log based on user information, editing operations and operation time may be to associate user information, editing operations and operation time to generate an editing log of the itinerary.
[0168] In the fourth embodiment, obtaining the user information of the requesting user and the operation time of the editing operation, and generating an editing log based on the user information, the editing operation and the operation time is disclosed; since this embodiment also obtains the user information of the requesting user and the operation time of the editing operation after the itinerary is edited, and generates an editing log based on the user information, the editing operation and the operation time, it is possible to record the editing information of the requesting user after the itinerary is edited for subsequent users to query.
[0169] In addition, an embodiment of the present invention further proposes a storage medium on which an itinerary collaborative editing program is stored. When the itinerary collaborative editing program is executed by a processor, the itinerary collaborative editing method as described above is implemented.
[0170] In addition, refer to Figure 6 , the embodiment of the present invention also provides a collaborative editing device for an itinerary, the collaborative editing device for an itinerary comprising: a state acquisition module 10, an editing judgment module 20 and an itinerary editing module 30;
[0171] The status acquisition module 10 is used to acquire the current status of the itinerary when receiving a collaborative editing request initiated by a requesting user based on the itinerary.
[0172] It should be noted that the requesting user may be the user who applies for collaborative editing of the itinerary.
[0173] It is understandable that in actual applications, if multiple people edit the itinerary at the same time, it may cause the itinerary to be disordered. Therefore, in order to overcome the above defects, in this embodiment, when receiving a collaborative editing request initiated by a requesting user based on the itinerary, the current state of the itinerary is also obtained, and it is determined whether the itinerary is allowed to be edited based on the current state. When the itinerary is edited, the itinerary is edited based on the editing operation of the requesting user.
[0174] It should be noted that the current state of the itinerary can be an open state or a closed state. When the itinerary is opened by the user, the itinerary is in the open state; when the itinerary is not opened by the user, the itinerary is in the closed state.
[0175] It should be understood that obtaining the current status of the itinerary may be to detect whether the itinerary is opened by the user and determine the current status of the itinerary based on the detection result.
[0176] The editing judgment module 20 is used to judge whether the itinerary is allowed to be edited according to the current state.
[0177] It is understandable that when the itinerary is in an open state, it means that other users are opening the itinerary for editing. At this time, if the requesting user is allowed to edit the itinerary, it may cause the itinerary to be disordered. Therefore, in this embodiment, judging whether the itinerary is allowed to be edited according to the current state can be that when the itinerary is in an open state, it is determined that the itinerary is not allowed to be edited; when the itinerary is in a closed state, it is determined that the itinerary is allowed to be edited.
[0178] Further, in order to prompt the user when the user cannot edit the itinerary, the itinerary collaborative editing device further includes: an editing prompt module;
[0179] The editing prompt module is used to generate prompt information if no;
[0180] The editing prompt module is also used to send the prompt information to the requesting user.
[0181] It should be noted that the prompt information can be preset or generated based on the current editing information of the itinerary, and this embodiment does not limit this.
[0182] In a specific implementation, for example, the prompt message can be pre-set to "The itinerary is being edited by other users, please wait."
[0183] Furthermore, in order to make the prompt information more in line with the actual needs of the user, the editing prompt module is also used to obtain the current editing information of the itinerary if no;
[0184] The editing prompt module is further used to generate prompt information according to the current editing information.
[0185] It should be noted that the current editing information may include information such as the current editing user and editing time.
[0186] It should be understood that generating prompt information according to the current editing information may be to write the current editing information into a preset template to obtain the prompt information. The preset template may be preset. For example, the preset template may be preset as: "User XXX is editing the itinerary, the editing time is XXX, you cannot edit it temporarily".
[0187] The itinerary editing module 30 is used to edit the itinerary based on the editing operation of the requesting user.
[0188] It is understandable that when the itinerary is allowed to be edited, the itinerary can be edited based on the editing operation of the requesting user to achieve multi-user collaborative editing of the itinerary.
[0189] It should be noted that editing operations may include adding or deleting destinations, modifying subjects, modifying dates, modifying modes of transportation, and modifying titles.
[0190] Further, in order to avoid interference from other users when the requesting user edits the itinerary, the itinerary collaborative editing device further includes: a temporary locking module;
[0191] The temporary locking module is used to temporarily lock the itinerary when the itinerary is in an editing state, so that the itinerary is only allowed to be edited by the requesting user.
[0192] It should be understood that when the itinerary is in the editing state, if other users edit the itinerary together, it may cause the itinerary to be disordered. Therefore, in order to overcome the above defects, in this embodiment, when the itinerary is in the editing state, the itinerary is temporarily locked so that only the requesting user is allowed to edit the itinerary until the requesting user completes the editing.
[0193] Further, in order to reduce the amount of information storage when saving the itinerary, the itinerary collaborative editing device further includes: an incremental saving module;
[0194] The incremental saving module is used to generate saving information based on the edited itinerary and the itinerary when receiving a saving request initiated by the requesting user based on the edited itinerary;
[0195] The incremental saving module is further used to store the saved information in a preset storage area.
[0196] It can be understood that generating saved information based on the edited itinerary and the itinerary can be to compare the edited itinerary with the itinerary, obtain the edited modification information, and use the edited modification information as the saved information.
[0197] It should be noted that the preset storage area can be pre-set for storing itineraries.
[0198] In the present embodiment, it is disclosed that when a collaborative editing request based on an itinerary is received from a requesting user, the current status of the itinerary is obtained, and whether the itinerary is allowed to be edited is determined based on the current status. If so, the itinerary is edited based on the editing operation of the requesting user. Since the present embodiment allows the requesting user to initiate a collaborative editing request for an itinerary, and when the itinerary is allowed to be edited, the itinerary is edited based on the editing operation of the requesting user, it is possible to collaboratively edit the itinerary when the itinerary is allowed to be edited, thereby optimizing the editing method of the itinerary and improving the user experience.
[0199] Other embodiments or specific implementation methods of the itinerary collaborative editing device described in the present invention can refer to the above-mentioned method embodiments and will not be repeated here.
[0200] 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 system 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 system. 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 system including the element.
[0201] The serial numbers of the embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order and these words may be interpreted as names.
[0202] 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 can also be implemented 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 is essentially 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 a read-only memory image (ROM) / random access memory (RAM), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (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.
[0203] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A collaborative editing method for an itinerary, characterized in that: The itinerary collaborative editing method comprises the following steps: Upon receiving a collaborative editing request initiated by a requesting user based on an itinerary, obtaining a current status of the itinerary; Determining whether the itinerary is allowed to be edited according to the current state; If the itinerary is allowed to be edited, editing the itinerary based on the editing operation of the requesting user; The step of judging whether the itinerary is allowed to be edited according to the current state includes: Matching the current state with a preset locking state; When the matching result is successful, obtaining the last editing time of the itinerary; Determining whether the itinerary is allowed to be edited according to the last edit time: wherein, when the time difference between the current time and the last edit time is greater than a preset time threshold, determining that the itinerary is allowed to be edited; The step of editing the itinerary based on the editing operation of the requesting user comprises: Resetting the itinerary; The itinerary information of the reset itinerary is edited based on the editing operation of the requesting user.
2. The itinerary collaborative editing method according to claim 1, characterized in that: Before the step of judging whether the itinerary is allowed to be edited according to the current state, the method further includes: Obtaining user information of the requesting user; Determining whether the requesting user has the right to edit the itinerary according to the user information; Accordingly, the step of determining whether the itinerary is allowed to be edited according to the current state includes: If the requesting user has the right to edit the itinerary, it is determined whether the itinerary is allowed to be edited based on the current status.
3. The itinerary collaborative editing method according to claim 1, characterized in that: After the step of judging whether the itinerary is allowed to be edited according to the current state, the method further includes: If the itinerary does not allow editing, a prompt message is generated; The prompt information is sent to the requesting user.
4. The collaborative editing method for itinerary sheets according to claim 3, characterized in that: If the itinerary is not allowed to be edited, the step of generating a prompt message comprises: If the itinerary is not allowed to be edited, obtaining the current editing information of the itinerary; Prompt information is generated according to the current editing information.
5. The itinerary collaborative editing method according to claim 1, characterized in that: After the step of editing the itinerary based on the editing operation of the requesting user if the itinerary is allowed to be edited, the method further includes: When the itinerary is in an editing state, the itinerary is temporarily locked so that only the requesting user is allowed to edit the itinerary.
6. The itinerary collaborative editing method according to claim 1, characterized in that: After the step of editing the itinerary based on the editing operation of the requesting user if the itinerary is allowed to be edited, the method further includes: Acquire user information of the requesting user and operation time of the editing operation; An editing log is generated according to the user information, the editing operation and the operation time.
7. The itinerary collaborative editing method according to claim 1, characterized in that: If the itinerary is allowed to be edited, the step of editing the itinerary based on the editing operation of the requesting user comprises: If the itinerary is allowed to be edited, obtaining the collaborative editing permission of the requesting user; The itinerary is edited based on the editing operation of the requesting user and the collaborative editing authority.
8. The itinerary collaborative editing method according to claim 1, characterized in that: After the step of editing the itinerary based on the editing operation of the requesting user if the itinerary is allowed to be edited, the method further includes: Upon receiving a save request initiated by the requesting user based on the edited itinerary, generating save information based on the edited itinerary and the itinerary; The saved information is stored in a preset storage area.
9. A collaborative editing device for itinerary sheets, characterized in that: The itinerary collaborative editing device includes: a memory, a processor, and an itinerary collaborative editing program stored in the memory and executable on the processor. When the itinerary collaborative editing program is executed by the processor, the itinerary collaborative editing method as described in any one of claims 1 to 8 is implemented.
10. A storage medium, characterized in that: The storage medium stores an itinerary collaborative editing program, which, when executed by a processor, implements the itinerary collaborative editing method as described in any one of claims 1 to 8.
11. A collaborative editing device for itinerary sheets, characterized in that: The itinerary collaborative editing device comprises: a state acquisition module, an editing judgment module and an itinerary editing module; The status acquisition module is used to acquire the current status of the itinerary upon receiving a collaborative editing request initiated by a requesting user based on the itinerary; The editing judgment module is used to judge whether the itinerary is allowed to be edited according to the current state; The itinerary editing module is used to edit the itinerary based on the editing operation of the requesting user if the itinerary is allowed to be edited; The editing judgment module is further used to match the current state with a preset locking state; when the matching result is a successful match, obtain the last editing time of the itinerary; and judge whether the itinerary is allowed to be edited according to the last editing time: when the time difference between the current time and the last editing time is greater than a preset time threshold, it is judged that the itinerary is allowed to be edited; The itinerary editing module is also used to reset the itinerary; and edit the itinerary information of the reset itinerary based on the editing operation of the requesting user.
12. The itinerary collaborative editing device according to claim 11, characterized in that: The itinerary collaborative editing device further includes: a user judgment module; The user determination module is used to obtain user information of the requesting user; The user determination module is further used to determine whether the requesting user has the right to edit the itinerary according to the user information; Correspondingly, the editing judgment module is also used to determine whether the itinerary is allowed to be edited based on the current status if the requesting user has the right to edit the itinerary.
Citation Information
Patent Citations
Edition method, device and system based on network shared file
CN109697191A