CN111970651A - Short message processing method and device, electronic equipment and storage medium - Google Patents

Short message processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111970651A
CN111970651A CN202010830489.0A CN202010830489A CN111970651A CN 111970651 A CN111970651 A CN 111970651A CN 202010830489 A CN202010830489 A CN 202010830489A CN 111970651 A CN111970651 A CN 111970651A
Authority
CN
China
Prior art keywords
short message
keyword information
preset
acquiring
user
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
CN202010830489.0A
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010830489.0A priority Critical patent/CN111970651A/en
Publication of CN111970651A publication Critical patent/CN111970651A/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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a short message processing method, a device, an electronic device and a storage medium, wherein the short message processing method comprises the following steps: acquiring a short message; extracting keyword information of a preset identification area in the short message; and if the keyword information is matched with preset keyword information, intercepting the short message, wherein the preset keyword information comprises the keyword information of a preset identification area in the short message deleted under a preset condition. The invention realizes the effective interception of the short message containing the keyword information limited by the specific identification, achieves the aim of intercepting the short message which is not interested by the user, and the short message interception is more in line with the expectation of the user, thereby bringing better experience for the user.

Description

Short message processing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of information processing, in particular to a short message processing method, a short message processing device, electronic equipment and a storage medium.
Background
At present, many merchants push advertisements in a short message mode, which can bring some annoyances to users, and currently, the short message interception function of common third-party applications is intercepted according to number marks, however, most of the short messages for pushing advertisements are sent by using dynamic numbers, so that the situations of mistaken interception or missed interception exist, and short messages which users do not want to receive cannot be accurately intercepted according to user requirements.
Disclosure of Invention
The invention provides a short message processing method, a short message processing device, electronic equipment and a storage medium, and aims to solve the problem that short messages which a user does not want to receive cannot be intercepted accurately according to the requirements of the user in the prior art.
In a first aspect, the present invention provides a short message processing method, including:
acquiring a short message;
extracting keyword information of a preset identification area in the short message;
and if the keyword information is matched with preset keyword information, intercepting the short message, wherein the preset keyword information comprises the keyword information of a preset identification area in the short message deleted under a preset condition.
In some preferred embodiments, when the preset condition is that the short message is in an unread state, the method further includes:
when a short message is received, acquiring the state of the short message;
extracting keyword information of a preset identification area in the short message if the short message is in an unread state and the deletion operation of the short message is acquired;
and storing the extracted keyword information as preset keyword information.
In some preferred embodiments, when the preset condition is that the short message is in a preset duration of a read state, the method further includes:
when a short message is received, acquiring the state of the short message;
when the short message is in a read state, if the deleting operation of the short message is acquired within a preset time length, extracting keyword information of a preset identification area in the short message;
and storing the extracted keyword information as preset keyword information.
In some preferred embodiments, the preset keyword information further includes input keyword information, and the method further includes:
acquiring input keyword information;
and storing the input keyword information as preset keyword information.
Further, the method further comprises:
and if the keyword information is not matched with the preset keyword information, storing the short message to a first preset storage area.
Further, the method further comprises:
storing the intercepted short message to a second preset storage area;
and acquiring recovery operation of the intercepted short message so as to move the short message to a first preset storage area.
Further, the method further comprises:
and deleting the intercepted short message.
Further, the method further comprises:
and acquiring the deletion operation of the preset keyword information so as to prevent the short message containing the keyword information matched with the preset keyword information from being intercepted.
Further, the preset identification area is an area determined by a short message signature identification.
In a second aspect, the present invention provides a short message processing apparatus, including:
the acquisition module is used for acquiring the short message;
the extraction module is used for extracting keyword information of a preset identification area in the short message;
and the intercepting module is used for intercepting the short message if the keyword information is matched with preset keyword information, wherein the preset keyword information comprises the keyword information of a preset identification area in the short message deleted under a preset condition.
In a third aspect, the present invention provides a terminal device, including a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, implements the short message processing method of the first aspect.
In a fourth aspect, the present invention provides a storage medium having stored thereon a computer program which, when executed by one or more processors, implements the short message processing method according to the first aspect.
Compared with the prior art, the invention at least has the following beneficial effects:
the invention extracts the keyword information of the preset identification area in the received short message, and intercepts the short message if the keyword information is matched with the preset keyword information. The method and the device realize the interception of the short messages containing the keyword information limited by the specific identification, achieve the aim of intercepting the short messages which are not interested by the user, and the short message interception is more in line with the expectation of the user, thereby bringing better experience for the user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a short message processing method according to an embodiment;
fig. 2 is a block diagram of a short message processing apparatus according to a second embodiment.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, the present embodiment provides a short message processing method, which can be applied to a terminal device, where the terminal device may be a mobile phone, a tablet computer, and the like, and the method includes the following steps:
step S110, acquiring a short message;
and step S120, extracting keyword information of a preset identification area in the short message.
The preset identification area may be an area determined by a short message signature identification, the short message signature identification may be [ c ], [ ], () and the like, and the keyword information in the short message signature identification may be a name of a merchant or activity content and the like, for example, [ store a ], and the keyword information in [ c ] is store a.
Step S130, if the keyword information is matched with preset keyword information, intercepting the short message, wherein the preset keyword information comprises the keyword information of a preset identification area in the short message deleted under the preset condition.
The preset keyword information may be keyword information of a preset identification region in a short message that is deleted by a user under a specific condition (for example, the short message is deleted in an unread state or the short message is deleted in a preset time duration in a read state), taking the preset keyword information as store a as an example, if the keyword information extracted from the received short message is store a, matching is performed, and at this time, the short message is intercepted.
It can be understood that if the keyword information does not match the preset keyword information, the short message is not intercepted, and the steps S110 to S130 are continuously performed on the next short message.
The user's will of receiving the short message can be determined by the relevant operation of the user on the short message, for example, when the user receives a short message, if the user is not interested in the information, the user may delete the short message directly, or click to view the information to delete the short message quickly. The terminal device can more intelligently acquire the user preference and the user bias through the processing mode of the short message by the user, and directly intercept the message for the user when the message which is not expected to be received is received again, so that the preset keyword information can be preset and stored before the step S110 is executed.
In some embodiments, the preset condition is that the short message is in an unread state, and the method may further include the following steps:
step S210, when the short message is received, acquiring the state of the short message, wherein the state of the short message comprises read or unread.
And step S220, extracting the keyword information of the preset identification area in the short message if the deleting operation of the short message is acquired under the unread state of the short message.
And step S230, storing the extracted keyword information as preset keyword information.
In this embodiment, a processing mode that a user deletes a short message without reading the short message indicates that the user does not want to receive the short message, so that keyword information in the short message is extracted as preset keyword information, so that the short message with a preset identification area containing the preset keyword information is intercepted in subsequent short message reception, and is not displayed to the user, thereby avoiding troubles.
In other embodiments, the preset condition is that the short message is in a read state for a preset duration, and the method may further include the following steps:
step S310, when the short message is received, the state of the short message is acquired.
Step S320, when the short message is in a read state, if a delete operation for the short message is obtained within a preset time, extracting keyword information of a preset identification area in the short message, where the preset time may be set as required, and starting to time from the short message changing into the read state, and if the short message is deleted within the preset time (e.g. 3 seconds) of the user, the short message is deleted only when the user reads the short message for less than 3 seconds, which indicates that the user is not interested in the message. It can be understood that if the user deletes the short message after exceeding the preset time, or the short message is read but not deleted, the short message is not processed.
And step S330, storing the extracted keyword information as preset keyword information.
In this embodiment, the short message is temporarily checked or deleted by the user when the short message is received, which indicates that the user does not want to receive the short message, so that the keyword information in the short message is extracted as the preset keyword information, so that the short message with the preset keyword information in the preset identification area is intercepted in the subsequent short message reception, and is not displayed to the user, thereby avoiding troubles.
It can be understood that, in the two embodiments, the preset keyword information may be increased at any time during the process of receiving and processing the short message by the user, so as to update the user's preference for receiving the short message and improve the user experience.
In other embodiments, the preset keyword information further includes input keyword information, and the keyword information is input by the user himself and stored as the preset keyword information to directly reflect the preference of the user for receiving the short message, so the method may further include the following steps:
and step S410, acquiring the input keyword information.
And step S420, storing the input keyword information as preset keyword information.
In this embodiment, when the preset keyword information in any one of the above embodiments is used for intercepting the short message, a user does not need to manually operate the preset keyword information, the short message which the user does not want to receive can be automatically intercepted, the short message is not presented to the user, the real interception will of the user is reflected, the user requirements are met, and the short message interception is more intelligent.
In practical applications, a user may delete a short message due to an incorrect operation, or want to retrieve the short message after the deletion, and may store a normal short message and an intercepted short message separately, so that the user may restore the short message to a non-intercepted state through a recovery operation, and therefore, after step S130, the method may further include the following steps:
step S510, if the keyword information does not match the preset keyword information, storing the short message in a first preset storage area, where the first preset storage area may be an inbox.
On the basis that the normal short message is stored in the first preset area, the method may further include:
step S520, storing the intercepted short message to a second preset storage area, where the second preset area may be a recycle bin.
Step S530, obtaining a recovery operation for the intercepted short message, so that the short message is moved to a first preset storage area.
Based on the steps S520 to S530, the user can retrieve the intercepted short message.
In another possible case, the short message is deleted on the basis of intercepting the short message, and therefore, after step S130, the method may include the steps of:
and step S610, deleting the intercepted short message.
In this case, the intercepted short message is directly deleted, so that the intercepted short message is prevented from occupying the storage space of the terminal equipment.
In practical applications, the blocking demand of the user for the short message may change, for example, the user does not want to receive the advertisement short message of store a before, and now wants to continue to receive the advertisement short message of store a again. In order to meet the requirement of a user for intercepting short messages, if the user needs to recover the reception of short messages containing certain keyword information in the subsequent receiving process, the user can recover the reception by deleting the keyword information from preset keyword information, and therefore, the method can further comprise the following steps:
step S710, obtaining a deletion operation of the preset keyword information, so that the short message containing the keyword information matching the preset keyword information is no longer intercepted.
Example two
Referring to fig. 2, the present embodiment provides a short message processing apparatus, including:
an obtaining module 110, configured to obtain a short message;
an extracting module 120, configured to extract keyword information of a preset identification area in the short message;
the intercepting module 130 is configured to intercept the short message if the keyword information matches preset keyword information, where the preset keyword information includes keyword information of a preset identification area in the short message deleted under a preset condition.
It is to be understood that the obtaining module 110 may be configured to execute the step S110 in the first embodiment, the extracting module 120 may be configured to execute the step S120 in the first embodiment, and the intercepting module 130 may be configured to execute the step S130 in the first embodiment, where content of each step is please refer to the detailed description of the first embodiment, and is not repeated here.
EXAMPLE III
The embodiment provides a terminal device, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program implements the short message processing method of the first embodiment when executed by the processor.
In this embodiment, the terminal Device may be a mobile phone, a tablet computer, etc., and the Processor may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and is configured to execute the method in the foregoing embodiments. The method implemented when the computer program running on the processor is executed may refer to a specific embodiment of the method provided in the first embodiment of the present invention, and details thereof are not described here.
Example four
The present embodiment provides a storage medium, which stores a computer program, and when the computer program is executed by one or more processors, the short message processing method of the first embodiment is implemented.
In this embodiment, the storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. The system and method embodiments described above are merely illustrative.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Although the embodiments of the present invention have been described above, the above descriptions are only for the convenience of understanding the present invention, and are not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A short message processing method is characterized by comprising the following steps:
acquiring a short message;
extracting keyword information of a preset identification area in the short message;
and if the keyword information is matched with preset keyword information, intercepting the short message, wherein the preset keyword information comprises the keyword information of a preset identification area in the short message deleted under a preset condition.
2. The method according to claim 1, wherein when the preset condition is that the short message is in an unread state, the method further comprises:
when a short message is received, acquiring the state of the short message;
extracting keyword information of a preset identification area in the short message if the short message is in an unread state and the deletion operation of the short message is acquired;
and storing the extracted keyword information as preset keyword information.
3. The method according to claim 1, wherein when the preset condition is that the short message is in a preset duration of a read state, the method further comprises:
when a short message is received, acquiring the state of the short message;
when the short message is in a read state, if the deleting operation of the short message is acquired within a preset time length, extracting keyword information of a preset identification area in the short message;
and storing the extracted keyword information as preset keyword information.
4. The short message processing method according to claim 1, wherein the preset keyword information further includes input keyword information, the method further comprising:
acquiring input keyword information;
and storing the input keyword information as preset keyword information.
5. The method for processing short message according to claim 1, wherein the method further comprises:
and if the keyword information is not matched with the preset keyword information, storing the short message to a first preset storage area.
6. The method for processing short message according to claim 5, wherein the method further comprises:
storing the intercepted short message to a second preset storage area;
and acquiring recovery operation of the intercepted short message so as to move the short message to a first preset storage area.
7. The method for processing short message according to claim 1, wherein the method further comprises:
and deleting the intercepted short message.
8. The method for processing short message according to claim 1, wherein the method further comprises:
and acquiring the deletion operation of the preset keyword information so as to prevent the short message containing the keyword information matched with the preset keyword information from being intercepted.
9. The short message processing method according to claim 1, wherein the predetermined identification area is an area determined by a short message signature identification.
10. A short message processing apparatus, comprising:
the acquisition module is used for acquiring the short message;
the extraction module is used for extracting keyword information of a preset identification area in the short message;
and the intercepting module is used for intercepting the short message if the keyword information is matched with preset keyword information, wherein the preset keyword information comprises the keyword information of a preset identification area in the short message deleted under a preset condition.
11. A terminal device, characterized in that it comprises a memory and a processor, said memory having stored thereon a computer program which, when executed by said processor, implements a short message processing method according to any one of claims 1 to 9.
12. A storage medium having stored thereon a computer program which, when executed by one or more processors, implements a short message processing method as claimed in any one of claims 1 to 9.
CN202010830489.0A 2020-08-18 2020-08-18 Short message processing method and device, electronic equipment and storage medium Pending CN111970651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010830489.0A CN111970651A (en) 2020-08-18 2020-08-18 Short message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010830489.0A CN111970651A (en) 2020-08-18 2020-08-18 Short message processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111970651A true CN111970651A (en) 2020-11-20

Family

ID=73389242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010830489.0A Pending CN111970651A (en) 2020-08-18 2020-08-18 Short message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111970651A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152738A (en) * 2011-12-07 2013-06-12 腾讯科技(深圳)有限公司 Method and device of intelligent intercept
US20140066025A1 (en) * 2012-08-28 2014-03-06 At&T Mobility Ii Llc Predictive messaging service for active voice calls
CN105681604A (en) * 2015-12-31 2016-06-15 努比亚技术有限公司 Short message display method and method
CN106376002A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Management method and device, and junk short message monitoring system
US20170199941A1 (en) * 2014-04-22 2017-07-13 Smartisan Digital Co., Ltd. Method and device for residing short message verification code
CN107018237A (en) * 2017-04-28 2017-08-04 努比亚技术有限公司 A kind of unread message processing method, terminal and computer-readable recording medium
CN108777848A (en) * 2018-05-23 2018-11-09 上海连尚网络科技有限公司 For intercept information and the method for determining intercept information
US20190098461A1 (en) * 2015-06-10 2019-03-28 Huawei Technologies Co., Ltd. Short Message Processing Method and Apparatus, and Electronic Device
CN109684639A (en) * 2018-12-24 2019-04-26 北京奇虎科技有限公司 Short message recognition methods, device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152738A (en) * 2011-12-07 2013-06-12 腾讯科技(深圳)有限公司 Method and device of intelligent intercept
US20140066025A1 (en) * 2012-08-28 2014-03-06 At&T Mobility Ii Llc Predictive messaging service for active voice calls
US20170199941A1 (en) * 2014-04-22 2017-07-13 Smartisan Digital Co., Ltd. Method and device for residing short message verification code
US20190098461A1 (en) * 2015-06-10 2019-03-28 Huawei Technologies Co., Ltd. Short Message Processing Method and Apparatus, and Electronic Device
CN106376002A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Management method and device, and junk short message monitoring system
CN105681604A (en) * 2015-12-31 2016-06-15 努比亚技术有限公司 Short message display method and method
CN107018237A (en) * 2017-04-28 2017-08-04 努比亚技术有限公司 A kind of unread message processing method, terminal and computer-readable recording medium
CN108777848A (en) * 2018-05-23 2018-11-09 上海连尚网络科技有限公司 For intercept information and the method for determining intercept information
CN109684639A (en) * 2018-12-24 2019-04-26 北京奇虎科技有限公司 Short message recognition methods, device and electronic equipment

Similar Documents

Publication Publication Date Title
US20210182043A1 (en) App pushing method, device, electronic device and computer-readable storage medium
CN108596690B (en) Advertisement processing method and device
EP3767931A1 (en) Telecommunications call augmentation system
US20160092441A1 (en) File Acquiring Method and Device
CN106095816B (en) Information delivery method and device
CN110781372A (en) Method and device for optimizing website, computer equipment and storage medium
CN109684492B (en) Multimedia file searching method and device and electronic equipment
CN108196902A (en) For showing the method and apparatus for advertisement of spreading its tail
CN111447138A (en) Display method and device of mass-sending instant message, computer equipment and storage medium
CN107360331B (en) Short message display method
CN108710656B (en) Content pushing method and device
CN111970651A (en) Short message processing method and device, electronic equipment and storage medium
CN111723210A (en) Method and device for storing data table, computer equipment and readable storage medium
CN112068947A (en) Application program entering method and device, terminal equipment and computer readable medium
CN111199137A (en) Cloud font loading method and device and electronic equipment
CN114610682A (en) Chat record processing method, device, terminal and storage medium
CN113595884A (en) Message reminding method and application terminal
CN114661975A (en) Method, device and medium for extracting fingerprint features of WEB home page
CN110471793B (en) Data backup method, data recovery method, first terminal and second terminal
CN111596993A (en) Interface processing method, terminal equipment and storage medium
CN110061902B (en) Method, device and storage medium for sending messages regularly
CN109831472B (en) Information pushing and information displaying method and system
CN116561355A (en) Method and device for processing multimedia resources, computer equipment and storage medium
CN112818190A (en) Content sharing method and device, electronic equipment and storage medium
CN113900996A (en) File processing method and device, storage medium and terminal

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: 20201120