CN113301516A - Method and system for rejecting duplicate messages during short message sending - Google Patents

Method and system for rejecting duplicate messages during short message sending Download PDF

Info

Publication number
CN113301516A
CN113301516A CN202110351092.8A CN202110351092A CN113301516A CN 113301516 A CN113301516 A CN 113301516A CN 202110351092 A CN202110351092 A CN 202110351092A CN 113301516 A CN113301516 A CN 113301516A
Authority
CN
China
Prior art keywords
short message
verification
memory
same data
duplication
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
CN202110351092.8A
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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information 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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN202110351092.8A priority Critical patent/CN113301516A/en
Publication of CN113301516A publication Critical patent/CN113301516A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a system for eliminating duplication in short message transmission, wherein the method comprises the following steps: the short message platform scans the short message sending record at regular time; checking the short message request and the content parameters according to the short message issuing record obtained by scanning; checking whether the same short message content aiming at the same mobile phone number in preset time accords with preset issuing record times through a short message duplication checking module; if the verification is passed, the current short message issuing processing is executed, if the verification is not passed, an error record table is written, and the current short message is not issued. By the technical scheme of the invention, malicious repeated short messages are effectively prevented from being issued, and meanwhile, the memory overflow caused by data recording is avoided.

Description

Method and system for rejecting duplicate messages during short message sending
Technical Field
The invention relates to the technical field of communication, in particular to a short message sending duplication eliminating method and a short message sending duplication eliminating system.
Background
The application scene of using the short message for reminding at present is rapidly increased, and the short message is not needed everywhere such as short message reminding, short message confirmation, short message marketing, short message warning and the like. The short message platform has many butt-jointed systems, the services are complicated, some service systems may not control what time to remind and what number of reminding, and the same short messages may be repeatedly sent to the user in batches.
Disclosure of Invention
Aiming at the problems, the invention provides a short message issuing duplication-eliminating method and a short message issuing duplication-eliminating system, which record issuing recording times of the same short message content aiming at the same mobile phone number through a memory, intercept the same short message content which is issued aiming at the same mobile phone number and exceeds the preset times within the preset time, effectively prevent malicious repeated short message issuing, delete data which exceeds the effective time in the memory and avoid memory overflow caused by data recording.
In order to achieve the above object, the present invention provides a method for sending a short message to remove duplication, which comprises: the short message platform scans the short message sending record at regular time; checking the short message request and the content parameters according to the short message issuing record obtained by scanning; checking whether the same short message content aiming at the same mobile phone number in preset time accords with preset issuing record times through a short message duplication checking module; if the verification is passed, the current short message issuing processing is executed, if the verification is not passed, an error record table is written, and the current short message is not issued.
In the above technical solution, preferably, the duplication elimination verification process of the short message duplication elimination verification module specifically includes: reading to obtain preset verification times and valid time according to the content parameters; inquiring whether the same data is stored in the memory or not according to the mobile phone number and the short message content corresponding to the short message request; if the same data is not inquired in the memory, the current mobile phone number and the short message content are created as new objects and stored in the memory, and verification passing information is returned; if the same data is inquired in the memory, inquiring and judging whether the current valid time of the same data exceeds the period; if the time is expired, the current mobile phone number and the short message content are created as new objects and stored in the memory, and verification passing information is returned; if not, inquiring and judging whether the current issuing recording times of the same data exceed the preset checking times; if not, executing an operation of adding one to the issued recording times of the same data, updating the data, and returning verification passing information; and if the number of the issued records of the same data exceeds the preset value, executing an operation of adding one to the issued records of the same data, and returning verification failing information.
In the above technical solution, preferably, the short message duplication checking module is further provided with an expiration date checking thread; and the validity period check thread periodically performs validity time traversal query on the data in the memory, judges whether the data in the memory reaches the validity time, and deletes the data exceeding the validity time.
In the above technical solution, preferably, the key value is used in the memory to record the mobile phone number and the short message content corresponding to each short message request to be stored.
In the above technical solution, preferably, after the short message sending processing is completed, the short message sending processing operation is written into the log file.
The invention also provides a system for eliminating duplication when sending short messages, which applies the method for eliminating duplication when sending short messages disclosed by any one of the technical schemes and comprises the following steps: the short message scanning module is used for scanning short messages at regular time and issuing records; the short message checking module is used for checking the short message request and the content parameters according to the short message issuing record obtained by scanning; the short message duplication checking module is used for checking whether the same short message content aiming at the same mobile phone number in the preset time accords with the preset issuing record times; the short message issuing module is used for executing current short message issuing processing when the short message duplication checking module passes the verification; and the error recording module is used for writing an error recording table when the short message duplication checking module fails to verify.
In the above technical solution, preferably, the short message duplication checking module is specifically configured to: reading and obtaining preset verification times and valid time according to the content parameters obtained by the short message verification module; reading and obtaining corresponding mobile phone numbers and short message contents according to the short message request obtained by the short message checking module, and inquiring whether the same data is stored in a memory; if the same data is not inquired in the memory, the current mobile phone number and the short message content are created as new objects and stored in the memory, and verification passing information is returned; if the same data is inquired in the memory, inquiring and judging whether the current valid time of the same data exceeds the period; if the time is expired, the current mobile phone number and the short message content are created as new objects and stored in the memory, and verification passing information is returned; if not, inquiring and judging whether the current issuing recording times of the same data exceed the preset checking times; if not, executing an operation of adding one to the issued recording times of the same data, updating the data, and returning verification passing information; and if the number of the issued records of the same data exceeds the preset value, executing an operation of adding one to the issued records of the same data, and returning verification failing information.
In the above technical solution, preferably, the short message duplication checking module is further provided with an expiration date checking thread; and the validity period check thread periodically performs validity time traversal query on the data in the memory, judges whether the data in the memory reaches the validity time, and deletes the data exceeding the validity time.
In the above technical solution, preferably, the key value is used in the memory to record the mobile phone number and the short message content corresponding to each short message request to be stored.
In the above technical solution, preferably, after the short message sending processing is completed, the short message sending processing operation is written into the log file.
Compared with the prior art, the invention has the beneficial effects that: the sending recording times of the same short message content aiming at the same mobile phone number are recorded through the memory, the same short message content exceeding the preset times and sent aiming at the same mobile phone number within the preset time is intercepted, malicious repeated short message sending is effectively prevented, meanwhile, the data exceeding the effective time in the memory is deleted, and the memory overflow caused by data recording is avoided.
Drawings
Fig. 1 is a schematic flow chart of a method for sending and rejecting duplicate messages according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a duplication elimination check process of the short message duplication elimination check module according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a system for issuing short messages and removing duplicate messages according to an embodiment of the present invention.
In the drawings, the correspondence between each component and the reference numeral is:
11. the short message checking system comprises a short message scanning module 12, a short message checking module 13, a short message duplication checking module 14, a short message issuing module 15 and an error recording module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The invention is described in further detail below with reference to the attached drawing figures:
as shown in fig. 1, a method for sending and de-duplicating short messages according to the present invention includes: the short message platform scans the short message sending record at regular time; checking the short message request and the content parameters according to the short message issuing record obtained by scanning; checking whether the same short message content aiming at the same mobile phone number in preset time accords with preset issuing record times through a short message duplication checking module; if the verification is passed, the current short message issuing processing is executed, if the verification is not passed, an error record table is written, and the current short message is not issued.
In the embodiment, the number of times of issuing records of the same short message content aiming at the same mobile phone number is recorded through the memory, the same short message content exceeding the preset number of times issued aiming at the same mobile phone number within the preset time is intercepted, malicious repeated short message issuing is effectively prevented, meanwhile, the data exceeding the effective time in the memory is deleted, and the memory overflow caused by data recording is avoided.
As shown in fig. 2, in the above embodiment, preferably, the duplication elimination and verification process of the short message duplication elimination and verification module specifically includes:
reading and obtaining a preset CHECK time CHECK _ SENDNUM and an effective time CHECK _ TTL according to the content parameters;
inquiring whether the same data is stored in the memory according to the mobile phone number and the short message content corresponding to the short message request;
if the same data is not inquired in the memory, the current mobile phone number and the short message content are created as new objects and stored in the memory, the number of issuing records is an initial value 1, and verification passing information is returned;
if the same data is inquired in the memory, inquiring and judging whether the current valid time of the same data exceeds the period;
if the time is expired, the current mobile phone number and the short message content are created as new objects and stored in the memory, the number of times of issuing records is an initial value 1, and verification passing information is returned;
if not, inquiring and judging whether the currently issued recording times of the same data exceed the preset CHECK times CHECK _ SENDNUM;
if the number of times of the same data is not exceeded, executing an operation of adding one to the number of times of issuing records, updating the memory data, and returning verification passing information;
and if the number of times of sending the same data is exceeded, executing an operation of adding one to the number of times of sending the same data, updating the memory data, and returning the information that the verification fails.
Specifically, the specific implementation logic of the number verification process is as follows:
get the object vo ═ map.
If vo==null then
No previous calculation in memory
Adding new object, and storing in memory
Else expireTime over-term the n
The object in the memory is expired, the possible failure thread does not check and replace the object with a new object, and the object in the failure queue is directly deleted
Else sendnum<CHECK_SENDNUM
The number of times is increased by one when the limit number of times is not reached
Updating objects
Else
Reach limit number, return failure
End
Wherein, key is the key value stored in the memory, expireTime is the effective time, and sendnum is the number of times of issuing records.
In the above embodiment, preferably, the short message duplication checking module is further provided with an expiration date checking thread; the validity period check thread periodically performs effective time traversal query on the data in the memory, judges whether the data in the memory reaches effective time or not, and deletes the data exceeding the effective time.
Specifically, the specific implementation logic of the validity period checking process is as follows:
While
Loop
circular read queue object
Get the object vo ═ map.
If vo is empty then
Quit
End
Expiretime overrun of the n
Cleaning objects
End
End loop
In the above embodiment, preferably, the Key value is used in the memory to record the mobile phone number and the short message content corresponding to each short message request to be stored, that is, Key ═ md5 (mobile phone number | short message memory).
In the above embodiment, preferably, after the short message delivery processing is completed, the short message delivery processing operation is written into the log file.
As shown in fig. 3, the present invention further provides a system for removing duplicate messages sent by a short message, which applies the method for removing duplicate messages sent by a short message disclosed in any of the above embodiments, and includes: the short message scanning module 11 is used for scanning short message issuing records at regular time; the short message checking module 12 is used for checking the short message request and the content parameters according to the short message issuing record obtained by scanning; the short message duplication checking module 13 is used for checking whether the same short message content aiming at the same mobile phone number in the preset time accords with the preset issuing record times; the short message issuing module 14 is used for executing the current short message issuing processing when the short message duplication checking module passes the verification; and the error recording module 15 is used for writing the error recording list when the short message duplication checking module fails to verify.
In the above embodiment, preferably, the short message duplication checking module 13 is specifically configured to: reading the content parameters obtained by the short message verification module 12 to obtain preset verification times and valid time; reading a corresponding mobile phone number and short message content according to the short message request obtained by the short message checking module 12, and inquiring whether the same data is stored in the memory; if the same data is not inquired in the memory, the current mobile phone number and the short message content are created as new objects and stored in the memory, and verification passing information is returned; if the same data is inquired in the memory, inquiring and judging whether the current valid time of the same data exceeds the period; if the time is expired, the current mobile phone number and the short message content are created as new objects and stored in the memory, and verification passing information is returned; if not, inquiring and judging whether the current issuing recording times of the same data exceed the preset checking times; if the number of the issued records of the same data does not exceed the preset number, executing an operation of adding one to the issued records of the same data, updating the data, and returning verification passing information; and if the number of the issued records of the same data exceeds the preset value, executing an adding operation on the issued records of the same data, and returning verification failing information.
In the above embodiment, preferably, the short message duplication checking module 13 is further provided with an expiration date checking thread; the validity period check thread periodically performs effective time traversal query on the data in the memory, judges whether the data in the memory reaches effective time or not, and deletes the data exceeding the effective time.
In the above embodiment, preferably, the key value is used in the memory to record the mobile phone number and the short message content corresponding to each short message request to be stored.
In the above embodiment, preferably, after the short message delivery processing is completed, the short message delivery processing operation is written into the log file.
In the above embodiment, the functions implemented by each module in the short message sending duplication eliminating system correspond to each step in the short message sending duplication eliminating method in the above embodiment, and specific implementation steps are not described herein again.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for duplicate removal of short messages is characterized by comprising the following steps:
the short message platform scans the short message sending record at regular time;
checking the short message request and the content parameters according to the short message issuing record obtained by scanning;
checking whether the same short message content aiming at the same mobile phone number in preset time accords with preset issuing record times through a short message duplication checking module;
if the verification is passed, the current short message issuing processing is executed, if the verification is not passed, an error record table is written, and the current short message is not issued.
2. The method for duplication elimination under short message service according to claim 1, wherein the duplication elimination and verification process of the short message duplication elimination and verification module specifically comprises:
reading to obtain preset verification times and valid time according to the content parameters;
inquiring whether the same data is stored in the memory or not according to the mobile phone number and the short message content corresponding to the short message request;
if the same data is not inquired in the memory, the current mobile phone number and the short message content are created as new objects and stored in the memory, and verification passing information is returned;
if the same data is inquired in the memory, inquiring and judging whether the current valid time of the same data exceeds the period;
if the time is expired, the current mobile phone number and the short message content are created as new objects and stored in the memory, and verification passing information is returned;
if not, inquiring and judging whether the current issuing recording times of the same data exceed the preset checking times;
if not, executing an operation of adding one to the issued recording times of the same data, updating the data, and returning verification passing information;
and if the number of the issued records of the same data exceeds the preset value, executing an operation of adding one to the issued records of the same data, and returning verification failing information.
3. The method for duplication removal under short message service according to claim 2, wherein the short message duplication removal verification module further comprises an expiration date verification thread;
and the validity period check thread periodically performs validity time traversal query on the data in the memory, judges whether the data in the memory reaches the validity time, and deletes the data exceeding the validity time.
4. The method of claim 3, wherein a key value is used in the memory to record the phone number and the short message content corresponding to each short message request to be stored.
5. The method for eliminating duplication in short message delivery of claim 1 wherein the short message delivery processing operation is written into a log file after the short message delivery processing is completed.
6. A system for sending and de-duplicating short messages, which applies the method for sending and de-duplicating short messages in any one of claims 1 to 5, and is characterized by comprising the following steps:
the short message scanning module is used for scanning short messages at regular time and issuing records;
the short message checking module is used for checking the short message request and the content parameters according to the short message issuing record obtained by scanning;
the short message duplication checking module is used for checking whether the same short message content aiming at the same mobile phone number in the preset time accords with the preset issuing record times;
the short message issuing module is used for executing current short message issuing processing when the short message duplication checking module passes the verification;
and the error recording module is used for writing an error recording table when the short message duplication checking module fails to verify.
7. The system for duplication removal under short message service of claim 6, wherein the short message duplication removal checking module is specifically configured to:
reading and obtaining preset verification times and valid time according to the content parameters obtained by the short message verification module;
reading and obtaining corresponding mobile phone numbers and short message contents according to the short message request obtained by the short message checking module, and inquiring whether the same data is stored in a memory;
if the same data is not inquired in the memory, the current mobile phone number and the short message content are created as new objects and stored in the memory, and verification passing information is returned;
if the same data is inquired in the memory, inquiring and judging whether the current valid time of the same data exceeds the period;
if the time is expired, the current mobile phone number and the short message content are created as new objects and stored in the memory, and verification passing information is returned;
if not, inquiring and judging whether the current issuing recording times of the same data exceed the preset checking times;
if not, executing an operation of adding one to the issued recording times of the same data, updating the data, and returning verification passing information;
and if the number of the issued records of the same data exceeds the preset value, executing an operation of adding one to the issued records of the same data, and returning verification failing information.
8. The system for duplication elimination under short message transmission according to claim 7, wherein the short message duplication elimination verification module is further provided with an expiration date verification thread;
and the validity period check thread periodically performs validity time traversal query on the data in the memory, judges whether the data in the memory reaches the validity time, and deletes the data exceeding the validity time.
9. The system of claim 8, wherein the key value is used in the memory to record the phone number and the content of the short message corresponding to each short message request to be saved.
10. The system of claim 6, wherein after the short message sending processing is completed, the short message sending processing operation is written into a log file.
CN202110351092.8A 2021-03-31 2021-03-31 Method and system for rejecting duplicate messages during short message sending Pending CN113301516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110351092.8A CN113301516A (en) 2021-03-31 2021-03-31 Method and system for rejecting duplicate messages during short message sending

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110351092.8A CN113301516A (en) 2021-03-31 2021-03-31 Method and system for rejecting duplicate messages during short message sending

Publications (1)

Publication Number Publication Date
CN113301516A true CN113301516A (en) 2021-08-24

Family

ID=77319294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110351092.8A Pending CN113301516A (en) 2021-03-31 2021-03-31 Method and system for rejecting duplicate messages during short message sending

Country Status (1)

Country Link
CN (1) CN113301516A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113645578A (en) * 2021-08-26 2021-11-12 上海德吾信息科技有限公司 Method and device for preventing repeated sending of information and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472245A (en) * 2007-12-27 2009-07-01 中国移动通信集团公司 Method and apparatus for intercepting rubbish short message
US20100323728A1 (en) * 2009-06-17 2010-12-23 Adam Gould Methods and systems for providing near real time messaging to hearing impaired user during telephone calls
CN108024218A (en) * 2017-02-28 2018-05-11 努比亚技术有限公司 It is a kind of to identify and the abnormal method and its system for repeating short message of processing
CN108064030A (en) * 2017-11-14 2018-05-22 北京百悟科技有限公司 SMS interception method and device
CN108512744A (en) * 2018-03-13 2018-09-07 平安科技(深圳)有限公司 Advertisement short message identification method, electronic device, terminal equipment and storage medium
CN111432358A (en) * 2020-03-30 2020-07-17 北京思特奇信息技术股份有限公司 Short message sending method, system, medium and equipment
CN111556451A (en) * 2020-04-23 2020-08-18 北京思特奇信息技术股份有限公司 Short message group sending management method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472245A (en) * 2007-12-27 2009-07-01 中国移动通信集团公司 Method and apparatus for intercepting rubbish short message
US20100323728A1 (en) * 2009-06-17 2010-12-23 Adam Gould Methods and systems for providing near real time messaging to hearing impaired user during telephone calls
CN108024218A (en) * 2017-02-28 2018-05-11 努比亚技术有限公司 It is a kind of to identify and the abnormal method and its system for repeating short message of processing
CN108064030A (en) * 2017-11-14 2018-05-22 北京百悟科技有限公司 SMS interception method and device
CN108512744A (en) * 2018-03-13 2018-09-07 平安科技(深圳)有限公司 Advertisement short message identification method, electronic device, terminal equipment and storage medium
CN111432358A (en) * 2020-03-30 2020-07-17 北京思特奇信息技术股份有限公司 Short message sending method, system, medium and equipment
CN111556451A (en) * 2020-04-23 2020-08-18 北京思特奇信息技术股份有限公司 Short message group sending management method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113645578A (en) * 2021-08-26 2021-11-12 上海德吾信息科技有限公司 Method and device for preventing repeated sending of information and storage medium
CN113645578B (en) * 2021-08-26 2022-06-10 上海德吾信息科技有限公司 Method and device for preventing repeated sending of information and storage medium

Similar Documents

Publication Publication Date Title
CN111400619B (en) Logistics track data pushing method, device, equipment and storage medium
CN110309125B (en) Data verification method, electronic device and storage medium
US20060259558A1 (en) Method and program for handling spam emails
CN106851600A (en) Short message distribution method and the server for carrying out short message distribution
CN101447101B (en) Method for processing network voting information, network voting system and server
CN110659971B (en) Transaction data processing method and device
CN111414424B (en) Method, system, medium and equipment for automatically synchronizing redis of configuration data
CN106612330A (en) System and method supporting distributed multi-file importing
CN113301516A (en) Method and system for rejecting duplicate messages during short message sending
CN112468980B (en) Short message reminding fusing processing method and system based on distributed memory database
CN112969198A (en) Data transmission method, terminal and storage medium
CN111010676B (en) Short message caching method, device and system
CN113419924B (en) Database operation risk prompt processing method and device based on session maintenance
CN113746720B (en) Message processing method, system and server
CN111586438B (en) Method, device and system for processing service data
CN109327814B (en) Short message processing method and device, electronic equipment and readable storage medium
CN104468318B (en) The method and server of inverse relationship chain are recycled in network communication
CN111292040B (en) Express mail signing information access method, system and storage medium
CN115802298B (en) Method and system for processing short message submitting report and receipt report
CN115189932B (en) Rights management method, device, electronic equipment and readable storage medium
CN114238419B (en) Data caching method and device based on multi-tenant SaaS application system
CN115658339B (en) Method, system, device and storage medium for realizing idempotent of interface message
CN107704557A (en) Processing method, device, computer equipment and the storage medium of operation mutual exclusion data
CN115391756A (en) Business authority management method based on business requirements
CN113703692A (en) Message writing method and message reading method based on cache optimization

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210824