Message notification method and device, computer equipment and storage medium
By merging the notification messages of multiple file update operations in the network storage space, the problem of too frequent notification messages is solved, the user experience is improved, and the timeliness and effectiveness of information transmission are ensured.
Patent Information
- Application Number
- CN202310440551.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, the file update operation in the network storage space causes notification messages to be too frequent, which reduces the user experience.
Within a predetermined time, multiple associated file update operations are merged and processed. According to the message merging rules of the target file operation scenario, the notification messages of multiple file update operations are merged and pushed to the instant messaging application, including merging triggering operations and division. Processing of operation groups, elimination of deletion operation notifications, etc.
It effectively reduces the frequent push of notification messages, improves the user experience of network storage space, and ensures that users receive file change information at the right time.
Smart Images

Figure CN118803049A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a message notification method, apparatus, computer equipment and storage medium. Background Art
[0002] A network storage space can be an online storage service that can provide file management functions such as file storage, access, backup, and sharing. With the development of information processing technology, network storage space is being used more and more widely. For example, individuals can use network storage space to store files, and companies can also use storage space to store and share files, and so on. When there is a file update operation on the network storage space, there will generally be a corresponding notification message to remind the object with access rights to the network storage space. The inventor of the present application has found through practice of the prior art that the prior art has the problem of too frequent notification messages, which reduces the user experience of the network storage space. Summary of the invention
[0003] The embodiments of the present application provide a message notification method, apparatus, computer device and storage medium, which can solve the problem of too frequent notification messages and improve the user experience of network storage space.
[0004] The present application provides a message notification method, including:
[0005] When there are multiple associated file update operations for a network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, the notification messages of the multiple file update operations are merged based on the message merging rules corresponding to the target file operation scenario, and the merged notification messages are pushed to the instant messaging application of the target object; wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used for storing files for the target object with operation permissions.
[0006] Accordingly, the embodiment of the present application further provides a message notification device, including:
[0007] A merging unit is used to merge notification messages of the multiple file update operations based on a message merging rule corresponding to the target file operation scenario when there are multiple associated file update operations for the network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, and push the merged notification message to the instant messaging application of the target object; wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used for storing files by the target object with operation authority.
[0008] In one embodiment, the merging unit may include:
[0009] The first merging subunit is used to merge the notification messages corresponding to the target file update operations that meet the preset timing rules, including the difference information between the trigger time information and the trigger time information of the merged trigger operation, when the multiple associated file update operations include a merged trigger operation.
[0010] In one embodiment, the first merging subunit may include:
[0011] A first division module is used for, when the multiple associated file update operations include at least two merge trigger operations, dividing the multiple associated file update operations according to the merge trigger operations to obtain at least two divided operation groups, wherein each divided operation group includes at least one file update operation;
[0012] The first merging module is used to merge the notification messages corresponding to the target file update operations that meet the preset timing rules and have the difference information between the trigger time information in the divided operation group and the trigger time information of the merged trigger operation.
[0013] In one embodiment, the message display device may further include:
[0014] The elimination unit is used to eliminate the notification messages corresponding to the multiple associated file update operations when the trigger time information indicates that the last target file update operation is a deletion operation.
[0015] In one embodiment, the first merging subunit may include:
[0016] A first determination module, configured to determine file priority information of a target file and directory priority information of a directory to which the target file belongs when the plurality of associated file update operations include a merge trigger operation;
[0017] The second merging module is used to merge the notification message corresponding to the target file update operation that meets the preset timing rules, which contains the difference information between the trigger time information and the trigger time information of the merged trigger operation, when the directory priority information and the file priority information of the target file meet the preset merging conditions.
[0018] In one embodiment, the message display device may further include:
[0019] A display unit is used to respond to a trigger operation on the merged notification message and display the notification message corresponding to the associated file update operation according to the mapping relationship.
[0020] In one embodiment, the merging unit may include:
[0021] The second merging subunit is configured to merge notification messages corresponding to the file updating operations associated with each target file when the multiple associated file updating operations include a merge triggering operation corresponding to each target file.
[0022] In one embodiment, the second merging subunit may include:
[0023] A second division module is used for, when the multiple associated file update operations include a merge trigger operation corresponding to each target file, dividing the multiple associated file update operations according to the target file targeted by each file update operation to obtain at least two update operation groups, wherein each update operation group includes at least one file update operation;
[0024] The second merging module is used to merge the notification message of at least one file update operation in the update operation group according to the file update operation in the update operation group.
[0025] In one embodiment, the second merging subunit may include:
[0026] A second determination module is used to determine the file priority information of each target file and the directory priority information of the directory to which the target file belongs when the multiple associated file update operations include a merge trigger operation corresponding to each target file;
[0027] The third merging module is used to merge the notification messages corresponding to the file update operations associated with the target file when the directory priority information and the file priority information of the target file meet the preset merging conditions.
[0028] In one embodiment, the merging unit may include:
[0029] an event generation subunit, configured to generate a file update operation event for each file update operation when detecting that there are multiple associated file update operations for the network storage space within a preset time;
[0030] An adding subunit, used for adding a file update operation event corresponding to each file update operation to a preset event queue;
[0031] The third merging sub-unit is used to merge the notification messages of multiple file update operation events in the preset event queue based on the message merging rules corresponding to the target file operation scenario when the association relationship between the file update operation events in the preset event queue meets the operation conditions corresponding to the target file operation scenario, and push the merged notification messages to the instant messaging application of the target object.
[0032] In one embodiment, the merging unit may further include:
[0033] A task generation subunit, configured to generate a target scheduled task matching the preset time when detecting that there are multiple associated file update operations for the network storage space within the preset time;
[0034] The starter unit is used to start executing the target scheduled task.
[0035] In one embodiment, the task generation subunit may include:
[0036] A first task generating module, configured to generate a file timing task when there are multiple associated file update operations for the network storage space within a predetermined time;
[0037] The second task generating module is used to generate a directory timing task when it is detected that there is a merge triggering operation in the file updating operation.
[0038] An embodiment of the present application provides a computer device, including a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to implement any message notification method provided in the embodiments of the present application.
[0039] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the method provided in various optional modes of the above-mentioned aspect.
[0040] Correspondingly, an embodiment of the present application further provides a storage medium, which stores instructions, and when the instructions are executed by a processor, any message notification method provided in the embodiments of the present application is implemented.
[0041] In an embodiment of the present application, when there are multiple associated file update operations for a network storage space within a predetermined time and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, the notification messages of the multiple file update operations can be merged based on the message merging rules corresponding to the target file operation scenario, and the merged notification messages can be pushed to the target object's instant messaging application, which can solve the problem of too frequent notification messages and improve the user experience of the network storage space. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 It is a scenario diagram of the message notification method provided in an embodiment of the present application;
[0044] Figure 2 It is a flowchart of a message notification method provided in an embodiment of the present application;
[0045] Figure 3 This is another scenario schematic diagram of the message notification method provided in an embodiment of the present application;
[0046] Figure 4 This is another scenario schematic diagram of the message notification method provided in an embodiment of the present application;
[0047] Figure 5 This is another scenario schematic diagram of the message notification method provided in an embodiment of the present application;
[0048] Figure 6 This is another scenario schematic diagram of the message notification method provided in an embodiment of the present application;
[0049] Figure 7 This is another flowchart of the message notification method provided in the embodiment of the present application;
[0050] Figure 8 It is a structural diagram of a message notification device provided in an embodiment of the present application;
[0051] Fig. 9 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. However, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0053] The embodiment of the present application proposes a message notification method, which can be executed by a message notification device, and the message notification device can be integrated in a computer device. The computer device may include at least one of a terminal and a server. That is, the message notification method proposed in the embodiment of the present application can be executed by a terminal, a server, or a terminal and a server that can communicate with each other.
[0054] Among them, the terminals may include but are not limited to smart phones, tablet computers, laptops, personal computers (PCs), smart home appliances, wearable electronic devices, VR / AR devices, vehicle-mounted terminals, intelligent voice interaction devices, etc.
[0055] The server can be an intercommunication server or background server between multiple heterogeneous systems, an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, as well as big data and artificial intelligence platforms, etc.
[0056] It should be noted that the embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.
[0057] In one embodiment, if Figure 1 The message notification device can be integrated on a computer device such as a terminal or a server to implement the message notification method proposed in the embodiment of the present application. Specifically, the server 11 or the terminal 10 can perform file detection on the network storage space of the instant messaging application, wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used for storing files for the target object with operation authority; when it is detected that there are multiple associated file update operations for the network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, based on the message merging rules corresponding to the target file operation scenario, the notification messages of the multiple file update operations are merged, and the merged notification message is pushed to the instant messaging application of the target object.
[0058] The following are detailed descriptions respectively. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0059] The embodiments of the present application will be described from the perspective of a message notification device, which may be integrated into a computer device, which may be a server or a terminal.
[0060] like Figure 2 A message notification method is provided, and the specific process includes:
[0061] 101. When there are multiple associated file update operations for a network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, the notification messages of the multiple file update operations are merged based on the message merging rules corresponding to the target file operation scenario, and the merged notification messages are pushed to the target object's instant messaging application; wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used for storing files by the target object with operation permissions.
[0062] The network storage space may be an online storage service that can provide file management functions such as file storage, access, backup, sharing, etc. For example, the network storage space may be an online network disk, etc.
[0063] Among them, the instant messaging application can be an application for instantly exchanging information based on the Internet.
[0064] Among them, the application may include a computer program that completes one or more specific functions, which runs in an interactive mode, can interact with the user object of the application, and has a visual display interface.
[0065] For example, the application may include application software on various terminals, such as various mobile phone software (Application, APP), tablet computer application software, notebook computer application software, personal computer (PC, Personal Computer) application software, etc.
[0066] For example, applications may include browsers, video playback software, game software, and the like.
[0067] For another example, an application may also include a mini program. Among them, a mini program is an application that can be used without downloading and installing. In order to provide users with more diversified business services, developers can develop corresponding mini programs for terminal applications (such as instant messaging applications, shopping applications, email applications, etc.). The mini program can be embedded in the terminal application as a sub-application, and the corresponding business services can be provided to users by running the sub-application in the application (i.e., the corresponding mini program).
[0068] In one embodiment, the network storage space may be a storage space associated with the instant messaging application. For example, the network storage space may be considered as a sub-application of the instant messaging application. The network storage space may be independently developed, but the code and interfaces used in developing the network storage space need to be written based on the rules of the instant messaging application platform. In addition, the network storage space and the instant messaging application each have their own binary files and processes. The network storage space has its own client, but it must be attached to the instant messaging application client.
[0069] In one embodiment, the network storage space is used to store files for target objects with operation permissions. For example, the network storage space may have a sharing function, so multiple target objects with operation permissions may be allowed to operate the network storage space. For example, multiple target objects with operation permissions may be allowed to store files in the network storage space. For example, suppose that an instant messaging application allows staff members in the same enterprise or company to communicate, and the network storage space allows staff members in the same enterprise or company to share files. For another example, the network storage space may be used in the field of education. For example, the network storage space may allow classmates in the same class to share files, and so on.
[0070] In one embodiment, the network storage space can be used to store files. For example, the network storage space can be used to store multiple different types of files. For example, the network storage space can store word files, excel files, and so on.
[0071] In one embodiment, the network storage space may include multiple targets, each of which corresponds to multiple files. For example, the network storage space may include 10 directories,
[0072] In one embodiment, a file detection may be performed on the network storage space of the instant messaging application. The file detection on the network storage space may refer to detecting whether there are file changes in the network storage space. For example, by performing file detection on the network storage space, it can be known whether new files are uploaded to the network storage space, whether existing files in the network storage space are deleted or renamed, etc.
[0073] In one embodiment, the file update operation may include an operation of updating a file in a network storage space. For example, the file update operation may include uploading, renaming, moving, and deleting, etc. Among them, uploading may refer to uploading a file to a network storage space. Renaming may refer to renaming a file in a network storage space, or renaming a directory in a network storage space. Moving may refer to moving a file in a network storage space from a current directory to another directory. Deleting may refer to deleting a file in a network storage space.
[0074] The multiple associated file update operations may include file update operations with an associated relationship. For example, the associated relationship between the file update operations may refer to the trigger time sequence between the file update operations. For another example, the associated relationship between the file update operations may refer to the trigger quantity ratio between the file update operations, and so on.
[0075] The target file operation scenario may be used to explain whether the file update operation is performed on one target file or on multiple target files. For example, the target file operation scenario may include a scenario in which multiple associated file update operations are performed on the same target file. For another example, the target file operation scenario may include a scenario in which multiple associated file update operations are performed on multiple target files.
[0076] The operation condition may be used to explain what requirements the file update operation meets, so that the notification messages of multiple file update operations are merged and the merged notification messages are pushed to the target object's instant messaging application. For example, the operation condition may include that the multiple associated file update operations include a merge trigger operation. For example, when the multiple associated file update operations include a merge trigger operation, the notification messages of the multiple file update operations may be merged based on the message merging rules corresponding to the target file operation scenario.
[0077] The message merging rule may be used to explain how to merge notification messages of multiple file update operations when merging the notification messages of the multiple file update operations.
[0078] In one embodiment, when the target file operation scenario includes a scenario of performing operations on the same target file, and the operation condition is that the file update operation includes a merge trigger operation, the message merging rule may include: when multiple associated file update operations include a merge trigger operation, the notification messages corresponding to the target file update operations that meet the preset timing rules and have the difference information between the trigger time information and the trigger time information of the merge trigger operation are merged.
[0079] The trigger time information may indicate the time corresponding to when the file update operation is triggered, and the trigger time may indicate the triggering order of the file update operation. For example, if there are three file update operations within the predetermined time, the trigger time information of the three file update operations may be 10:00, 10:01 and 10:02 respectively.
[0080] In one embodiment, the notification messages corresponding to the target file update operations that meet the preset timing rule and have the difference information between the trigger time information and the trigger time information of the merged trigger operation may be merged.
[0081] For example, when a plurality of file update operations include a merge trigger operation, notification messages corresponding to the target file update operations whose trigger time information is before the trigger event information of the merge trigger operation may be merged.
[0082] For example, when a plurality of file update operations include a merge trigger operation, notification messages corresponding to the target file update operations whose trigger time information is after the trigger event information of the merge trigger operation may be merged.
[0083] For another example, when multiple file update operations include multiple merge trigger operations, multiple associated file update operations can be divided and processed according to the merge trigger operation to obtain at least two divided operation groups. Then, the notification messages corresponding to the target file update operations that meet the preset timing rules and the gap information between the trigger time information and the trigger time information of the merge trigger operation in the divided operation group can be merged. Specifically, the step of "when there are at least two merge trigger operations, when multiple associated file update operations include a merge trigger operation, merging the notification messages corresponding to the target file update operations that meet the preset timing rules and the gap information between the trigger time information and the trigger time information of the merge trigger operation" may include:
[0084] When the multiple associated file update operations include at least two merge trigger operations, the multiple associated file update operations are divided and processed according to the merge trigger operation to obtain at least two divided operation groups, wherein each divided operation group includes at least one file update operation;
[0085] The notification messages corresponding to the target file update operations that meet the preset timing rules and have the difference information between the trigger time information in the divided operation group and the trigger time information of the merged trigger operation are merged.
[0086] For example, five associated file update operations may include two merge trigger operations, and the five associated file update operations may be divided into two or three divided operation groups according to the merge trigger operations.
[0087] For example, when the five associated file update operations are merge trigger operation A, file update operation B, file update operation C, merge trigger operation D and file update operation E, the five associated file update operations can be divided into two post-division operation groups, wherein one post-division operation group can include merge trigger operation A, file update operation B, and file update operation C, and the other post-division operation group can include merge trigger operation D and file update operation E.
[0088] For another example, when the five associated file update operations are file update operation A, merge trigger operation B, file update operation C, merge trigger operation D and file update operation E, the five associated file update operations can be divided into three divided operation groups. Among them, one divided operation group can include only file update operation A, the second divided operation group can include merge trigger operation B and file update operation C, and the third divided operation group can include merge trigger operation D and file update operation E.
[0089] Then, the notification messages corresponding to the target file update operations that meet the preset timing rule and have the difference information between the trigger time information in the divided operation group and the trigger time information of the merged trigger operation can be merged.
[0090] For example, when the divided operation group includes a merge trigger operation A, a file update operation B, and a file update operation C, the notification messages corresponding to the merge trigger operation A, the file update operation B, and the file update operation C may be merged.
[0091] For another example, when the divided operation group includes a merge trigger operation D and a file update operation E, the notification messages corresponding to the merge trigger operation D and the file update operation E may be merged.
[0092] In one embodiment, when the merge trigger operation is an upload operation, the preset timing rule may include that the trigger time information of the target file update operation is after the trigger time information of the upload operation.
[0093] For example, user Xiaoming uploads a file A to the network storage space, and then renames the file A to file B. In the prior art, two notifications will be pushed to the target object's instant messaging application, namely, user Xiaoming uploaded file A and user Xiaoming renamed file A to file B. However, this application merges the notification messages of the file update operation, and only pushes one notification to the target object's instant messaging application, namely, user Xiaoming uploaded file B.
[0094] For another example, user Xiaoming uploads a file to directory A in the network storage space, and then moves the file to directory B. In the prior art, two notifications are pushed to the target object's instant messaging application, namely, user Xiaoming uploaded the file to target A and user Xiaoming moved the file to directory B. However, the present application merges the notification messages of the file update operation, and can push only one notification, that is, Xiaoming uploaded the file to directory B.
[0095] In one embodiment, when the target file update operation whose trigger time information is the last one among the target file update operations to be merged is a deletion operation, notification messages corresponding to multiple associated file update operations may be eliminated.
[0096] Among them, eliminating the notification messages corresponding to the multiple associated file update operations may refer to not pushing the notification messages of the file update operations.
[0097] For example, user Xiaoming uploads a file A to the network storage space, and then deletes the file A. In the prior art, two notifications will be pushed to the target object's instant messaging application, namely, user Xiaoming uploaded file A and user Xiaoming deleted file A. In the present application, by merging the notification messages of the file update operation, since the user deleted the uploaded file, no notification message will be pushed to the target object's instant messaging application.
[0098] For another example, user Xiao Ming uploaded a file A to the network storage space, renamed the file A to file B, and then deleted the file B. In this application, by merging the notification messages of the file update operation, since the user deleted the uploaded file, the notification message will not be pushed to the target object's instant messaging application.
[0099] In one embodiment, when the target file operation scenario includes a scenario of operating on the same target file, and the operation condition is that the file update operation includes a merge trigger operation, the message merge rule may include: when multiple associated file update operations include a merge trigger operation, the notification messages corresponding to the target file update operations whose difference information between the trigger time information and the trigger time information of the merge trigger operation meets the preset timing rule are merged. When multiple associated file update operations do not include a merge trigger operation, the notification messages corresponding to the multiple associated file update operations may not be merged.
[0100] For example, assuming that the merge trigger operation is an upload operation, when the multiple associated file update operations do not include an upload operation, the notification messages corresponding to the multiple associated file update operations may not be merged, but the notification messages corresponding to the multiple associated file update operations may be pushed.
[0101] In one embodiment, the notification messages of the file update operations may be merged according to the priority information of the file. Specifically, the step of "when multiple associated file update operations include a merge trigger operation, merging the notification messages corresponding to the target file update operations that meet the preset timing rule with the difference information between the trigger time information and the trigger time information of the merge trigger operation" may include:
[0102] When the multiple associated file update operations include a merge trigger operation, determining the file priority information of the target file and the directory priority information of the directory to which the target file belongs;
[0103] When the directory priority information and file priority information of the target file meet the preset merging condition, the notification message corresponding to the target file update operation that meets the preset timing rule and the difference information between the trigger time information and the trigger time information of the merged trigger operation is merged.
[0104] The file priority information of the target file can be used to illustrate the importance of the target file. For example, if the file priority of the target file is higher, the importance of the target file is higher. Conversely, if the file priority of the target file is lower, the importance of the target file is lower.
[0105] The directory priority information can be used to describe the importance of the directory to which the target file belongs. For example, if the priority of the directory to which the target file belongs is higher, the importance of the directory to which the target file belongs is higher, and the importance of the target file will also be higher. Conversely, if the priority of the directory described by the target file is lower, the importance of the directory to which the target file belongs is lower, and the importance of the target file will also be lower.
[0106] In one embodiment, when a plurality of associated file update operations include a merge trigger operation, the file priority information of the target file and the directory priority information of the directory to which the target file belongs can be determined. When the directory priority information and the file priority information of the target file meet the preset merge condition, the notification message corresponding to the target file update operation that meets the preset timing rule and the difference information between the trigger time information and the trigger time information of the merge trigger operation is merged.
[0107] For example, when the directory priority information and file priority information of the target file both indicate that the importance of the target file is relatively low, the notification message corresponding to the target file update operation that meets the preset timing rules can be merged, which includes the difference information between the trigger time information and the trigger time information of the merged trigger operation.
[0108] For another example, when the directory priority information or the file priority information of the target file indicates that the importance of the target file is relatively high, the notification message of the file update operation for the target file will not be merged.
[0109] In one embodiment, the priority information of the target file may be judged first. When it is determined that the notification messages of the file update operation of the target file can be merged, it may be determined whether there is a merge trigger operation in the file update operation. If there is a merge trigger operation, the notification messages of the file update operation in the update operation group may be merged. When there is no merge trigger operation, the notification messages of the file update operation in the update operation group may not be merged. For another example, when there is a merge trigger operation in the update operation group, and the merge trigger operation is an upload operation, it may be determined whether the last file update operation in the update operation group is a delete operation. If it is a delete operation, the notification message corresponding to the file update operation may be eliminated.
[0110] In one embodiment, the target file operation scenario includes scenarios for performing operations on different target files, the operation condition is that the file update operation includes a merge trigger operation corresponding to each target file, and the message merging rule includes: when multiple associated file update operations include a merge trigger operation corresponding to each target file, the notification messages corresponding to the file update operations associated with each target file are merged and processed.
[0111] For example, there are 10 associated file update operations. Among the 10 associated file update operations, the first to third file update operations are operations on target file A. The fourth to seventh file update operations are operations on target file B. The eighth to tenth file update operations are operations on target file C.
[0112] In one embodiment, the step of “when multiple associated file update operations include a merge trigger operation corresponding to each target file, merging notification messages corresponding to the file update operations associated with each target file” may include:
[0113] When the multiple associated file update operations include a merge trigger operation corresponding to each target file, the multiple associated file update operations are divided and processed according to the target file targeted by each file update operation to obtain at least two update operation groups, wherein each update operation group includes at least one file update operation;
[0114] According to the file update operations in the update operation group, a notification message of at least one file update operation in the update operation group is merged.
[0115] In one embodiment, when multiple associated file update operations include a merge trigger operation corresponding to each target file, the multiple associated file update operations are divided and processed according to the target file targeted by each file update operation to obtain at least two update operation groups, wherein each update operation group includes at least one file update operation.
[0116] For example, there are 10 associated file update operations. Among the 10 associated file update operations, the 1st to 3rd file update operations are operations on target file A. The 4th to 7th file update operations are operations on target file B. The 8th to 10th file update operations are operations on target file C. Then, the 1st to 3rd file update operations can be divided into one group, the 4th to 7th file update operations can be divided into another group, and the 8th to 10th file update operations can be divided into a third group.
[0117] Then, according to the file update operation in the update operation group, the notification message of at least one file update operation in the update operation group may be merged. Wherein, according to the file update operation in the update operation group, the notification message of at least one file update operation in the update operation group may be merged for processing, which may refer to the target file operation scenario of operating on a target file.
[0118] For example, it can be determined whether there is a merge trigger operation in the update operation group. When there is a merge trigger operation, the notification messages of the file update operations in the update operation group can be merged. When there is no merge trigger operation, the notification messages of the file update operations in the update operation group may not be merged. For another example, when there is a merge trigger operation in the update operation group, and the merge trigger operation is an upload operation, it can be determined whether the last file update operation in the update operation group is a delete operation. If it is a delete operation, the notification message corresponding to the file update operation can be eliminated.
[0119] For example, a user continuously uploads n files to directory 1. In the prior art, n notifications will be pushed, each of which indicates that file x has been uploaded to directory 1, where x ranges from 1 to n. After merging the notification messages corresponding to the file update operations, one notification will be pushed, indicating that the user has uploaded n files to directory 1.
[0120] In one embodiment, when operations are performed on multiple target files, it may also be determined whether to eliminate the notification message of the file update operation according to the priority information of each target file.
[0121] Specifically, the step of “when multiple associated file update operations include a merge trigger operation corresponding to each target file, merging notification messages corresponding to the file update operations associated with each target file” may include:
[0122] When the multiple associated file update operations include a merge trigger operation corresponding to each target file, determining the file priority information of each target file and the directory priority information of the directory to which the target file belongs;
[0123] When the directory priority information and the file priority information of the target file meet the preset merging condition, the notification messages corresponding to the file update operations associated with the target file are merged.
[0124] For example, when the directory priority information and file priority information of the target file both indicate that the importance of the target file is relatively low, the notification message corresponding to the target file update operation that meets the preset timing rules can be merged, which includes the difference information between the trigger time information and the trigger time information of the merged trigger operation.
[0125] For another example, when the directory priority information or the file priority information of the target file indicates that the importance of the target file is relatively high, the notification message of the file update operation for the target file will not be merged.
[0126] In one embodiment, the merged notification message may include at least one of operation object information, operation file information, and operation time information.
[0127] The operation object information can be used to describe who is performing the file update operation on the network storage space. The operation file information can be used to describe the file name, file type, file size, etc. of the target file corresponding to the file update operation. The operation time information can be used to describe the trigger time corresponding to the file update operation on the target file.
[0128] For example, Figure 3 As shown, the merged notification message may include that Xiao Ming uploaded a file to the target "project sharing space", the name of the file, the size of the file, the type of the file, and so on.
[0129] For example, Figure 3 As shown, after the merged notification message is pushed to the target object's instant messaging application, the target object can view the changes of the files in the network storage space through the instant messaging application.
[0130] In one embodiment, when merging notification messages of file update operations, the embodiment of the present application can also establish a mapping relationship between the merged notification message and the merged notification message. Therefore, in response to a trigger operation on the merged notification message, the notification message corresponding to the associated file update operation can be displayed according to the mapping relationship. For example, when the target object views the merged notification message, if the target object wants to know the detailed operation process, the target object can click on the merged notification message to view the notification message corresponding to each file update operation.
[0131] In one embodiment, when it is detected that there are multiple associated file update operations for the network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, a corresponding file update operation event can be generated according to the file update operation. Then, the notification messages of the multiple file update operation events in the preset event queue are merged according to the corresponding file update operation event.
[0132] Specifically, the step of “when it is detected that there are multiple associated file update operations for the network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, based on the message merging rule corresponding to the target file operation scenario, merging the notification messages of the multiple file update operations, and pushing the merged notification message to the instant messaging application of the target object” may include:
[0133] When it is detected that there are multiple associated file update operations for the network storage space within a preset time, a file update operation event is generated for each file update operation;
[0134] Add the file update operation event corresponding to each file update operation to the preset event queue;
[0135] When the association relationship between the file update operation events in the preset event queue meets the operation conditions corresponding to the target file operation scenario, the notification messages of multiple file update operation events in the preset event queue are merged based on the message merging rules corresponding to the target file operation scenario, and the merged notification messages are pushed to the instant messaging application of the target object.
[0136] In one embodiment, when it is detected that there are multiple associated file update operations on the network storage space within a preset time, a file update operation event may be generated for each file update operation.
[0137] For example, an event may be generated, in which the file identifier, the identifier of the directory to which the file belongs, the change type, the change time, etc. are recorded. Among them, the file update operation event may be used to generate a notification message corresponding to the file change operation. For example, the file update operation event may generate a notification message corresponding to the file update operation based on information such as the file identifier, the identifier of the directory to which the file belongs, the change type, and the change time.
[0138] Then, the file update operation event corresponding to each file update operation can be added to the preset event queue. When the association relationship between the file update operation events in the preset event queue meets the operation condition corresponding to the target file operation scenario, based on the message merging rule corresponding to the target file operation scenario, the notification messages of multiple file update operation events in the preset event queue are merged, and the merged notification message is pushed to the instant messaging application of the target object.
[0139] For example, when there is a merge trigger operation in a file update operation, the notification messages of multiple file update operation events in the preset event queue can be merged based on the message merging rules corresponding to the target file operation scenario, and the merged notification message can be pushed to the target object's instant messaging application.
[0140] In one embodiment, a target scheduled task may be set, and then the merged notification message is pushed to the instant messaging application of the target object according to the target scheduled task.
[0141] Specifically, the method proposed in the embodiment of the present application may also include:
[0142] When there are multiple associated file update operations for the network storage space within a predetermined time, a target scheduled task matching the preset time is generated;
[0143] Start executing the target scheduled task.
[0144] Among them, the target scheduled task can be regarded as a task countdown. When the target scheduled task is completed, the merged notification message can be pushed to the instant messaging application of the target object.
[0145] Specifically, the step of “pushing the merged notification message to the target object's instant messaging application” may include:
[0146] When the target scheduled task is completed, the merged notification message is pushed to the target object's instant messaging application.
[0147] In one embodiment, the target scheduled task may include a file scheduled task and a directory scheduled task. Specifically, the step of "generating a target scheduled task matching the preset time when there are multiple associated file update operations for the network storage space within the preset time" may include:
[0148] When there are multiple associated file update operations for the network storage space within a predetermined time, a file scheduled task is generated;
[0149] When a merge trigger operation is detected in a file update operation, a directory scheduled task is generated.
[0150] In one embodiment, the present application aims to make file change message push more effective. For events triggered by user operations on files in network storage space, the present application will put these events into a queue, and will not notify the user immediately, but will wait for a period of time, analyze the correlation relationship of events in the queue according to the characteristics of the file system, merge them, and then notify, so as to achieve the effect of both reaching the user with file change information and reducing harassment to the user.
[0151] For example, Figure 4 As shown, when it is detected that a user uploads a file to a network storage space, a file update operation event can be generated. The file identifier of the uploaded file, the identifier of the directory to which the file belongs, the change type, and the change time are added to the event queue. Then, it can be determined whether there is a file timer task corresponding to the uploaded file. If not, a file timer task with the primary key of the target file identifier and executed after n minutes can be generated. For another example, for a merge trigger operation, it can be determined whether there is a directory timer task corresponding to the identifier of the directory to which the target file belongs. If there is no target timer task, a directory timer task with the primary key of the directory identifier and executed after m minutes can be generated.
[0152] For another example, for a non-upload file change operation, a corresponding update operation event may be generated, and then a corresponding scheduled task may be set for the corresponding operation.
[0153] In one embodiment, if Figure 5 As shown in the figure, when the file timer task is triggered, all the change events in the preset event queue can be read. If there is an upload operation, the events corresponding to the file change operation after the upload operation are merged, the original events are consumed, and the newly merged events are put into the event queue to wait for the directory timer task to trigger the notification. If there is no upload operation, the user is notified of each event one by one, and the events are consumed.
[0154] In one embodiment, if Figure 6As shown in the figure, when the target scheduled task is triggered, all change events of the directory ID in the queue can be read. If there is only one file upload event, one file upload notification is pushed. If there are n file upload events (n is greater than 1), one directory upload notification is pushed to inform the user that n files have been uploaded to the directory.
[0155] In one embodiment, the prior art has the problem of too frequent notification messages. For example, for each operation of a file in a network storage space, such as uploading, renaming, moving, and deleting, there will be a notification message. In the embodiment of the present application, a file detection can be performed on the network storage space of an instant messaging application, wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is provided for target objects with operation permissions to store files; when it is detected that there are multiple associated file update operations for the network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, based on the message merging rules corresponding to the target file operation scenario, the notification messages of the multiple file update operations are merged, and the merged notification message is pushed to the instant messaging application of the target object. By merging notification messages, the embodiment of the present application can notify users more effectively, solve the problem of too frequent notification messages, and improve the user experience of the network storage space.
[0156] According to the method described in the above embodiment, the following is further described in detail with examples.
[0157] The embodiment of the present application will take the message notification method integrated on the server as an example to introduce the method of the embodiment of the present application.
[0158] In one embodiment, if Figure 7 As shown, a message notification method, the specific process is as follows:
[0159] 201. The server performs file detection on a network storage space of an instant messaging application, wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used for storing files by a target object with operation authority.
[0160] For example, the instant messaging application can be a professional office management tool that can support efficient office and management of an enterprise.
[0161] For example, the network storage space can be a network disk in an instant messaging application.
[0162] 202. When the server detects that there are multiple associated file update operations for the network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, the notification messages of the multiple file update operations are merged based on the message merging rules corresponding to the target file operation scenario, and the merged notification messages are pushed to the instant messaging application of the target object.
[0163] For example, user Xiaoming uploads a file A to the network storage space, and then renames the file A to file B. In the prior art, two notifications will be pushed to the target object's instant messaging application, namely, user Xiaoming uploaded file A and user Xiaoming renamed file A to file B. However, this application merges the notification messages of the file update operation, and only pushes one notification to the target object's instant messaging application, that is, user Xiaoming uploaded file B.
[0164] For another example, user Xiaoming uploads a file to directory A in the network storage space, and then moves the file to directory B. In the prior art, two notifications are pushed to the target object's instant messaging application, namely, user Xiaoming uploaded the file to target A and user Xiaoming moved the file to directory B. However, the present application merges the notification messages of the file update operation, and can push only one notification, that is, Xiaoming uploaded the file to directory B.
[0165] For another example, user Xiaoming uploads a file A to the network storage space, and then deletes the file A. In the prior art, two notifications will be pushed to the target object's instant messaging application, one of which is that user Xiaoming uploaded file A and the other is that user Xiaoming deleted file A. In the present application, by merging the notification messages of the file update operation, since the user deleted the uploaded file, no notification message will be pushed to the target object's instant messaging application.
[0166] For another example, user Xiao Ming uploaded a file A to the network storage space, renamed the file A to file B, and then deleted the file B. In this application, by merging the notification messages of the file update operation, since the user deleted the uploaded file, the notification message will not be pushed to the target object's instant messaging application.
[0167] For another example, a user continuously uploads n files to directory 1. In the prior art, n notifications will be pushed, each indicating that file x has been uploaded to directory 1, where x ranges from 1 to n. After merging the notification messages corresponding to the file update operations, one notification will be pushed, indicating that the user has uploaded n files to directory 1.
[0168] For example, Figure 4As shown, when it is detected that a user uploads a file to a network storage space, a file update operation event can be generated. The file identifier of the uploaded file, the identifier of the directory to which the file belongs, the change type, and the change time are added to the event queue. Then, it can be determined whether there is a file timer task corresponding to the uploaded file. If not, a file timer task with the primary key of the target file identifier and executed after n minutes can be generated. For another example, for a merge trigger operation, it can be determined whether there is a directory timer task corresponding to the identifier of the directory to which the target file belongs. If there is no target timer task, a directory timer task with the primary key of the directory identifier and executed after m minutes can be generated.
[0169] For another example, for a non-upload file change operation, a corresponding update operation event may be generated, and then a corresponding scheduled task may be set for the corresponding operation.
[0170] In one embodiment, if Figure 5 As shown in the figure, when the file timer task is triggered, all the change events in the preset event queue can be read. If there is an upload operation, the events corresponding to the file change operation after the upload operation are merged, the original events are consumed, and the newly merged events are put into the event queue to wait for the directory timer task to trigger the notification. If there is no upload operation, the user is notified of each event one by one, and the events are consumed.
[0171] In one embodiment, if Figure 6 As shown in the figure, when the target scheduled task is triggered, all change events of the directory ID in the queue can be read. If there is only one file upload event, one file upload notification is pushed. If there are n file upload events (n is greater than 1), one directory upload notification is pushed to inform the user that n files have been uploaded to the directory.
[0172] In an embodiment of the present application, the server can perform file detection on the network storage space of the instant messaging application, wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used by the target object with operation authority to store files; when the server detects that there are multiple associated file update operations for the network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, based on the message merging rules corresponding to the target file operation scenario, the notification messages of the multiple file update operations are merged, and the merged notification message is pushed to the instant messaging application of the target object. By merging notification messages, the embodiment of the present application can notify users more effectively, solve the problem of too frequent notification messages, and improve the user experience of the network storage space.
[0173] In order to better implement the message notification method provided in the embodiment of the present application, a message notification device is also provided in one embodiment, and the message notification device can be integrated into a computer device. The meanings of the terms are the same as those in the above message notification method, and the specific implementation details can refer to the description in the method embodiment.
[0174] In one embodiment, a message notification device is provided. The message notification device can be integrated into a computer device, such as Figure 8 As shown, the message notification device includes: a merging unit 301, which is specifically as follows:
[0175] The merging unit 301 is used to merge the notification messages of the multiple file update operations based on the message merging rules corresponding to the target file operation scenario when there are multiple associated file update operations for the network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, and push the merged notification message to the instant messaging application of the target object; wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used for storing files by the target object with operation permissions.
[0176] In one embodiment, the merging unit 301 may include:
[0177] The first merging subunit is used to merge the notification messages corresponding to the target file update operations that meet the preset timing rules, including the difference information between the trigger time information and the trigger time information of the merged trigger operation, when the multiple associated file update operations include a merged trigger operation.
[0178] In one embodiment, the first merging subunit may include:
[0179] A first division module is used for, when the multiple associated file update operations include at least two merge trigger operations, dividing the multiple associated file update operations according to the merge trigger operations to obtain at least two divided operation groups, wherein each divided operation group includes at least one file update operation;
[0180] The first merging module is used to merge the notification messages corresponding to the target file update operations that meet the preset timing rules and have the difference information between the trigger time information in the divided operation group and the trigger time information of the merged trigger operation.
[0181] In one embodiment, the message display device may further include:
[0182] The elimination unit is used to eliminate the notification messages corresponding to the multiple associated file update operations when the trigger time information indicates that the last target file update operation is a deletion operation.
[0183] In one embodiment, the first merging subunit may include:
[0184] A first determination module, configured to determine file priority information of a target file and directory priority information of a directory to which the target file belongs when the plurality of associated file update operations include a merge trigger operation;
[0185] The second merging module is used to merge the notification message corresponding to the target file update operation that meets the preset timing rules, which contains the difference information between the trigger time information and the trigger time information of the merged trigger operation, when the directory priority information and the file priority information of the target file meet the preset merging conditions.
[0186] In one embodiment, the message display device may further include:
[0187] A display unit is used to respond to a trigger operation on the merged notification message and display the notification message corresponding to the associated file update operation according to the mapping relationship.
[0188] In one embodiment, the merging unit 301 may include:
[0189] The second merging subunit is configured to merge notification messages corresponding to the file updating operations associated with each target file when the multiple associated file updating operations include a merge triggering operation corresponding to each target file.
[0190] In one embodiment, the second merging subunit may include:
[0191] A second division module is used for, when the multiple associated file update operations include a merge trigger operation corresponding to each target file, dividing the multiple associated file update operations according to the target file targeted by each file update operation to obtain at least two update operation groups, wherein each update operation group includes at least one file update operation;
[0192] The second merging module is used to merge the notification message of at least one file update operation in the update operation group according to the file update operation in the update operation group.
[0193] In one embodiment, the second merging subunit may include:
[0194] A second determination module is used to determine the file priority information of each target file and the directory priority information of the directory to which the target file belongs when the multiple associated file update operations include a merge trigger operation corresponding to each target file;
[0195] The third merging module is used to merge the notification messages corresponding to the file update operations associated with the target file when the directory priority information and the file priority information of the target file meet the preset merging conditions.
[0196] In one embodiment, the merging unit 301 may include:
[0197] an event generation subunit, configured to generate a file update operation event for each file update operation when detecting that there are multiple associated file update operations for the network storage space within a preset time;
[0198] An adding subunit, used for adding a file update operation event corresponding to each file update operation to a preset event queue;
[0199] The third merging sub-unit is used to merge the notification messages of multiple file update operation events in the preset event queue based on the message merging rules corresponding to the target file operation scenario when the association relationship between the file update operation events in the preset event queue meets the operation conditions corresponding to the target file operation scenario, and push the merged notification messages to the instant messaging application of the target object.
[0200] In one embodiment, the merging unit 301 may further include:
[0201] A task generation subunit, configured to generate a target scheduled task matching the preset time when detecting that there are multiple associated file update operations for the network storage space within the preset time;
[0202] The starter unit is used to start executing the target scheduled task.
[0203] In one embodiment, the task generation subunit may include:
[0204] A first task generating module, configured to generate a file timer task when detecting that there are multiple associated file update operations for the network storage space within a predetermined time;
[0205] The second task generating module is used to generate a directory timing task when it is detected that there is a merge triggering operation in the file updating operation.
[0206] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0207] The above-mentioned message notification device can solve the problem of too frequent notification messages and improve the user experience of network storage space.
[0208] The present application also provides a computer device, which may include a terminal or a server. For example, the computer device may be used as a message notification terminal, which may be a mobile phone, a tablet computer, etc.; for another example, the computer device may be a server, such as a message notification server, etc. Fig. 9 As shown, it shows a schematic diagram of the structure of the terminal involved in the embodiment of the present application, specifically:
[0209] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Fig. 9 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0210] The processor 401 is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the computer device and processes data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0211] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0212] The computer device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0213] The computer device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0214] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, as follows:
[0215] When there are multiple associated file update operations for a network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, the notification messages of the multiple file update operations are merged based on the message merging rules corresponding to the target file operation scenario, and the merged notification messages are pushed to the instant messaging application of the target object; wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used for storing files for the target object with operation permissions.
[0216] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0217] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations in the above-mentioned embodiments.
[0218] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0219] To this end, an embodiment of the present application further provides a storage medium in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any message notification method provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0220] When there are multiple associated file update operations for a network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, the notification messages of the multiple file update operations are merged based on the message merging rules corresponding to the target file operation scenario, and the merged notification messages are pushed to the instant messaging application of the target object; wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used for storing files for the target object with operation permissions.
[0221] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0222] Since the computer program stored in the storage medium can execute the steps in any message notification method provided in the embodiments of the present application, the beneficial effects that can be achieved by any message notification method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0223] The above is a detailed introduction to a message notification method, device, computer equipment and storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A message notification method, characterized in that: include: When there are multiple associated file update operations for a network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, the notification messages of the multiple file update operations are merged based on the message merging rules corresponding to the target file operation scenario, and the merged notification messages are pushed to the instant messaging application of the target object; wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used for storing files for the target object with operation permissions.
2. The method according to claim 1, characterized in that: The target file operation scenario includes a scenario of performing operations on the same target file, the operation condition is that the file update operation includes a merge trigger operation, and the message merging rule includes: when the multiple associated file update operations include a merge trigger operation, the notification messages corresponding to the target file update operations that meet the preset timing rules and the difference information between the trigger time information and the trigger time information of the merge trigger operation are merged.
3. The method according to claim 2, characterized in that When the merge trigger operation is at least two merge trigger operations, when the multiple associated file update operations include a merge trigger operation, merging the notification messages corresponding to the target file update operations that meet the preset timing rule and the difference information between the trigger time information and the trigger time information of the merge trigger operation, including: When the multiple associated file update operations include at least two merge trigger operations, the multiple associated file update operations are divided and processed according to the merge trigger operation to obtain at least two divided operation groups, wherein each divided operation group includes at least one file update operation; The notification messages corresponding to the target file update operations that meet the preset timing rules and have the difference information between the trigger time information in the divided operation group and the trigger time information of the merged trigger operation are merged.
4. The method according to claim 2 or 3, characterized in that: The merge trigger operation includes an upload operation, and the preset timing rule includes that the trigger time information of the target file update operation is after the trigger time information of the upload operation.
5. The method according to claim 4, characterized in that The message merging rule further includes: when the trigger time information indicates that the last target file update operation is a deletion operation, eliminating the notification messages corresponding to the multiple associated file update operations.
6. The method according to claim 2, characterized in that The method further includes: when the multiple associated file update operations do not include a merge trigger operation, not performing merge processing on notification messages corresponding to the multiple associated file update operations.
7. The method according to claim 2, characterized in that When the multiple associated file update operations include a merge trigger operation, merging notification messages corresponding to the target file update operations that meet the preset timing rule and have a difference between the trigger time information and the trigger time information of the merge trigger operation, including: When the multiple associated file update operations include a merge trigger operation, determining file priority information of the target file and directory priority information of the directory to which the target file belongs; When the directory priority information and file priority information of the target file meet the preset merging conditions, the notification message corresponding to the target file update operation that meets the preset timing rules and the difference information between the trigger time information and the trigger time information of the merged trigger operation is merged.
8. The method according to claim 1, characterized in that The target file operation scenario includes scenarios for performing operations on different target files, the operation condition is that the file update operation includes a merge trigger operation corresponding to each target file, and the message merging rule includes: when the multiple associated file update operations include a merge trigger operation corresponding to each target file, the notification messages corresponding to the file update operations associated with each target file are merged and processed.
9. The method according to claim 8, characterized in that When the multiple associated file update operations include a merge trigger operation corresponding to each target file, merging notification messages corresponding to the file update operations associated with each target file includes: When the multiple associated file update operations include a merge trigger operation corresponding to each target file, the multiple associated file update operations are divided and processed according to the target file targeted by each file update operation to obtain at least two update operation groups, wherein each update operation group includes at least one file update operation; According to the file update operations in the update operation group, a notification message of at least one file update operation in the update operation group is merged.
10. The method according to claim 8, characterized in that When the multiple associated file update operations include a merge trigger operation corresponding to each target file, merging notification messages corresponding to the file update operations associated with each target file includes: When the multiple associated file update operations include a merge trigger operation corresponding to each target file, determining file priority information of each target file and directory priority information of the directory to which the target file belongs; When the directory priority information and the file priority information of the target file meet the preset merging condition, the notification messages corresponding to the file update operations associated with the target file are merged.
11. The method according to claim 1, characterized in that: The merged notification message includes at least one of: operation object information, operation file information and operation time information.
12. The method according to claim 1, characterized in that The merged notification message and the notification message of the file update operation have a mapping relationship, and the method further includes: In response to a trigger operation on the merged notification message, a notification message corresponding to the associated file update operation is displayed according to the mapping relationship.
13. The method according to claim 1, characterized in that When there are multiple associated file update operations for the network storage space within the predetermined time, and the association relationship between the file update operations meets the operation condition corresponding to the target file operation scenario, based on the message merging rule corresponding to the target file operation scenario, the notification messages of the multiple file update operations are merged, and the merged notification message is pushed to the instant messaging application of the target object, including: When there are multiple associated file update operations for the network storage space within a preset time, generating a file update operation event for each file update operation; Adding the file update operation event corresponding to each file update operation to a preset event queue; When the association relationship between the file update operation events in the preset event queue meets the operation conditions corresponding to the target file operation scenario, based on the message merging rules corresponding to the target file operation scenario, the notification messages of multiple file update operation events in the preset event queue are merged, and the merged notification messages are pushed to the instant messaging application of the target object.
14. The method according to claim 13, characterized in that The method further comprises: When there are multiple associated file update operations for the network storage space within a predetermined time, generating a target scheduled task matching the predetermined time; Start executing the target timed task; The pushing the merged notification message to the instant messaging application of the target object includes: When the target scheduled task is completed, the merged notification message is pushed to the instant messaging application of the target object.
15. The method according to claim 14, characterized in that The target scheduled task includes a file scheduled task and a directory scheduled task; when there are multiple associated file update operations for the network storage space within the predetermined time, generating a target scheduled task matching the preset time includes: When there are multiple associated file update operations for the network storage space within a predetermined time, generating a file scheduled task; When it is detected that there is a merge trigger operation in the file update operation, a directory timing task is generated.
16. A message notification device, characterized in that: include: A merging unit is used to merge notification messages of the multiple file update operations based on a message merging rule corresponding to the target file operation scenario when there are multiple associated file update operations for the network storage space within a predetermined time, and the association relationship between the file update operations meets the operation conditions corresponding to the target file operation scenario, and push the merged notification message to the instant messaging application of the target object; wherein the network storage space is a storage space associated with the instant messaging application, and the network storage space is used for storing files by the target object with operation authority.
17. A computer device, characterized in that: It comprises a memory and a processor; the memory stores an application, and the processor is used to run the application in the memory to execute the operations in the message notification method according to any one of claims 1 to 15.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the message notification method according to any one of claims 1 to 15.
19. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps in the message notification method according to any one of claims 1 to 15 are implemented.
