+

CN115687275A - A method, system and storage medium for group sending of short messages - Google Patents

A method, system and storage medium for group sending of short messages Download PDF

Info

Publication number
CN115687275A
CN115687275A CN202211320310.2A CN202211320310A CN115687275A CN 115687275 A CN115687275 A CN 115687275A CN 202211320310 A CN202211320310 A CN 202211320310A CN 115687275 A CN115687275 A CN 115687275A
Authority
CN
China
Prior art keywords
short message
file
sent
message group
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211320310.2A
Other languages
Chinese (zh)
Inventor
罗立锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Funo Mobile Communication Technology Co Ltd
Original Assignee
Fujian Funo Mobile Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Funo Mobile Communication Technology Co Ltd filed Critical Fujian Funo Mobile Communication Technology Co Ltd
Priority to CN202211320310.2A priority Critical patent/CN115687275A/en
Publication of CN115687275A publication Critical patent/CN115687275A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method, a system and a storage medium for short message group sending, wherein the method receives a short message group sending request of a user, establishes a directory according to the short message group sending request, simultaneously acquires number data of the short message group sending request, generates a number file to be group sent in a csv format and a blacklist number file according to the number data, stores the number file to be group sent in the directory, and performs the short message group sending according to the directory. Therefore, the invention stores the number data of the short message group sending request in the csv format file, so that the number data can be stored on a common disk, the data storage cost is low, a directory is established to store the number file to be group sent and the blacklist number file, the short message group sending is executed according to the directory, the number data of the short message group sending request is managed in the directory mode, the data management and data maintenance cost is reduced, and the total cost of the short message group sending is reduced.

Description

一种短信群发的方法、系统及存储介质A method, system and storage medium for group sending of short messages

技术领域technical field

本发明涉及移动通信技术领域,尤其涉及一种短信群发的方法、系统及存储介质。The invention relates to the technical field of mobile communication, in particular to a method, system and storage medium for group sending of short messages.

背景技术Background technique

短信群发既要考虑单次群发号码数据量大的问题又要考虑群发时筛除黑名单号码的问题,现有技术中,主要通过两种方式进行处理,一是通过采用关系数据库的方式,利用关系数据库的检索能力对黑名单号码进行剔除,再利用归档机制对群发号码数据进行存储管理,但该方式对于数据的管理和数据的维护成本较高,且要定期对数据进行归档,数据的存储成本高,二是通过采用nosql非关系数据库的方式,通过nosql检索机制对黑名单号码进行剔除,通过nosql的存储机制对号码数据进行存储,该方式虽然降低了数据的存储成本,但需要引入复杂式系统实现,数据管理成本和数据维护成本高。Mass sending of short messages not only needs to consider the problem of large data volume of single mass sending numbers, but also considers the problem of screening out blacklist numbers during mass sending. In the prior art, it is mainly processed in two ways. One is by using a relational database. The retrieval capability of the relational database removes the numbers from the blacklist, and then uses the archiving mechanism to store and manage the data of mass-sending numbers. However, this method requires high costs for data management and data maintenance, and the data needs to be archived on a regular basis. The cost is high. The second is to use the nosql non-relational database method to remove the blacklist numbers through the nosql retrieval mechanism, and store the number data through the nosql storage mechanism. Although this method reduces the data storage cost, it needs to introduce complex System implementation, data management costs and data maintenance costs are high.

发明内容Contents of the invention

本发明所要解决的技术问题是:本发明提供一种短信群发的方法、系统及存储介质,以降低短信群发的成本。The technical problem to be solved by the present invention is: the present invention provides a method, system and storage medium for sending short messages in groups, so as to reduce the cost of sending short messages in groups.

为了解决上述技术问题,本发明采用的技术方案为:In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is:

第一方面,本发明提供一种短信群发的方法,包括:In a first aspect, the present invention provides a method for sending short messages in groups, including:

接收用户的短信群发请求,并根据所述短信群发请求建立目录;Receive the user's request for mass sending of short messages, and establish a directory according to the request for mass sending of short messages;

获取所述短信群发请求的号码数据,并根据所述号码数据生成csv格式的待群发号码文件和黑名单号码文件存储至所述目录;Obtain the number data of the group sending request of the short message, and generate the number file to be sent in csv format and the blacklist number file according to the number data and store them in the directory;

根据所述目录,执行短信群发。According to the directory, send short messages in groups.

本发明的有益效果在于,通过将短信群发请求的号码数据以csv格式的文件存储,使得号码数据可以存储在普通磁盘上,数据存储成本低,并建立目录存储待群发号码文件和黑名单号码文件,根据目录执行短信群发,以目录形式对短信群发请求的号码数据进行管理,降低了数据管理和数据维护的成本,从而降低了短信群发的总成本。The beneficial effect of the present invention is that, by storing the number data requested by group sending of short messages in a csv format file, the number data can be stored on an ordinary disk, the data storage cost is low, and a directory is established to store number files to be sent in groups and blacklist number files According to the directory, the group sending of short messages is performed, and the number data requested by the group sending of short messages is managed in the form of a directory, which reduces the cost of data management and data maintenance, thereby reducing the total cost of sending short messages.

可选地,所述根据所述短信群发请求建立目录包括:Optionally, said establishing a directory according to said SMS group sending request includes:

根据所述短信群发请求建立短信群发任务,并生成多位随机数结合所述短信群发任务的建立时间建立目录。Create a group message sending task according to the group message sending request, and generate a plurality of random numbers in combination with the establishment time of the group message sending task to create a directory.

根据上述描述可知,目录的建立规则是依据短信群发请求建立短信群发任务的时间,按短信群发任务时间结合随机数建立目录,使得短信群发任务能按照目录时间有序执行。According to the above description, it can be seen that the creation rule of the directory is based on the time when the mass message sending task is established according to the mass message sending request, and the directory is established according to the mass message sending task time combined with random numbers, so that the mass message sending task can be executed in an orderly manner according to the directory time.

可选地,所述根据所述目录,执行短信群发包括:Optionally, according to the catalog, performing group sending of short messages includes:

根据所述目录,调用linux主机系统管道命令sort从所述待群发号码文件中过滤所述黑名单号码文件,生成待群发目标文件;According to the catalog, call the linux host system pipeline command sort to filter the blacklist number file from the number file to be sent to the group, and generate the target file to be sent to the group;

根据所述待群发目标文件,执行短信群发。Perform group sending of short messages according to the target file to be sent in groups.

根据上述描述可知,通过linux主机系统管道命令sort能快速准确的实现黑名单过滤,且根据过滤后生成的待群发目标文件,执行短信群发,提高短信群发的效率。According to the above description, the blacklist filtering can be quickly and accurately realized through the pipeline command sort of the linux host system, and according to the target file to be sent after filtering, the group sending of SMS is executed to improve the efficiency of group sending of SMS.

可选地,所述执行短信群发包括:Optionally, the execution of group sending of short messages includes:

实时监听短信群发过程,获取所述短信群发过程中发送成功的号码数据和发送失败的号码数据,并根据所述发送成功的号码数据生成已成功发送文件,根据所述发送失败的号码数据生成未发送成功文件;Monitor the short message group sending process in real time, obtain the number data sent successfully and the failed number data in the short message group sending process, and generate a successfully sent file according to the successfully sent number data, and generate an unsent file according to the failed sent number data. File sent successfully;

当接收到用户中止短信群发的请求时,中止短信群发;When receiving the user's request to suspend group sending of short messages, stop sending short messages;

当接收到用户重启短信群发的请求时,重启短信群发。When receiving the user's request to restart the group sending of short messages, restart the sending of short messages.

根据上述描述可知,能实时监听短信群发的过程,并将群发过程中成功发送和发送失败的号码数据分别进行存储,便于用户后续查看短信群发结果,获知发送成功的号码数据和发送失败的号码数据;并在短信群发过程中,能根据用户需要随时中止短信群发,以实现当用户进行错误短信群发时,能及时停止,降低错误影响,且在中止后支持重启短信群发,满足用户多样化的需求,优化用户体验。According to the above description, it can be seen that the process of mass SMS sending can be monitored in real time, and the data of numbers successfully sent and failed to be sent in the process of group sending can be stored separately, so that users can check the results of group SMS sending later, and know the number data of successfully sent and failed number data ; and in the process of mass message sending, it can stop the mass message sending at any time according to the user's needs, so that when the user sends a wrong mass message, it can be stopped in time to reduce the impact of the error, and after the suspension, it supports restarting the mass message sending to meet the diverse needs of users , optimize user experience.

可选地,所述当接收到用户重启短信群发的请求时,重启短信群发包括:Optionally, when receiving a request from the user to restart group sending of short messages, restarting group sending of short messages includes:

调用linux主机系统管道命令sort从所述待群发号码文件中过滤所述黑名单号码文件和所述已成功发送文件,生成待群发目标文件并清空所述未发送成功文件,根据所述待群发目标文件,重启短信群发。Call the linux host system pipeline command sort to filter the blacklist number file and the successfully sent file from the number file to be sent to the group, generate the target file to be sent to the group and clear the failed file to be sent, according to the target to be sent to the group File, restart SMS group sending.

根据上述描述可知,当重启短信群发请求时,会重新调用linux主机系统管道命令sort重新快速提取待群发目标文件,且会重新发送未发送成功的号码数据,即是从待群发号码文件中过滤黑名单号码文件和已成功发送文件重新生成待群发目标文件,清空了之前存储的未成功文件,重新执行短信群发,在满足用户多样化需求的同时,提高短信群发的成功率。According to the above description, when restarting the mass SMS request, the pipeline command sort of the linux host system will be called again to quickly extract the target file to be mass-sent, and the number data that has not been sent successfully will be resent, that is, the hacker will be filtered from the number file to be mass-sent The list number file and the successfully sent file regenerate the target file to be sent to the group, clear the previously stored unsuccessful files, and re-execute the group sending of SMS, while meeting the diverse needs of users, and improving the success rate of group sending of SMS.

第二方面,本发明提供一种短信群发的系统,包括:In a second aspect, the present invention provides a system for sending short messages in groups, including:

目录模块,用于接收用户的短信群发请求,并根据所述短信群发请求建立目录;A directory module, configured to receive a user's mass message sending request, and establish a directory according to the mass message mass sending request;

获取模块,用于获取所述短信群发请求的号码数据,并根据所述号码数据生成csv格式的待群发号码文件和黑名单号码文件存储至所述目录;The obtaining module is used to obtain the number data of the group sending request of the short message, and generate a csv format number file and a blacklist number file to be sent to the directory according to the number data;

发送模块,用于根据所述目录,执行短信群发。The sending module is configured to send short messages in groups according to the catalog.

可选地,所述目录模块具体用于根据所述短信群发请求建立短信群发任务,并生成多位随机数结合所述短信群发任务的建立时间建立目录。Optionally, the directory module is specifically configured to create a group message sending task according to the group message sending request, and generate a plurality of random numbers in combination with the establishment time of the group message sending task to create a directory.

可选地,所述发送模块具体用于根据所述目录,调用linux主机系统管道命令sort从所述待群发号码文件中过滤所述黑名单号码文件,生成待群发目标文件,根据所述待群发目标文件,执行短信群发。Optionally, the sending module is specifically configured to call the linux host system pipeline command sort to filter the blacklist number file from the number file to be sent to the group according to the directory, generate the target file to be sent to the group, and according to the file to be sent to the group The target file executes group sending of SMS.

可选地,所述发送模块具体用于实时监听短信群发过程,获取所述短信群发过程中发送成功的号码数据和发送失败的号码数据,并根据所述发送成功的号码数据生成已成功发送文件,根据所述发送失败的号码数据生成未发送成功文件,当接收到用户中止短信群发的请求时,中止短信群发,当接收到用户重启短信群发的请求时,调用linux主机系统管道命令sort从所述待群发号码文件中过滤所述黑名单号码文件和所述已成功发送文件,生成待群发目标文件并清空所述未发送成功文件,根据所述待群发目标文件,重启短信群发。Optionally, the sending module is specifically used to monitor the process of sending short messages in real time, obtain the data of the numbers successfully sent and the data of numbers that failed to send in the process of sending the short messages, and generate a successfully sent file according to the number data of the successful sending , according to the number data that failed to send, generate the unsuccessful file, when receiving the request of the user to stop the group sending of short messages, stop the sending of short messages, and when receiving the request of restarting the sending of short messages from the user, call the linux host system pipeline command sort from the Filter the blacklist number file and the successfully sent file in the number file to be sent to the group, generate the target file to be sent to the group and clear the failed file to be sent, and restart the group sending of short messages according to the target file to be sent to the group.

第三方面,提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被执行时,实现第一方面所述的一种充值方法。In a third aspect, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium. When the computer program is executed, the recharging method described in the first aspect is implemented.

其中,第二方面所提供的一种短信群发的系统以及第三方面所提供的一种计算机可读存储介质,所对应的技术效果参照第一方面所提供的一种充值方法。Wherein, the technical effects corresponding to the system for sending group short messages provided in the second aspect and the computer-readable storage medium provided in the third aspect refer to the recharge method provided in the first aspect.

附图说明Description of drawings

图1为本发明实施例所提供的一种短信群发的方法的流程示意图;FIG. 1 is a schematic flow diagram of a method for sending short messages in groups according to an embodiment of the present invention;

图2为本发明实施例所提供的一种短信群发的系统的结构示意图。FIG. 2 is a schematic structural diagram of a system for sending short messages in groups according to an embodiment of the present invention.

【附图标记说明】[Description of Reference Signs]

1、一种短信群发的系统;1. A system for mass sending of short messages;

2、目录模块;2. Directory module;

3、获取模块;3. Obtain the module;

4、发送模块。4. Sending module.

具体实施方式Detailed ways

为了更好的理解上述技术方案,下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更清楚、透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。In order to better understand the above technical solutions, the following will describe exemplary embodiments of the present invention in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present invention can be more clearly and thoroughly understood, and the scope of the present invention can be fully conveyed to those skilled in the art.

实施例一Embodiment one

请参照图1,本发明提供一种充值方法,包括步骤:Please refer to Figure 1, the present invention provides a recharge method, including steps:

S1、接收用户的短信群发请求,并根据所述短信群发请求建立目录;S1. Receive the user's request for mass sending of short messages, and establish a directory according to the request for mass sending of short messages;

在本实施例中,以手机设备为例,用户在手机设备短信界面进行短信群发操作时,会根据用户的短信群发请求建立对应目录,此时,步骤S1中根据所述短信群发请求建立目录包括:In this embodiment, taking a mobile phone device as an example, when the user performs a group SMS operation on the SMS interface of the mobile phone device, a corresponding directory will be established according to the user's group SMS request. At this time, in step S1, according to the group SMS request. :

S11、根据所述短信群发请求建立短信群发任务,并生成多位随机数结合所述短信群发任务的建立时间建立目录。S11. Establish a group message sending task according to the group message sending request, and generate a multi-digit random number and create a directory in combination with the establishment time of the group message sending task.

在本实施例中,接收到短信群发请求时会根据短信群发请求建立对应的短信群发任务,并根据短信群发任务的建立时间结合多位随机数建立目录,对应目录建立程序代码为:YYYYMMDDHHmmssXXX...,即目录以短信群发任务的时间顺序建立,使得执行短信群发时能根据时间顺序执行,保证短信群发的有序性。In this embodiment, when receiving a mass message request, a corresponding mass message task will be established according to the mass message request, and a directory will be established according to the establishment time of the mass message task in combination with multiple random numbers. The corresponding directory establishment program code is: YYYYMMDDHHmmssXXX.. ., that is, the directory is established according to the chronological order of the mass message sending tasks, so that the mass message sending can be executed according to the chronological order, ensuring the orderliness of the mass message sending.

在一个具体实施例中,随机数选取为3位数,则对应目录建立的规则代码为:YYYYMMDDHHmmssXXX,当短信群发任务的建立时间为北京时间2022年10月24日十时零五分零五秒,则建立目录20221024100505085。In a specific embodiment, if the random number is selected as 3 digits, then the rule code corresponding to the establishment of the directory is: YYYYMMDDHHmmssXXX, when the establishment time of the task of sending short messages is 10:05:05 on October 24, 2022, Beijing time , the directory 20221024100505085 is created.

在其他等同实施例中,设备还可以为平板、显示器等可操作设备。In other equivalent embodiments, the device may also be an operable device such as a tablet or a display.

S2、获取所述短信群发请求的号码数据,并根据所述号码数据生成csv格式的待群发号码文件和黑名单号码文件存储至所述目录;S2. Obtain the number data of the SMS group sending request, and generate a csv format file of numbers to be sent in groups and a blacklist number file according to the number data and store them in the directory;

在本实施例中,接收到用户短信群发请求时,会获取用户短信群发请求的号码数据,包括待群发号码数据和黑名单号码数据,并建立csv格式的待群发号码文件和黑名单号码文件,将号码数据对应存储到文件中,并将文件存储到目录,形成目录结构,实现按照目录对号码数据进行管理,降低数据管理维护成本。In the present embodiment, when receiving the user short message group sending request, the number data of the user short message group sending request can be obtained, including the number data to be sent in groups and the blacklist number data, and the number file to be sent in csv format and the blacklist number file to be set up, Correspondingly store number data into files, and store files into directories to form a directory structure, realize management of number data according to directories, and reduce data management and maintenance costs.

S3、根据所述目录,执行短信群发。S3. Execute group sending of short messages according to the directory.

在本实施例中,步骤S3包括:In this embodiment, step S3 includes:

S31、根据所述目录,调用linux主机系统管道命令sort从所述待群发号码文件中过滤所述黑名单号码文件,生成待群发目标文件;S31. According to the directory, call the linux host system pipeline command sort to filter the blacklist number file from the number file to be sent to the group, and generate the target file to be sent to the group;

S32、根据所述待群发目标文件,执行短信群发。S32. Perform group sending of short messages according to the target file to be sent in groups.

在本实施例中,是根据目录进行短信群发,即实现按照目录对号码数据进行管理,降低数据管理成本,且通过调用linux主机系统管道命令sort快速准确的实现黑名单的过滤,实现从待群发号码文件中过滤黑名单号码文件,进而以过滤后的文件为短信群发的目标文件,进行短信群发,保证短信群发的高效性,优化用户体验。In this embodiment, the group sending of short messages is carried out according to the directory, that is, the number data is managed according to the directory, the cost of data management is reduced, and the filtering of the blacklist can be realized quickly and accurately by calling the pipeline command sort of the linux host system, so as to realize the group sending from the waiting list The blacklist number file is filtered in the number file, and then the filtered file is used as the target file of the SMS group to send the SMS to ensure the efficiency of the SMS group and optimize the user experience.

其中,步骤S32中执行短信群发包括:Wherein, in the step S32, performing group sending of short messages includes:

S321、实时监听短信群发过程,获取所述短信群发过程中发送成功的号码数据和发送失败的号码数据,并根据所述发送成功的号码数据生成已成功发送文件,根据所述发送失败的号码数据生成未发送成功文件;S321. Monitor the process of group sending of short messages in real time, acquire the number data of numbers successfully sent and the data of numbers that failed to send in the process of group sending of short messages, and generate a successfully sent file according to the number data of successful sending, and generate a successfully sent file according to the number data of failed sending Generate a file that has not been sent successfully;

在本实施例中,能实时监听短信群发的过程,并将群发过程中成功发送和发送失败的号码数据分别进行存储,便于用户后续查看短信群发结果,获知已发送成功的号码数据和发送失败的号码数据。In this embodiment, the process of group sending of short messages can be monitored in real time, and the data of numbers successfully sent and failed to be sent during the group sending process are stored separately, so that users can check the results of group sending of short messages later, and know the number data of successfully sent and failed numbers. number data.

S322、当接收到用户中止短信群发的请求时,中止短信群发;S322. When receiving a request from the user to stop sending group short messages, stop sending group short messages;

S323、当接收到用户重启短信群发的请求时,重启短信群发。S323. Restart the group sending of short messages when receiving the user's request to restart the group sending of short messages.

在本实施例中,在短信群发的过程中,能根据用户需要随时中止短信群发,为用户提供便利,以实现当用户进行错误短信群发时,能及时停止,降低错误影响,同时,在中止短信群发后,支持用户再次重启已中止的短信群发,满足用户多样化需求,优化用户体验。In this embodiment, in the process of group sending of short messages, the group sending of short messages can be stopped at any time according to the needs of the user, so as to provide convenience for the user, so that when the user sends a group of wrong short messages, it can be stopped in time to reduce the impact of the error. After mass sending, users are supported to restart the suspended mass SMS sending again to meet the diverse needs of users and optimize user experience.

其中,在步骤S323中当接收到用户重启短信群发的请求时,重启短信群发包括:Wherein, in step S323, when receiving the user's request to restart group sending of short messages, restarting group sending of short messages includes:

S3231、调用linux主机系统管道命令sort从所述待群发号码文件中过滤所述黑名单号码文件和所述已成功发送文件,生成待群发目标文件并清空所述未发送成功文件,根据所述待群发目标文件,重启短信群发。S3231. Call the pipeline command sort of the linux host system to filter the blacklist number file and the successfully sent file from the number file to be sent to the group, generate the target file to be sent to the group, and clear the unsent file, according to the number file to be sent Mass send the target file, and restart SMS mass sending.

在本实施例中,当重启短信群发请求时,会重新调用调用linux主机系统管道命令sort重新快速提取待群发目标文件,且会重新发送未发送成功的号码数据,即是从待群发号码文件中过滤黑名单号码文件和已成功发送文件重新生成待群发目标文件,清空了之前存储的未成功文件,重新执行短信群发,在满足用户多样化需求的同时,提高短信群发的成功率。In this embodiment, when restarting the SMS group sending request, the pipeline command sort of the linux host system will be called again to quickly extract the target file to be sent to the group again, and the number data that has not been sent successfully will be resent, that is, from the number file to be sent to the group Filter the blacklist number file and the successfully sent file to regenerate the target file to be sent to the group, clear the previously stored unsuccessful files, and re-execute the group SMS to meet the diverse needs of users while improving the success rate of group SMS.

实施例二Embodiment two

请参照图2,本发明提供一种短信群发的系统1,具体包括:目录模块2、获取模块3、发送模块4。Please refer to FIG. 2 , the present invention provides a system 1 for group sending of short messages, which specifically includes: a directory module 2 , an acquisition module 3 , and a sending module 4 .

其中,目录模块2,用于接收用户的短信群发请求,并根据所述短信群发请求建立目录;Wherein, directory module 2 is used for receiving the short message group sending request of the user, and establishes a directory according to the short message group sending request;

具体的,目录模块2用于根据所述短信群发请求建立短信群发任务,并生成多位随机数结合所述短信群发任务的建立时间建立目录。Specifically, the directory module 2 is used to establish a group message sending task according to the group message sending request, and generate a plurality of random numbers in combination with the establishment time of the group message sending task to create a directory.

获取模块3,用于获取所述短信群发请求的号码数据,并根据所述号码数据生成csv格式的待群发号码文件和黑名单号码文件存储至所述目录。The obtaining module 3 is used to obtain the number data of the group sending request of the short message, and generate a file of numbers to be sent in csv format and a blacklist number file in csv format according to the number data and store them in the directory.

发送模块4,用于根据所述目录,执行短信群发;Sending module 4, is used for carrying out group sending of short messages according to described directory;

具体的,发送模块4用于根据所述目录,调用linux主机系统管道命令sort从所述待群发号码文件中过滤所述黑名单号码文件,生成待群发目标文件,根据所述待群发目标文件,执行短信群发。Concretely, the sending module 4 is used for calling the linux host system pipeline command sort to filter the blacklist number file from the number file to be sent to the group according to the directory, to generate the target file to be sent to the group, and according to the target file to be sent to the group, Execute bulk SMS sending.

具体的,发送模块4用于实时监听短信群发过程,获取所述短信群发过程中发送成功的号码数据和发送失败的号码数据,并根据所述发送成功的号码数据生成已成功发送文件,根据所述发送失败的号码数据生成未发送成功文件,当接收到用户中止短信群发的请求时,中止短信群发,当接收到用户重启短信群发的请求时,调用linux主机系统管道命令sort从所述待群发号码文件中过滤所述黑名单号码文件和所述已成功发送文件,生成待群发目标文件并清空所述未发送成功文件,根据所述待群发目标文件,重启短信群发。Concretely, the sending module 4 is used for real-time monitoring of the short message group sending process, obtains the number data sent successfully and the number data failed to send in the described short message group sending process, and generates a successfully sent file according to the number data sent successfully, according to the The number data that failed to be sent will generate a file that has not been sent successfully. When receiving the user’s request to stop the group sending of short messages, stop sending the short message. Filter the blacklist number file and the successfully sent file in the number file, generate the target file to be sent in groups and clear the failed files, and restart the group sending of SMS according to the target file to be sent in groups.

实施例三Embodiment three

本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被执行时,实现上述实施例一中的步骤。The present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed, the steps in the first embodiment above are realized.

由于本发明上述实施例所描述的系统/装置,为实施本发明上述实施例的方法所采用的系统/装置,故而基于本发明上述实施例所描述的方法,本领域所属技术人员能够了解该系统/装置的具体结构及变形,因而在此不再赘述。凡是本发明上述实施例的方法所采用的系统/装置都属于本发明所欲保护的范围。Since the system/device described in the above-mentioned embodiments of the present invention is the system/device used to implement the method of the above-mentioned embodiment of the present invention, based on the method described in the above-mentioned embodiments of the present invention, those skilled in the art can understand the system /The specific structure and deformation of the device are not repeated here. All systems/devices used in the methods of the above-mentioned embodiments of the present invention belong to the intended protection scope of the present invention.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例,或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions.

应当注意的是,在权利要求中,不应将位于括号之间的任何附图标记理解成对权利要求的限制。词语“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的词语“一”或“一个”不排除存在多个这样的部件。本发明可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的权利要求中,这些装置中的若干个可以是通过同一个硬件来具体体现。词语第一、第二、第三等的使用,仅是为了表述方便,而不表示任何顺序。可将这些词语理解为部件名称的一部分。It should be noted that, in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a claim enumerating several means, several of these means can be embodied by one and the same piece of hardware. The use of the words first, second, third, etc. is for convenience of presentation only and does not indicate any order. These words are to be understood as part of the name of the part.

此外,需要说明的是,在本说明书的描述中,术语“一个实施例”、“一些实施例”、“实施例”、“示例”、“具体示例”或“一些示例”等的描述,是指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In addition, it should be noted that in the description of this specification, descriptions of terms such as "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" are It means that a specific feature, structure, material or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.

尽管已描述了本发明的优选实施例,但本领域的技术人员在得知了基本创造性概念后,则可对这些实施例作出另外的变更和修改。所以,权利要求应该解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is understood. Therefore, the claims should be construed to include the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

显然,本领域的技术人员可以对本发明进行各种修改和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也应该包含这些修改和变型在内。Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention should also include these modifications and variations.

Claims (10)

1. A method for mass texting is characterized in that the method comprises the following steps:
receiving a short message group sending request of a user, and establishing a directory according to the short message group sending request;
acquiring number data of the short message group sending request, generating a number file to be group sent in a csv format and a blacklist number file according to the number data, and storing the number file and the blacklist number file to the directory;
and executing short message group sending according to the directory.
2. The method of claim 1, wherein the establishing a directory according to the short message group sending request comprises:
and establishing a short message group sending task according to the short message group sending request, and generating a multi-digit random number to establish a catalog in combination with the establishment time of the short message group sending task.
3. The method as claimed in claim 1, wherein the performing mass texting according to the directory comprises:
calling a linux host system pipeline command sort to filter the blacklist number file from the number file to be mass-sent according to the directory to generate a target file to be mass-sent;
and executing short message group sending according to the target file to be group sent.
4. The method of claim 1, wherein the method comprises: the executing the short message group sending comprises:
monitoring a short message group sending process in real time, acquiring number data which is successfully sent and number data which is failed to send in the short message group sending process, generating a successfully sent file according to the number data which is successfully sent, and generating an unsent successfully sent file according to the number data which is failed to send;
when a request of stopping short message group sending of a user is received, stopping the short message group sending;
and when a request for restarting the short message group sending of the user is received, restarting the short message group sending.
5. The method of claim 4, wherein when receiving a request for a user to restart mass texting, the restarting of mass texting comprises:
calling a linux host system pipeline command sort t to filter the blacklist number file and the successfully sent file from the number file to be mass-sent, generating a target file to be mass-sent, clearing the file which is not successfully sent, and restarting mass sending of the short message according to the target file to be mass-sent.
6. A system for mass texting, comprising:
the catalog module is used for receiving a short message group sending request of a user and establishing a catalog according to the short message group sending request;
the acquisition module is used for acquiring number data of the short message group sending request, generating a number file to be group sent in a csv format and a blacklist number file according to the number data and storing the number file to the directory;
and the sending module is used for executing short message group sending according to the directory.
7. The system of claim 6, wherein the directory module is specifically configured to establish a short message group sending task according to the short message group sending request, and generate a multi-bit random number to establish a directory in combination with the establishment time of the short message group sending task.
8. The system of claim 6, wherein the sending module is specifically configured to invoke a linux host system pipeline command sort to filter the blacklist number file from the number file to be mass-sent according to the directory, generate a target file to be mass-sent, and execute mass-sending of short messages according to the target file to be mass-sent.
9. The system of claim 6, wherein the sending module is specifically configured to monitor a short message group sending process in real time, obtain number data that is successfully sent and number data that is unsuccessfully sent in the short message group sending process, generate a successfully sent file according to the number data that is successfully sent, generate an unsuccessfully sent file according to the number data that is unsuccessfully sent, stop the short message group sending when a request for stopping the short message group sending is received by a user, call a linux host system pipeline command sort to filter the blacklist number file and the successfully sent file from the number file to be group sent when a request for restarting the short message group sending is received by the user, generate a target file to be group sent and empty the unsuccessfully sent file, and restart the short message group sending according to the target file to be group sent.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when executed, carries out the method of any one of claims 1 to 5.
CN202211320310.2A 2022-10-26 2022-10-26 A method, system and storage medium for group sending of short messages Pending CN115687275A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211320310.2A CN115687275A (en) 2022-10-26 2022-10-26 A method, system and storage medium for group sending of short messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211320310.2A CN115687275A (en) 2022-10-26 2022-10-26 A method, system and storage medium for group sending of short messages

Publications (1)

Publication Number Publication Date
CN115687275A true CN115687275A (en) 2023-02-03

Family

ID=85100141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211320310.2A Pending CN115687275A (en) 2022-10-26 2022-10-26 A method, system and storage medium for group sending of short messages

Country Status (1)

Country Link
CN (1) CN115687275A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110987A (en) * 2007-07-19 2008-01-23 中兴通讯股份有限公司 System and method for implementing short message group sending
CN101340637A (en) * 2008-08-14 2009-01-07 中兴通讯股份有限公司 Method and mobile terminal for SM group sending
CN101686438A (en) * 2008-09-27 2010-03-31 中国移动通信集团上海有限公司 Short message group sending method and equipment
CN102611998A (en) * 2012-02-24 2012-07-25 太原理工大学 Method for realizing mass texting through transfer of mass texting platform client
CN111212388A (en) * 2019-12-20 2020-05-29 北京淇瑀信息科技有限公司 Method, system and electronic equipment for batch short message sending management

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110987A (en) * 2007-07-19 2008-01-23 中兴通讯股份有限公司 System and method for implementing short message group sending
CN101340637A (en) * 2008-08-14 2009-01-07 中兴通讯股份有限公司 Method and mobile terminal for SM group sending
CN101686438A (en) * 2008-09-27 2010-03-31 中国移动通信集团上海有限公司 Short message group sending method and equipment
CN102611998A (en) * 2012-02-24 2012-07-25 太原理工大学 Method for realizing mass texting through transfer of mass texting platform client
CN111212388A (en) * 2019-12-20 2020-05-29 北京淇瑀信息科技有限公司 Method, system and electronic equipment for batch short message sending management

Similar Documents

Publication Publication Date Title
KR102072726B1 (en) Systems and methods for supporting inline delegation of middle-tier transaction logs to database
CN103107905B (en) Exception handling method, device and client
JP2020518926A (en) Backup and restore framework for distributed computing systems
CN111382985A (en) To-do message integrated pushing system and working method
CN105653630A (en) Data migration method and apparatus for distributed database
CN112685499B (en) A method, device and equipment for synchronizing process data of work business flow
CN111338834B (en) Data storage method and device
US10318385B2 (en) Service recovery using snapshots and interservice messages
CN104954482A (en) Configuration management system and method
CN115510036A (en) Data migration method, device, equipment and storage medium
CN105243340B (en) It is a kind of to prevent the method and system that data are accidentally deleted in HBase
CN114443295B (en) A heterogeneous cloud resource management and scheduling method, device and system
CN113535416B (en) Implementation method and device of reentrant distributed lock, electronic equipment and storage medium
CN113852522B (en) Camera binding and unbinding method based on multiple platforms
CN115687275A (en) A method, system and storage medium for group sending of short messages
CN104572275B (en) A kind of process loading method, apparatus and system
CN111708835A (en) Blockchain data storage method and device
CN114595069B (en) Service offline method and device, electronic equipment and storage medium
CN106102027A (en) Note based on MapReduce batch submits method to
CN107346217A (en) A kind of cloud hard disk management method, cloud computing management platform and virtual platform
CN114070889B (en) Configuration methods, traffic forwarding methods, equipment, storage media and program products
CN111666338B (en) Data replication method, control node and electronic equipment
EP3082050A1 (en) Mass data fusion storage method and system
CN114546705A (en) Operation response method, operation response device, electronic device, and storage medium
CN105141707A (en) Address information transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载