CN110493735A - A kind of SMS processing method and device - Google Patents
A kind of SMS processing method and device Download PDFInfo
- Publication number
- CN110493735A CN110493735A CN201910808732.6A CN201910808732A CN110493735A CN 110493735 A CN110493735 A CN 110493735A CN 201910808732 A CN201910808732 A CN 201910808732A CN 110493735 A CN110493735 A CN 110493735A
- Authority
- CN
- China
- Prior art keywords
- short message
- information
- message
- preset condition
- sent
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short 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)
- Telephonic Communication Services (AREA)
- Telephone Function (AREA)
Abstract
The application is suitable for field of communication technology, provides a kind of SMS processing method and device, comprising: receives short message and sends the information that platform is sent by first passage, the information includes message identification code;It whether there is the short message for meeting preset condition according to message identification code query information library, described information storehouse is used to store short message and sends the short message that platform is sent by second channel;If described information storehouse has the short message for meeting preset condition, verify whether the short message is in display state;If the short message is in display state, the information is abandoned;If the short message is not at display state, then delete the short message for meeting preset condition in described information storehouse, and store the information that the first passage is sent, the short message that repetition stores identical content can be effectively prevented from, effect rejects the duplicate message that first passage and second channel are sent respectively, so that short message display interface is more succinct, while storage resource is saved, improves the operational efficiency of terminal.
Description
Technical field
The application belongs to field of communication technology more particularly to a kind of SMS processing method and device.
Background technique
Short message (Short Message Service, SMS) is also known as short message, is that user is straight by telecommunication terminals such as mobile phones
It receives and sends or received text or digital information.With the development of internet technology, richer in order to enable short message to carry
Content, people start with internet channel to send short message.In order to ensure short message is successfully sent to purpose terminal, often
It is retransmitted and is sent once again using operator channel when detecting that internet channel sends failure.However for various reasons, exist
Although short message transmission platform judgement internet channel transmission short message failure but actual purpose terminal have had received, this is short to disappear
The case where breath, be easy to cause the confusion of user in this way and misreads at this point, purpose terminal will show two identical short messages, together
Shi Chongfu storage will lead to storage resource waste, and then reduce terminal operating efficiency.
In conclusion the problem of storing the short message of identical content presently, there are repetition and storage resource caused to waste.
Summary of the invention
The embodiment of the present application provides a kind of SMS processing method and device, can solve identical presently, there are repeating to store
The short message of content and the problem of cause storage resource to waste.
In a first aspect, the embodiment of the present application provides a kind of SMS processing method, comprising:
It receives short message and sends the information that platform is sent by first passage, the information includes message identification code;
It whether there is the short message for meeting preset condition according to message identification code query information library, described information storehouse is used for
Storage short message sends the short message that platform is sent by second channel;
If described information storehouse has the short message for meeting preset condition, verify whether the short message is in display state;
If the short message is in display state, the information is abandoned;
If the short message is not at display state, the short message for meeting preset condition in described information storehouse is deleted, and store
The information that the first passage is sent.
In a kind of possible implementation of first aspect, the message identification code includes that information encoding and channel number are compiled
Number, it is described to whether there is the short message for meeting preset condition according to message identification code query information library, comprising:
The letter of the information encoding and the information that whether there is short message in described information storehouse is inquired in the first preset time period
Breath numbers identical short message;
If the information encoding for inquiring short message short message identical with the information encoding of the information, inquires the short message
Whether operator's channel number is identical as the channel number number;
If operator's channel number is identical as the channel number number, it is determined that described information storehouse, which exists, meets default item
The short message of part;If operator's channel number is numbered not identical with the channel number, it is determined that there is no meet for described information storehouse
The short message of preset condition.
Further, said short message processing method sends the letter that platform is sent by first passage in the reception short message
Before breath, further includes:
Receive the short message that SMS platform is sent by second channel;
Verify the legitimacy of the short message;
If the short message is legal, search in information bank with the presence or absence of short message identical with the information encoding of the short message;
The short message, then be stored in information bank by short message identical with the information encoding of the short message if it does not exist, and
Feedback reception pass signal to the short message sends platform.
Illustratively, the legitimacy of the verifying short message, comprising:
It is whether legal that the short message is verified according to the format of the short message, short message content and short message sending time;
If the short message is illegal, the short message is abandoned.
Further, the SMS processing method further include:
Short message identical with the information encoding of the short message if it exists, then delete duplicate short message.
Further, the SMS processing method further include:
If the short message for meeting preset condition is not present in described information storehouse, the information is shown in short message display interface
In.
Further, the SMS processing method further include: feedback processing result to the short message sends platform.
It should be understood that above-mentioned processing result includes but is not limited to: abandoning the information, delete to meet in described information storehouse and preset
The short message of condition and deletion repeat short message etc..
Second aspect, the embodiment of the present application provide a kind of short message processing device, comprising:
Receiving module sends the information that platform is sent by first passage for receiving short message, and the information includes information
Identification code;
Enquiry module, for whether there is the short message for meeting preset condition according to message identification code query information library,
Described information storehouse is used to store short message and sends the short message that platform is sent by second channel;
Authentication module verifies whether the short message is located if there is the short message for meeting preset condition for described information storehouse
In display state;
Discard module abandons the information if being in display state for the short message;
Memory module deletes if being not at display state for the short message and meets preset condition in described information storehouse
Short message, and store the information that the first passage is sent.
The third aspect, the embodiment of the present application provide a kind of terminal device, including memory, processor and are stored in institute
The computer program that can be run in memory and on the processor is stated, the processor executes real when the computer program
Now as described in aforementioned first aspect the step of SMS processing method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, is realized as described in aforementioned first aspect when the computer program is executed by processor at short message
The step of reason method.
5th aspect, the embodiment of the present application provides a kind of computer program product, when computer program product is in terminal
When being run in equipment, so that terminal device executes SMS processing method described in any one of above-mentioned first aspect.
It is understood that the beneficial effect of above-mentioned second aspect to the 5th aspect may refer in above-mentioned first aspect
Associated description, details are not described herein.
Existing beneficial effect is the embodiment of the present application compared with prior art: sending platform by the receiving short message
After the information that one channel is sent, the short message for meeting preset condition is first searched whether in information bank, if it is present continuing to test
It demonstrate,proves whether the short message has been shown, the information received is abandoned if having shown that, if having not yet been displayed, deleted from information bank
The short message, and show the information received, repetition storage can be effectively prevented from and show the short message of identical content, effectively reject
The duplicate message that first passage and second channel are sent respectively so that short message display interface is more succinct, while saving storage resource,
Improve the operational efficiency of terminal.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these
Figure obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram for SMS processing method that one embodiment of the application provides;
Fig. 2 is a kind of implementation process schematic diagram for SMS processing method that another embodiment of the application provides;
Fig. 3 is a kind of specific implementation flow chart for SMS processing method step S102 that another embodiment of the application provides;
Fig. 4 is a kind of short message processing device structural block diagram that one embodiment of the application provides;
Fig. 5 is the structural schematic diagram for the terminal device that one embodiment of the application provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that working as in present specification and the appended claims in use, term " includes " instruction is retouched
State the presence of feature, entirety, step, operation, element and/or component, but be not precluded one or more of the other feature, entirety,
Step, operation, the presence or addition of element, component and/or its set.
It is also understood that referring in present specification to term "and/or" used in the appended claims related
Join any combination and all possible combinations of one or more of item listed, and including these combinations.
As present specification and it is used in the attached claims, term " if " can be according to upper and lower
Text be interpreted " when ... when " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase is " if really
It is fixed " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " ring
Should be in determination " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In addition, in the description of present specification and the appended claims, term " first ", " second ", " third "
It is described etc. being only used for distinguishing, is not understood to indicate or imply relative importance.
The reference " one embodiment " described in the specification of the present application or " some embodiments " etc. mean in the application
One or more embodiments in include in conjunction with the embodiment description special characteristic, structure or feature.As a result, in this specification
In difference occur sentence " in one embodiment ", " in some embodiments ", " in some other embodiment ",
" in other embodiments " etc. uninevitable all referring to identical embodiment, mean " one or more but be not
In addition all embodiments " are only otherwise especially emphasized.The terms "include", "comprise", " having " and their change
Shape can mean that " including but not limited to ", only otherwise in addition especially emphasize.
SMS processing method provided by the embodiments of the present application can be applied to mobile phone, tablet computer, wearable device, vehicle-mounted
Equipment, augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) equipment, notebook electricity
Brain, Ultra-Mobile PC (ultra-mobile personal computer, UMPC), net book, individual digital help
It manages on terminal devices such as (personal digital assistant, PDA), concrete kind of the embodiment of the present application to terminal device
Type is not intended to be limited in any.
For example, the terminal device can be cellular phone, wireless phone, session initiation protocol (Session
InitiationProtocol, SIP) phone, wireless local loop (Wireless Local Loop, WLL) stand, individual digital
It handles (Personal Digital Assistant, PDA) equipment, the handheld device with wireless communication function, calculate equipment
Or it is connected to other processing equipments, mobile unit, the car networking terminal, computer, laptop computer, hand of radio modem
Hold formula communication equipment, Handheld computing device, satellite radio, wireless modem card, TV set-top box (set top
Box, STB), customer premises equipment, CPE (customer premise equipment, CPE) and/or in wireless system it is enterprising
The other equipment and next generation communication system of row communication, for example, mobile terminal in 5G network or the following evolution is public
Mobile terminal etc. in land mobile network (Public Land Mobile Network, PLMN) network.
Referring to Fig. 1, Fig. 1 show the application provide SMS processing method schematic flow chart, as example rather than
It limits, this method can be applied in the mobile terminals such as mobile phone, and said short message processing method includes:
Step S101: it receives short message and sends the information that platform is sent by first passage.
Specifically, above- mentioned information include message identification code, the message identification code content of information and received for identification
The channel number in one channel.
Specifically, after short message, which sends platform, monitors that the information sends the instruction to fail by second channel, can pass through
First passage sends information to mobile terminal, which includes the information content, and content and channel including information for identification
Number message identification code, by message identification code can identification information content it is whether identical, and can identify channel number whether phase
Together.
It should be noted that short message, which sends platform, can first pass through second when needing transmitting short message to destination mobile terminal
Channel is to the destination mobile terminal transmitting short message, no longer mobile eventually to the target by first passage if short message is sent successfully
End sends short message.Only when second channel sends failure, just short message can be sent to the destination mobile terminal by first passage.
It should also be noted that, feedback second channel sends failure news to short message and sends when sending failure by second channel
Platform passes through the information that record sends failure after short message, which sends platform, receives feedback second channel transmission failure news
It numbers and turns first passage and send corresponding operator's channel number when short message, then pass through corresponding operator's channel number to the mesh
It marks mobile terminal and sends short message.
It should also be noted that, said short message send platform refer to based on operator (such as China Mobile, China Unicom, in
State's telecommunications etc.) short message port that provides connect with internet and realizes and client's designated number progress short message Batch sending and customized
The platform of transmission.
In the present embodiment, above-mentioned first passage is operator channel, and second channel is internet channel.It needs to illustrate
It is that, as the another embodiment of the present embodiment, above-mentioned first passage may be internet channel, above-mentioned second channel
It can be operator channel, it is without restriction herein.
Step S102: it whether there is the short message for meeting preset condition according to message identification code query information library.
Specifically, described information storehouse is used to store short message and sends the short message that platform is sent by second channel.
It should be noted that when mobile terminal is successfully received the short message of second channel transmission, it can be short by what is received
Letter is stored in information bank, and store simultaneously the corresponding information encoding of the short message with turn operator channel send short message when it is corresponding
Operator's channel number.
Specifically, it after mobile terminal receives the information sent by first passage, is identified according to the information of the information
Code inquiry from information bank whether there is the short message for meeting preset condition.It should be noted that above-mentioned preset condition is for judging
And operator channel number whether identical short message whether identical with the presence or absence of the information content in information bank.
Non-limiting as example, above-mentioned preset condition includes the first preset condition and the second preset condition, and first is default
Condition are as follows: judge whether there is the short message of same information content;Second preset condition are as follows: judge whether there is operator's channel number
Identical short message.
Only when existing in information bank while meeting the short message of the first preset condition and the second preset condition, letter is just determined
There is the short message for meeting preset condition in library in breath.
It should be noted that when inquiring the short message for existing in above- mentioned information library and meeting preset condition, from the information bank
In filter out the short message for meeting preset condition.
As a kind of implementation, inquiry and screening operation are carried out by database language (sql like language).
Specifically, in order to avoid short message sends platform the case where different time sections send the information of identical content, setting
The duplicate checking time, i.e., query information library whether there is the short message for meeting preset condition in the first preset time period.It needs to illustrate
It is that above-mentioned first preset time period can be configured according to actual needs, is such as arranged 12 a length of when the first preset time period
Hour, one day, 7 days, 15 days, one month etc..
Step S103: if described information storehouse has the short message for meeting preset condition, verify whether the short message is in aobvious
Show state.
Specifically, when inquiring the short message for existing in information bank and meeting preset condition, according to the phase of the short message of information bank
Close whether the Information Authentication short message is in display state.By adding display status word section in the tables of data of information bank, pass through
The display status word section verifies whether the short message is in display state, when storing short message to information bank, by display status word
Section default setting is not show, and when short message is in display state, the display state of the short message can be updated to show by information bank
Show.Indicate that whether the short message is in display state by the display status word section of the short message.
Specifically, whether the short message is verified with the presence or absence of the short message in the short message display interface by verifying mobile terminal
In display state.I.e. when the display interface of mobile terminal can find the short message, then illustrate that the short message is in display
State, the display interface of mobile terminal do not search when shortenning letter, then illustrate that the short message is not at display state.
It should be noted that the short message received can moved after mobile terminal receives short message by second channel
It is shown on the short message interface of dynamic terminal, however could not in time be shown short message in short message circle since partly cause can also exist
Situation on face, therefore can be to verify the short message with the presence or absence of the short message by verifying the short message display interface of mobile terminal
It is no to be in display state.
It should also be noted that, can show short message content and internet channel number when showing short message, pass through satisfaction at this time
The short message content and internet channel number of the short message of preset condition whether there is identical content and phase to search short message display interface
With the short message of channel number, then illustrate if it exists it has been shown that otherwise illustrating not show.
It, will be described if the short message for meeting preset condition is not present in described information storehouse in a kind of possible embodiment
Information is shown in short message display interface.
Specifically, if the information received is stored in short message there is no the short message for meeting preset condition in information bank
In inbox, and the information is shown in the short message display interface of the mobile terminal, returns and receive successful information to short message
Send platform.
Step S104: if the short message is in display state, the information is abandoned.
Specifically, the information received by first passage is abandoned if the short message has been in display state.It needs
Illustrate, the information received by first passage discarding is referred to and does not save the information.
Specifically, after having abandoned the information, the processing result for abandoning information is fed back into short message hair by first passage
Send platform.
Step S105: it if the short message is not at display state, deletes and meets the short of preset condition in described information storehouse
Letter, and store the information that the first passage is sent.
Specifically, illustrating that the short message of information bank fails the short message in mobile terminal if the short message is not at display state
It is shown in display interface, therefore, in order to avoid content repetition, the short message for being stored in information bank is deleted, is then saved
The information received by first passage, and the information is shown in the short message display interface of mobile terminal.
Specifically, it saves and shows by the way that it is anti-that which is passed through first passage after the received information of first passage
It is fed to short message and sends platform.
It can be seen that above, a kind of SMS processing method provided in this embodiment, send platform by the receiving short message
After the information that one channel is sent, the short message for meeting preset condition is first searched whether in information bank, if it is present continuing to test
It demonstrate,proves whether the short message has been shown, the information received is abandoned if having shown that, if having not yet been displayed, deleted from information bank
Then the short message shows the information received, can be effectively prevented from the short message that repetition stores identical content, effectively rejects first
The duplicate message that channel and second channel are sent respectively so that short message display interface is more succinct, while saving storage resource, improves
The operational efficiency of terminal.
Referring to Fig. 2, Fig. 2 is a kind of implementation flow chart for SMS processing method that another embodiment of the application provides.Phase
Embodiment corresponding for Fig. 1, a kind of SMS processing method provided in this embodiment is before step S101, including step S201
To step S204, details are as follows:
Step S201: the short message that SMS platform is sent by second channel is received.
Specifically, short message sends platform and sends table progress short message transmission according to short message, and short message transmission table includes but is not limited to
The fields such as information encoding field, short message content field, sendaisle field, information encoding are the unique identification of short message, information
Number can distinguish every short message, just can recognize that every short message according to information encoding.If information encoding is consistent, illustrate short message
Content is identical.
Specifically, short message transmission platform can preferably select second channel (internet channel) progress short message and issue, and work as short message
When sending platform by second channel transmission short message, mobile terminal will receive the short message sent by second channel.
Step S202: the legitimacy of the short message is verified.
Specifically, when mobile terminal receives the short message of second channel transmission, according to preset condition (format, content, time
Etc. conditions) judge whether the short message legal, then directly abandon this short message if it is illegal and that processing result is fed back to transmission be flat
Platform, and indicate that abandoning reason is that the short message is illegal.
In the present embodiment, the legitimacy of the above-mentioned verifying information includes:
It is whether legal that the short message is verified according to the format of the short message, short message content and short message sending time;
If the short message is illegal, the short message is abandoned.
Illustratively, above-mentioned to verify whether short message closes according to the format of the short message, short message content and short message sending time
Method includes but is not limited to following situations:
Verifying SIM card information subsidiary inside short message content whether there is in current mobile terminal (cell phone apparatus), if
The subsidiary SIM card information of the short message content is not present in current mobile terminal, then the format of the short message is illegal lattice
Formula, the i.e. short message are illegal.
Whether the subsidiary brand ID of verifying short message content is legal or whether brand name is empty;If the subsidiary product of short message content
Board ID is illegal or brand name is sky, then the content of the short message is illegal, i.e., the short message is illegal.
Whether subsidiary expired time is less than the present system time of mobile terminal inside verifying short message content, if in short message
Hold the current time that subsidiary expired time is less than mobile terminal, then the sending time of the short message is illegal (expired short message),
I.e. the short message is illegal.
Whether the mobile phone operators state for verifying SIM card information subsidiary inside the short message content is abnormal, if in short message
Hold the mobile phone operators abnormal state of subsidiary SIM card information, then the short message of the non-SIM card exception of the short message, the i.e. short message do not conform to
Method.
Specifically, if the short message is legal, S203 is thened follow the steps.
Step S203: if the short message is legal, search in the second preset time period in information bank with the presence or absence of with it is described
The identical short message of the information encoding of short message.
Specifically, after received short message passes through legitimate verification, then the second preset time period is searched by information encoding
With the presence or absence of short message is repeated in interior information bank, the identical short message of information encoding, then illustrate in the second preset time period if it exists,
Repetition receives the short message of identical content, i.e. there is short message identical with the information encoding of the short message in the second preset time period.
It should be noted that by second channel (internet channel) send short message all carry information encoding (ID) with
And turn to need the information such as operator's channel number to be used when operator channel is sent, mobile terminal receives short message transmission platform and passes through
When the short message that second channel is sent, information encoding can be carried out once to filter weight in the second preset time period, if in information bank
The completely the same information of Information ID is found, then is abandoned the short message newly received, and processing result is fed back into short message transmission and is put down
Platform.Above-mentioned second preset time period can be configured according to actual needs, be such as arranged 12 a length of when the second preset time period
Hour, one day, 7 days, 15 days, one month etc..
It should be noted that short message sends platform can be by the Information ID again after a certain Information ID is deleted or is invalid
It is medium to be allocated into write-in Information ID library.Information ID library is for storing Information ID.
Step S204: the short message is then stored in letter by short message identical with the information encoding of the short message if it does not exist
It ceases in library, and feedback reception pass signal to the short message sends platform.
Specifically, short message identical with the information encoding of the short message if it does not exist will then be received by second channel
The short message is stored in information bank.It should be noted that above- mentioned information library is for storing the short message received by second channel.
After receiving short message and completing storage operation, platform feedback reception pass signal is sent to short message.
It should be noted that if mobile terminal reception failure, then will not feedback signal to short message send platform, when short message is sent out
When platform being sent not receive any signal of mobile terminal feedback in third prefixed time interval, then first passage is selected again
Send the short message.Whether above-mentioned third prefixed time interval equally can to detect short message and receive successfully and be arranged
It is configured, such as is set as 10 seconds, 20 seconds according to actual needs.
In a possible implementation, short message identical with the information encoding of the short message, then delete institute if it exists
State short message.
Specifically, in order to avoid information bank repeats storage short message, once if short message ID complete one is found in information bank
The information of cause then abandons the short message newly received, and processing result is fed back to short message and sends platform.
Referring to Fig. 3, Fig. 3 shows a kind of the specific of the S102 for SMS processing method that another embodiment of the application provides
Implementation flow chart.The present embodiment and a upper embodiment the difference is that, the message identification code in the present embodiment includes information
Number and channel number number, S102 includes following multiple steps in a kind of SMS processing method provided in this embodiment, is described in detail such as
Under:
Step S301: in the first preset time period of inquiry in described information storehouse with the presence or absence of the information encoding of short message with it is described
The identical short message of the information encoding of information.
Specifically, after the information for receiving first passage transmission, using the information encoding of the information as index in the letter
It ceases and searches data identical with the information encoding in library.
It should be noted that above-mentioned inquiry operation can not be subject to herein by database language (sql like language) Lai Shixian
It repeats.
Step S302: if the information encoding for inquiring short message short message identical with the information encoding of the information, is inquired
Whether operator's channel number of the short message is identical as the channel number number.
Specifically, if finding data identical with the information encoding in information bank, which is screened,
Whether the operator's channel number for further verifying the data is identical as the channel number number of the information.
Step S303: if operator's channel number is identical as the channel number number, it is determined that described information storehouse exists
Meet the short message of preset condition;If operator's channel number is numbered not identical with the channel number, it is determined that described information storehouse
There is no the short messages for meeting preset condition.
Specifically, when information encoding is identical and channel number number is identical, then the information bank, which exists, meets the short of preset condition
Letter, otherwise the short message for meeting preset condition is not present in the information bank.
It should be noted that can also first inquire in the information bank in the first preset time period with the presence or absence of operator channel
Number identical short message is encoded with the channel number of the information, and if it exists, further inquire the information encoding of the short message screened
It is whether identical as the information encoding of the information received, if they are the same, then illustrate that the short message meets preset condition, i.e. information inventory
In the short message for meeting preset condition, the short message for the condition that meets is screened from information bank.
In one possible implementation, said short message processing method further include: feedback processing result to the short message
Send platform.
Specifically, above-mentioned processing result includes but is not limited to: abandoning the information, deletes to meet in described information storehouse and preset
The short message of condition deletes repetition short message and successful reception short message etc..
SMS processing method provided in this embodiment determines the information received by information encoding and channel number number
Whether repeated with the short message stored in information bank, can effectively and quickly find out duplicate short message, further verifying should
Whether short message has been shown, and the information received is abandoned if having shown that, if having not yet been displayed, it is short that this is deleted from information bank
Letter, then shows the information received, can be effectively prevented from the short message that repetition stores identical content, effectively rejecting first passage
The duplicate message sent respectively with second channel so that short message display interface is more succinct, while saving storage resource, improves terminal
Operational efficiency.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Referring to Fig. 4, corresponding to SMS processing method described in foregoing embodiments, Fig. 4 shows the embodiment of the present application and mentions
The structural block diagram of the short message processing device of confession illustrates only part relevant to the embodiment of the present application for ease of description.
Referring to Fig. 4, the device include receiving module 401, enquiry module 402, authentication module 403, discard module 404 and
Memory module 405.
Receiving module 401 is used to receive short message and sends the information that platform is sent by first passage, and the information includes letter
Cease identification code.
Enquiry module 402, which is used to whether there is according to message identification code query information library, meets the short of preset condition
Letter, described information storehouse are used to store short message and send the short message that platform is sent by second channel.
If authentication module 403 has the short message for meeting preset condition for described information storehouse, whether the short message is verified
In display state.
If discard module 404 is in display state for the short message, the information is abandoned.
If memory module 405 is not at display state for the short message, deletes and meet default item in described information storehouse
The short message of part, and store the information that the first passage is sent.
Optionally, said short message processing unit further includes second channel module, legitimate verification module and searching module.
Second channel module is for receiving the short message that SMS platform is sent by second channel.
Legitimate verification module is used to verify the legitimacy of the short message.
If searching module is legal for the short message, searching in the second preset time period whether there is and institute in information bank
State the identical short message of information encoding of short message;Short message identical with the information encoding of the short message if it does not exist, then will be described short
Letter is stored in information bank, and feedback reception pass signal to the short message sends platform.
Optionally, above-mentioned enquiry module 402 includes the first query unit, the second query unit and determination unit.
First query unit is used to inquire in the first preset time period and compile in described information storehouse with the presence or absence of the information of short message
Number short message identical with the information encoding of the information.
If the second query unit is used to inquire the information encoding short message identical with the information encoding of the information of short message,
Whether the operator's channel number for then inquiring the short message is identical as the channel number number.
If determination unit is identical as the channel number number for operator's channel number, it is determined that described information storehouse is deposited
In the short message for meeting preset condition;If operator's channel number is numbered not identical with the channel number, it is determined that the information
The short message for meeting preset condition is not present in library.
Optionally, above-mentioned legitimate verification module includes authentication unit.
Authentication unit is used to whether verify the short message according to the format of the short message, short message content and short message sending time
It is legal;If the short message is illegal, the short message is abandoned.
Optionally, said short message processing unit further includes display module and feedback module.
If the short message for meeting preset condition is not present for described information storehouse for display module, the information is shown short
Believe in display interface.
Feedback module sends platform for feedback processing result to the short message.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
It should be noted that the contents such as information exchange, implementation procedure between above-mentioned apparatus/unit, due to the application
Embodiment of the method is based on same design, concrete function and bring technical effect, for details, reference can be made to embodiment of the method part, this
Place repeats no more.
Therefore, short message processing device provided in this embodiment can equally lead to receiving short message transmission platform by first
After the information that road is sent, the short message for meeting preset condition is first searched whether in information bank, if it is present continuing verifying should
Whether short message has been shown, and the information received is abandoned if having shown that, if having not yet been displayed, it is short that this is deleted from information bank
Letter, can be effectively prevented from the short message that repetition stores identical content, and effect rejects the weight that first passage and second channel are sent respectively
Complex information so that short message display interface is more succinct, while saving storage resource, improves the operational efficiency of terminal.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram for the terminal device that one embodiment of the application provides.As shown in figure 5, should
The terminal device 5 of embodiment includes: at least one processor 50 (only showing one in Fig. 5) processor, memory 51 and deposits
Store up the computer program 52 that can be run in the memory 51 and at least one described processor 50, the processor 50
The step in above-mentioned any each SMS processing method embodiment is realized when executing the computer program 52.
Illustratively, the computer program 52 can be divided into one or more units, one or more of
Unit is stored in the memory 51, and is executed by the processor 50, to complete the application.One or more of lists
Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey
Implementation procedure of the sequence 52 in the terminal device 5.For example, the computer program 52 can be divided into receiving module, look into
It is as follows to ask module, authentication module, discard module and memory module, each unit concrete function:
Receiving module sends the information that platform is sent by first passage for receiving short message, and the information includes information
Identification code;
Enquiry module, for whether there is the short message for meeting preset condition according to message identification code query information library,
Described information storehouse is used to store short message and sends the short message that platform is sent by second channel;
Authentication module verifies whether the short message is located if there is the short message for meeting preset condition for described information storehouse
In display state;
Discard module abandons the information if being in display state for the short message;
Memory module deletes if being not at display state for the short message and meets preset condition in described information storehouse
Short message, and store the information that the first passage is sent.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.Short message processing device/the terminal device may include, but be not limited only to, processor 50, memory 51.Those skilled in the art
It is appreciated that Fig. 5 is only the citing of terminal device 5, the restriction to terminal device 5 is not constituted, may include than illustrating more
More or less component perhaps combines certain components or different components, such as can also include input-output equipment, net
Network access device etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), the processor
50 can also be other general processors, digital signal processor (Digital Signal Processor, DSP), dedicated collection
At circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as terminal in some embodiments
The hard disk or memory of equipment 5.The memory 51 is also possible to the external storage of the terminal device 5 in further embodiments
The plug-in type hard disk being equipped in equipment, such as the terminal device 5, intelligent memory card (Smart Media Card, SMC), peace
Digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 51 can be with
Both including the * * device/terminal device 5 internal storage unit and also including External memory equipment.The memory 51 is for depositing
Store up operating system, application program, Boot loader (BootLoader), data and other programs etc., such as the calculating
The program code etc. of machine program.The memory 51 can be also used for temporarily storing the number that has exported or will export
According to.
The embodiment of the present application also provides a kind of network equipment, which includes: at least one processor, memory
And the computer program that can be run in the memory and at least one described processor is stored, the processor is held
The step in above-mentioned any each embodiment of the method is realized when the row computer program.
The embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable recording medium storage
There is computer program, the step that can be achieved in above-mentioned each embodiment of the method is realized when the computer program is executed by processor
Suddenly.
The embodiment of the present application provides a kind of computer program product, when computer program product is run on mobile terminals
When, so that realizing the step that can be achieved in above-mentioned each embodiment of the method when mobile terminal execution.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the application realizes above-described embodiment side
All or part of the process in method can instruct relevant hardware to complete by computer program, the computer journey
Sequence can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each
The step of embodiment of the method.Wherein, the computer program includes computer program code, and the computer program code can be with
For source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium at least may be used
With include: computer program code can be carried to any entity of camera arrangement/terminal device or device, recording medium,
Computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), electric carrier signal, telecommunication signal and software distribution medium.Such as USB flash disk, mobile hard disk, magnetic disk or
CD etc..In certain jurisdictions, according to legislation and patent practice, computer-readable medium cannot be electric carrier signal and
Telecommunication signal.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/network equipment and method, it can be with
It realizes by another way.For example, device described above/network equipment embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of SMS processing method characterized by comprising
It receives short message and sends the information that platform is sent by first passage, the information includes message identification code;
It whether there is the short message for meeting preset condition according to message identification code query information library, described information storehouse is for storing
Short message sends the short message that platform is sent by second channel;
If described information storehouse has the short message for meeting preset condition, verify whether the short message is in display state;
If the short message is in display state, the information is abandoned;
If the short message is not at display state, the short message for meeting preset condition in described information storehouse is deleted, and described in storage
The information that first passage is sent.
2. SMS processing method as described in claim 1, which is characterized in that the message identification code includes information encoding and leads to
Taoist monastic name number;
It is described to whether there is the short message for meeting preset condition according to message identification code query information library, comprising:
It inquires in the first preset time period and is compiled in described information storehouse with the presence or absence of the information of the information encoding of short message and the information
Number identical short message;
If the information encoding for inquiring short message short message identical with the information encoding of the information, inquires the operation of the short message
Whether quotient's channel number is identical as the channel number number;
If operator's channel number is identical as the channel number number, it is determined that described information storehouse, which exists, meets preset condition
Short message;If operator's channel number is numbered not identical with the channel number, it is determined that described information storehouse is default there is no meeting
The short message of condition.
3. SMS processing method as described in claim 1, which is characterized in that send platform in the reception short message and pass through first
Before the information that channel is sent, further includes:
Receive the short message that SMS platform is sent by second channel;
Verify the legitimacy of the short message;
If the short message is legal, the information encoding that whether there is in information bank in the second preset time period with the short message is searched
Identical short message;
The short message, then be stored in information bank, and feed back by short message identical with the information encoding of the short message if it does not exist
It receives pass signal to the short message and sends platform.
4. SMS processing method as claimed in claim 3, which is characterized in that the legitimacy of the verifying short message, comprising:
It is whether legal that the short message is verified according to the format of the short message, short message content and short message sending time;
If the short message is illegal, the short message is abandoned.
5. SMS processing method as claimed in claim 3, which is characterized in that further include:
Short message identical with the information encoding of the short message if it exists, then delete the short message.
6. SMS processing method as described in claim 1, which is characterized in that the SMS processing method further include:
If the short message for meeting preset condition is not present in described information storehouse, the information is shown in short message display interface.
7. the SMS processing method as described in claim 1 to 6 any one, which is characterized in that the SMS processing method is also
Include:
Feedback processing result to the short message sends platform.
8. a kind of short message processing device characterized by comprising
Receiving module sends the information that platform is sent by first passage for receiving short message, and the information includes information identification
Code;
Enquiry module, it is described for whether there is the short message for meeting preset condition according to message identification code query information library
Information bank is used to store short message and sends the short message that platform is sent by second channel;
Authentication module verifies whether the short message is in aobvious if there is the short message for meeting preset condition for described information storehouse
Show state;
Discard module abandons the information if being in display state for the short message;
Memory module deletes if being not at display state for the short message and meets the short of preset condition in described information storehouse
Letter, and store the information that the first passage is sent.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program
Described in any item methods.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the computer program realizes method as described in any one of claim 1 to 7 when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910808732.6A CN110493735B (en) | 2019-08-29 | 2019-08-29 | Short message processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910808732.6A CN110493735B (en) | 2019-08-29 | 2019-08-29 | Short message processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110493735A true CN110493735A (en) | 2019-11-22 |
CN110493735B CN110493735B (en) | 2021-12-10 |
Family
ID=68555198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910808732.6A Active CN110493735B (en) | 2019-08-29 | 2019-08-29 | Short message processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110493735B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111356096A (en) * | 2020-02-24 | 2020-06-30 | 维沃移动通信有限公司 | Information sending method and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101282522A (en) * | 2007-04-02 | 2008-10-08 | 乐金电子(中国)研究开发中心有限公司 | Method for prompting short message as well as mobile communication terminal |
US20100048178A1 (en) * | 2008-08-21 | 2010-02-25 | Samsung Electronics Co., Ltd. | Method and apparatus for deleting message in mobile terminal |
CN102387484A (en) * | 2010-08-31 | 2012-03-21 | 比亚迪股份有限公司 | Information transmitting method, information receiving method and communication terminal |
WO2012131659A1 (en) * | 2011-04-01 | 2012-10-04 | Turkcell Iletisim Hizmetleri Anonim Sirketi | A system and a method enabling secure transmission of sms |
CN103516880A (en) * | 2012-06-28 | 2014-01-15 | 中国移动通信集团河北有限公司 | Method and device for sending short messages |
CN104270730A (en) * | 2014-10-29 | 2015-01-07 | 国家电网公司 | System and method for improving ability to send text messages and optimizing sending |
CN104703152A (en) * | 2013-12-10 | 2015-06-10 | 浙江融创信息产业有限公司 | Short message processing method and short message processing device |
CN105491541A (en) * | 2015-11-25 | 2016-04-13 | 华为软件技术有限公司 | A short message acquiring method, terminal and SMSC |
CN106603871A (en) * | 2017-01-18 | 2017-04-26 | 惠州Tcl移动通信有限公司 | Method and system for preventing missing information transmission of mobile terminal |
-
2019
- 2019-08-29 CN CN201910808732.6A patent/CN110493735B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101282522A (en) * | 2007-04-02 | 2008-10-08 | 乐金电子(中国)研究开发中心有限公司 | Method for prompting short message as well as mobile communication terminal |
US20100048178A1 (en) * | 2008-08-21 | 2010-02-25 | Samsung Electronics Co., Ltd. | Method and apparatus for deleting message in mobile terminal |
CN102387484A (en) * | 2010-08-31 | 2012-03-21 | 比亚迪股份有限公司 | Information transmitting method, information receiving method and communication terminal |
WO2012131659A1 (en) * | 2011-04-01 | 2012-10-04 | Turkcell Iletisim Hizmetleri Anonim Sirketi | A system and a method enabling secure transmission of sms |
CN103516880A (en) * | 2012-06-28 | 2014-01-15 | 中国移动通信集团河北有限公司 | Method and device for sending short messages |
CN104703152A (en) * | 2013-12-10 | 2015-06-10 | 浙江融创信息产业有限公司 | Short message processing method and short message processing device |
CN104270730A (en) * | 2014-10-29 | 2015-01-07 | 国家电网公司 | System and method for improving ability to send text messages and optimizing sending |
CN105491541A (en) * | 2015-11-25 | 2016-04-13 | 华为软件技术有限公司 | A short message acquiring method, terminal and SMSC |
CN106603871A (en) * | 2017-01-18 | 2017-04-26 | 惠州Tcl移动通信有限公司 | Method and system for preventing missing information transmission of mobile terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111356096A (en) * | 2020-02-24 | 2020-06-30 | 维沃移动通信有限公司 | Information sending method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110493735B (en) | 2021-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104954322B (en) | A kind of binding processing method of account, apparatus and system | |
CN110378696A (en) | A kind of brush face method of payment, device, readable storage medium storing program for executing and terminal device | |
CN107438833A (en) | A kind of data-updating method, device, system and server | |
CN107404740B (en) | Method for switching network, device and the terminal device of safety | |
CN103297099A (en) | Bluetooth communication method and device | |
CN109510758B (en) | Session establishing method, terminal and system | |
CN110166455A (en) | A kind of multi-operator platform data adaptation method and relevant device | |
CN101420681B (en) | Method and apparatus for processing multi-channel request subscription under service management platform | |
CN108833255A (en) | Communication means, system and block chain node device based on block chain | |
CN110855548A (en) | Message pushing method and device | |
CN109086317A (en) | Risk control method and relevant apparatus | |
CN101616503A (en) | A kind of method of shared telephone number information and device | |
CN110232633A (en) | A kind of electronic signature method, apparatus, storage medium and server | |
CN107612883B (en) | Automatic login method and system for mobile application program | |
CN104796312A (en) | Contact information processing method, device and system | |
CN103546493A (en) | Cross-device communication method | |
CN110493735A (en) | A kind of SMS processing method and device | |
CN102202267B (en) | Calling method, equipment and communication system | |
CN109040050A (en) | Data interactive method and Related product | |
CN109041049A (en) | A kind of addressing method of mobile terminal, device for addressing and terminal device | |
CN109089299A (en) | It is a kind of to allow facility registration to cloud with network method based on SmartConfig mode | |
CN103067910A (en) | Remote card opening method | |
CN110855750B (en) | Downloading method of software development kit and related equipment | |
CN110519160A (en) | Things-internet gateway multimode communication means, device and computer readable storage medium | |
CN105163291A (en) | Mobile terminal and control method for group message thereof |
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 |