CN108650167A - Method, apparatus, electronic equipment and the readable storage medium storing program for executing that message is sent - Google Patents

Method, apparatus, electronic equipment and the readable storage medium storing program for executing that message is sent Download PDF

Info

Publication number
CN108650167A
CN108650167A CN201810284280.1A CN201810284280A CN108650167A CN 108650167 A CN108650167 A CN 108650167A CN 201810284280 A CN201810284280 A CN 201810284280A CN 108650167 A CN108650167 A CN 108650167A
Authority
CN
China
Prior art keywords
message
time interval
sent
client
instruction
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
Application number
CN201810284280.1A
Other languages
Chinese (zh)
Other versions
CN108650167B (en
Inventor
刘亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810284280.1A priority Critical patent/CN108650167B/en
Publication of CN108650167A publication Critical patent/CN108650167A/en
Application granted granted Critical
Publication of CN108650167B publication Critical patent/CN108650167B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of method that message is sent, device, electronic equipment and readable storage medium storing program for executing, instruction is sent by receiving the message that client is sent, determine the time interval of the sending time of the upper a piece of news sent with client, according to time interval and Counter Value, determine whether that sending message sends the corresponding message of instruction, wherein, Counter Value is used to indicate number of the transmission time interval less than prefixed time interval for two message that client continuously transmits, message whether is sent to be limited less than the number of prefixed time interval by the transmission time interval for two message that the time interval and client of the sending time with upper a piece of news continuously transmit, to, reduce the transmission times of rubbish message, improve user experience.

Description

Method, apparatus, electronic equipment and the readable storage medium storing program for executing that message is sent
Technical field
A kind of sent the present embodiments relate to the communication technology more particularly to message method, apparatus, electronic equipment and can Read storage medium.
Background technology
With the rapid development of Internet technology, the application of electronic equipment is more and more extensive, and user pacifies on an electronic device Dress types of applications program (Application, APP) client (such as:Wechat, QQ or nail nail etc.), because what is provided by APP is When communication function carry out message transmission or reception cost it is relatively low, therefore, user often receives advertisement information or disturbs Disturb the rubbish messages such as message so that user experience is not high.
In the prior art, after server receives the message transmission instruction that client is sent, judge continuous two message hair The time interval sent controls client display reminding window, to prompt user message to send out if time interval is less than predetermined threshold value Send frequency too fast, after prompt window shows a period of time, prompt window disappears, and user is allowed to continue to send message.
However, using the method for the prior art, bad to the control effect of rubbish message, user experience is not high.
Invention content
The embodiment of the present invention provides a kind of method, apparatus, electronic equipment and readable storage medium storing program for executing that message is sent, to reduce The transmission times of rubbish message, to improve user experience.
In a first aspect, the embodiment of the present invention provides a kind of method that message is sent, including:
It receives the message that client is sent and sends instruction, when determining the transmission of the upper a piece of news sent with the client Between time interval;
According to the time interval and Counter Value, it is determined whether it sends the message and sends the corresponding message of instruction, Wherein, when the Counter Value is used to indicate the transmission time interval for two message that the client continuously transmits less than presetting Between the number that is spaced.
Optionally, described according to the time interval and counter device value, it is determined whether to send the message transmission and refer to Corresponding message is enabled, including:
If the time interval is less than the prefixed time interval, updates the Counter Value and increase a counting list Position;
If the updated Counter Value is more than predetermined threshold value, the client pop-up identifying code reminding window is controlled Mouthful, to prompt user to input identifying code;
If the identifying code input by user is correct, it is determined that send the message and send the corresponding message of instruction.
Optionally, further include:
If the identifying code mistake input by user, it is determined that refusal sends the message and sends the corresponding message of instruction.
Optionally, further include:
If the updated Counter Value is less than or equal to predetermined threshold value, it is determined that send the message and send instruction pair The message answered.
Optionally, further include:
If the time interval is greater than or equal to prefixed time interval, it is determined that it is corresponding to send the message transmission instruction Message.
Optionally, after the transmission message sends the corresponding message of instruction, further include:
The Counter Value is updated to initial value.
Optionally, the time interval of the sending time for the upper a piece of news that the determination is sent with the client, including:
It obtains the message and sends the recipient for instructing corresponding message;
Determine the time interval of the sending time of the upper a piece of news sent to the recipient with the client.
Second aspect, the embodiment of the present invention provide a kind of device that message is sent, including:
Receiving module, the message for receiving client transmission send instruction, determine upper one sent with the client The time interval of the sending time of message;
Processing module, for according to the time interval and Counter Value, it is determined whether send the message transmission and refer to Enable corresponding message, wherein the Counter Value is used to indicate the sending time for two message that the client continuously transmits Number of the interval less than prefixed time interval.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, including:
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, with realization disappearing as described in relation to the first aspect Cease the method sent.
Fourth aspect, the embodiment of the present invention provide a kind of readable storage medium storing program for executing, meter are stored in the readable storage medium storing program for executing Calculation machine program, when at least one processor of the processing unit for the device that message is sent executes the computer program, message The device of transmission executes the method that message as described in relation to the first aspect is sent.
Method, apparatus, electronic equipment and the readable storage medium storing program for executing that message provided in an embodiment of the present invention is sent, pass through reception The message that client is sent sends instruction, determines the time interval of the sending time of the upper a piece of news sent with client, root According to time interval and Counter Value, it is determined whether send message and send the corresponding message of instruction, wherein Counter Value is for referring to Show that the transmission time interval for two message that client continuously transmits is less than the number of prefixed time interval, i.e., whether sends message By the transmission time interval for two message that the time interval and client of the sending time with upper a piece of news continuously transmit Less than the limitation of the number of prefixed time interval, to reduce the transmission times of rubbish message, improve user experience.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without having to pay creative labor, may be used also for those of ordinary skill in the art With obtain other attached drawings according to these attached drawings.
Fig. 1 is the flow diagram for the method that a kind of message provided in an embodiment of the present invention is sent;
Fig. 2 is the flow diagram for the method that another message provided in an embodiment of the present invention is sent;
Fig. 3 is the flow diagram for the method that another message provided in an embodiment of the present invention is sent;
Fig. 4 is the flow diagram for the method that another message provided in an embodiment of the present invention is sent;
Fig. 5 is the flow diagram for the method that another message provided in an embodiment of the present invention is sent;
Fig. 6 is the flow diagram for the method that another message provided in an embodiment of the present invention is sent;
Fig. 7 is the structural schematic diagram for the device that a kind of message provided in an embodiment of the present invention is sent;
Fig. 8 is the structural schematic diagram for the device that another message provided in an embodiment of the present invention is sent.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Term " first ", " second ", " third " " in description and claims of this specification and above-mentioned attached drawing The (if present)s such as four " are for distinguishing similar object, without being used to describe specific sequence or precedence.It should manage The data that solution uses in this way can be interchanged in the appropriate case, so that the embodiment of the present invention described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " comprising " and " having " and theirs is any Deformation, it is intended that cover it is non-exclusive include, for example, containing the process of series of steps or unit, method, system, production Product or equipment those of are not necessarily limited to clearly to list step or unit, but may include not listing clearly or for this The intrinsic other steps of processes, method, product or equipment or unit a bit.
Fig. 1 is the flow diagram for the method that a kind of message provided in an embodiment of the present invention is sent, and the present embodiment is by servicing Device executes, as shown in Figure 1, the method for the present embodiment is as follows:
S101:It receives the message that client is sent and sends instruction, determine the transmission of the upper a piece of news sent with client The time interval of time.
User can send control triggering after the message that client provides sends the complete message of interface editing by click Message is sent to server and sends instruction, instruction is sent alternatively, being triggered by shortcut key and sending message to server, alternatively, logical It crosses speech trigger and sends message transmission instruction to server, in this regard, the embodiment of the present invention is not limited.
Message sends instruction and sends message for client request server, asks the content of the message sent that can include In message sends instruction.
After server receives the message transmission instruction of client transmission, the upper a piece of news sent with client is determined The time interval of sending time, specifically, server can record the sending time of every message of client transmission, pass through note The sending time for every message that the client of record is sent, it may be determined that the sending time of the upper a piece of news sent with client Time interval.
S102:According to time interval and Counter Value, it is determined whether send message and send the corresponding message of instruction.
Wherein, when Counter Value is used to indicate the transmission time interval for two message that client continuously transmits less than presetting Between the number that is spaced.
Wherein, the length of prefixed time interval can be arranged according to practical application, in this regard, the present invention is not limited.
The present embodiment sends instruction by receiving the message that client is sent, and determination disappears with upper one that client is sent The time interval of the sending time of breath, according to time interval and Counter Value, it is determined whether send message and send instruction correspondence Message, wherein when the transmission time interval that Counter Value is used to indicate two message that client continuously transmits is less than default Between the number that is spaced, i.e., whether send message and continuously sent out by the time interval and client of the sending time with upper a piece of news The transmission time interval for two message sent is less than the limitation of the number of prefixed time interval, to reduce the hair of rubbish message Number is sent, user experience is improved.
Fig. 2 is the flow diagram for the method that another message provided in an embodiment of the present invention is sent, and the present embodiment is by taking Business device executes, and Fig. 2 is the description to the possible realization method of the one of which of S102 on the basis of embodiment shown in Fig. 1, such as Shown in Fig. 2:
S101:It receives the message that client is sent and sends instruction, determine the transmission of the upper a piece of news sent with client The time interval of time.
Detailed description in the detailed description embodiment shown in Figure 1 of S101, details are not described herein again.
S102a:If time interval is less than prefixed time interval, update counter value increases a digit.
Wherein, a digit can be 1,2 or other values, in this regard, the embodiment of the present invention is not limited, work as client Holding the transmission time interval of two message continuously transmitted to be less than, prefixed time interval is primary, and Counter Value increases by one and counts list Position.
S102b:If updated Counter Value is more than predetermined threshold value, client pop-up identifying code prompt window is controlled, To prompt user to input identifying code.
Several updated Counter Values are more than predetermined threshold value, illustrate that the frequency of user's transmission message is relatively high, then control Client pops up identifying code prompt window, to prompt user to input identifying code, wherein the verification mode in identifying code prompt window Can there are many, such as:Correct problem answers can be inputted with by testing in identifying code prompt window display problem, user Card;Alternatively, can identifying code prompt window show word, letter either the user such as number repeatedly input word, letter or Numbers etc. are to pass through verification;Alternatively, the verification mode embodiment of the present invention for identifying code prompt window is not limited.
S102c:If identifying code input by user is correct, it is determined that send message and send the corresponding message of instruction.
It can be by the way that identifying code input by user be compared with preset identifying code, with determination verification input by user Whether code is correct, when comparison result is that identifying code input by user is correct, determines that sending message transmission instructs corresponding message.
Optionally it is determined that after sending the corresponding message of message transmission instruction, update counter value is initial value, such as: Initial value can be 0, in this regard, the embodiment of the present invention is not limited.
The present embodiment, by when Counter Value is more than predetermined threshold value, that is, two message that client continuously transmits Transmission time interval be less than prefixed time interval number be more than predetermined threshold value when, control client pop up identifying code reminding window Mouthful, to prompt user to input verification, when identifying code input by user is correct, it is determined that transmission message transmission instruction is corresponding to disappear Breath, to reduce the transmission times of rubbish message, improve user experience.
Fig. 3 is the flow diagram for the method that another message provided in an embodiment of the present invention is sent, and the present embodiment is by taking Device of being engaged in executes, and on the basis of Fig. 3 is embodiment shown in Fig. 2, further, further includes:S102c ', as shown in Figure 3:
S101:It receives the message that client is sent and sends instruction, determine the transmission of the upper a piece of news sent with client The time interval of time.
S102a:If time interval is less than the prefixed time interval, update counter value increases a digit.
S102b:If updated Counter Value is more than predetermined threshold value, client pop-up identifying code prompt window is controlled, To prompt user to input identifying code.
S102c:If identifying code input by user is correct, it is determined that send message and send the corresponding message of instruction.
S102c’:If identifying code mistake input by user, it is determined that refusal sends message and sends the corresponding message of instruction.
Wherein, corresponding steps in the detailed description embodiment shown in Figure 2 of S101, S102a, S102b, S102c Detailed description, details are not described herein again.
When identifying code mistake input by user, then refuse to send the corresponding message of message transmission instruction.It is alternatively possible to The prompting message that client shows authentication failed is controlled, alternatively, control client display sends the prompting message of failure, with prompt User message sends failure.
The present embodiment, by when Counter Value is more than predetermined threshold value, that is, two message that client continuously transmits Transmission time interval be less than prefixed time interval number be more than predetermined threshold value when, control client pop up identifying code reminding window Mouthful, to prompt user to input verification, when identifying code input by user is correct, it is determined that transmission message transmission instruction is corresponding to disappear Breath, when identifying code mistake input by user, it is determined that refusal sends message and sends the corresponding message of instruction, to reduce rubbish The transmission times of rubbish message improves user experience.
Fig. 4 is the flow diagram for the method that another message provided in an embodiment of the present invention is sent, and the present embodiment is by taking Device of being engaged in executes, and on the basis of Fig. 4 is embodiment shown in Fig. 3, further, further includes:S102b ', as shown in Figure 4:
S101:It receives the message that client is sent and sends instruction, determine the transmission of the upper a piece of news sent with client The time interval of time.
S102a:If time interval is less than the prefixed time interval, update counter value increases a digit.
S102b’:If updated Counter Value is less than or equal to predetermined threshold value, it is determined that send message and send instruction pair The message answered.
S102b:If updated Counter Value is more than predetermined threshold value, client pop-up identifying code prompt window is controlled, To prompt user to input identifying code.
S102c:If identifying code input by user is correct, it is determined that send message and send the corresponding message of instruction.
S102c’:If identifying code mistake input by user, it is determined that refusal sends message and sends the corresponding message of instruction.
Wherein, S101, S102a, S102b, S102c, S102c ' detailed description embodiment shown in Figure 3 in it is corresponding The detailed description of step, details are not described herein again.
The present embodiment is less than or equal to predetermined threshold value, it is determined that send message and send by working as updated Counter Value Corresponding message is instructed, when Counter Value is more than predetermined threshold value, that is, the transmission of two message that client continuously transmits When the number that time interval is less than prefixed time interval is more than predetermined threshold value, control client pops up identifying code prompt window, with User is prompted to input verification, when identifying code input by user is correct, it is determined that it sends message transmission and instructs corresponding message, when When identifying code mistake input by user, it is determined that refusal sends message and sends the corresponding message of instruction, to reduce rubbish message Transmission times, improve user experience.
Fig. 5 is the flow diagram for the method that another message provided in an embodiment of the present invention is sent, and the present embodiment is by taking Device of being engaged in executes, and on the basis of Fig. 5 is embodiment shown in Fig. 4, further, further includes:S102a ', as shown in Figure 5:
S101:It receives the message that client is sent and sends instruction, determine the transmission of the upper a piece of news sent with client The time interval of time.
S102a’:If time interval is greater than or equal to prefixed time interval, it is determined that it is corresponding to send message transmission instruction Message.
If time interval is greater than or equal to prefixed time interval, when illustrating the transmission of the upper a piece of news sent with client Between time interval it is more long, instruct corresponding message hence, it can be determined that sending message and sending.
S102a:If time interval is less than the prefixed time interval, update counter value increases a digit.
S102b’:If updated Counter Value is less than or equal to predetermined threshold value, it is determined that send message and send instruction pair The message answered.
S102b:If updated Counter Value is more than predetermined threshold value, client pop-up identifying code prompt window is controlled, To prompt user to input identifying code;
S102c’:If identifying code input by user is correct, it is determined that send message and send the corresponding message of instruction.
S102c:If identifying code mistake input by user, it is determined that refusal sends message and sends the corresponding message of instruction.
Wherein, the detailed description embodiment shown in Figure 4 of S101, S102a, S102b ', S102b, S102c, S102c ' In corresponding steps detailed description, details are not described herein again.
The present embodiment, the message by receiving client transmission are sent after instruction, however, it is determined that are sent out with the client When the time interval of the sending time of the upper a piece of news sent is greater than or equal to prefixed time interval, it is determined that send message and send Instruct corresponding message, however, it is determined that the time interval of the sending time of the upper a piece of news sent with the client is less than default When time interval, then update counter value, when updated Counter Value is less than or equal to predetermined threshold value, it is determined that send message It sends and instructs corresponding message, when Counter Value is more than predetermined threshold value, that is, two message continuously transmitting of client When the number that transmission time interval is less than prefixed time interval is more than predetermined threshold value, control client pops up identifying code reminding window Mouthful, to prompt user to input verification, when identifying code input by user is correct, it is determined that transmission message transmission instruction is corresponding to disappear Breath, when identifying code mistake input by user, it is determined that refusal sends message and sends the corresponding message of instruction, to reduce rubbish The transmission times of rubbish message improves user experience.
Fig. 6 is the flow diagram for the method that another message provided in an embodiment of the present invention is sent, and the present embodiment is by taking Business device executes, and the method for the present embodiment is applied to reduce the scene for the number for sending rubbish message to same recipient, such as Fig. 6 institutes Show:
S101a:It receives the message that client is sent and sends instruction.
S101b:It obtains message and sends the recipient for instructing corresponding message.
The purpose IP address for instructing corresponding message, target MAC (Media Access Control) address, destination host title etc. can be sent by message Determine recipient.
S101c:Determine the time interval of the sending time of the upper a piece of news sent to the recipient with client.
S102:According to time interval and Counter Value, it is determined whether send message and send the corresponding message of instruction.
Wherein, Counter Value is used to indicate the transmission time interval for two message that the client continuously transmits less than pre- If the number of time interval.
Wherein, the detailed description of the corresponding steps in the detailed description embodiment shown in Figure 1 of S102, it is no longer superfluous herein It states.
The present embodiment sends instruction by receiving the message that client is sent, and acquisition message, which is sent, instructs corresponding message Recipient, determine the time interval of the sending time of the upper a piece of news sent to the recipient with client, according to when Between be spaced and Counter Value, it is determined whether send message and send and instruct corresponding message, to reduce and be sent out to same recipient The number of rubbish message is sent, user experience is improved.
Fig. 7 is the structural schematic diagram for the device that a kind of message provided in an embodiment of the present invention is sent, as shown in fig. 7, this reality The device for applying example is disposed in the server, and the device of the present embodiment includes receiving module 701 and processing module 702, wherein is received The message that module 701 is used to receive client transmission sends instruction, determines the hair of the upper a piece of news sent with the client Send the time interval of time;Processing module 702 is used for according to the time interval and Counter Value, it is determined whether described in transmission Message, which is sent, instructs corresponding message, wherein the Counter Value is used to indicate two message that the client continuously transmits Transmission time interval be less than prefixed time interval number.
The corresponding technical solution that can be used for executing embodiment of the method shown in Fig. 1 of the device of the present embodiment, realization principle Similar, details are not described herein again.
The present embodiment, the message that client transmission is received by receiving module send instruction, determine and client transmission The time interval of the sending time of upper a piece of news, processing module is according to time interval and Counter Value, it is determined whether sends Message, which is sent, instructs corresponding message, wherein when Counter Value is used to indicate the transmission for two message that client continuously transmits Between interval less than prefixed time interval number, i.e., whether send time interval of the message by the sending time with upper a piece of news And the transmission time interval of two message that continuously transmits of client is less than the limitation of the number of prefixed time interval, to, The transmission times of rubbish message is reduced, user experience is improved.
The embodiment of the present invention also provides a kind of structural schematic diagram for the device that message is sent, as shown in fig. 7, the present embodiment Device includes receiving module 701 and processing module 702, wherein the message that receiving module 701 is used to receive client transmission is sent Instruction determines the time interval of the sending time of the upper a piece of news sent with the client;If processing module 702 is used for institute It states time interval and is less than the prefixed time interval, then update the Counter Value and increase a digit;If the update Counter Value afterwards is more than predetermined threshold value, then controls the client pop-up identifying code prompt window, to prompt user's input to test Demonstrate,prove code;If the identifying code input by user is correct, it is determined that send the message and send the corresponding message of instruction, wherein institute It states Counter Value and is used to indicate the transmission time interval for two message that the client continuously transmits less than prefixed time interval Number.
Optionally, it is initial value that processing module 702, which is additionally operable to update counter value,.
The corresponding technical solution that can be used for executing embodiment of the method shown in Fig. 2 of the device of the present embodiment, realization principle Similar, details are not described herein again.
The present embodiment, by when Counter Value is more than predetermined threshold value, that is, two message that client continuously transmits Transmission time interval be less than prefixed time interval number be more than predetermined threshold value when, processing module control client pop-up verification Code prompt window, to prompt user to input verification, when identifying code input by user is correct, it is determined that send message and send instruction Corresponding message, to reduce the transmission times of rubbish message, improve user experience.
The embodiment of the present invention also provides a kind of structural schematic diagram for the device that message is sent, as shown in fig. 7, the present embodiment Device includes receiving module 701 and processing module 702, wherein the message that receiving module 701 is used to receive client transmission is sent Instruction determines the time interval of the sending time of the upper a piece of news sent with the client;If processing module 702 is used for institute It states time interval and is less than the prefixed time interval, then update the Counter Value and increase a digit;If the update Counter Value afterwards is more than predetermined threshold value, then controls the client pop-up identifying code prompt window, to prompt user's input to test Demonstrate,prove code;If the identifying code input by user is correct, it is determined that send the message and send the corresponding message of instruction, if the use The identifying code mistake of family input, it is determined that refusal sends the message and sends the corresponding message of instruction.Wherein, the Counter Value The transmission time interval for being used to indicate two message that the client continuously transmits is less than the number of prefixed time interval.
The corresponding technical solution that can be used for executing embodiment of the method shown in Fig. 3 of the device of the present embodiment, realization principle Similar, details are not described herein again.
The present embodiment, by when Counter Value is more than predetermined threshold value, that is, two message that client continuously transmits Transmission time interval be less than prefixed time interval number be more than predetermined threshold value when, processing module control client pop-up verification Code prompt window, to prompt user to input verification, when identifying code input by user is correct, it is determined that send message and send instruction Corresponding message, when identifying code mistake input by user, it is determined that refusal sends message and sends the corresponding message of instruction, from And the transmission times of rubbish message is reduced, improve user experience.
The embodiment of the present invention also provides a kind of structural schematic diagram for the device that message is sent, as shown in fig. 7, the present embodiment Device includes receiving module 701 and processing module 702, wherein the message that receiving module 701 is used to receive client transmission is sent Instruction determines the time interval of the sending time of the upper a piece of news sent with the client;If processing module 702 is used for institute It states time interval and is less than the prefixed time interval, then update the Counter Value and increase a digit;If the update Counter Value afterwards is less than or equal to predetermined threshold value, it is determined that sends the message and sends the corresponding message of instruction.If it is described more Counter Value after new is more than predetermined threshold value, then the client pop-up identifying code prompt window is controlled, to prompt user to input Identifying code;If the identifying code input by user is correct, it is determined that send the message and send the corresponding message of instruction, if described Identifying code mistake input by user, it is determined that refusal sends the message and sends the corresponding message of instruction.Wherein, the counter Value is used to indicate number of the transmission time interval less than prefixed time interval for two message that the client continuously transmits.
The corresponding technical solution that can be used for executing embodiment of the method shown in Fig. 4 of the device of the present embodiment, realization principle Similar, details are not described herein again.
The present embodiment is less than or equal to predetermined threshold value by working as updated Counter Value, and processing module is then determined and sent Message, which is sent, instructs corresponding message, and when Counter Value is more than predetermined threshold value, that is, continuously transmit two of client disappear When the number that the transmission time interval of breath is less than prefixed time interval is more than predetermined threshold value, control client pop-up identifying code prompt Window, to prompt user to input verification, when identifying code input by user is correct, it is determined that it is corresponding to send message transmission instruction Message, when identifying code mistake input by user, it is determined that refusal sends message and sends the corresponding message of instruction, to reduce The transmission times of rubbish message improves user experience.
The embodiment of the present invention also provides a kind of structural schematic diagram for the device that message is sent, as shown in fig. 7, the present embodiment Device includes receiving module 701 and processing module 702, wherein the message that receiving module 701 is used to receive client transmission is sent Instruction determines the time interval of the sending time of the upper a piece of news sent with the client;If processing module 702 is used for institute It states time interval and is greater than or equal to prefixed time interval, it is determined that send the message and send the corresponding message of instruction, if described Time interval is less than the prefixed time interval, then updates the Counter Value and increase a digit;If after the update Counter Value be less than or equal to predetermined threshold value, it is determined that send the message and send and instruct corresponding message.If the update Counter Value afterwards is more than predetermined threshold value, then controls the client pop-up identifying code prompt window, to prompt user's input to test Demonstrate,prove code;If the identifying code input by user is correct, it is determined that send the message and send the corresponding message of instruction, if the use The identifying code mistake of family input, it is determined that refusal sends the message and sends the corresponding message of instruction.Wherein, the Counter Value The transmission time interval for being used to indicate two message that the client continuously transmits is less than the number of prefixed time interval.
The corresponding technical solution that can be used for executing embodiment of the method shown in Fig. 5 of the device of the present embodiment, realization principle Similar, details are not described herein again.
The present embodiment, after the message transmission instruction that client transmission is received by receiving module, if processing module is true When the time interval of the sending time of the fixed upper a piece of news sent with the client is greater than or equal to prefixed time interval, then Determine that sending message sends the corresponding message of instruction, however, it is determined that the sending time of the upper a piece of news sent with the client When time interval is less than prefixed time interval, then update counter value, threshold is preset when updated Counter Value is less than or equal to Value, it is determined that send message and send the corresponding message of instruction, when Counter Value is more than predetermined threshold value, that is, client is continuous When the number that the transmission time interval of two message sent is less than prefixed time interval is more than predetermined threshold value, client bullet is controlled Go out identifying code prompt window, to prompt user to input verification, when identifying code input by user is correct, it is determined that send message hair Send instruction corresponding message, when identifying code mistake input by user, it is determined that refusal sends message transmission and instructs corresponding disappear Breath, to reduce the transmission times of rubbish message, improve user experience.
The embodiment of the present invention also provides a kind of structural schematic diagram for the device that message is sent, as shown in fig. 7, the present embodiment Device includes receiving module 701 and processing module 702, wherein receiving module 701 sends instruction correspondence for obtaining the message Message recipient;Between the time of the sending time for the upper a piece of news that the determining and described client is sent to the recipient Every;Processing module 702 is used for according to the time interval and Counter Value, it is determined whether is sent the message and is sent instruction pair The message answered, wherein the Counter Value is used to indicate the transmission time interval for two message that the client continuously transmits Less than the number of prefixed time interval.
The corresponding technical solution that can be used for executing embodiment of the method shown in Fig. 6 of the device of the present embodiment, realization principle Similar, details are not described herein again.
The present embodiment receives the message that client is sent by receiving module and sends instruction, obtains message and send instruction pair The recipient for the message answered, between the time of the sending time for the upper a piece of news that determining and client is sent to the recipient Every processing module is according to time interval and Counter Value, it is determined whether it sends message and sends the corresponding message of instruction, to, The number for sending rubbish message to same recipient is reduced, user experience is improved.
The device that can be sent according to above method example message in each device embodiment of the present invention carries out function module It divides, for example, can correspond to each function divides each function module, two or more functions can also be integrated in In one processing module.The form that hardware had both may be used in above-mentioned integrated module is realized, software function module can also be used Form realize.It should be noted that being schematical, only a kind of logic to the division of module in various embodiments of the present invention Function divides, formula that in actual implementation, there may be another division manner.
Fig. 8 is the structural schematic diagram for the device that another message provided in an embodiment of the present invention is sent, including:Memory 81 With processor 82, wherein memory 81, for storing program instruction, which can be flash (flash memory).Processor 82, For calling and executing the program instruction in memory, with realize Fig. 1~Fig. 6 it is any shown in message send method in it is each A step.The specific associated description that may refer in previous methods embodiment.
Optionally, memory 81 can also be that memory 81 is integrated with processor 82 either independent.
The embodiment of the present invention also provides a kind of electronic equipment, the electronic equipment for execute Fig. 1~Fig. 6 it is any shown in disappear Cease each step in the method sent.
The present invention also provides a kind of readable storage medium storing program for executing, it is stored with computer program in readable storage medium storing program for executing, when message is sent out When at least one processor of the device sent executes the computer program, it is any described that device that message is sent executes Fig. 1~Fig. 6 Method.
The present invention also provides a kind of program product, which includes computer program, which is stored in In readable storage medium storing program for executing.At least one processor for the device that message is sent can read the computer journey from readable storage medium storing program for executing Sequence, at least one processor execute the device that the computer program so that message is sent and implement any sides Fig. 1~Fig. 6 Method.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of method that message is sent, which is characterized in that including:
It receives the message that client is sent and sends instruction, determine the sending time of the upper a piece of news sent with the client Time interval;
According to the time interval and Counter Value, it is determined whether send the message and send the corresponding message of instruction, wherein The transmission time interval that the Counter Value is used to indicate two message that the client continuously transmits is less than between preset time Every number.
2. according to the method described in claim 1, it is characterized in that, described according to the time interval and counter device value, Determine whether that sending the message sends the corresponding message of instruction, including:
If the time interval is less than the prefixed time interval, updates the Counter Value and increase a digit;
If the updated Counter Value is more than predetermined threshold value, the client pop-up identifying code prompt window is controlled, with User is prompted to input identifying code;
If the identifying code input by user is correct, it is determined that send the message and send the corresponding message of instruction.
3. according to the method described in claim 2, it is characterized in that, further including:
If the identifying code mistake input by user, it is determined that refusal sends the message and sends the corresponding message of instruction.
4. according to the method described in claim 3, it is characterized in that, further including:
If the updated Counter Value is less than or equal to predetermined threshold value, it is determined that it is corresponding to send the message transmission instruction Message.
5. according to the method described in claim 4, it is characterized in that, further including:
If the time interval is greater than or equal to prefixed time interval, it is determined that send the message transmission and instruct corresponding disappear Breath.
6. according to the method described in claim 2, it is characterized in that, it is described send the message send instruct corresponding message it Afterwards, further include:
The Counter Value is updated to initial value.
7. according to claim 1-6 any one of them methods, which is characterized in that
The time interval of the sending time for the upper a piece of news that the determination is sent with the client, including:
It obtains the message and sends the recipient for instructing corresponding message;
Determine the time interval of the sending time of the upper a piece of news sent to the recipient with the client.
8. the device that a kind of message is sent, which is characterized in that including:
Receiving module, the message for receiving client transmission send instruction, and determination disappears with upper one that the client is sent The time interval of the sending time of breath;
Processing module, for according to the time interval and Counter Value, it is determined whether send the message and send instruction pair The message answered, wherein the Counter Value is used to indicate the transmission time interval for two message that the client continuously transmits Less than the number of prefixed time interval.
9. a kind of electronic equipment, which is characterized in that including:
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, to realize described in any one of claim 1~7 Message send method.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program in the readable storage medium storing program for executing, work as message When at least one processor of the processing unit of the device of transmission executes the computer program, the device right of execution of message transmission Profit requires the method that 1~7 any one of them message is sent.
CN201810284280.1A 2018-04-02 2018-04-02 Message sending method and device, electronic equipment and readable storage medium Active CN108650167B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810284280.1A CN108650167B (en) 2018-04-02 2018-04-02 Message sending method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810284280.1A CN108650167B (en) 2018-04-02 2018-04-02 Message sending method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN108650167A true CN108650167A (en) 2018-10-12
CN108650167B CN108650167B (en) 2021-06-01

Family

ID=63745290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810284280.1A Active CN108650167B (en) 2018-04-02 2018-04-02 Message sending method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN108650167B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325561A (en) * 2007-06-12 2008-12-17 阿里巴巴集团控股有限公司 Method, apparatus and system for processing electronic mail
CN102231888A (en) * 2011-06-24 2011-11-02 中兴通讯股份有限公司 Monitoring method and device
CN102315955A (en) * 2010-06-30 2012-01-11 上海薄荷信息科技有限公司 Control method for setting obstruction for junk information and corresponding control device
US8180835B1 (en) * 2006-10-14 2012-05-15 Engate Technology Corporation System and method for protecting mail servers from mail flood attacks
CN102572746A (en) * 2010-12-28 2012-07-11 上海粱江通信系统股份有限公司 Method for identifying spam message source based on frequency and user sending behavior characteristics
US20170280402A1 (en) * 2016-03-22 2017-09-28 Prof. Christoph Ruland Verification of Time Information transmitted by Time Signals or Time Telegrams

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8180835B1 (en) * 2006-10-14 2012-05-15 Engate Technology Corporation System and method for protecting mail servers from mail flood attacks
CN101325561A (en) * 2007-06-12 2008-12-17 阿里巴巴集团控股有限公司 Method, apparatus and system for processing electronic mail
CN102315955A (en) * 2010-06-30 2012-01-11 上海薄荷信息科技有限公司 Control method for setting obstruction for junk information and corresponding control device
CN102572746A (en) * 2010-12-28 2012-07-11 上海粱江通信系统股份有限公司 Method for identifying spam message source based on frequency and user sending behavior characteristics
CN102231888A (en) * 2011-06-24 2011-11-02 中兴通讯股份有限公司 Monitoring method and device
US20170280402A1 (en) * 2016-03-22 2017-09-28 Prof. Christoph Ruland Verification of Time Information transmitted by Time Signals or Time Telegrams

Also Published As

Publication number Publication date
CN108650167B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
US10785345B2 (en) Information processing method, client, server and computer-readable storage medium
EP3373543B1 (en) Service processing method and apparatus
KR101547194B1 (en) Method and application for managing cookie-information
US9916218B2 (en) Method and apparatus for intercepting implanted information in application
CN106911687B (en) Page construction control method and device
EP2994828B1 (en) Apps store with integrated test support
CN110099130B (en) Configuration updating method and device and server
CN109542289B (en) MES operation method, device, equipment and storage medium
CN110889039A (en) Method and equipment for pushing books in reading application
CN110851583A (en) Novel recommendation method and device
CN105100262A (en) Resource distribution method, server and terminal device
CN109271778B (en) Using installation source differentiating method, electronic equipment and computer storage medium
CN106155746A (en) Installation file processing method and device and server
CN106445479B (en) Information-pushing method and device
CN107273112A (en) A kind of present list method for information display and device
CN111736825B (en) Information display method, device, equipment and storage medium
CN105975306A (en) Application program starting management method and application program starting management apparatus for electronic device
CN104079632A (en) Third-party service processing method and device
CN108650167A (en) Method, apparatus, electronic equipment and the readable storage medium storing program for executing that message is sent
CN107146098A (en) Advertisement operation configuration method and equipment
CN111144902A (en) Questionnaire data processing method and device, storage medium and electronic equipment
CN106098070A (en) A kind of identity identifying method and network system
CN110019008A (en) Data storage method and device
CN108681471A (en) Application control method, device, electronic equipment and readable storage medium storing program for executing
CN110659096B (en) Method, device, system and storage medium for displaying network topological graph

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