Multi-channel message detection sending method and device, equipment, storage medium and program product
By creating an integrated channel in a multi-channel messaging system, detecting and filtering requests and sending data in messages, the problem of difficulty in unified detection and supervision of multi-channel messages is solved, and more efficient message management and user experience improvement is achieved.
Patent Information
- Application Number
- CN202411439501.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-10-15
AI Technical Summary
In the prior art, it is difficult to conduct unified detection and supervision of multi-channel messages, resulting in messages being sent or repeatedly sent at the wrong time, causing trouble to users.
The message to be detected is obtained through a pre-created integrated channel, and the requested data and send data in the message are detected, including sensitive content, sending date, sending time, working day detection, as well as repeated sending, sending range, overclocking sending and specific sending detection, ensuring that the message meets compliance standards before sending.
It realizes unified management and detection of multi-channel messages, reduces the difficulty of message management, improves efficiency, can identify and intercept abnormal messages, and improves user experience.
Smart Images

Figure CN119603259A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data detection technology, and in particular to a multi-channel message detection and sending method, device, equipment, storage medium and program product. Background Art
[0002] With the rapid development of the Internet, especially the development of mobile Internet, the frequency of user-oriented message notifications has become higher and higher, and the notification channels have become more and more diverse. Users frequently and passively receive messages from all directions, such as IM instant messaging messages, email messages, and text messages. Currently, the common message notification channels on the market are very scattered, and there are no unified specifications and standards. The docking cost is high (adapting to different authentication systems and formulating multiple sets of data structures). At the same time, each channel basically does not perform compliance verification on whether the message is sensitive or confidential, whether it is sent at a reasonable time, and whether it is sent repeatedly, resulting in the wrong message being sent at the wrong time, causing trouble for users.
[0003] Therefore, it is urgent to propose a solution that aggregates multi-channel notification messages for detection and intercepts abnormal messages in a timely manner.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present application is to provide a multi-channel message detection and sending method, device, equipment, storage medium and program product, aiming to solve the technical problem that multi-channel messages are difficult to detect and supervise.
[0006] To achieve the above object, the present application proposes a multi-channel message detection and sending method, the method comprising:
[0007] Get the message to be detected through the pre-created integration channel;
[0008] Detecting the request data in the message to be detected to obtain a request detection result;
[0009] When the request detection result is passed, detecting the sending data in the message to be detected to obtain a sending detection result;
[0010] When the sending detection result is passing the detection, the message to be detected is sent to the target user.
[0011] In one embodiment, before the step of obtaining the message to be detected through the pre-created integration channel, the step further includes:
[0012] Determine the message channel that needs to be tested;
[0013] An integration channel is created based on a message channel that needs to be detected. The integration channel is used to aggregate messages that need to be detected in multiple message channels.
[0014] In one embodiment, the step of detecting the request data in the message to be detected and obtaining the request detection result includes:
[0015] Performing sensitive content detection on the message to be detected to obtain a sensitive content detection result;
[0016] Performing a sending date detection on the message to be detected to obtain a sending date detection result;
[0017] Performing a sending time detection on the message to be detected to obtain a sending time detection result;
[0018] Performing a working day detection on the message to be detected to obtain a working day detection result;
[0019] When at least one of the sensitive content detection result, the sending date detection result, the sending time detection result and the working day detection result is failed, the request detection result is failed, and abnormal message processing is performed on the message to be detected.
[0020] In one embodiment, the step of performing sensitive content detection on the message to be detected to obtain a sensitive content detection result includes:
[0021] Extracting characteristic words of the message to be detected by a feature extraction algorithm;
[0022] Comparing the characteristic words of the message to be detected based on the sensitive word library to detect whether the message to be detected contains sensitive words;
[0023] If the message to be detected contains sensitive words, the sensitive content detection result is detection failure, and abnormal message processing is performed on the message to be detected;
[0024] If the message to be detected does not contain sensitive words, the sensitive content detection result is detection passed.
[0025] In one embodiment, when the request detection result is a pass detection, detecting the sending data in the message to be detected, and obtaining the sending detection result includes:
[0026] Performing repeated sending detection on the message to be detected to obtain a repeated sending detection result;
[0027] Performing a sending range detection on the message to be detected to obtain a sending range detection result;
[0028] Performing an overfrequency sending detection on the message to be detected to obtain an overfrequency sending detection result;
[0029] Performing a specific sending detection on the message to be detected to obtain a specific sending detection result;
[0030] When at least one of the repeated sending detection result, the sending range detection result, the overclocking sending detection result and the specific sending detection result is failed, the sending detection result is detection failure, and abnormal message processing is performed on the message to be detected.
[0031] In one embodiment, the step of performing repeated transmission detection on the message to be detected to obtain a repeated transmission detection result includes:
[0032] Determine the shortest time interval for sending the message to be detected;
[0033] Obtaining the system identifier, user identifier and message body of the message to be detected;
[0034] Concatenate the system identifier, user identifier and message body of the message to be detected, and perform a hash operation on the concatenated whole to obtain a hash identifier of the message to be detected;
[0035] According to the shortest time interval, repeated sending detection is performed on the hash identifier of the message to be detected to obtain a repeated sending detection result.
[0036] In one embodiment, the step of performing overclocking sending detection on the message to be detected to obtain the overclocking sending detection result includes:
[0037] Determine a sending time interval and a sending number threshold of the message to be detected;
[0038] Obtain the window start timestamp, window current timestamp and number of messages sent by the window where the message to be detected is located;
[0039] According to the window start timestamp, window current timestamp and number of messages sent in the window where the message to be detected is located, based on the sending time interval and sending number threshold of the message to be detected, overclocking sending detection is performed on the message to be detected to obtain an overclocking sending detection result.
[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a multi-channel message detection and sending device, and the multi-channel message detection and sending device includes:
[0041] An integration acquisition module is used to acquire the message to be detected through a pre-created integration channel;
[0042] A request detection module, used to detect the request data in the message to be detected and obtain a request detection result;
[0043] A sending detection module, used for detecting the sending data in the message to be detected to obtain a sending detection result when the request detection result is a passing detection;
[0044] The message sending module is used to send the message to be detected to the target user when the detection result is passed.
[0045] In addition, to achieve the above-mentioned purpose, the present application also proposes a multi-channel message detection and sending device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the multi-channel message detection and sending method as described above.
[0046] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the multi-channel message detection and sending method described above are implemented.
[0047] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the multi-channel message detection and sending method described above are implemented.
[0048] One or more technical solutions proposed in this application have at least the following technical effects:
[0049] The embodiment of the present application proposes a multi-channel message detection and sending method, device, equipment, storage medium and program product, which obtains the message to be detected through a pre-created integrated channel; detects the request data in the message to be detected to obtain the request detection result; when the request detection result is a pass detection, detects the sending data in the message to be detected to obtain a sending detection result; when the sending detection result is a pass detection, sends the message to be detected to the target user. The present application integrates the messages that need to be detected from multiple channels through an integrated channel, manages the messages in a unified manner, reduces the difficulty of message management, and improves the efficiency of message management; through request data detection and sending data detection, it can detect and identify abnormal information in the message and intercept it, which can reduce the impact of abnormal messages and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0052] Figure 1 A flowchart of a method for detecting and sending a multi-channel message according to an embodiment of the present invention is provided;
[0053] Figure 2 This is a schematic diagram of the module structure of a multi-channel message detection and sending device according to an embodiment of the present application;
[0054] Figure 3 This is a schematic diagram of the device structure of the hardware operating environment involved in the multi-channel message detection and sending method in the embodiment of the present application.
[0055] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0056] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0057] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0058] The main solution of the embodiment of the present application is: obtain the message to be detected through a pre-created integrated channel; detect the request data in the message to be detected to obtain a request detection result; when the request detection result is a pass detection, detect the sending data in the message to be detected to obtain a sending detection result; when the sending detection result is a pass detection, send the message to be detected to the target user.
[0059] With the rapid development of the Internet, especially the development of mobile Internet, the frequency of user-oriented message notifications has become higher and higher, and the notification channels have become more and more diverse. Users frequently and passively receive messages from all directions, such as IM instant messaging messages, email messages, and text messages. Currently, the common message notification channels on the market are very scattered, and there are no unified specifications and standards. The docking cost is high (adapting to different authentication systems and formulating multiple sets of data structures). At the same time, each channel basically does not perform compliance verification on whether the message is sensitive or confidential, whether it is sent at a reasonable time, and whether it is sent repeatedly, resulting in the wrong message being sent at the wrong time, causing trouble for users.
[0060] Therefore, it is urgent to propose a solution that aggregates multi-channel notification messages for detection and intercepts abnormal messages in a timely manner.
[0061] This application integrates the messages that need to be detected from multiple channels through integrated channels, manages the messages in a unified manner, reduces the difficulty of message management, and improves the efficiency of message management; through request data detection and sending data detection, it can detect and identify abnormal information in the message and intercept it, which can reduce the impact of abnormal messages and improve user experience.
[0062] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a multi-channel message detection and sending device, etc. The following takes a multi-channel message detection and sending device as an example to illustrate this embodiment and the following embodiments.
[0063] Based on this, the embodiment of the present application provides a multi-channel message detection and sending method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the multi-channel message detection and sending method of the present application.
[0064] In this embodiment, the multi-channel message detection and sending method includes steps S10 to S40:
[0065] Step S10, obtaining the message to be detected through the pre-created integration channel.
[0066] It should be noted that the integration channel is used to aggregate messages that need to be detected in multiple message channels.
[0067] In addition, it should be noted that the message to be detected refers to a message that needs to perform request data detection and send data detection.
[0068] Specifically, first determine the message channels that need to be detected, such as SMS, email, and APP push. After determining the message channels, design a general data structure for the integrated channel; define a set of general message template structures to support the message formats of different channels, unify the field names and data types required by different channels, and reduce the complexity of data conversion. Then integrate and encapsulate multiple message channels; interface with each notification channel one by one, understand and test the characteristics and limitations of its API; encapsulate the API of each channel into an internal service to hide the underlying implementation details; abstract the API interface unique to each channel into a unified interface through the adapter mode or proxy mode. Finally, create an integrated channel based on a unified interface, which can obtain messages to be detected from multiple message channels and support the acquisition, sending, and withdrawal of messages.
[0069] Step S20, detecting the request data in the message to be detected to obtain a request detection result.
[0070] It should be noted that the request data includes but is not limited to sensitive content, sending date, sending time, whether the sending time is on a working day, etc. The request data for detecting the message to be detected includes at least one of sensitive content detection, sending date detection, sending time detection, and working day detection, which is used to detect the message to be detected after receiving the message sending request to determine whether the message can be sent, not for a single message to be sent, but for the compliance of the entire sending content and sending time.
[0071] Specifically, when the multi-channel message detection and sending device receives a message sending request, it obtains the message to be detected through the integrated channel, and then the device performs a request data detection on the data to be detected. Each call to the interface of the integrated channel is regarded as an acquisition and sending operation, and a detection is performed. One acquisition and sending operation can send messages to several users at the same time, and one detection can perform request data detection on several messages at the same time.
[0072] Perform sensitive content detection on the message to be detected to obtain a sensitive content detection result; perform sending date detection on the message to be detected to obtain a sending date detection result; perform sending time detection on the message to be detected to obtain a sending time detection result; perform working day detection on the message to be detected to obtain a working day detection result. The four tests of sensitive content detection, sending date detection, sending time detection and working day detection are not restricted in order and are not prioritized.
[0073] When at least one of the sensitive content detection result, the sending date detection result, the sending time detection result and the working day detection result is failed, the request detection result is failed, and the message to be detected is processed as an abnormal message. The multi-channel message detection and sending device will send a notification message of failed detection to the administrator, and inform the specific reason for the failure. The administrator can choose to give up sending or ignore the detection and resend according to the specific situation; if you choose to give up sending, the message will be withdrawn and the message sending action will be ended; if you choose to ignore the detection and resend, proceed to the next step.
[0074] When the sensitive content detection results, sending date detection results, sending time detection results and working day detection results are all passed, the request detection result is passed, indicating that the message to be detected does not contain sensitive content and the sending time is correct, so it can be sent, and then the message to be detected proceeds to the next step.
[0075] Step S30: When the request detection result is passed, the sending data in the message to be detected is detected to obtain a sending detection result.
[0076] It should be noted that the sending data includes but is not limited to the sending frequency, the organization scope of the target user, the sending frequency, and the specific user. The detection of the sending data of the message to be detected includes at least one of repeated sending detection, sending range detection, overclocking sending detection, and specific sending detection, which is used to confirm whether the message to be detected can be received by the user after determining that the message to be detected can be sent, and whether a single user can receive the message.
[0077] Specifically, after the message to be detected passes the request data detection, the message to be detected is subjected to a sending data detection, and the sending data detection includes repeated sending detection, sending range detection, overclocking sending detection, and specific sending detection. The message to be detected is subjected to repeated sending detection to obtain a repeated sending detection result; the message to be detected is subjected to a sending range detection to obtain a sending range detection result; the message to be detected is subjected to an overclocking sending detection to obtain an overclocking sending detection result; the message to be detected is subjected to a specific sending detection to obtain a specific sending detection result. The detection of repeated sending detection, sending range detection, overclocking sending detection, and specific sending detection does not limit the detection order, and there is no priority order.
[0078] When at least one of the repeated sending detection results, the sending range detection results, the overclocking sending detection results and the specific sending detection results fails, the sending detection result fails, and the message to be detected is processed as an abnormal message. The multi-channel message detection and sending device will send a notification message of failed detection to the administrator and inform the specific reason. The administrator can choose to give up sending or ignore the detection and resend according to the specific situation; if you choose to give up sending, the message will be withdrawn and the message sending action will be ended; if you choose to ignore the detection and resend, the message to be detected will be sent to the target user.
[0079] When the repeated sending test results, sending range test results, overclocking sending test results and specific sending test results are all passed, the sending test result is passed. After the test passes, the message to be tested can be sent to the target user. If the message sending fails, the device sends a notification message to the platform administrator, and the administrator can choose to resend it; if the message is sent successfully, the entire message sending process is completed, and the message can be withdrawn at this time.
[0080] Step S40: When the detection result is passed, the message to be detected is sent to the target user.
[0081] It should be noted that the target user refers to the user who receives the message.
[0082] Specifically, when the sending detection result is passing the detection, the message to be detected is sent to the target user.
[0083] Through the above scheme, this embodiment integrates the messages that need to be detected from multiple channels through the integrated channel, manages the messages in a unified manner, reduces the difficulty of message management, and improves the efficiency of message management; through request data detection and send data detection, it is possible to detect and identify abnormal information in the message and intercept it, which can reduce the impact of abnormal messages and improve user experience.
[0084] Based on the above implementation scheme, in a feasible implementation manner, before the step of obtaining the message to be detected through the pre-created integration channel, the following steps are further included: S50 to S60:
[0085] Step S50: determining a message channel that needs to be tested.
[0086] Specifically, a message channel for sending messages that needs to be detected is determined, such as a text message, an email, an application APP push, and other message channels.
[0087] Step S60: creating an integration channel based on the message channels that need to be detected, wherein the integration channel is used to aggregate messages that need to be detected in multiple message channels.
[0088] Specifically, after determining the message channel, design a common data structure for the integrated channel; define a set of common message template structures to support the message formats of different channels, unify the field names and data types required by different channels, and reduce the complexity of data conversion. Then integrate and encapsulate multiple message channels; interface with each notification channel one by one, understand and test the characteristics and limitations of its API; encapsulate the API of each channel into an internal service to hide the underlying implementation details; abstract the API interface of each channel into a unified interface through the adapter mode or proxy mode, and create an integrated channel based on the unified interface, which can obtain the messages to be detected from multiple message channels and support the acquisition, sending and withdrawal of messages.
[0089] Through the above scheme, this embodiment determines the message channel that needs to be detected, creates an integration channel based on the message channel that needs to be detected, obtains the messages to be detected in multiple message channels through the integration channel, integrates the messages that need to be detected in multiple channels, and manages the messages in a unified manner, thereby reducing the difficulty of message management, improving the efficiency of message management and the scalability of subsequent integration channels.
[0090] Based on the above implementation scheme, in a feasible implementation manner, detecting the request data in the message to be detected and obtaining the request detection result includes steps S21 to S25:
[0091] Step S21, performing sensitive content detection on the message to be detected to obtain a sensitive content detection result.
[0092] It should be noted that the sensitive content detection is used to detect whether the message to be detected contains sensitive content.
[0093] Specifically, feature words of the message to be detected are extracted through a feature extraction algorithm; the feature words of the message to be detected are compared based on a sensitive word library to detect whether the message to be detected contains sensitive words; if the message to be detected contains sensitive words, the sensitive content detection result is detection failure, and the message to be detected is subjected to abnormal message processing; if the message to be detected does not contain sensitive words, the sensitive content detection result is detection success.
[0094] Step S22, performing a sending date detection on the message to be detected to obtain a sending date detection result.
[0095] It should be noted that the sending date detection is used to detect whether the sending date of the message to be detected is within the preset date range for allowing the message to be sent. The sending date detection is often used in scenarios with clear date range restrictions, such as sending holiday SMS messages.
[0096] Specifically, the sending date of the message to be detected is obtained, and the sending date is compared with the preset date range. If the sending date is not within the date range, the sending date detection result is a detection failure, and the message to be detected is intercepted and withdrawn. For example, assuming that the preset date range is 2024-04-02—2024-04-03, when the sending date is 2024-04-04, the message will be intercepted.
[0097] Step S23, performing a sending time detection on the message to be detected to obtain a sending time detection result.
[0098] It should be noted that the sending time detection is used to detect whether the sending time of the message to be detected is within the preset time range allowed for sending messages. The sending time detection is often used in scenarios with clear time range restrictions such as working hours.
[0099] Specifically, the sending time of the message to be detected is obtained, and the sending time is compared with the preset time range. If the sending time is not within the time range, the sending time detection result is a detection failure, and the message to be detected is intercepted and withdrawn. For example, assuming that the preset time range is 08:30-17:30, when the sending time is 02:00 in the morning, the sent message will be intercepted.
[0100] Step S24, performing a workday detection on the message to be detected to obtain a workday detection result.
[0101] It should be noted that the working day detection is used to detect whether the sending date of the message to be detected is within a working day.
[0102] Specifically, when a message needs to be sent on a working day, if the sending time of the message to be detected is on a non-working day, the message will be intercepted; when a message needs to be sent on a non-working day, if the sending time of the message to be detected is on a working day, the message will be intercepted.
[0103] Step S25, when at least one of the sensitive content detection result, the sending date detection result, the sending time detection result and the working day detection result is failed, the request detection result is failed, and abnormal message processing is performed on the message to be detected.
[0104] Specifically, when at least one of the sensitive content detection results, sending date detection results, sending time detection results and working day detection results fails, the request detection result fails, and the multi-channel message detection and sending device will send a notification message of failed detection to the administrator, and inform the specific reason for the failure. The administrator can choose to abandon sending or ignore the detection and resend according to the specific situation; if you choose to abandon sending, the message will be withdrawn and the message sending action will be ended; if you choose to ignore the detection and resend, enter the next assembly and disassembly step, and combine the message content with the message recipient to form a complete message.
[0105] When the detection results of the sensitive content detection result, the sending date detection result, the sending time detection result and the working day detection result are all passed, the request detection result is passed, and the sending data detection is performed on the message to be detected.
[0106] Based on the above implementation scheme, in a feasible implementation manner, the step of performing sensitive content detection on the message to be detected to obtain a sensitive content detection result includes S211 to S214:
[0107] Step S211: extracting characteristic words of the message to be detected by using a characteristic extraction algorithm.
[0108] It should be noted that the feature extraction algorithm is used to extract feature words in the message to be detected. As an implementation method, the feature extraction algorithm may be a TF-IDF algorithm.
[0109] Specifically, first, data preprocessing is performed on the message to be detected. First, text cleaning is carried out to remove irrelevant characters, HTML tags, special symbols, etc. from the message to be detected to ensure the purity of the text content. Then, word segmentation is performed on the message to be detected. The cleaned text is segmented into independent lexical units. This step usually relies on specific word segmentation tools or algorithms, such as jieba segmentation (for Chinese), etc. Then, stop words are removed, and stop words in the word segmentation results, such as common but meaningless words like "de" (的), "le" (了), "zai" (在), etc., are removed. The stop word list can be customized according to actual needs or an existing stop word library can be selected.
[0110] Then, the TF-IDF (Term Frequency-Inverse Document Frequency) value of each word in the word segmentation result of the message to be detected is calculated through the TF-IDF algorithm. The words are sorted according to the calculated TF-IDF values. The higher the TF-IDF value of a word, the more representative it is of the theme or content of the document. The top N words after sorting are selected as feature words according to actual needs. The value of N can be determined according to the specific task and the size of the dataset.
[0111] Step S212: Based on the sensitive word library, compare the feature words of the message to be detected to detect whether the message to be detected contains sensitive words.
[0112] It should be noted that the sensitive word library is used to store sensitive content, which usually includes prohibited words, politically sensitive words, pornographic words, violent words, malicious offensive remarks, content that violates privacy, etc. Collect and organize words that may cause controversy or discomfort to build a comprehensive sensitive word library. This word library needs to be updated regularly to cope with the emergence of new sensitive words.
[0113] Specifically, first, a sensitive word library is created. According to business requirements, legal and regulatory requirements, and social moral standards, various sensitive words are collected, such as swear words, insulting language, politically sensitive words, pornographic words, violent words, etc. Then, the feature words of the message to be detected are traversed and compared with the sensitive words in the sensitive word library to check for matching items. The comparison method can be traversal search, using the containsKey method of HashMap, or taking advantage of the fast retrieval ability of the Trie tree, etc. If a matching item is found, it means that the message to be detected contains sensitive words.
[0114] Step S213: If the message to be detected contains sensitive words, the sensitive content detection result is a failure, and abnormal message processing is performed on the message to be detected.
[0115] Specifically, if the message to be detected contains sensitive words, the sensitive content detection result is detection failure. The multi-channel message detection and sending device will send a notification message of detection failure to the administrator, and inform the specific reason for failure. The administrator can choose to give up sending or ignore detection and resend according to the specific situation; if you choose to give up sending, the message will be withdrawn and the message sending action will be ended; if you choose to ignore detection and resend, proceed to the next step.
[0116] Step S214: If the message to be detected does not contain any sensitive words, the sensitive content detection result is detection passed.
[0117] Specifically, if the message to be detected does not contain sensitive words, the sensitive content detection result is detection passed, indicating that there is no sensitive content in the message to be detected.
[0118] Based on the above implementation scheme, in a feasible implementation mode, when the request detection result is passed, detecting the sending data in the message to be detected, and obtaining the sending detection result includes steps S31 to S35:
[0119] Step S31, performing repeated sending detection on the message to be detected to obtain a repeated sending detection result.
[0120] It should be noted that the repeated sending detection is used to detect whether the same sending system sends a message with the same content to the same target user who receives the message within a period of time.
[0121] Specifically, determine the shortest time interval for sending the message to be detected; obtain the system identifier, user identifier and message body of the message to be detected; concatenate the system identifier, user identifier and message body of the message to be detected, perform a hash operation on the concatenated whole, and obtain the hash identifier of the message to be detected; according to the shortest time interval, perform a repeated sending detection on the hash identifier of the message to be detected to obtain a repeated sending detection result.
[0122] Step S32, performing a sending range detection on the message to be detected to obtain a sending range detection result.
[0123] It should be noted that the sending range detection is used to detect whether the organization to which the user to whom the message to be detected is sent is within the preset organization range, and messages can only be sent to users within the organization range.
[0124] Specifically, a sending organization range table is created. The table contains a list of organizations that are allowed to send messages. Each organization has a corresponding number. The organization of the receiving user of the message to be detected is obtained, and the organization to which the user belongs is traversed and compared with the sending organization range table. If the user's organization does not exist in the table, the sending range test result is failed; if the user's organization exists in the table, the sending range test result is passed.
[0125] Step S33, performing an overclocking sending detection on the message to be detected to obtain an overclocking sending detection result.
[0126] It should be noted that the over-frequency sending detection is used to detect whether the number of messages sent by the same system to the same user within a period of time exceeds a preset frequency setting.
[0127] Specifically, determine the sending time interval and sending number threshold of the message to be detected; obtain the window start timestamp, window current timestamp and number of messages sent by the window where the message to be detected is located; based on the window start timestamp, window current timestamp and number of messages sent by the window where the message to be detected is located, and based on the sending time interval and sending number threshold of the message to be detected, perform overclocking sending detection on the message to be detected to obtain the overclocking sending detection result.
[0128] Step S34, performing a specific sending detection on the message to be detected to obtain a specific sending detection result.
[0129] It should be noted that the specific sending detection is used to detect whether the target users to which the message to be detected is sent include specific users, and is generally used to exclude specific users.
[0130] Specifically, first determine the specific user list, then obtain the target user who receives the message to be detected, and traverse and compare the target user with the specific user list. If the target user is included in the specific user list, the specific sending detection result is detection failure; if the target user is not included in the specific user list, the specific sending detection result is detection success.
[0131] Step S35, when at least one of the repeated sending detection result, the sending range detection result, the overclocking sending detection result and the specific sending detection result is failed, the sending detection result is a detection failure, and abnormal message processing is performed on the message to be detected.
[0132] Specifically, when at least one of the repeated sending detection result, the sending range detection result, the overclocking sending detection result and the specific sending detection result is failed, the sending detection result is a detection failure, and the multi-channel message detection and sending device will send a notification message of detection failure to the administrator, and inform the specific reason for the failure. The administrator can choose to give up sending or ignore the detection and resend according to the specific situation; if you choose to give up sending, the message will be withdrawn and the message sending action will be ended; if you choose to ignore the detection and resend, the message to be detected will be sent to the target user.
[0133] When the repeated sending detection result, the sending range detection result, the overclocking sending detection result and the specific sending detection result are all passed, the sending data detection result is passed, and the message to be detected is sent to the target user.
[0134] Based on the above implementation scheme, in a feasible implementation manner, the step of performing repeated transmission detection on the message to be detected and obtaining the repeated transmission detection result includes S311 to S314:
[0135] Step S311, determining the shortest time interval for sending the message to be detected.
[0136] It should be noted that the shortest time interval for sending the message to be detected refers to the shortest time interval for sending messages with the same content to the same target user. For example, when the shortest time interval is 60 minutes, it means that the same message cannot be sent to the same user within one hour. If the same system sends the same message to the same recipient within the specified time range, the message will be blocked.
[0137] Specifically, the shortest time interval for sending the message to be detected is determined according to actual conditions.
[0138] Step S312: obtaining the system identifier, user identifier and message body of the message to be detected.
[0139] It should be noted that the system identifier of the message to be detected refers to the unique identifier ID of the sending system of the message to be detected.
[0140] In addition, it should be noted that the user identification refers to the identification ID of the user who receives the message.
[0141] In addition, it should be noted that the message body refers to the content of the message actually sent.
[0142] Specifically, the multi-channel message detection and sending device obtains the system identifier, user identifier and message body of the message to be detected.
[0143] Step S313, concatenate the system identifier, user identifier and message body of the message to be detected, perform a hash operation on the concatenated whole, and obtain the hash identifier of the message to be detected.
[0144] Specifically, the system identifier, user identifier and message body of the message to be detected are concatenated into a string, and the string is hashed by a hash algorithm to obtain a hash value, which is used as the hash identifier of the message to be detected, and the hash identifier and the last sending time are stored. In one embodiment of the present application, the hash algorithm can be a SHA-256 algorithm. The hash identifier is used to uniquely identify the message to be detected, and can determine the sending system and receiving user of the message, as well as the message content in the message body.
[0145] Step S314: performing a repeated sending detection on the hash identifier of the message to be detected according to the shortest time interval to obtain a repeated sending detection result.
[0146] Specifically, the difference between the current time and the last sending time of the same hash identifier stored in the cache is calculated to obtain the time interval. If the difference is less than the determined shortest time interval (such as 60 minutes), it is considered that the message has been sent within the specified time interval, and the repeated sending test result is a detection failure. The multi-channel message detection and sending device will send a notification message of detection failure to the administrator and inform the specific reason for the failure. The administrator can choose to give up sending or ignore the detection and resend according to the specific situation; if you choose to give up sending, the message will be withdrawn and the message sending action will be terminated; if the difference is greater than or equal to the configured shortest time interval, the detection and sending process will continue.
[0147] Based on the above implementation scheme, in a feasible implementation manner, performing overclocking sending detection on the message to be detected to obtain the overclocking sending detection result includes steps S331 to S333:
[0148] Step S331, determining the sending time interval and sending number threshold of the message to be detected.
[0149] It should be noted that the sending time interval of the message to be detected refers to the time unit for performing overclocking sending detection, which can be one hour, two hours, one day, two days, etc., which is determined according to specific actual conditions.
[0150] In addition, it should be noted that the sending times threshold refers to the maximum number of times that messages can be sent to the same target user in the sending time interval. For example, assuming the sending time interval is 1 hour, the sending times threshold is 10 times, which means that the same system cannot send messages to the target user more than 10 times in one hour (the total number of messages sent to the user by various message channels of the same system within 1 hour cannot exceed 10 times).
[0151] Specifically, the sending time interval and the sending number threshold of the message to be detected are determined according to actual conditions.
[0152] Step S332, obtaining the window start timestamp, window current timestamp and number of messages sent by the window of the window where the message to be detected is located.
[0153] It should be noted that the window start timestamp of the window where the message to be detected is located refers to the timestamp when the window where the message to be detected is located is created.
[0154] In addition, it should be noted that the current timestamp of the window refers to the current timestamp of the window. The current creation time of the window can be obtained by subtracting the start timestamp of the window from the current timestamp of the window.
[0155] In addition, it should be noted that the number of messages sent by a window refers to the number of messages sent by the window since it was created.
[0156] Specifically, the sliding time window is implemented through the zset data type of Redis, the window start timestamp and window current timestamp of the window where the message to be detected is located are obtained, and the messages sent in the window are counted through commands or counters. In one embodiment, the ZCARD command is used to obtain the number in the window.
[0157] Step S333, according to the window start timestamp, window current timestamp and number of messages sent in the window where the message to be detected is located, based on the sending time interval and sending number threshold of the message to be detected, overclocking sending detection is performed on the message to be detected to obtain an overclocking sending detection result.
[0158] Specifically, the current creation time of the window can be obtained by subtracting the start timestamp of the window from the current timestamp of the window, and the creation time of the window is compared with the sending time interval to obtain the timestamp of the valid message in the window. The number of messages sent by the window in the sending time interval is obtained based on the valid timestamp. If the number of messages sent by the window is greater than or equal to the sending number threshold, the overclocking sending detection result is a failure to pass the detection. The multi-channel message detection and sending device will send a notification message of failure to the administrator and inform the specific reason for the failure. The administrator can choose to give up sending or ignore the detection and resend according to the specific situation; if the number of messages sent by the window is less than the sending number threshold, the overclocking sending detection result is a passing detection and the sending frequency has not been exceeded.
[0159] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the multi-channel message detection and sending method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0160] This application also provides a multi-channel message detection and sending device, please refer to Figure 2 , the multi-channel message detection and sending device comprises:
[0161] An integration acquisition module 201 is used to acquire the message to be detected through a pre-created integration channel;
[0162] A request detection module 202, configured to detect request data in the message to be detected and obtain a request detection result;
[0163] A sending detection module 203 is used to detect the sending data in the message to be detected and obtain a sending detection result when the request detection result is passed;
[0164] The message sending module 204 is used to send the message to be detected to the target user when the sending detection result is passed.
[0165] The multi-channel message detection and sending device provided by the present application adopts the multi-channel message detection and sending method in the above embodiment, which can solve the technical problem that multi-channel messages are difficult to detect and supervise. Compared with the prior art, the beneficial effects of the multi-channel message detection and sending device provided by the present application are the same as the beneficial effects of the multi-channel message detection and sending method provided by the above embodiment, and other technical features in the multi-channel message detection and sending device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0166] The present application provides a multi-channel message detection and sending device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multi-channel message detection and sending method in the above-mentioned embodiment 1.
[0167] Reference below Figure 3 , which shows a schematic diagram of the structure of a multi-channel message detection and sending device suitable for implementing an embodiment of the present application. The multi-channel message detection and sending device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The multi-channel message detection and sending device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0168] like Figure 3As shown, the multi-channel message detection and sending device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the multi-channel message detection and sending device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the multi-channel message detection and transmission device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a multi-channel message detection and transmission device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0169] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0170] The multi-channel message detection and sending device provided by the present application adopts the multi-channel message detection and sending method in the above embodiment, which can solve the technical problem that multi-channel messages are difficult to detect and supervise. Compared with the prior art, the beneficial effects of the multi-channel message detection and sending device provided by the present application are the same as the beneficial effects of the multi-channel message detection and sending method provided by the above embodiment, and other technical features in the multi-channel message detection and sending device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0171] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0172] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0173] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the multi-channel message detection and sending method in the above-mentioned embodiment.
[0174] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0175] The computer-readable storage medium may be included in the multi-channel message detection and sending device; or may exist independently without being assembled into the multi-channel message detection and sending device.
[0176] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the multi-channel message detection and sending device, the multi-channel message detection and sending device: obtains the message to be detected through a pre-created integrated channel; detects the request data in the message to be detected to obtain a request detection result; when the request detection result is a pass detection, detects the sending data in the message to be detected to obtain a sending detection result; when the sending detection result is a pass detection, sends the message to be detected to a target user.
[0177] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0178] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0179] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0180] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned multi-channel message detection and sending method, and can solve the technical problem that multi-channel messages are difficult to detect and supervise. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the multi-channel message detection and sending method provided by the above-mentioned embodiment, and will not be repeated here.
[0181] The present application also provides a computer program product, including a computer program, which implements the steps of the multi-channel message detection and sending method as described above when executed by a processor.
[0182] The computer program product provided by this application can solve the technical problem that multi-channel messages are difficult to detect and supervise. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the multi-channel message detection and sending method provided by the above embodiment, which will not be repeated here.
[0183] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A multi-channel message detection and sending method, characterized in that: The method comprises: Get the message to be detected through the pre-created integration channel; Detecting the request data in the message to be detected to obtain a request detection result; When the request detection result is passed, detecting the sending data in the message to be detected to obtain a sending detection result; When the sending detection result is passing the detection, the message to be detected is sent to the target user.
2. The method according to claim 1, characterized in that Before the step of obtaining the message to be detected through the pre-created integration channel, the following steps are also included: Determine the message channel that needs to be tested; An integration channel is created based on a message channel that needs to be detected. The integration channel is used to aggregate messages that need to be detected in multiple message channels.
3. The method according to claim 1, characterized in that The step of detecting the request data in the message to be detected and obtaining the request detection result comprises: Performing sensitive content detection on the message to be detected to obtain a sensitive content detection result; Performing a sending date detection on the message to be detected to obtain a sending date detection result; Performing a sending time detection on the message to be detected to obtain a sending time detection result; Performing a working day detection on the message to be detected to obtain a working day detection result; When at least one of the sensitive content detection result, the sending date detection result, the sending time detection result and the working day detection result is failed, the request detection result is failed, and abnormal message processing is performed on the message to be detected.
4. The method according to claim 3, characterized in that The step of performing sensitive content detection on the message to be detected to obtain a sensitive content detection result comprises: Extracting characteristic words of the message to be detected by a feature extraction algorithm; Comparing the characteristic words of the message to be detected based on the sensitive word library to detect whether the message to be detected contains sensitive words; If the message to be detected contains sensitive words, the sensitive content detection result is detection failure, and abnormal message processing is performed on the message to be detected; If the message to be detected does not contain sensitive words, the sensitive content detection result is detection passed.
5. The method according to claim 1, characterized in that When the request detection result is a pass detection, the step of detecting the sending data in the message to be detected to obtain the sending detection result includes: Performing repeated sending detection on the message to be detected to obtain a repeated sending detection result; Performing a sending range detection on the message to be detected to obtain a sending range detection result; Performing an overfrequency sending detection on the message to be detected to obtain an overfrequency sending detection result; Performing a specific sending detection on the message to be detected to obtain a specific sending detection result; When at least one of the repeated sending detection result, the sending range detection result, the overclocking sending detection result and the specific sending detection result is failed, the sending detection result is detection failure, and abnormal message processing is performed on the message to be detected.
6. The method according to claim 5, characterized in that The step of performing repeated sending detection on the message to be detected to obtain a repeated sending detection result comprises: Determine the shortest time interval for sending the message to be detected; Obtaining the system identifier, user identifier and message body of the message to be detected; Concatenate the system identifier, user identifier and message body of the message to be detected, and perform a hash operation on the concatenated whole to obtain a hash identifier of the message to be detected; According to the shortest time interval, repeated sending detection is performed on the hash identifier of the message to be detected to obtain a repeated sending detection result.
7. The method according to claim 5, characterized in that The step of performing overfrequency sending detection on the message to be detected to obtain the overfrequency sending detection result comprises: Determine a sending time interval and a sending number threshold of the message to be detected; Obtain the window start timestamp, window current timestamp and number of messages sent by the window where the message to be detected is located; According to the window start timestamp, window current timestamp and number of messages sent in the window where the message to be detected is located, based on the sending time interval and sending number threshold of the message to be detected, overclocking sending detection is performed on the message to be detected to obtain an overclocking sending detection result.
8. A multi-channel message detection and sending device, characterized in that: The device comprises: An integration acquisition module is used to acquire the message to be detected through a pre-created integration channel; A request detection module, used to detect the request data in the message to be detected and obtain a request detection result; A sending detection module, used for detecting the sending data in the message to be detected to obtain a sending detection result when the request detection result is a passing detection; The message sending module is used to send the message to be detected to the target user when the detection result is passed.
9. A multi-channel message detection and sending device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the multi-channel message detection and sending method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the multi-channel message detection and sending method according to any one of claims 1 to 7 are implemented.
11. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the multi-channel message detection and sending method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Short message request sending system and method based on multiple channels and storage medium
CN111065061A
Multi-channel configurable unified message management method, platform and system
CN114363409A
Message pushing method and device, processor, electronic equipment and storage medium
CN116405547A
Message forwarding method and device of multi-channel multi-data structure, electronic equipment and storage medium
CN116506500A
Bi-directional multi-channel social media brokering
US20160269343A1