Information sending frequency control method and device, electronic equipment and storage medium
By responding to information sending instructions in the information sending system, determining the target user information and sending threshold, and judging the sending time with the user log table, the problems of frequent and repeated sending are solved, the user experience and system stability are improved, and the operational cost is reduced.
Patent Information
- Application Number
- CN202411254490.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-03
AI Technical Summary
Frequently sending SMS messages will disturb users, reduce user experience, and increase enterprise operation costs. It is difficult for the existing technology to effectively control the frequency of information transmission and avoid frequent and repeated sending.
By responding to information sending instructions, the target user information is determined, and the transmission frequency threshold and interval threshold are determined based on the preset system configuration information. The user log table is read to determine the number of sending times and interval duration. If the threshold is not reached, the information is sent to avoid frequent and Repeat send.
Effectively control the frequency of information sending, improve user experience, reduce operating costs, enhance system stability, and improve business processing flexibility and user satisfaction.
Smart Images

Figure CN119071386A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for controlling information sending frequency. Background Art
[0002] With the popularization of mobile Internet and the widespread use of smart phones, information services have surpassed the traditional text messaging function and developed into a multi-functional communication platform. Among them, SMS is favored by enterprises and individuals due to its immediacy, high reach rate and low cost. In the current business environment, SMS service is not only a channel for information transmission, but also an important tool for enterprise-customer interaction, service notification, security verification and marketing promotion.
[0003] SMS has become an indispensable tool in the field of advertising and marketing. Merchants use SMS to send product information, promotions, etc. to target users, achieving large-scale, targeted promotion. In addition, SMS is also widely used in various system reminders, such as identity authentication, order status updates, bill reminders, etc. However, frequent SMS will disturb users, and high-frequency SMS may make users feel that their privacy is violated, reducing user experience. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose a method, device, electronic device and storage medium for controlling the frequency of information sending, which can avoid frequent information sending, improve the flexibility of business processing, and improve user experience.
[0005] To achieve the above object, a first aspect of an embodiment of the present application provides a method for controlling information transmission frequency, the method comprising: In response to the information sending instruction, determining the target user information corresponding to the information sending instruction, wherein the target user information includes message content, target number and target information category; Determining a sending frequency threshold and a sending interval threshold corresponding to the target information category according to preset system configuration information, wherein the system configuration information is used to represent an editing state and a configuration state of the information; Reading a user log table corresponding to the target user information, and determining the number of times the target number is sent within a preset time period according to the user log table; When the number of transmissions does not reach the transmission frequency threshold, determining the interval length of the target number according to the user log table; When the interval duration is greater than or equal to the interval threshold, the message content is sent to the target number.
[0006] In some embodiments, determining the sending frequency threshold and the sending interval threshold corresponding to the target information category according to preset system configuration information includes: Determine a first configuration value and a second configuration value corresponding to the target information category according to preset system configuration information; Determine a sending upper limit value corresponding to the target information category according to the first configuration value, and determine a message interval value corresponding to the target information category according to the second configuration value; The sending upper limit value is determined as a sending frequency threshold, and the message interval value is determined as an interval threshold.
[0007] In some embodiments, determining the interval duration of the target number according to the user log table includes: Determine the sending time according to the information sending instruction; Determine whether the target number has historical sending information according to the user log table; When the target number has historical sending information, determine the historical sending time of the historical sending information, and determine the interval length of the target number according to the historical sending time and the sending time; When there is no historical sending information for the target number, a preset time length is determined as the interval time of the target number, wherein the preset time length is greater than the interval threshold.
[0008] In some embodiments, determining the interval duration of the target number according to the historical sending time and the sending time includes: When there are multiple historical sending times, compare the historical sending times with the sending time to filter out the target historical sending time closest to the sending time; The interval duration of the target number is determined according to the target historical sending time and the sending time.
[0009] In some embodiments, after determining the number of times the target number is sent within the preset time period according to the user log table, the method further includes: When the number of transmissions reaches the transmission frequency threshold, an interception prompt message is generated.
[0010] In some embodiments, after determining the interval duration of the target number according to the user log table, the method further includes: When the interval duration is less than the interval threshold, repeated sending information is generated.
[0011] In some embodiments, before sending the message content to the target number, the method further includes: Performing a preprocessing operation on the message content to obtain a processed text; Performing sensitive information detection on the processed text to obtain a detection result; It is determined that the detection result is that there is no sensitive information in the message content.
[0012] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides an information sending frequency control device, the device comprising: An instruction response module, configured to respond to an information sending instruction and determine target user information corresponding to the information sending instruction, wherein the target user information includes message content, target number, and target information category; A threshold determination module, used to determine a sending frequency threshold and a sending interval threshold corresponding to the target information category according to preset system configuration information, wherein the system configuration information is used to characterize the editing state and configuration state of the information; A log reading module, used to read a user log table corresponding to the target user information, and determine the number of times the target number is sent within a preset time period according to the user log table; An interval determination module, configured to determine the interval duration of the target number according to the user log table when the number of transmissions does not reach the transmission frequency threshold; The message sending module is used to send the message content to the target number when the interval duration is greater than or equal to the interval threshold.
[0013] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, an electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the information sending frequency control method as described in the first aspect when executing the computer program.
[0014] To achieve the above-mentioned purpose, the fourth aspect of the embodiments of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the information sending frequency control method as described in the first aspect.
[0015] The information transmission frequency control method, device, electronic device and storage medium proposed in the present application firstly determine the target user information corresponding to the information transmission instruction in response to the information transmission instruction, so that the message content, target number and target information category can be determined through the target user information, and then determine the transmission frequency threshold and transmission interval threshold corresponding to the target information category according to the preset system configuration information, so that the maximum number of times that information can be sent under the target information category can be obtained through the transmission frequency threshold, and the duration of the interval between sending information under the target information category can be obtained through the transmission interval threshold, and then read the user log table corresponding to the target user information, and determine the target information according to the user log table. The number of times the number is sent within the preset time length, so that the number of times the target number has been sent information within the preset time length can be obtained. When the number of times the number of times the number of times the number of times the target number has been sent information has not reached the upper limit value, at this time, the interval length of the target number is determined according to the user log table, that is, the interval length between the target number and the last time the information was sent. When the interval length is greater than or equal to the interval threshold, it means that the time interval between the target number and the last time the information was sent is long, and the target number can continue to be sent information, that is, the message content is sent to the target number, so that the sending frequency of the information can be controlled, and frequent information sending can be avoided, the flexibility of business processing is improved, and the user experience is improved. The embodiment of the present application first determines the sending frequency threshold and the sending interval threshold corresponding to the target information category, and the information sending frequency can be adjusted according to actual needs. Then, the number of times the target number is sent is compared with the sending frequency table threshold, and frequent information sending can be avoided. By comparing the interval length and the interval threshold of the information sent to the target number, repeated information sending in a short time can be avoided, further improving system stability, improving business processing flexibility, and further improving user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flow chart of a method for controlling information transmission frequency provided by an embodiment of the present application; Figure 2 yes Figure 1 Flow chart of step S102 in FIG. Figure 3 It is a specific flow chart of determining the interval duration of a target number according to a user log table provided in an embodiment of the present application; Figure 4 It is a specific flow chart of determining the interval duration of the target number according to the historical sending time and the sending time provided by the embodiment of the present application; Figure 5 is a specific flow chart of an information sending frequency control method provided by another embodiment of the present application; Figure 6 is a specific flow chart of an information sending frequency control method provided by another embodiment of the present application; Figure 7 is a specific flow chart of an information sending frequency control method provided by another embodiment of the present application; Figure 8 is a structural diagram of an information sending frequency control device provided in an embodiment of the present application; Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0018] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0020] First, some nouns involved in this application are analyzed: Natural Language Processing (NLP): NLP uses computers to process, understand, and apply human languages (such as Chinese, English, etc.). NLP is a branch of artificial intelligence and an interdisciplinary subject between computer science and linguistics. It is often referred to as computational linguistics. Natural language processing includes grammatical analysis, semantic analysis, and text understanding. Natural language processing is commonly used in technical fields such as machine translation, handwritten and printed character recognition, speech recognition and text-to-speech conversion, information intent recognition, information extraction and filtering, text classification and clustering, public opinion analysis, and opinion mining. It involves data mining related to language processing, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research, and linguistic research related to language computing.
[0021] Hypertext Markup Language (HTML): Hypertext is a way of organizing information. It uses hyperlinks to link text, graphics and other information media. These interrelated information media may be in the same text, or in other files, or files on a computer that is geographically far away. This way of organizing information connects information resources distributed in different locations in a random way, making it easier for people to find and retrieve information.
[0022] Based on this, the embodiments of the present application provide a method and device for controlling the frequency of information sending, an electronic device and a storage medium, which can avoid frequent information sending, improve the flexibility of business processing, and improve the user experience.
[0023] The information sending frequency control method and device, electronic device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the information sending frequency control method in the embodiments of the present application is described.
[0024] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0025] The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. Artificial intelligence software technologies mainly include computer vision technology, robotics technology, biometrics technology, module management technology of online meeting systems, natural language processing technology, and machine learning / deep learning.
[0026] The information transmission frequency control method provided in the embodiment of the present application relates to the field of data processing technology. The information transmission frequency control method provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server side, and can also be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, and can also be configured as 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, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the information transmission frequency control method, etc., but is not limited to the above forms.
[0027] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0028] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with the relevant laws, regulations, and standards of the relevant countries and regions. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0029] With the popularization of mobile Internet and the widespread use of smart phones, information services have surpassed the traditional text messaging function and developed into a multi-functional communication platform. Among them, SMS is favored by enterprises and individuals due to its immediacy, high reach rate and low cost. In the current business environment, SMS service is not only a channel for information transmission, but also an important tool for enterprise-customer interaction, service notification, security verification and marketing promotion.
[0030] SMS has become an indispensable tool in the field of advertising and marketing. Merchants use SMS to send product information, promotional activities, etc. to target users, achieving large-scale, targeted promotion. In addition, SMS is also widely used in various system reminders, such as identity authentication, order status updates, bill reminders, etc.
[0031] However, sending SMS frequently will disturb users, and high-frequency SMS sending may make users feel that their privacy is violated, reducing user experience. In addition, SMS sending requires a certain fee, and high-frequency sending will increase the operating costs of the enterprise. Sending a large number of SMS will put pressure on the SMS service system, which may cause the system to crash or delay sending.
[0032] In order to solve the above problems, the present embodiment provides a method, device, electronic device and storage medium for controlling information sending frequency. First, in response to an information sending instruction, the target user information corresponding to the information sending instruction is determined, so that the message content, target number and target information category can be determined through the target user information. Then, the sending frequency threshold and the sending interval threshold corresponding to the target information category are determined according to the preset system configuration information, so that the maximum number of times that information can be sent under the target information category can be obtained through the sending frequency threshold, and the duration of the interval between sending information under the target information category can be obtained through the sending interval threshold. After that, the user log table corresponding to the target user information is read, and the message content, target number and target information category are determined according to the preset system configuration information. The table determines the number of times the target number is sent within a preset time length, so that the number of times the target number has been sent information within the preset time length can be obtained. When the number of times the target number is sent does not reach the sending frequency threshold, it means that the number of times the target number has been sent information has not reached the upper limit value. At this time, the interval duration of the target number is determined according to the user log table, that is, the interval duration between the target number and the last time the information was sent. When the interval duration is greater than or equal to the interval threshold, it means that the time interval between the target number and the last time the information was sent is long, and the target number can continue to be sent information, that is, the message content is sent to the target number, so that the sending frequency of the information can be controlled, and frequent information sending can be avoided, the flexibility of business processing is improved, and the user experience is improved. The embodiment of the present application first determines the sending frequency threshold and the sending interval threshold corresponding to the target information category, and the information sending frequency can be adjusted according to actual needs. Then, the number of times the target number is sent is compared with the sending frequency table threshold, and frequent information sending can be avoided. By comparing the interval duration and the interval threshold of the information sent to the target number, repeated information sending in a short time can be avoided, further improving system stability, improving business processing flexibility, and further improving user satisfaction.
[0033] The following is a detailed description with reference to the accompanying drawings.
[0034] Figure 1 is an optional flowchart of the information sending frequency control method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S105.
[0035] Step S101, in response to a message sending instruction, determining target user information corresponding to the message sending instruction, wherein the target user information includes message content, target number and target information category.
[0036] In step S101 of some embodiments, in response to an information sending instruction, target user information corresponding to the information sending instruction is determined, so that different information can be customized for different user groups, and the target user information includes message content, that is, the information to be conveyed; target number, that is, the target number of the user receiving the information; and target information category, that is, the type of information. By determining the target user information, information sending errors can be avoided.
[0037] It should be noted that the message content in the embodiments of the present application includes text, links, promotional information, notifications, or any other type of communication content. The target information category can be transaction information, such as purchase confirmation, order status update, etc.; marketing information, such as promotional activities, coupons, new product releases, etc.; service notification information, such as account security reminders, system maintenance notifications, etc. The embodiments of the present application do not specifically limit the target information category.
[0038] It is worth noting that the target user information in the embodiments of the present application includes but is not limited to the sending time, sending date, pusher, etc.
[0039] Step S102: determining a sending frequency threshold and a sending interval threshold corresponding to the target information category according to preset system configuration information.
[0040] It should be noted that the system configuration information is used to represent the editing status and configuration status of the information, that is, whether the information is edited, and the specific configuration information of the information, such as the configuration description, configuration serial number, etc.
[0041] In step S102 of some embodiments, the sending frequency threshold and the sending interval threshold corresponding to the target information category are determined according to preset system configuration information, and the sending frequency threshold and the interval threshold are configured to improve the flexibility of business processing and to configure different thresholds according to different target information categories.
[0042] It should be noted that the system configuration information in the embodiment of the present application can be stored as a system configuration table. Specifically, when the system configuration information is stored as a system configuration table, the system configuration table includes multiple configuration items, and each configuration item has a corresponding configuration value, wherein the configuration item includes but is not limited to the name of the configuration item, the serial number of the configuration item, the configuration value of the configuration item, the configuration description of the configuration item, the status of the configuration item and the modification authority of the configuration item.
[0043] It is understandable that the configuration value in the embodiment of the present application is the specific value of the configuration item, for example, the configuration value is a numerical value that can be used to interpret the configuration description. The configuration description of the configuration item is used to explain the specific meaning of the configuration item, the status of the configuration item is used to characterize whether the configuration item is enabled, whether it is valid, etc., and the modification authority of the configuration item is used to characterize whether the configuration can be modified. For example, the name in the system configuration information of the present application is "Shopping", the serial number is "20230608", the configuration description is "the upper limit of mobile phone number sending per day", the configuration value is "5", the status is "valid", and the modification authority is "unmodifiable". At this time, it can be determined that the upper limit of the target number sending per day is 5 times. The embodiment of the present application does not make specific restrictions on the configuration of the system configuration information.
[0044] Step S103, reading a user log table corresponding to the target user information, and determining the number of transmissions of the target number within a preset time period according to the user log table.
[0045] In step S103 of some embodiments, the user log table corresponding to the target user information is read, so that the information sending status corresponding to the target user information can be determined through the user log table, and the number of times the target number is sent within a preset time period can be determined based on the user log table, so that the number of times the target number has been sent information within the preset time period can be obtained, which is convenient for subsequent judgment whether it is possible to continue to send information to the target number.
[0046] It should be noted that the user log table is used for the information sending status of the target user information, for example, the number of information sending, the time of information sending, the number of information sending, the type of information sending, etc.
[0047] Step S104: When the number of transmissions does not reach the transmission frequency threshold, the interval length of the target number is determined according to the user log table.
[0048] In step S104 of some embodiments, when the number of transmissions does not reach the transmission frequency threshold, it means that the number of transmissions of the target number has not reached the maximum. The interval length of the target number can be directly determined according to the user log table, so as to facilitate the subsequent judgment whether there is a situation of repeated information transmission in a short period of time, and avoid the situation of frequent information transmission.
[0049] Step S105: When the interval duration is greater than or equal to the interval threshold, the message content is sent to the target number.
[0050] In step S105 of some embodiments, when the interval duration is greater than or equal to the interval threshold, indicating that the target number has not been sent information within the interval threshold, the message content can be directly sent to the target number to achieve the sending of the message content.
[0051] It is understandable that the embodiments of the present application enhance security by comparing the number of transmissions with the transmission frequency threshold and the interval duration with the interval threshold, and improve the security of the system by limiting and controlling the frequency of abnormal requests, and prevent malicious attacks and scanning behaviors. The embodiments of the present application can avoid harassment and spam, and setting a number limit can avoid some unnecessary harassment and spam, and improve the user experience.
[0052] It is worth noting that the information sending frequency control method of the embodiment of the present application can be applied to scenarios such as text message sending and conference information sending, and the embodiment of the present application does not make specific restrictions.
[0053] See also Figure 2 In some embodiments, step S102 may also include but is not limited to steps S201 to S203.
[0054] Step S201: determining a first configuration value and a second configuration value corresponding to a target information category according to preset system configuration information.
[0055] Step S202: determining a sending upper limit value corresponding to the target information category according to the first configuration value, and determining a message interval value corresponding to the target information category according to the second configuration value.
[0056] Step S203: determine the sending upper limit value as the sending frequency threshold, and determine the message interval value as the interval threshold.
[0057] In steps S201 to S203 of some embodiments, in the process of determining the sending frequency threshold and the sending interval threshold corresponding to the target information category according to the preset system configuration information, the embodiments of the present application first determine the first configuration value and the second configuration value corresponding to the target information category according to the preset system configuration information, wherein different configuration values correspond to different description states, and then determine the sending upper limit value corresponding to the target information category according to the first configuration value, that is, the maximum number of times that information can be sent under the target information category, and determine the message interval value corresponding to the target information category according to the second configuration value, that is, the duration of the interval between sending information under the target information category; finally, determine the sending upper limit value as the sending frequency threshold, and determine the message interval value as the interval threshold, thereby realizing the configuration of the sending frequency threshold and the interval threshold, improving the flexibility of business processing, and being able to configure different thresholds according to different target information categories.
[0058] It is worth noting that the sending frequency threshold in the embodiment of the present application is the maximum number of times that information can be sent to the target number within a preset time length, for example, a maximum of ten messages can be sent to the target number in one day, or a maximum of fifteen messages can be sent to the target number in two days, etc. The interval threshold is the interval between two adjacent information sending actions in the process of sending information to the target number. For example, the interval threshold is set to one minute, and the embodiment of the present application restricts the same target number from continuously sending information within one minute, or the interval threshold is set to five minutes, and the embodiment of the present application restricts the same target number from continuously sending information within five minutes. The embodiment of the present application does not make specific restrictions on the setting of the sending frequency threshold and the interval threshold.
[0059] See also Figure 3 , Figure 3 It is a specific flow chart of determining the interval length of the target number according to the user log table provided in the embodiment of the present application. In some embodiments, the method includes but is not limited to steps S301 to S304.
[0060] Step S301, determining the sending time according to the information sending instruction.
[0061] Step S302: Determine whether there is any historical sending information for the target number according to the user log table.
[0062] Step S303: When the target number has historical sending information, determine the historical sending time of the historical sending information, and determine the interval length of the target number according to the historical sending time and the sending time.
[0063] Step S304: When there is no historical sending information for the target number, the preset duration is determined as the interval time of the target number.
[0064] It should be noted that the preset duration is greater than the interval threshold.
[0065] In steps S301 to S304 of some embodiments, in the process of determining the interval duration of the target number according to the user log table, the embodiment of the present application first determines the sending time of the sending information according to the information sending instruction, and then determines whether the target number has a historical sending information according to the user log table, that is, determines whether the target number has been sent information before. When the target number has a historical sending information, it means that the target number has been sent information before this information sending operation. At this time, the historical sending time of the historical sending information is determined, and the interval duration of the target number is determined according to the historical sending time and the sending time, so that the time interval between the sending time of the current information and the closest historical sending time can be determined, which is convenient for subsequent judgment whether the situation of repeated sending of information occurs in a short time. When the target number does not have a historical sending information, it means that the target number has not been sent information before this information sending operation, and the preset duration can be directly determined as the interval time of the target number, and the preset duration is greater than the interval threshold, that is, there is no problem of repeated sending of information in a short time.
[0066] See also Figure 4 , Figure 4 It is a specific flow chart of determining the interval length of the target number according to the historical sending time and the sending time provided by the embodiment of the present application. In some embodiments, the method includes but is not limited to step S401 to step S402.
[0067] Step S401, when there are multiple historical sending times, compare the historical sending times and the sending time to filter out the target historical sending time closest to the sending time.
[0068] Step S402, determining the interval length of the target number according to the target historical sending time and the sending time.
[0069] In steps S401 to S402 of some embodiments, in the process of determining the interval duration of the target number based on the historical sending time and the sending time, there may be a situation where there are multiple historical sent information. At this time, the historical sending time is also multiple. When there are multiple historical sending times, the embodiment of the present application needs to compare all historical sending times with the sending time to filter out the target historical sending time closest to the sending time, that is, the target historical sending time closest to the current information sending, and then determine the interval duration of the target number based on the target historical sending time and the sending time. Specifically, the embodiment of the present application calculates the time difference between the target historical sending time and the sending time to obtain the interval duration, so as to determine the interval duration between two adjacent information sendings in the process of multiple information being sent to the target number, thereby avoiding the situation of repeated information sending in a short period of time.
[0070] It is worth noting that the embodiment of the present application takes three historical sending times as an example, and the sending time is Sunday morning 10 o'clock for explanation. Specifically, the historical sending times are Monday morning 10 o'clock, Wednesday morning 8 o'clock and Friday afternoon 5 o'clock. At this time, all historical sending times are compared with the sending time respectively. Since Friday afternoon 5 o'clock and Sunday morning 10 o'clock are closest, Friday afternoon 5 o'clock is determined as the target historical sending time closest to the sending time, and then the interval time of the target number is determined to be from Friday afternoon 5 o'clock to Sunday morning 10 o'clock, that is, forty-one hours, or one day and seventeen hours; or, the historical sending times are Sunday morning 9 o'clock, Sunday morning 8 o'clock and Sunday morning 9:30, at this time, Sunday morning 9:30 is determined as the target historical sending time closest to the sending time, and then the interval time of the target number is determined to be from Sunday morning 9:30 to Sunday morning 10 o'clock, that is, half an hour, or thirty minutes.
[0071] See also Figure 5 , Figure 5 It is a specific flow chart of the information transmission frequency control method provided by another embodiment of the present application. In some embodiments, the method includes but is not limited to step S501.
[0072] It should be noted that step S501 occurs after determining the number of times the target number sends within a preset time period according to the user log table.
[0073] Step S501: When the number of transmissions reaches the transmission frequency threshold, an interception prompt message is generated.
[0074] In step S501 of some embodiments, after determining the number of times the target number has sent messages within a preset time period based on the user log table, if the number of times reaches the sending frequency threshold, it means that the maximum number of times the target number has sent messages within the preset time period has been reached, that is, the number of message sending times has reached the upper limit. At this time, an interception prompt message will be generated to limit the sending of messages to the target number, thereby preventing users from feeling annoyed or disturbed by receiving too much messages, improving user satisfaction, and reducing unnecessary SMS sending, helping enterprises save communication costs.
[0075] See also Figure 6 , Figure 6 It is a specific flow chart of the information transmission frequency control method provided by another embodiment of the present application. In some embodiments, the method includes but is not limited to step S601.
[0076] It should be noted that step S601 occurs after the interval length of the target number is determined according to the user log table.
[0077] Step S601: When the interval duration is less than the interval threshold, a repeated sending message is generated.
[0078] In step S601 of some embodiments, after determining the interval duration of the target number according to the user log table, if the interval duration is less than the interval threshold, it means that the interval between two adjacent information sending actions is less than the maximum time interval for the target number to be sent information. At this time, a repeated sending message will be generated to prompt the user that the information is sent repeatedly, thereby avoiding repeatedly sending the same information to the target number in a short period of time.
[0079] It should be noted that, taking the example of an interval of thirty seconds and an interval threshold of ten minutes, the interval is less than the interval threshold, which means that the same target number is sent messages continuously within thirty seconds. At this time, a repeated message will be generated to inform the user that the message cannot be sent repeatedly within ten minutes.
[0080] See also Figure 7 , Figure 7 It is a specific flow chart of the information transmission frequency control method provided by another embodiment of the present application. In some embodiments, the method includes but is not limited to steps S701 to S703.
[0081] It should be noted that steps S701 to S703 occur before the message content is sent to the target number.
[0082] Step S701, pre-processing the message content to obtain a processed text.
[0083] Step S702: Perform sensitive information detection on the processed text to obtain a detection result.
[0084] Step S703: Determine that the detection result is that there is no sensitive information in the message content.
[0085] In steps S701 to S703 of some embodiments, before sending the message content to the target number, the embodiment of the present application will also detect whether the message content contains sensitive information, such as identity card number, home address, etc. Specifically, the embodiment of the present application first performs preprocessing operations on the message content, such as cleaning text data, standardizing text, etc., to facilitate subsequent detection of the processed text. The processed text is then tested for sensitive information to identify and mark potential sensitive information, and a test result is obtained. After determining that the test result is that the message content does not contain sensitive information, the message content is sent to the target number, thereby preventing the leakage of private information and improving the security of information transmission.
[0086] It is worth noting that the preprocessing operation of the message content in the embodiment of the present application includes removing noise, such as HTML tags, special characters, etc., and standardizing text, such as unifying date formats, converting uppercase and lowercase letters, etc. In addition, in the process of detecting sensitive information on the processed text in the embodiment of the present application, a dictionary containing possible sensitive information keywords and patterns is first established, such as name, phone number, email address, credit card number, etc. The dictionary is then learned through regular expressions or machine learning models, and finally, the processed text is scanned through regular expressions or machine learning models to achieve the marking of sensitive information.
[0087] See also Figure 8 The embodiment of the present application also provides an information sending frequency control device, the device comprising: The instruction response module 801 is used to respond to the information sending instruction and determine the target user information corresponding to the information sending instruction, wherein the target user information includes the message content, the target number and the target information category; A threshold determination module 802, configured to determine a sending frequency threshold and a sending interval threshold corresponding to a target information category according to preset system configuration information, wherein the system configuration information is used to characterize an editing state and a configuration state of the information; The log reading module 803 is used to read the user log table corresponding to the target user information, and determine the number of times the target number is sent within a preset time period according to the user log table; The interval determination module 804 is used to determine the interval length of the target number according to the user log table when the number of transmissions does not reach the transmission frequency threshold; The message sending module 805 is used to send the message content to the target number when the interval duration is greater than or equal to the interval threshold.
[0088] In some embodiments, the interval determination module 804 is further configured to generate an interception prompt message when the number of transmissions reaches a transmission frequency threshold. The message transmission module 805 is further configured to generate a repeated transmission message when the interval duration is less than the interval threshold.
[0089] In some embodiments, the information sending frequency control device also includes a sensitive information detection module, which is used to perform preprocessing operations on the message content to obtain a processed text; perform sensitive information detection on the processed text to obtain a detection result; and determine that the detection result is that there is no sensitive information in the message content.
[0090] The specific implementation of the information sending frequency control device is basically the same as the specific implementation of the above-mentioned information sending frequency control method, and will not be repeated here.
[0091] The embodiment of the present application also provides an electronic device, the electronic device comprising: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and the program is executed by the processor to realize the above-mentioned information transmission frequency control method. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0092] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes: The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application; The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the information transmission frequency control method of the embodiment of the present application; Input / output interface 903, used to implement information input and output; Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.); A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904); The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0093] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned information sending frequency control method is implemented.
[0094] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0095] The information sending frequency control method, device, electronic device and storage medium provided in the embodiments of the present application firstly determine the target user information corresponding to the information sending instruction in response to the information sending instruction, so that the message content, target number and target information category can be determined through the target user information, and then determine the sending frequency threshold and sending interval threshold corresponding to the target information category according to the preset system configuration information, so that the maximum number of times that information can be sent under the target information category can be obtained through the sending frequency threshold, and the duration of the interval between sending information under the target information category can be obtained through the sending interval threshold, and then read the user log table corresponding to the target user information, and determine the sending frequency threshold and the sending interval threshold according to the preset system configuration information. The number of times the target number is sent within the preset time length, so that the number of times the target number has been sent information within the preset time length can be obtained. When the number of times the number of times the number of times the number of times the target number has been sent information has not reached the upper limit value, at this time, the interval length of the target number is determined according to the user log table, that is, the interval length between the target number and the last time the information was sent. When the interval length is greater than or equal to the interval threshold, it means that the time interval between the target number and the last time the information was sent is long, and the target number can continue to be sent information, that is, the message content is sent to the target number, so that the frequency of sending information can be controlled, and frequent information sending can be avoided, the flexibility of business processing is improved, and the user experience is improved. The embodiment of the present application first determines the sending frequency threshold and the sending interval threshold corresponding to the target information category, and the information sending frequency can be adjusted according to actual needs. Then, the number of times the target number is sent is compared with the sending frequency table threshold, and frequent information sending can be avoided. By comparing the interval length and the interval threshold of the information sent to the target number, repeated information sending in a short time can be avoided, further improving system stability, improving business processing flexibility, and further improving user satisfaction.
[0096] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0097] It can be understood by those skilled in the art that Figure 1-7 The technical solutions shown in the figure do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figure, or a combination of certain steps, or different steps.
[0098] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0099] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0100] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0101] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0102] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0103] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0106] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.
Claims
1. A method for controlling information transmission frequency, characterized in that: The method comprises: In response to the information sending instruction, determining the target user information corresponding to the information sending instruction, wherein the target user information includes message content, target number and target information category; Determining a sending frequency threshold and a sending interval threshold corresponding to the target information category according to preset system configuration information, wherein the system configuration information is used to represent an editing state and a configuration state of the information; Reading a user log table corresponding to the target user information, and determining the number of times the target number is sent within a preset time period according to the user log table; When the number of transmissions does not reach the transmission frequency threshold, determining the interval length of the target number according to the user log table; When the interval duration is greater than or equal to the interval threshold, the message content is sent to the target number.
2. The information transmission frequency control method according to claim 1, characterized in that: The determining, according to preset system configuration information, a sending frequency threshold and a sending interval threshold corresponding to the target information category includes: Determine a first configuration value and a second configuration value corresponding to the target information category according to preset system configuration information; Determine a sending upper limit value corresponding to the target information category according to the first configuration value, and determine a message interval value corresponding to the target information category according to the second configuration value; The sending upper limit value is determined as a sending frequency threshold, and the message interval value is determined as an interval threshold.
3. The information transmission frequency control method according to claim 1, characterized in that: The determining the interval duration of the target number according to the user log table includes: Determine the sending time according to the information sending instruction; Determine whether the target number has historical sending information according to the user log table; When the target number has historical sending information, determine the historical sending time of the historical sending information, and determine the interval length of the target number according to the historical sending time and the sending time; When there is no historical sending information for the target number, a preset time length is determined as the interval time of the target number, wherein the preset time length is greater than the interval threshold.
4. The information transmission frequency control method according to claim 3, characterized in that: The determining the interval duration of the target number according to the historical sending time and the sending time includes: When there are multiple historical sending times, compare the historical sending times with the sending time to filter out the target historical sending time closest to the sending time; The interval duration of the target number is determined according to the target historical sending time and the sending time.
5. The information transmission frequency control method according to claim 1, characterized in that: After determining the number of times the target number is sent within the preset time period according to the user log table, the method further includes: When the number of transmissions reaches the transmission frequency threshold, an interception prompt message is generated.
6. The information transmission frequency control method according to claim 1, characterized in that: After determining the interval duration of the target number according to the user log table, the method further includes: When the interval duration is less than the interval threshold, repeated sending information is generated.
7. The information transmission frequency control method according to claim 1, characterized in that: Before sending the message content to the target number, the method further includes: Performing a preprocessing operation on the message content to obtain a processed text; Performing sensitive information detection on the processed text to obtain a detection result; It is determined that the detection result is that there is no sensitive information in the message content.
8. An information transmission frequency control device, characterized in that: The device comprises: An instruction response module, configured to respond to an information sending instruction and determine target user information corresponding to the information sending instruction, wherein the target user information includes message content, target number, and target information category; A threshold determination module, used to determine a sending frequency threshold and a sending interval threshold corresponding to the target information category according to preset system configuration information, wherein the system configuration information is used to characterize the editing state and configuration state of the information; A log reading module, used to read a user log table corresponding to the target user information, and determine the number of times the target number is sent within a preset time period according to the user log table; An interval determination module, configured to determine the interval duration of the target number according to the user log table when the number of transmissions does not reach the transmission frequency threshold; The message sending module is used to send the message content to the target number when the interval duration is greater than or equal to the interval threshold.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the information sending frequency control method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the information transmission frequency control method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Message command frequency control method and related equipment
CN121217816A
