CN108512744B - Advertisement short message identification method, electronic device, terminal equipment and storage medium - Google Patents

Advertisement short message identification method, electronic device, terminal equipment and storage medium Download PDF

Info

Publication number
CN108512744B
CN108512744B CN201810203379.4A CN201810203379A CN108512744B CN 108512744 B CN108512744 B CN 108512744B CN 201810203379 A CN201810203379 A CN 201810203379A CN 108512744 B CN108512744 B CN 108512744B
Authority
CN
China
Prior art keywords
short message
message content
mobile phone
content
advertisement
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.)
Active
Application number
CN201810203379.4A
Other languages
Chinese (zh)
Other versions
CN108512744A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810203379.4A priority Critical patent/CN108512744B/en
Priority to PCT/CN2018/095358 priority patent/WO2019174164A1/en
Publication of CN108512744A publication Critical patent/CN108512744A/en
Application granted granted Critical
Publication of CN108512744B publication Critical patent/CN108512744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/063Content adaptation, e.g. replacement of unsuitable content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • H04W12/088Access security using filters or firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/12Detection or prevention of fraud
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]

Abstract

The invention discloses an advertisement short message identification method, and belongs to the field of mobile communication. An advertisement short message identification method comprises the following steps: s1, receiving and storing the information uploaded after the short message sent by the mobile phone terminal; s2, judging whether the short message content which is too much the same as the short message content in the current storage information is received, if so, skipping S3 and directly executing S4, and if not, executing S3; s3, creating a counter for accumulating the IMEI number of the received short message; s4, calling a counter, and adding 1 to the value of the counter; s5, judging whether the value of the counter corresponding to the short message content reaches or exceeds a preset threshold value, if so, feeding back the short message as advertisement information to all the mobile phone terminals uploading the short message content, if so, feeding back the short message as advertisement information to the mobile phone terminal uploading the short message content at the present time, and if not, directly ending the process. The invention can effectively identify the advertisement information and avoid the disturbance of the advertisement information to the user.

Description

Advertisement short message identification method, electronic device, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of mobile communication, in particular to an advertisement short message identification method, an electronic device, terminal equipment and a storage medium.
Background
The mobile phone is the most common communication tool, and the short message is one of the most frequent communication means. Through short messages, we receive a large amount of information from the outside every day. Of course, a large number of users are also tempted to make various spam messages for private interests. For example: the method induces the charge deduction short messages, various commercial advertisements and fraud short messages replied by the user.
In order to avoid the trouble of various spam messages, the most common spam message processing method in the prior art is to judge and intercept the received messages according to preset keywords, keyword combinations or local rules, or to allow a user to add a blacklist through a blacklist function built in the mobile phone, and to intercept the messages and spam numbers according to the blacklist. However, no matter the keywords, the keyword combinations, the local rules or the blacklist are generally set according to the intercepted spam messages, the spam messages are variable, and even more, complaints of users at the door of a telecommunication department are avoided by continuously replacing or using a plurality of groups of numbers, so that obstacles are brought to shielding and blocking the advertisement messages.
Disclosure of Invention
The invention aims to solve the technical problem that shielding can be avoided by continuously replacing or using a plurality of groups of numbers in the prior art, and provides an advertisement short message identification method, an electronic device, terminal equipment and a storage medium.
The invention solves the technical problems through the following technical scheme:
an advertisement short message identification method comprises the following steps:
s1, receiving and storing information uploaded by the mobile phone terminal after receiving a short message sent by a non-mobile phone contact person, wherein the information comprises short message content, a terminal short message ID and an IMEI (international mobile equipment identity);
s2, judging whether the previously stored information has the short message content same as that in the information stored this time, if yes, skipping S3 and directly executing S4, and if not, executing S3;
s3, creating a counter corresponding to the content of the short message for accumulating the number of IMEI (international mobile equipment identity) of the received content of the short message, wherein the initial value of the counter is 0;
s4, calling a counter corresponding to the short message content, and adding 1 to the value of the counter;
s5, judging whether the value of the counter corresponding to the short message content reaches or exceeds a preset threshold, if so, executing S6, if so, executing S7, and if not, directly ending;
s6, feeding back the short message as advertisement information to all the mobile phone terminals uploading the content of the short message, so that the mobile phone terminals can isolate the short message according to the feedback;
s7, feeding back the short message as advertisement information to the mobile phone terminal uploading the content of the short message, so that the mobile phone terminal can isolate the short message according to the feedback.
Preferably, the method further comprises the steps of:
s8, the mobile phone terminal acquires the mobile phone number of the isolated short message and stores the mobile phone number in the mobile phone blacklist.
Preferably, step S2 is specifically: judging whether a preset short message content-counter corresponding table contains short message content which is the same as the short message content in the stored information, wherein the short message content-counter corresponding table stores the short message content and a calling path of a counter corresponding to the short message content;
step S4 specifically includes: the counter corresponding to the short message content is called by acquiring the calling path of the counter corresponding to the short message content from a preset short message content-counter corresponding table.
Preferably, step S3 further includes: and adding the short message content and the call path of the corresponding counter into a short message content-counter corresponding table.
Preferably, the content of the short message included in the message is a code obtained by converting the short message according to a preset message coding rule.
Preferably, the information encoding rule is:
a code is an information length code-first position code & character code at first position-middle position code & character code at middle position-last position code & character code at last position;
the information length code represents the number of characters contained in one short message, the position code represents the arrangement position of the characters in the short message according to the sequence from front to back, and the character code is the unique identifiable code corresponding to each character contained in the short message.
Preferably, the number of the intermediate position codes is at least one, the number of the intermediate position codes is determined according to the total word number of the short message, and the calculation rule is as follows:
N=L/S-1;
wherein, N represents the number of the intermediate position codes, and when N is a non-integer, only the integer part is taken; l represents the total word number of the short message; s represents the number of interval words;
the calculation rule of the middle position code is as follows:
An=S*n;
wherein A isnIndicating an nth middle position code arranged in a forward-backward order; a. the0Represents a first position code; s represents the number of interval words; n represents the sorting of the intermediate position codes, and N is a natural number from 1 to N.
An electronic device, wherein an advertisement short message identification system is stored on the electronic device, and the advertisement short message identification system comprises:
the receiving module is used for receiving and storing information uploaded by the mobile phone terminal after receiving the short message sent by the non-mobile phone contact person, wherein the information comprises the content of the short message, the ID of the terminal short message and the IMEI of the terminal equipment;
the content identification module is used for judging whether the previously stored information has the short message content which is the same as the short message content in the information stored this time;
a counter creating module, configured to create a counter corresponding to the content of the short message to accumulate the number of IMEI receiving the content of the short message, where an initial value of the counter is 0;
the counting module is used for calling a counter corresponding to the short message content when the previously stored information has the short message content which is the same as the short message content in the information stored at this time, and adding 1 to the value of the counter;
the advertisement short message judging module is used for judging whether the value of the counter corresponding to the short message content reaches or exceeds a preset threshold value;
the feedback module is used for feeding back the short message as the advertisement information to all the mobile phone terminals uploading the short message content when the value of the counter corresponding to the short message content reaches a preset threshold value, so that the mobile phone terminals isolate the short message according to the feedback; and when the value of the counter corresponding to the short message content exceeds a preset threshold value, the short message is fed back to the mobile phone terminal uploading the short message content at this time as advertisement information, so that the mobile phone terminal can isolate the short message according to the feedback.
A terminal device, comprising a memory and a processor, wherein the memory stores an advertisement message identification system executable by the processor, and the system implements the steps of the advertisement message identification method according to any one of the preceding claims when executed by the processor.
A computer readable storage medium having stored therein an advertisement message identification system executable by at least one processor to cause the at least one processor to perform the steps of the advertisement message identification method as in any one of the preceding claims.
The positive progress effects of the invention are as follows:
1) the invention can effectively identify the advertisement information and avoid the disturbance of the advertisement information to the user.
2) The advertisement information is screened in a non-differential covering mode according to the content of the information and the characteristics of the advertisement, so that the advertisement information cannot be shielded by replacing the sending number.
Drawings
FIG. 1 is a flow chart of a first embodiment of an advertisement message identification method according to the present invention;
FIG. 2 is a flowchart of a second embodiment of an advertisement message identification method according to the present invention;
FIG. 3 is a schematic diagram showing the program modules of a first embodiment of the identification system for short advertisement messages in the electronic device according to the present invention;
fig. 4 shows a hardware architecture diagram of an embodiment of the terminal device of the present invention.
Reference numerals:
Figure BDA0001595177700000041
Figure BDA0001595177700000051
the implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Firstly, the invention provides an advertisement short message identification method.
In one embodiment, as shown in fig. 1, the method for identifying an advertisement short message includes the following steps:
s1, receiving and storing information uploaded by the Mobile phone terminal after receiving the short message sent by the non-Mobile phone contact, wherein the information comprises the content of the short message, the terminal short message ID and the IMEI (International Mobile Equipment identity) of the terminal equipment.
The short message content refers to the content of the short message sent by the non-mobile phone contact person.
The terminal short message ID is the ID of the short message in a short message list set of the mobile phone terminal and is the only identifier of the information, the terminal short message ID is distributed according to the time of receiving the short message, and even if two short messages with the same module exist, the two short messages can be distinguished through the ID.
The IMEI is the IMEI of the mobile phone terminal for uploading information.
Upon receiving the information, the information may be stored in a specific database similar to the following table structure:
Figure BDA0001595177700000061
and S2, judging whether the previously stored information has the short message content same as that in the information stored this time, if so, skipping S3 and directly executing S4, and if not, executing S3.
In an embodiment, a short message content-counter correspondence table is preset, the short message content-counter correspondence table stores the short message content and the call path of the counter corresponding to the short message content, the same short message content is stored in the correspondence table only once, and the call path of the short message content and the counter corresponding to the short message content is stored in the correspondence table only when the counter corresponding to the short message content is created (i.e. when the short message content is received for the first time).
Therefore, when judging whether the message content identical to the message content in the message saved this time exists in the message saved before, the method of judging whether the preset message content-counter corresponding table contains the message content identical to the message content in the message saved this time is preferably adopted, so that the data processing amount can be effectively saved.
S3, creating a counter corresponding to the content of the short message for accumulating the IMEI number of the received content of the short message, wherein the initial value of the counter is 0.
In an embodiment, after a counter corresponding to the short message content is created, the short message content and a call path of the corresponding counter need to be added to the short message content-counter correspondence table.
And S4, calling a counter corresponding to the short message content, and adding 1 to the value of the counter.
In an embodiment, the short message content and the call path of the counter corresponding to the short message content are preferably stored in a correspondence table (for example, a short message content-counter correspondence table) in a one-to-one correspondence manner, so as to facilitate the call of the counter corresponding to the short message content.
And S5, judging whether the value of the counter corresponding to the short message content reaches or exceeds a preset threshold, if so, executing S6, if so, executing S7, and if not, directly ending.
Every time the counter is increased by 1, whether the value in the counter reaches or exceeds a preset threshold value is judged, namely the accumulation of the counter triggers the execution of the judging step.
If the content of the short messages cannot be judged to be the advertisement if the content of the short messages does not reach the preset threshold value, the mobile phone terminal can normally display the short messages at the moment without taking any measures.
S6, feeding back the short message as advertisement information to all the mobile phone terminals uploading the content of the short message, so that the mobile phone terminals can isolate the short message according to the feedback.
Before reaching the preset threshold value, the short message contents are defaulted to be non-advertisements, and at the moment when the preset threshold value is reached, the short messages are judged to be advertisement information, so that feedback is not required to be sent to the mobile phone terminal uploading the short message contents at this time, and feedback is required to be sent to the mobile phone terminal uploading the short message contents before.
Specifically, when the preset threshold is 300, when the value in the counter corresponding to a certain short message content is 299, no feedback is sent to the mobile phone terminals that upload the short message contents, and when the value in the counter corresponding to a certain short message content reaches 300, feedback needs to be sent to all the mobile phone terminals that upload the short message contents, that is, 300 pieces of the same short message content come from 300 different mobile phone terminals, feedback needs to be sent to all the 300 mobile phone terminals.
S7, feeding back the short message as advertisement information to the mobile phone terminal uploading the content of the short message, so that the mobile phone terminal can isolate the short message according to the feedback.
The mobile phone terminals uploading the same short message content have already received feedback before reaching the preset threshold, so that when the preset threshold is exceeded, the mobile phone terminals uploading the short message content at the time only need to feedback the short message as the advertisement information.
In the first embodiment, the advertisement information is screened by comparing the content of the information, the advertisement information can be screened out to the maximum extent, the advertisement information is sent back to the mobile phone terminal after being screened out, and then the mobile phone terminal isolates the advertisement information, namely, the advertisement information is transferred from the short message inbox of the mobile phone terminal to another created inbox for storage, if the user feels that the information is useful, the information can be transferred back to the short message inbox again, and the operation is flexible.
In the second embodiment, based on the first embodiment, as shown in fig. 2, the method for identifying an advertisement short message includes the following steps:
S1-S7 are the same as those in the first embodiment and are not described herein again.
S8, the mobile phone terminal acquires the mobile phone number of the isolated short message and stores the mobile phone number in the mobile phone blacklist.
After the mobile phone terminal isolates the short message, the mobile phone number for sending the short message is further acquired and stored in a mobile phone blacklist, so that the short message sent by the mobile phone number is directly isolated when the short message is received next time.
In the third embodiment, based on the second embodiment, in order to prevent the information leakage caused by plaintext comparison of the short message content, the short message content is first converted into a code according to a preset information encoding rule and then uploaded.
Specifically, the information encoding rule is as follows:
the code is information length code-first position code & character code at first position-middle position code & character code at middle position-last position code & character code at last position.
Wherein, the message length code represents the number of words contained in a short message; for example: a short message contains 20 words in total (punctuation marks are not counted), and the message length code is 20.
The position code represents the arrangement position of the characters in the short message in the sequence from front to back; for example: the content of the short message is 'Guoqing 7-day shopping mall discount remuneration guest', the position code corresponding to the first-ranked 'country' is 01, the position code corresponding to the second-ranked 'Qing' is 02, and so on.
The character code is a unique identifiable code corresponding to each character contained in the short message. More specifically, when the character included in the short message is a Chinese character, the corresponding character code is a code consisting of a plurality of numbers; when the character contained in the short message is a number or a letter, the corresponding character code is a code consisting of the character and a special symbol. The codes corresponding to the Chinese characters are pre-stored in the system in advance, that is, a corresponding table of the Chinese characters and the character codes is pre-stored in the system, for example, a Chinese character code concise comparison table in national standard (GB2312-80) is adopted, and the character codes corresponding to the Chinese characters are called by comparing the Chinese characters in the short message with the Chinese characters in the corresponding table. Taking the content of the foregoing short message as an example, it is assumed that the character code corresponding to "country" is 1234, the character code corresponding to "7" is 7# (# is a special symbol), the character code corresponding to "quotient" is 1235, and the character code corresponding to "guest" is 1236.
In order to prevent the inaccuracy of the comparison result obtained by only taking 3 character codes when the number of words of the short message is large, the number of the intermediate position codes in the message encoding rule can be at least one, and the number of the intermediate position codes is determined according to the total number of words of the short message, the calculation rule is as follows:
N=L/S-1;
wherein, N represents the number of the intermediate position codes, and when N is a non-integer, only the integer part is taken; l represents the total word number of the short message; s represents the number of space words.
For example, if the number of words included in the short message is 17 and the number of interval words is 5, N is 2; assuming that the number of words contained in the short message is 28 and the number of interval words is 5, N is 4; and so on.
The calculation rule of the middle position code is as follows:
An=S*n;
wherein A isnIndicating an nth middle position code arranged in a forward-backward order; a. the0Represents a first position code; s represents the number of interval words; n represents the sorting of the intermediate position codes, and N is a natural number from 1 to N.
For example, if the short message includes 17 words and the interval word number is 5, the two middle position codes are 05 and 10 respectively. The digit of the position code can be set according to the actual situation, and generally 2-3 digits are set.
According to the coding rule, the code converted by the short message of market discount and reward in 7 days of national celebration is as follows: 11-011234-051235-111236.
The short message content contained in the uploaded message is probably not the advertisement message because the mobile phone terminal can directly upload the message without any distinction when receiving the short message sent by the non-mobile phone contact person, and the compared content is only the converted code actually by converting the short message content into the code according to the specific coding rule and uploading the code, thereby effectively preventing information leakage.
Secondly, the invention provides an electronic device, wherein the electronic device is stored with an advertisement short message identification system 20, and the system 20 can be divided into one or more program modules.
For example, fig. 3 shows a schematic diagram of program modules of a first embodiment of the advertisement message identification system 20, in which embodiment, the system 20 may be divided into a receiving module 201, a content identification module 202, a counter creation module 203, a counting module 204, an advertisement message judgment module 205, and a feedback module 206. The following description will specifically describe the specific functions of the program module 201 and 206.
The receiving module 201 is configured to receive and store information uploaded by a mobile phone terminal after receiving a short message sent by a non-mobile phone contact, where the information includes a short message content, a terminal short message ID, and an IMEI of a terminal device.
The short message content refers to the content of the short message sent by the non-mobile phone contact person.
The terminal short message ID is the ID of the short message in a short message list set of the mobile phone terminal and is the only identifier of the information, the terminal short message ID is distributed according to the time of receiving the short message, and even if two short messages with the same module exist, the two short messages can be distinguished through the ID.
The IMEI is the IMEI of the mobile phone terminal for uploading information.
Upon receiving the information, the information may be stored in a specific database similar to the following table structure:
Figure BDA0001595177700000101
the content identification module 202 is configured to determine whether there is a short message content in the previously stored information that is the same as the short message content in the information stored this time.
In an embodiment, a short message content-counter correspondence table is preset, the short message content-counter correspondence table stores the short message content and the call path of the counter corresponding to the short message content, the same short message content is stored in the correspondence table only once, and the call path of the short message content and the counter corresponding to the short message content is stored in the correspondence table only when the counter corresponding to the short message content is created (i.e. when the short message content is received for the first time).
Therefore, when judging whether the message content identical to the message content in the message saved this time exists in the message saved before, the method of judging whether the preset message content-counter corresponding table contains the message content identical to the message content in the message saved this time is preferably adopted, so that the data processing amount can be effectively saved.
A counter creating module 203, configured to create a counter corresponding to the content of the short message to accumulate the IMEI number of the received content of the short message, where an initial value of the counter is 0.
In an embodiment, the counter creating module 203 further adds the short message content and the call path of the counter to the short message content-counter correspondence table after creating a counter corresponding to the short message content
The counting module 204 is configured to, when the previously stored information has a short message content that is the same as the short message content in the information stored this time, call a counter corresponding to the short message content, and add 1 to the value of the counter.
In an embodiment, the short message content and the call path of the counter corresponding to the short message content are preferably stored in a corresponding table (for example, a short message content-counter corresponding table) in a one-to-one correspondence manner, and when the counter needs to be called, the call path of the counter corresponding to the short message content is acquired from the corresponding table to call the corresponding counter.
The advertisement message determining module 205 is configured to determine whether a value of a counter corresponding to the content of the message reaches or exceeds a preset threshold.
Every time the counter is increased by 1, whether the value in the counter reaches or exceeds a preset threshold value is judged, namely the accumulation of the counter triggers the execution of the judging step.
A feedback module 206, configured to feed back, when the value of the counter corresponding to the short message content reaches a preset threshold value, the short message as advertisement information to all mobile terminals uploading the short message content, so that the mobile terminals isolate the short message according to the feedback; and when the value of the counter corresponding to the short message content exceeds a preset threshold value, the short message is fed back to the mobile phone terminal uploading the short message content at this time as advertisement information, so that the mobile phone terminal can isolate the short message according to the feedback.
If the value in the counter does not reach the preset threshold value, the content of the short messages cannot be judged to be the advertisement, so that the mobile phone terminal can normally display the short messages at the moment without taking any measures.
When the value in the counter reaches the preset threshold value, the short message contents are defaulted to be non-advertisements, and at the moment when the value in the counter reaches the preset threshold value, the short messages are judged to be advertisement information, so that feedback is not required to be sent to the mobile phone terminal which uploads the short message contents at this time, and feedback is required to be sent to the mobile phone terminal which uploads the short message contents before.
Specifically, when the preset threshold is 300, when the value in the counter corresponding to a certain short message content is 299, no feedback is sent to the mobile phone terminals that upload the short message contents, and when the value in the counter corresponding to a certain short message content reaches 300, feedback needs to be sent to all the mobile phone terminals that upload the short message contents, that is, 300 pieces of the same short message content come from 300 different mobile phone terminals, feedback needs to be sent to all the 300 mobile phone terminals.
The mobile phone terminals uploading the same short message content have received feedback before the value in the counter reaches the preset threshold, so that when the value in the counter exceeds the preset threshold, the mobile phone terminals uploading the short message content at this time only need to feed back the short message as the advertisement information.
The invention further provides the terminal equipment.
Fig. 4 is a schematic diagram of a hardware architecture of a terminal device according to an embodiment of the present invention. In the present embodiment, the terminal device 2 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a command set in advance or stored. For example, the server may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster composed of a plurality of servers). As shown, the terminal device 2 includes, but is not limited to, at least a memory 21, a processor 22, a network interface 23, and an advertisement short message identification system 20, which are connected to each other in a communication manner through a system bus. Wherein:
the memory 21 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 21 may be an internal storage unit of the terminal device 2, such as a hard disk or a memory of the terminal device 2. In other embodiments, the memory 21 may also be an external storage device of the terminal device 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like equipped on the terminal device 2. Of course, the memory 21 may also include both an internal memory unit of the terminal device 2 and an external memory device thereof. In this embodiment, the memory 21 is generally used for storing an operating system installed in the terminal device 2 and various types of application software, such as a program code of the advertisement short message identification system 20. Further, the memory 21 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 22 is generally configured to control the overall operation of the terminal device 2, such as performing control and processing related to data interaction or communication with the terminal device 2. In this embodiment, the processor 22 is configured to run program codes stored in the memory 21 or process data, for example, run the advertisement message identification system 20.
The network interface 23 may comprise a wireless network interface or a wired network interface, and the network interface 23 is typically used for establishing a communication connection between the terminal device 2 and other terminal devices. For example, the network interface 23 is used to connect the terminal device 2 with an external terminal through a network, establish a data transmission channel and a communication connection between the terminal device 2 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
It is noted that fig. 4 only shows the terminal device 2 with components 21-23, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the advertisement message identification system 20 stored in the memory 21 can be executed by one or more processors (in this embodiment, the processor 22) to complete the operation of the advertisement message identification method.
In addition, the present invention relates to a computer-readable storage medium, in which an advertisement short message identification system 20 is stored, and when the advertisement short message identification system 20 is executed by one or more processors, the method for identifying an advertisement short message or the operation of an electronic device are implemented.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (9)

1. An advertisement short message identification method is characterized by comprising the following steps:
s1, receiving and storing information uploaded by the mobile phone terminal after receiving a short message sent by a non-mobile phone contact person, wherein the information comprises short message content, a terminal short message ID and an IMEI (international mobile equipment identity); the short message content is a code obtained by converting the short message according to a preset information coding rule;
s2, judging whether the previously stored information has the short message content which is the same as the short message content in the information stored this time according to the preset short message content-counter corresponding table, if so, skipping S3 and directly executing S4, and if not, executing S3;
s3, creating a counter corresponding to the content of the short message for accumulating the number of IMEI (international mobile equipment identity) receiving the content of the short message, wherein the initial value of the counter is 0;
s4, calling a counter corresponding to the short message content, and adding 1 to the value of the counter;
s5, judging whether the value of the counter corresponding to the short message content reaches or exceeds a preset threshold, if so, executing S6, if so, executing S7, and if not, directly ending;
s6, feeding back the short message as advertisement information to all the mobile phone terminals uploading the content of the short message, so that the mobile phone terminals can isolate the short message according to the feedback; the mobile phone terminals uploading the short message content comprise the mobile phone terminal uploading the short message content and the mobile phone terminal uploading the short message content before, and send feedback;
s7, feeding back the short message as advertisement information to the mobile phone terminal uploading the content of the short message, so that the mobile phone terminal can isolate the short message according to the feedback.
2. The method for identifying short messages in an advertisement according to claim 1, further comprising the steps of:
s8, the mobile phone terminal acquires the mobile phone number of the isolated short message and stores the mobile phone number in the mobile phone blacklist.
3. The method for identifying short advertisement messages as claimed in claim 1,
step S2 specifically includes: judging whether a preset short message content-counter corresponding table contains short message content which is the same as the short message content in the stored information, wherein the short message content-counter corresponding table stores the short message content and a calling path of a counter corresponding to the short message content;
step S4 specifically includes: the counter corresponding to the short message content is called by acquiring the calling path of the counter corresponding to the short message content from a preset short message content-counter corresponding table.
4. The method for identifying short advertisement messages according to claim 3, wherein the step S3 further comprises: and adding the short message content and the call path of the corresponding counter into a short message content-counter corresponding table.
5. The method for identifying short messages in an advertisement according to claim 1, wherein the information encoding rule is as follows:
a code is an information length code-first position code & character code at first position-middle position code & character code at middle position-last position code & character code at last position;
the information length code represents the number of characters contained in a short message, the position code represents the arrangement position of the characters in the short message according to the sequence from front to back, and the character code is the unique identifiable code corresponding to each character contained in the short message.
6. The method of claim 5, wherein the number of the middle position codes is at least one, and the number of the middle position codes is determined according to the total word number of the short message, and the calculation rule is as follows:
N=L/S-1;
wherein, N represents the number of the intermediate position codes, and when N is a non-integer, only the integer part is taken; l represents the total word number of the short message; s represents the number of interval words;
the calculation rule of the middle position code is as follows:
An=S*n;
wherein A isnIndicating an nth middle position code arranged in a forward-backward order; a. the0Represents a first position code; s represents the number of interval words; n represents the order of the intermediate position codes, N being 1 to NAnd (4) counting.
7. An electronic device, wherein an advertisement message identification system is stored on the electronic device, and the advertisement message identification system comprises:
the receiving module is used for receiving and storing information uploaded by a mobile phone terminal after receiving a short message sent by a non-mobile phone contact person, wherein the information comprises short message content, a terminal short message ID and terminal equipment IMEI; the short message content included in the message is a code obtained by converting the short message according to a preset message coding rule;
the content identification module is used for judging whether the previously stored information has the short message content which is the same as the short message content in the information stored this time according to a preset short message content-counter corresponding table;
a counter establishing module, configured to establish a counter corresponding to the short message content to accumulate the number of IMEI received in the short message content, where an initial value of the counter is 0;
the counting module is used for calling a counter corresponding to the short message content when the previously stored information has the short message content which is the same as the short message content in the information stored at this time, and adding 1 to the value of the counter;
the advertisement short message judging module is used for judging whether the value of the counter corresponding to the short message content reaches or exceeds a preset threshold value;
the feedback module is used for feeding back the short message as the advertisement information to all the mobile phone terminals uploading the short message content when the value of the counter corresponding to the short message content reaches a preset threshold value, so that the mobile phone terminals isolate the short message according to the feedback; the mobile phone terminals uploading the short message content comprise the mobile phone terminal uploading the short message content and the mobile phone terminal uploading the short message content before, and send feedback; and when the value of the counter corresponding to the short message content exceeds a preset threshold value, the short message is fed back to the mobile phone terminal uploading the short message content at this time as advertisement information, so that the mobile phone terminal can isolate the short message according to the feedback.
8. A terminal device comprising a memory and a processor, wherein the memory stores an advertisement message identification system executable by the processor, and the system when executed by the processor implements the steps of the advertisement message identification method according to any one of claims 1 to 6.
9. A computer-readable storage medium, wherein an advertisement message identification system is stored in the computer-readable storage medium, and the advertisement message identification system is executable by at least one processor to cause the at least one processor to perform the steps of the advertisement message identification method according to any one of claims 1-6.
CN201810203379.4A 2018-03-13 2018-03-13 Advertisement short message identification method, electronic device, terminal equipment and storage medium Active CN108512744B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810203379.4A CN108512744B (en) 2018-03-13 2018-03-13 Advertisement short message identification method, electronic device, terminal equipment and storage medium
PCT/CN2018/095358 WO2019174164A1 (en) 2018-03-13 2018-07-12 Advertisement short message recognition method, electronic apparatus, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810203379.4A CN108512744B (en) 2018-03-13 2018-03-13 Advertisement short message identification method, electronic device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108512744A CN108512744A (en) 2018-09-07
CN108512744B true CN108512744B (en) 2020-10-16

Family

ID=63377554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810203379.4A Active CN108512744B (en) 2018-03-13 2018-03-13 Advertisement short message identification method, electronic device, terminal equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108512744B (en)
WO (1) WO2019174164A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301516A (en) * 2021-03-31 2021-08-24 北京思特奇信息技术股份有限公司 Method and system for rejecting duplicate messages during short message sending

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350957A (en) * 2008-07-28 2009-01-21 杨沁沁 Method and equipment for shielding rubbish short message
CN101697620A (en) * 2009-10-30 2010-04-21 中兴通讯股份有限公司 Method and system for determining spam messages
CN103929723A (en) * 2014-04-30 2014-07-16 小米科技有限责任公司 Junk short message recognition method and device
CN104010284A (en) * 2014-05-30 2014-08-27 可牛网络技术(北京)有限公司 Method and device for processing spam short message

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790142B (en) * 2010-03-11 2012-11-14 上海粱江通信系统股份有限公司 Method and system for identifying spam message sources by combining message contents and transmission frequency
CN103888919A (en) * 2012-12-19 2014-06-25 中兴通讯股份有限公司 Short message monitoring method and device thereof
CN103476011A (en) * 2013-08-30 2013-12-25 广东明创软件科技有限公司 Method and system for prompting user short message credibility
CN106454780A (en) * 2016-11-11 2017-02-22 努比亚技术有限公司 Junk short message filtering system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350957A (en) * 2008-07-28 2009-01-21 杨沁沁 Method and equipment for shielding rubbish short message
CN101697620A (en) * 2009-10-30 2010-04-21 中兴通讯股份有限公司 Method and system for determining spam messages
CN103929723A (en) * 2014-04-30 2014-07-16 小米科技有限责任公司 Junk short message recognition method and device
CN104010284A (en) * 2014-05-30 2014-08-27 可牛网络技术(北京)有限公司 Method and device for processing spam short message

Also Published As

Publication number Publication date
WO2019174164A1 (en) 2019-09-19
CN108512744A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN109636487B (en) Advertisement pushing method, server, computer device and storage medium
CN107545451B (en) Advertisement pushing method and device
CN109327496B (en) Data pushing method and device, computer equipment and storage medium
CN105718534A (en) Information pushing apparatus, information pushing method and client
CN110708360A (en) Information processing method and system and electronic equipment
CN113127723B (en) User portrait processing method, device, server and storage medium
CN108512744B (en) Advertisement short message identification method, electronic device, terminal equipment and storage medium
CN108256894B (en) Advertisement display control method, equipment, server and client
CN110781386A (en) Information recommendation method and device, and bloom filter creation method and device
CN113434762A (en) Association pushing method, device and equipment based on user information and storage medium
CN113609409A (en) Method and system for recommending browsing information, electronic device and storage medium
CN111078437B (en) Remote calling method and device for verification codes, electronic equipment and readable storage medium
CN104796435A (en) Message pushing method and message server
CN108924840B (en) Blacklist management method and device and terminal
CN110134920A (en) Draw the compatible display methods of text, device, terminal and computer readable storage medium
CN109685091B (en) Digital experience targeting using bayesian approach
CN108513269B (en) Advertisement short message identification method, electronic device, computer equipment and storage medium
CN104796519A (en) Terminal
CN109885710B (en) User image depicting method based on differential evolution algorithm and server
CN113595884A (en) Message reminding method and application terminal
CN110535669B (en) Content recommendation method and content recommendation device
CN108509478B (en) Splitting and calling method of rule engine file, electronic device and storage medium
CN107368597B (en) Information output method and device
CN112487765A (en) Method and device for generating notification text
CN112287236A (en) Text message pushing method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant