A kind of method and apparatus of Batch sending short message
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of method and apparatus of Batch sending short message.
Background technique
With the development of communication technology, many service providers are in order to information such as its user transmission notices, it is therefore possible to use
Server sends message, such as short message to its user.For example, some shopping website is given using the information transmitting system of server
The user of shopping website registration sends red packet code.It, can be by existing transmission information if being distinguished according to sending object
Mode is divided into single shot mode and mass-sending mode, and so-called single shot mode is directed to each user and generates an information, then executes
It is primary to send operation, the terminal of the user is sent that information to, is cycled through until being sent to all users;It is so-called
Mass-sending mode is to generate an information, executes primary transmission operation, sends that information to the terminal of all users.
But two kinds of modes of operation in above scheme all have some disadvantages:
For above-mentioned single shot mode, multiple transmission operation is needed to be implemented, and send operation every time all to need for each letter
Receiving number editor information is ceased, operating process is cumbersome and takes a long time.
For above-mentioned mass-sending mode, the information that terminal where different information receiving numbers receives all, can not
It is distinguish according to terminal where different information receiving numbers by information is sent.Shopping website as escribed above is to different user
Red packet code is sent, if Exactly-once mass-sending mode sends operation, different users will receive same red packet code, most
Cause only one user that the red packet code can be used eventually, other users then use in vain, and this and do not meet actual demand.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
The method for stating the device and corresponding Batch sending short message of the Batch sending short message of problem.
According to one aspect of the present invention, a kind of method of Batch sending short message is provided, comprising:
Obtain the identity information of each user;The identity information includes information receiving number;
It is generated for different identity informations according to preset customized information template for each information receiving number a
Property information;
Recalls information transmission interface, according to information receiving number corresponding to each customized information, by the personalized letter
Breath is sent to terminal where corresponding information receiving number.
Optionally, described to be directed to different identity informations, according to preset customized information template, connect for each information
The code that collects the digits generates the step of customized information, comprising:
For each information receiving number, the data of corresponding each critical field are obtained;
The data of each critical field are inserted in the corresponding critical field of customized information template;
Customized information is generated for each information receiving number.
Optionally, the data of each critical field are inserted to the step in the corresponding critical field of the customized information template
Suddenly, comprising:
By the corresponding user's appellation information of information receiving number, the appellation field in the customized information template is inserted;
By the personalized notifications information of information receiving number, the personalized notifications word in the customized information template is written
Section.
Optionally, before the identity information for obtaining each user, further includes:
It is pre-configured with the customized information template needed for time Batch sending short message.
Optionally, the recalls information transmission interface, according to information receiving number corresponding to each customized information, by institute
The step of stating terminal where customized information is sent to corresponding information receiving number, comprising:
Recalls information transmission interface, according to predetermined transmission information rate by each customized information to corresponding information receive number
Terminal where code;It is described to send the transmission item number that information rate includes at the appointed time customized information in the period.
Optionally, the recalls information transmission interface, according to predetermined transmission information rate by each customized information to correspondence
Information receiving number where terminal, comprising:
Transmission task is put into message queue;
According to preset information transmission speed, transmission task is extracted from message queue;The information transmission speed includes
First number of transmission task is executed within specified period first time;
Recalls information transmission interface executes the transmission task.
Optionally, described according to preset information transmission speed, from message queue the step of extraction transmission task, packet
It includes:
Judge within each period first time, whether all write-in has sent mark in first several memory headroom
Know;Wherein, the memory headroom is emptied in each first time end cycle;Described sent is identified as each transmission task
It is written after being finished;
If all write-in has sent mark in first several memory headroom, then within each period first time
Next transmission task is extracted in pause from message queue, until current first time end cycle, and in current first time
The memory headroom is emptied when end cycle;
If all write-in has not sent mark in first several memory headroom, then within each period first time
Next transmission task is extracted in continuation from message queue, and the memory sky is emptied in current first time end cycle
Between.
Optionally, described according to preset information transmission speed, the step of transmission task is extracted from message queue, includes:
Judge that all write-in has sent whether mark spent time is less than period first time to first several memory headroom;
It has sent described in wherein and has been written after being identified as each transmission task execution;
If all write-in has sent mark spent time less than period first time, temporarily to first several memory headroom
Stop extracting next transmission task from message queue, reaches period first time until spent time adds time out, and
Empty the memory headroom;
If first several memory headroom whole write-in has sent mark spent time and has been more than or equal to period first time,
Then continue to extract next transmission task from message queue, and empties the memory headroom.
Optionally, the recalls information transmission interface, according to information receiving number corresponding to each customized information, by institute
Customized information is stated to be sent to before the terminal of corresponding information receiving number place, further includes:
Judge whether current time reaches preset sending time;
If current time reaches scheduled sending time, enter recalls information transmission interface, according to each personalized letter
The corresponding information receiving number of breath, the step of terminal where the customized information is sent to corresponding information receiving number
Suddenly.
Optionally, the recalls information transmission interface, according to information receiving number corresponding to each customized information, by institute
After the step of stating terminal where customized information is sent to corresponding information receiving number, further includes:
Record sends the transmission task successfully and to fail.
Optionally, after the step of record sends transmission task successfully and unsuccessfully, further includes:
Extract the transmission task for sending failure;
Into recalls information transmission interface, according to information receiving number corresponding to each customized information, by the individual character
The step of changing terminal where information is sent to corresponding information receiving number.
According to another aspect of the present invention, a kind of device of Batch sending short message is provided, comprising:
Identity information acquisition module, suitable for obtaining the identity information of each user;The identity information includes information reception number
Code;
Customized information editor's generation module, suitable for being directed to different identity informations, according to preset customized information mould
Version generates customized information for each information receiving number;
Customized information sending module is suitable for recalls information transmission interface, according to information corresponding to each customized information
Receiving number, terminal where the customized information is sent to corresponding information receiving number.
Optionally, customized information editor's generation module, comprising:
Critical field acquisition submodule is suitable for being directed to each information receiving number, obtains the data of corresponding each critical field;
Critical field editor's submodule, it is corresponding suitable for the data of each critical field are inserted the customized information template
In critical field;
Customized information generation module is suitable for each information receiving number and generates customized information.
Optionally, critical field editor's submodule, comprising:
User's appellation information editing's module is suitable for the corresponding user's appellation information of information receiving number inserting described
Appellation field in property information template;
Personalized notifications information editing's module, suitable for being written described for the personalized notifications information of information receiving number
Personalized notifications field in property information template;
Optionally, before the identity information acquisition module, further includes:
Customized information template configuration module, suitable for being pre-configured with the customized information mould needed for time Batch sending short message
Version.
Optionally, the customized information sending module, comprising:
Speed limit sending submodule is suitable for recalls information transmission interface, believes each personalization according to predetermined transmission information rate
Terminal where breath to corresponding information receiving number;The transmission information rate includes customized information in the at the appointed time period
Transmission item number.
Optionally, the speed limit sending submodule, comprising:
Sorting sub-module is put into message queue suitable for that will send task;
Extracting sub-module, suitable for extracting transmission task from message queue according to preset information transmission speed;The letter
Breath transmission speed includes first number that transmission task is executed within specified period first time;
Sending submodule is suitable for recalls information transmission interface and executes the transmission task.
Optionally, the extracting sub-module, comprising: memory headroom judging submodule is suitable for judging at each first
Between in the period, whether all write-in has sent mark in first several memory headroom;Wherein, the memory headroom is each
It is emptied when first time end cycle;It is described sent be identified as each transmission task execution after be written;
If all write-in has sent mark in first several memory headroom, then within each period first time
Into the first pause submodule, enter clearly until current first time end cycle, and in current first time end cycle
Except submodule;
If all write-in has not sent mark in first several memory headroom, then within each period first time
Into task extracting sub-module is sent, to extract next transmission task from message queue, and in current period first time
At the end of enter remove submodule;
First pause submodule, is suitable for pause and extracts transmission task from message queue;
Transmission task extracting sub-module, suitable for from information to successively extracting transmission task in column;
Submodule is removed, suitable for emptying the memory headroom.
Optionally, the extracting sub-module includes:
Time judging submodule, suitable for judging that all write-in has sent mark spent time and is first several memory headroom
It is no to be less than period first time;It has sent described in wherein and has been written after being identified as each transmission task execution;
If first several memory headroom whole write-in has sent mark spent time and has been less than period first time, into
Enter the first pause submodule, until spent time reaches period first time plus time out, into removing submodule;
If first several memory headroom whole write-in has sent mark spent time and has been more than or equal to period first time,
Then enter and remove submodule, subsequently into transmission task extracting sub-module.
Optionally, before the customized information sending module, further includes:
Sending time judgment module, suitable for judging whether current time reaches preset sending time;
If current time reaches scheduled sending time, enter customized information sending module.
Optionally, after the customized information sending module, further includes:
Logging modle, suitable for recording the customized information and corresponding information receiving number that send and successfully and fail.
Optionally, after the logging modle, further includes:
Failed tasks extraction module, suitable for extracting the transmission task for sending failure;Mould is sent subsequently into customized information
Block.
According to another aspect of the present invention, a kind of Batch sending short message equipment is provided, comprising:
Memory and processor;
The memory is for storing executable code;
The processor executes the side included the following steps for executing the executable code, the executable code
Method:
Obtain the identity information of each user;The identity information includes information receiving number;
It is generated for different identity informations according to preset customized information template for each information receiving number a
Property information;
Recalls information transmission interface, according to information receiving number corresponding to each customized information, by the personalized letter
Breath is sent to terminal where corresponding information receiving number.
A kind of method of Batch sending short message according to the present invention, using pre-set customized information template, for
Different information receiving numbers obtains customized information corresponding with each information receiving number, thus solves above-mentioned existing behaviour
Make to need to be implemented multiple transmission operation in mode one, and send operation every time all to need to believe for each information receiving number editor
Breath, operating process is cumbersome and each information receiving number place is whole the problem of taking a long time and in above-mentioned existing mode of operation two
It terminates the information received all, can not be asked according to terminal where different information receiving numbers by what transmission information was distinguish
Topic achieves and executes primary mass-sending mode transmission operation, and terminal where each information receiving number can receive corresponding
Customized information avoids troublesome operation, improves the beneficial effect of Batch sending short message efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow diagram of Batch sending short message method according to an embodiment of the invention;
Fig. 2 shows a kind of flow diagrams of Batch sending short message method according to an embodiment of the invention;
Fig. 3 shows a kind of flow diagram of Batch sending short message method according to an embodiment of the invention;
Fig. 4 shows a kind of flow diagram of Batch sending short message method according to an embodiment of the invention;
Fig. 5 shows a kind of structural schematic diagram of Batch sending short message apparatus according to an embodiment of the invention;
Fig. 6 shows a kind of structural schematic diagram of Batch sending short message apparatus according to an embodiment of the invention;
Fig. 7 shows a kind of structural schematic diagram of Batch sending short message apparatus according to an embodiment of the invention;
Fig. 8 shows a kind of structural schematic diagram of Batch sending short message apparatus according to an embodiment of the invention;
Fig. 9 shows a kind of structural schematic diagram of Batch sending short message equipment according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Embodiment one
Referring to Fig.1, it illustrates a kind of flow diagram of Batch sending short message method of the application, can specifically include:
Step S110 obtains the identity information of each user;The identity information includes information receiving number.
In practical applications, to a certain user send information, be using information receiving number corresponding with the user as its
Identity, and final information can be sent to the terminal where information receiving number corresponding with the user.In present example,
It is introduced by information receiving number of the phone number of user.It, can be by each personalization during a Batch sending short message
Information is sent to the terminal where each different information receiving number, each customized information therein and each information receiving number
It is relationship in correspondence with each other.
In present example, each information receiving number can from movable storage device, cloud server or other have
It preselects and is imported in the information system to send information in the equipment of store function, it can also be short in triggering Batch sending
When believing order button, is selected from movable storage device, cloud server or other equipment with store function and import use
In information system to send information, or the identity information for using other modes to obtain each user, and then obtain wherein
Information receiving number, embodiment of the present invention is to this and is not limited.
It should be noted that in practical applications, the embodiment of the present invention can obtain the platform according to game table where user
In each user number.The platform such as dragon oath game platform, puts to death celestial gaming platform, shopping website etc., and the present invention is real
The instruction for obtaining the information receiving number of user of some or certain several platforms can first be received by applying example, then executed this and referred to
It enables, calls the interface of corresponding platform to obtain the information receiving number of its each user from corresponding platform.
In addition, in practical applications, the embodiment of the present invention is the identity information for obtaining each user first from each platform, such as infuse
Volume information, which may include the information such as user name, user's Real Name, information receiving number.It so can be from the body
Information receiving number is obtained in part information.
For example, a certain shopping website, which sends cash to registration user using information transmitting system, is of use certificate information, each user
The registration information such as table (one) in website:
User name |
Gender |
Age |
Contact method |
Zhang San |
Female |
30 |
15874897866 |
ID458892 |
Male |
|
15874897867 |
Li Si |
Male |
26 |
15874897868 |
Table (one)
Certainly, the registration information of the available table of the embodiment of the present invention (one) then therefrom extracts information receiving number.
It is as follows that each cash then extracted is of use certificate information receiving number:
15874897866
15874897867
15874897868
Step S120, for different identity informations, according to preset customized information template, for the reception number of each information
Code generates customized information.
Customized information template in the present invention can execute Batch sending according to the demand of this Batch sending short message
It before short-message instruction, is set in advance in its configuration file, when triggering Batch sending short-message instruction button, then from configuration file
Extract the customized information template;Also it may be embodied in Batch sending short-message instruction, in this regard, the present invention is without restriction.
In practical applications, customized information template, such as the personalization of xml format can be set using various ways establishing
Information template.After getting each information receiving number, the xml document can be read and obtain customized information template.
Moreover, it is fixed for executing customized information template used in a Batch sending short-message instruction.Customized information
It include certain critical field, such as personalized notifications field in template, by the personalized notifications information of each information receiving number
The personalized notifications field in above-mentioned customized information template is inserted or replaced, then can be obtained each information receiving number corresponding
Property information.
In addition, problem solved by the invention is to execute a Batch sending short-message instruction, then selected each information receives
Terminal where number receives customized information corresponding with each information receiving number.Under normal circumstances, therein and each information
The corresponding customized information of receiving number be it is different, certainly, if for the original intention of Batch sending short-message instruction, can also be with
There is a situation where that the corresponding customized information of partial information receiving number is identical.
For example, it is directed to the above-mentioned each information receiving number extracted from shopping website registration information, preset personalized letter
It is as follows to cease template:
Dear * * *, thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use
Certificate: * * * * * * * * lost no time to log in panic buying valid until on November 11st, 2015![web site name]
So, the embodiment of the present invention is then directed to each information receiving number, primary above-mentioned template is called, by the use of the number
Name in an account book inserts username field.It is, of course, also possible to which obtaining a collection of cash in advance is of use the information such as the number of certificate, for each number
Template, read a cash and be of use the information such as the number of certificate, insert the relevant position of template.Then pass through a series of editors, most
The corresponding property information of each information receiving number is produced eventually, such as customized information corresponding to above-mentioned number is successively distinguished
Are as follows:
Dear Zhang San thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use certificate:
Iriew1 lost no time to log in panic buying valid until on November 11st, 2015![web site name]
Dear ID458892 thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use certificate:
Iriew2 lost no time to log in panic buying valid until on November 11st, 2015![web site name]
Dear Li Si thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use certificate:
Iriew3 lost no time to log in panic buying valid until on November 11st, 2015![web site name]
Step S130, recalls information transmission interface will be described according to information receiving number corresponding to each customized information
Customized information is sent to terminal where corresponding information receiving number.
Information transmission interface is the interface that terminal where realizing website to information receiving number sends information, can be with letter
Ceasing receiving number is mark, the terminal corresponding customized information of information receiving number being sent to where information receiving number.
The embodiment of the present invention is illustrated by taking the mobile phone where phone number as an example.Such as above-mentioned phone number and phase
The customized information answered, the mobile phone terminal being eventually sent to where phone number.
Customized information in the embodiment of the present invention, can be short message, be also possible to other types information, in this regard,
The embodiment of the present invention is not limited.
In embodiments of the present invention, it is generated using preset customized information template for different information receiving numbers
Corresponding each customized information, then above-mentioned customized information is sent to corresponding informance receiving number by recalls information transmission interface
The terminal at place realizes during a Batch sending short message, and the terminal where each different information receiving number connects
Receive the effect of corresponding customized information.
Embodiment two
Referring to Fig. 2, it illustrates a kind of flow diagrams of Batch sending short message method of the application, can specifically include:
Step S210 is pre-configured with the customized information template needed for time Batch sending short message.
During a Batch sending short message, customized information template used is fixed, wherein including some passes
Key field to insert the corresponding critical field data of information receiving number, and then forms the information receiving number corresponding
Property information.The customized information template is according to when time purpose of Batch sending short message is preconfigured and is stored in configuration text
In part or other memory spaces, for its storage location, the present invention is simultaneously not limited.When execution Batch sending short-message instruction
When, then call the customized information template.
In the embodiment of the present application, above-mentioned critical field can be identified with critical field.
For example, above-mentioned a certain shopping website sends the example that cash is of use certificate information to registration user using information transmitting system
In son, preconfigured customized information template is are as follows:
Dear * * *, thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use
Certificate: * * * * * * * * lost no time to log in panic buying valid until on November 11st, 2015![web site name]
" * * * " therein and " * * * * * * * * " is its critical field.
Step S220 obtains the identity information of each user;The identity information includes information receiving number.
Step S230 obtains the data of corresponding each critical field for each information receiving number.
Critical field in the embodiment of the present invention is for distinguishing the corresponding customized information of each information receiving number
Important parameter, the content of the critical field data of acquisition needed for being determined according to the customized information template for working as secondary transmission information, one
As the data of critical field include user's appellation information, personalized notifications information etc..Wherein, user's appellation information is usually and letter
Breath receiving number is stored together with database, and personalized notifications information is the mesh by sender according to this Batch sending short message
It is provided.
The quantity of critical field corresponding to finally obtained any information receiving number and preset customized information mould
Critical field quantity in version is consistent.
A certain shopping website as escribed above sends cash to registration user using information transmitting system and is of use certificate information,
In the shopping website provide cash be of use voucher code successively are as follows:
iriew1
iriew2
iriew3
Then for the information receiving number of shopping website registration user, each key data such as table (2) finally obtained:
Information receiving number |
User name |
Cash is of use voucher code |
15874897866 |
Zhang San |
iriew1 |
15874897867 |
ID458892 |
iriew2 |
15874897868 |
Li Si |
iriew3 |
Table (2)
Step S240 inserts the data of each critical field in the corresponding critical field of customized information template.
It is mark with information receiving number, according to corresponding relationship, the corresponding pass of each information receiving number that successively will acquire
Key field is inserted in the corresponding position of customized information template.
As above-mentioned, the data of general critical field include user's appellation information, personalized notifications information etc..It is preferred, therefore, that
The step S240 on ground, the embodiment of the present invention includes:
Step S241 inserts information receiving number corresponding user's appellation information in the customized information template
Appellation field.
For example, the critical field data of each information receiving number for above-mentioned customized information template and acquisition.?
In the embodiment of the present invention, user's appellation information is above-mentioned user name, then user name therein can be successively filled to above-mentioned
Property information template in corresponding appellation field, the appellation field in the embodiment of the present invention is in customized information template
Critical field " * * * " at first.
In the customized information template is written in the personalized notifications information of information receiving number by step S242
Property notification field.
Similarly for the data of the critical field of above-mentioned customized information template and each information receiving number of acquisition.
In embodiments of the present invention, personalized notifications information is that above-mentioned cash is of use voucher code, then can will be therein
Cash is of use certificate information and successively fills in above-mentioned customized information template in corresponding personalized notifications field, the embodiment of the present invention
In personalized notifications field be in customized information template second at critical field " * * * * * * * * ".
Step S250 generates customized information for each information receiving number.
Step S250 is successively executed to each information receiving number, that is, produces the corresponding personalization of each information receiving number
Information.
For example, the customized information of generation is successively for above- mentioned information receiving number are as follows:
Dear Zhang San thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use certificate:
Iriew1 lost no time to log in panic buying valid until on November 11st, 2015![web site name]
Dear ID458892 thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use certificate:
Iriew2 lost no time to log in panic buying valid until on November 11st, 2015![web site name]
Dear Li Si thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use certificate:
Iriew3 lost no time to log in panic buying valid until on November 11st, 2015![web site name]
Step S260, recalls information transmission interface will be described according to information receiving number corresponding to each customized information
Customized information is sent to terminal where corresponding information receiving number.
Preferably, the step S260 includes:
Step S261 generates transmission task based on the customized information and corresponding information receiving number, and is put into and disappears
It ceases in queue.
It during Batch sending short message, is sent to customized information where corresponding information receiving number
Terminal.In the present embodiment, transmission task is generated based on customized information and corresponding information receiving number, such as will be personalized
Information and the binding of corresponding information receiving number generate transmission task, convenient for being connect during Batch sending short message according to information
The code that collects the digits finds corresponding customized information, or finds corresponding information receiving number according to customized information.
Message queue is the virtual container to store above-mentioned transmission task, wherein send task according to genesis sequence successively
It is stored in message queue.
For example, for the information receiving number and customized information of certain shopping website obtained above:
Information receiving number: 15874897866,15874897867,15874897868.
Customized information:
Dear Zhang San thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use certificate:
Iriew1 lost no time to log in panic buying valid until on November 11st, 2015![web site name]
Dear ID458892 thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use certificate:
Iriew2 lost no time to log in panic buying valid until on November 11st, 2015![web site name]
Dear Li Si thanks to your support to this website all the time, and spy gives your 50.00 yuan of cashes to be of use certificate:
Iriew3 lost no time to log in panic buying valid until on November 11st, 2015![web site name]
Transmission task a is generated based on number 15874897866 and first customized information, is based on number
15874897867 generate transmission task b with Article 2 customized information, personalized based on number 15874897867 and Article 3
Information generates transmission task c, and is put into message queue, then the information in message queue is successively are as follows:
Transmission task a
Transmission task b
Transmission task c
Certainly, in message queue send task ranking mode can there are many kinds of, above-mentioned sortord be one of which, it is right
This, the present invention is without limitation.
Step S262 successively extracts the transmission task in the message queue.
Step S263, recalls information transmission interface execute the transmission task, the customized information are sent to phase
Terminal where the information receiving number answered.
Such as recalls information transmission interface, execute above-mentioned transmission task a, then it can be by first above-mentioned customized information
The terminal being sent to where number 15874897866.
The present embodiment is similar with one similar step principle of embodiment, no longer superfluous herein to chat.
In the embodiment of the present invention, a Batch sending short message process is equally executed, each different information can be realized and connect
The terminal where code that collects the digits receives corresponding customized information.
In addition, the embodiment of the present invention can first obtain each user before generating customized information for each information receiving number
Identity information in corresponding critical field data, the data of each critical field are then inserted into corresponding customized information mould
In the critical field of version, it can so make the generating process of each property information more orderly, help to improve the effect of the process
Rate.
Embodiment three
Referring to Fig. 3, it illustrates a kind of flow diagrams of Batch sending short message method of the application, can specifically include:
Step S310 is pre-configured with the customized information template needed for time Batch sending short message.
Step S320 obtains the identity information of each user;The identity information includes information receiving number.
Step S330 obtains the data of corresponding each critical field for each information receiving number.
Step S340 inserts the data of each critical field in the corresponding critical field of customized information template.
Step S350 generates customized information for each information receiving number.
Step S360, recalls information transmission interface, according to predetermined transmission information rate by each customized information to corresponding
Terminal where information receiving number;It is described to send the transmission item that information rate includes at the appointed time customized information in the period
Number.
Within a certain period of time, the transinformation of information transmission interface is certain, i.e. the load capacity of information transmission interface
There is certain limit, within a period of time, information transmission interface can be called transmission other information simultaneously, for example, upper
While shopping website recalls information transmission interface is stated to user's transmission information, certain game website equally calls information transmission to connect
Mouth sends information to its user.In order not to cause the load capacity of information transmission interface excessive, the shadow to information transmitting efficiency is avoided
It rings, this Batch sending short message speed can be made a reservation for according to the load capacity situation of current information transmission interface.Wherein predetermined information
Transmission speed can be set before receiving Batch sending short-message instruction, and the information transmission speed of setting can also be placed in batch
It sends in short-message instruction, in this regard, the present invention and being not limited.
It sends information rate to refer in a certain period of time, the transmission item number of customized information.Generally sending information
In the process with 1 second for a period, the transmission item number of customized information is to send information rate within 1 second time cycle, this
When, the unit of information transmission speed is a/second.And if the time cycle taken be 1 minute, information transmission speed at this time is then
For a/minute.
Preferably, step S360 is specifically included:
Transmission task is put into message queue by step S361.
In general, the task of transmission includes sending content, sending object mark etc., wherein being usually with number or IP address
It is identified Deng as sending object.In embodiments of the present invention, it is preferable that using information to be sent as content is sent, with cell-phone number
Code is identified as sending object, then sending object is mobile phone, is illustrated to the application.
In addition, the message queue in the embodiment of the present invention is a kind of message queue based on database, for example it is based on SSDB
The message queue of (Scientific and Statistical, scientific statistics database) is a kind of message team of non-memory
Column.Transmission task is put into message queue, facilitates access in use.
For example, the message scheduling sending method of a certain website use the application sends information to registration user, firstly generate
Transmission task, and be sequentially placed into message queue, it is as follows:
Transmission task a
Transmission task b
Transmission task c
……
For above-mentioned each transmission task, the information to be sent and phone number for being included distinguish example and are,
Transmission task a: phone number 15874897866;Information to be sent is dear Zhang San, thank you always with
Carry out the support to this website, spy gives your 50.00 yuan of cashes to be of use certificate: iriew1 lost no time to step on valid until on November 11st, 2015
Record panic buying![web site name]
Transmission task b: phone number 15874897867;Information to be sent is dear ID458892, thanks you one
Support since straight to this website, spy give your 50.00 yuan of cashes to be of use certificate: iriew2 was caught up with valid until on November 11st, 2015
It is tight to log in panic buying![web site name]
Transmission task c: phone number 15874897868;Information to be sent is dear Li Si, thank you always with
Carry out the support to this website, spy gives your 50.00 yuan of cashes to be of use certificate: iriew3 lost no time to step on valid until on November 11st, 2015
Record panic buying![web site name]
Step 362, according to preset information transmission speed, transmission task is extracted from message queue;The information is sent
Speed includes first number that transmission task is executed within specified period first time.
For any one information transmission interface, the information content that can be transmitted in fixed time period is restricted
, i.e. the load capacity of the information transmission interface has the upper limit, and in the same period, it is understood that there may be sends with this information
Other unrelated multiple transmission tasks are being sent.Therefore, the embodiment of the present invention according to the information transmission interface called most
The loading condition at heavy load amount and the information transmission interface current time, this preset message scheduling send information used
Transmission speed.
In general, currently used information transmission speed is the number that interior information per second is sent, its measurement unit at this time
For a/second, naturally it is also possible to for per minute or information is sent in the equal other times period per hour number, then meter at this time
Measuring unit is a/minute or a/hour etc..Preferably, in the embodiment of the present invention, the measurement unit used is for a/second, i.e., above-mentioned
Specified period first time unit be the second.In addition, above-mentioned specified period first time can be 1 second, or appoint
The number of seconds for quantity of anticipating, but considered for information original intention is sent to state-of-the art and scheduling, it is preferable that the present invention is implemented
Specified period first time in example is 1 second.
In addition, above-mentioned information transmission speed can either step before current procedures and before current procedures
It is before preset, it also may be embodied in this message scheduling and send in instruction, this present invention is not limited.
For example, for above-mentioned website to registration user send information, preset information transmission speed be 30/second, then its
Including specified period first time be 1 second, execute transmission task first number be 30.
Preferably, step S362, comprising:
Step S3621 judges within each period first time whether be all written in first several memory headroom
Mark is sent;Wherein, the memory headroom is emptied in each first time end cycle;It is described sent be identified as it is each
It is written after sending task execution;The information transmission speed includes the execution transmission task within specified period first time
First number.If all write-in has sent mark in first several memory headroom, then within each period first time
S2624 is entered step, is entered step until current first time end cycle, and in current first time end cycle
S2623, subsequently into step S2625;If do not write all in first several memory headroom within each period first time
Enter to have sent mark, then enters step S2625, and enter step S2623 in current first time end cycle.
In message scheduling transmission process described herein, a transmission task is extracted from message queue and has been executed
Finish, then can be accordingly written in a memory headroom and send mark.The mark therein that sent is above-mentioned memory is written
In space, to record the mark that a certain transmission task has been finished, in embodiments of the present invention, a certain transmission task has been executed
It finishes and is sent successfully including information or information caused by the reasons such as recalls information transmission interface time-out sends the feelings such as unsuccessfully
Condition can all be written in memory headroom and send mark.In order to be not take up too many memory, having sent user identifier can to the greatest extent can
The simplification of energy, and it is fixed that this scheduling, which sends memory headroom used in each period first time in information process,
, it is preferable that the transmission in the embodiment of the present invention is identified as 1, within each period first time, from executing current the
First transmission task of a period of time starts, every to have executed a transmission task, then can be correspondingly from applied first
A memory headroom starts that 1 is successively written in memory headroom, until current first time end cycle, empties applied all
Memory headroom, subsequently into next period first time.
In addition, it is above-mentioned within each period first time, in first several memory headroom, has been written into and sent mark
Memory headroom the case where can be divided into following two categories: within each period first time, in first several memory headroom
All write-in has sent mark;Within each period first time, all write-in has not been sent in first several memory headroom
Mark.
Step S3622 judges that all whether write-in has sent mark spent time less than the to first several memory headroom
A period of time;It has sent described in wherein and has been written after being identified as each transmission task execution;If first several memory
All write-in has sent mark spent time and is less than period first time in space, then enters step S3623, until spent time plus
Upper time out reaches period first time, enters step S3624, subsequently into step S3625;If first several memory
All write-in has sent mark spent time more than or equal to period first time in space, then S3624 is entered step, subsequently into step
Rapid S3625.
In message scheduling transmission process described herein, a transmission task is extracted from message queue and has been executed
Finish, then can be accordingly written in a memory headroom and send mark.The mark therein that sent is above-mentioned memory is written
In space, to record the mark that a certain transmission task has been finished, in embodiments of the present invention, a certain transmission task has been executed
It finishes and is sent successfully including information or information caused by the reasons such as recalls information transmission interface time-out sends the feelings such as unsuccessfully
Condition can all be written in memory headroom and send mark.In order to be not take up too many memory, having sent user identifier can to the greatest extent can
The simplification of energy, and it is fixed that this scheduling, which sends memory headroom used in each period first time in information process,
, it is preferable that the transmission in the embodiment of the present invention is identified as 1, within each period first time, from executing current the
First transmission task of a period of time starts, every to have executed a transmission task, then can be correspondingly from applied first
A memory headroom starts that 1 is successively written in memory headroom, until current first time end cycle, empties applied all
Memory headroom, subsequently into next period first time.
Transmission task is extracted in step S3623, pause from message queue.
Step S3624 empties the memory headroom.
Emptying in the embodiment of the present invention, be the transmission of the write-in in above-mentioned memory headroom mark is removed and is restored to
Original state.
Step S3625 extracts transmission task from message queue.
In the embodiment of the present invention, comparing first several memory headroom, all write-in has sent mark spent time and first
The size of time cycle, i.e., when completely filling out first several memory headroom, then multilevel iudge emptied memory sky from last time
Between after or for the first time extract transmission task to current time spent time and period first time size.
If all write-in has sent mark spent time less than period first time to first several memory headroom, do not have at this time
There is extra memory headroom to send mark to continue to write to, in addition to keep information transmission speed, so not followed by
Continuous information of extracting from message queue is emptied until current first time end cycle, and in current first time end cycle
The memory headroom;If all write-in has sent mark spent time more than or equal at the first time to first several memory headroom
Period then directly empties the memory headroom, and continues to extract next transmission task from message queue.
For example, period first time is 1 second, and applied memory headroom is 30, has been sent out similarly for above-mentioned website
It send and is identified as 1.
If all write-in sends mark 1 in 30 memory headrooms at this time, compare after emptying memory headroom from the last time or
Person be extracted from message queue for the first time transmission task at this time period and period first time 1 second size, if above-mentioned
Then pause was extracted transmission task and was executed from message queue, until the time and above-mentioned period of pause less than 1 second period
Aggregation is equal to 1 second, empties 30 memory headrooms, and starts to extract transmission task from message queue and execute;And if when above-mentioned
Between section be greater than or equal to 1 second, then directly empty 30 memory headrooms, and continue to extract transmission task from message queue and hold
Row.
It can be seen that from above-mentioned deterministic process clear to this after emptying memory headroom from the last time in the embodiment of the present invention
Except period real time before memory headroom is greater than or equal to period first time, to ensure that actual information transmission speed not
Greater than preset information transmission speed, therefore excessive load will not be caused to information transmission interface.
Step S363, recalls information transmission interface execute the transmission task.
Information transmission interface is to realize that information transmitting system sends the interface of information to sending object, can be according to transmission
Sending object mark in task, is sent to sending object for the transmission content in transmission task.
The present embodiment is similar with embodiment one, two similar step principles, no longer superfluous herein to chat.
In embodiments of the present invention, a Batch sending short message process is equally executed, each different information can be realized
Terminal where receiving number receives corresponding customized information.
In addition, the embodiment of the present invention sends customized information according to pre-set information transmission speed, information is avoided to send out
It send the load capacity of interface excessive, ensure that the efficiency that information is sent.
Example IV
Referring to Fig. 4, it illustrates a kind of flow diagrams of Batch sending short message method of the application, can specifically include:
Step S410 is pre-configured with the customized information template needed for time Batch sending short message.
Step S420 obtains the identity information of each user;The identity information includes information receiving number.
Step S430 obtains the data of corresponding each critical field for each information receiving number.
Step S440 inserts the data of each critical field in the corresponding critical field of customized information template.
Step S450 generates customized information for each information receiving number.
Step S460, judges whether current time reaches preset sending time.If current time reaches predetermined
Sending time, then enter step S470.
For certain information, because of specific use, needs to send in the specific time, for example send and wish in certain morning in red-letter day
Good fortune information etc..For such information that need to be regularly sent, if realizing timing by artificially controlling Batch sending short-message instruction
It sends, can not only expend too many time and efforts, nor can guarantee accuracy.
In embodiments of the present invention, in order to realize timing Batch sending short message, the access time has been preset.Its
In, sending time may be embodied in the instruction of Batch sending short message, can also preset before this step, in this regard, this hair
It is bright to be not limited.
Step S470, recalls information transmission interface will be described according to information receiving number corresponding to each customized information
Customized information is sent to terminal where corresponding information receiving number.
Step S480, record send the transmission task successfully and to fail.
During Batch sending short message, it is possible that the case where sending failure, that is, fail to send customized information
To the terminal where corresponding information receiving number.In embodiments of the present invention, successfully believe with the personalized of failure according to sending
Breath finds out corresponding transmission task, and record sends the transmission task for successfully and sending failure respectively.
Step S490 extracts the transmission task for sending failure and enters step S570.
In the embodiment of the present invention, for the transmission task of above-mentioned transmission failure, information transmission interface will be re-called, with letter
Ceasing receiving number is mark, the terminal corresponding customized information being sent to where information receiving number.
In addition, for the step of whether current time reaches preset sending time judged, it can also be in step
Before any one step after S470, step S420, the embodiment of the present invention is not limited it.
The present embodiment is similar with embodiment one, two and three similar step principles, no longer superfluous herein to chat.In the embodiment of the present invention
In, in embodiments of the present invention, a Batch sending short message process is equally executed, each different information reception number can be realized
Terminal where code receives corresponding customized information.
Furthermore it is possible to save time and efforts according to scheduled access time Batch sending short message.Moreover, meeting
Record sends the transmission task successfully and to fail respectively, while recalls information transmission interface can wherein send to send again
The transmission task of failure, improves the success rate of Batch sending short message.
Embodiment five
Referring to Fig. 5, it illustrates a kind of structural schematic diagrams of Batch sending short message apparatus of the application, can specifically include:
Identity information acquisition module 510, suitable for obtaining the identity information of each user;The identity information includes that information receives
Number.
Customized information editor generation module 520, suitable for being directed to different identity informations, according to preset customized information
Template generates customized information for each information receiving number.
Customized information sending module 530 is suitable for recalls information transmission interface, according to letter corresponding to each customized information
Receiving number is ceased, terminal where the customized information is sent to corresponding information receiving number.
In embodiments of the present invention, it is generated using preset customized information template for different information receiving numbers
Corresponding each customized information, then above-mentioned customized information is sent to corresponding informance receiving number by recalls information transmission interface
The terminal at place realizes during a Batch sending short message, and the terminal where each different information receiving number connects
Receive the effect of corresponding customized information.
Embodiment six
Referring to Fig. 6, it illustrates a kind of structural schematic diagrams of Batch sending short message apparatus of the application, can specifically include:
Customized information template configuration module 610 is believed suitable for being pre-configured with the personalization needed for time Batch sending short message
Cease template.
Identity information acquisition module 620, suitable for obtaining the identity information of each user;The identity information includes that information receives
Number.
Customized information editor generation module 630, suitable for being directed to different identity informations, according to preset customized information
Template generates customized information for each information receiving number.It specifically includes:
Critical field acquisition submodule 631 is suitable for being directed to each information receiving number, obtains the number of corresponding each critical field
According to.
Critical field editor submodule 632, suitable for the data of each critical field are inserted the customized information template phase
In the critical field answered.
Preferably, the critical field editor submodule 632 includes:
User's appellation information editing's module is suitable for the corresponding user's appellation information of information receiving number inserting described
Appellation field in property information template.
Personalized notifications information editing's module, suitable for being written described for the personalized notifications information of information receiving number
Personalized notifications field in property information template.
Customized information generates submodule 633, is suitable for each information receiving number and generates customized information.
Customized information sending module 640 is suitable for recalls information transmission interface, according to letter corresponding to each customized information
Receiving number is ceased, terminal where the customized information is sent to corresponding information receiving number.
Preferably, the customized information sending module 640 includes:
Sorting sub-module 641 is suitable for generating transmission task based on the customized information and corresponding information receiving number,
And it is put into message queue.
Extracting sub-module 642, suitable for successively extracting the transmission task in the message queue.
Sending submodule 643 is suitable for recalls information transmission interface, executes the transmission task, by the personalized letter
Breath is sent to terminal where corresponding information receiving number.
In the embodiment of the present invention, a Batch sending short message process is equally executed, each different information can be realized and connect
The terminal where code that collects the digits receives corresponding customized information.
In addition, the embodiment of the present invention can first obtain each user before generating customized information for each information receiving number
Identity information in corresponding critical field data, the data of each critical field are then inserted into corresponding customized information mould
In the critical field of version, it can so make the generating process of each property information more orderly, help to improve the effect of the process
Rate.
Embodiment seven
Referring to Fig. 7, it illustrates a kind of structural schematic diagrams of Batch sending short message apparatus of the application, can specifically include:
Customized information template configuration module 710 is believed suitable for being pre-configured with the personalization needed for time Batch sending short message
Cease template.
Identity information acquisition module 720, suitable for obtaining the identity information of each user;The identity information includes that information receives
Number.
Customized information editor generation module 730, suitable for being directed to different identity informations, according to preset customized information
Template generates customized information for each information receiving number.
Critical field acquisition submodule 731 is suitable for being directed to each information receiving number, obtains the number of corresponding each critical field
According to.
Critical field editor submodule 732, suitable for the data of each critical field are inserted the customized information template phase
In the critical field answered.
Customized information generates submodule 733, is suitable for each information receiving number and generates customized information.
Customized information sending module 740 is suitable for recalls information transmission interface, according to letter corresponding to each customized information
Receiving number is ceased, terminal where the customized information is sent to corresponding information receiving number.It specifically includes:
Speed limit sending submodule 741 is suitable for recalls information transmission interface, according to predetermined transmission information rate by each personalization
Terminal where information to corresponding information receiving number;The transmission information rate includes letter personalized in the at the appointed time period
The transmission item number of breath.
Preferably, the speed limit sending submodule 741, specifically includes:
Sorting sub-module is put into message queue suitable for that will send task.
Extracting sub-module, suitable for extracting transmission task from message queue according to preset information transmission speed;The letter
Breath transmission speed includes first number that transmission task is executed within specified period first time.
Preferably, which includes:
Memory headroom judging submodule is suitable for judging within each period first time, in first several memory headroom
Whether all write-in has sent mark;Wherein, the memory headroom is emptied in each first time end cycle;It is described
Transmission is written after being identified as each transmission task execution;If within each period first time, first several memory
All write-in has sent mark in space, then enters the first pause submodule, until current first time end cycle, and
Enter removing submodule when current first time end cycle;If within each period first time, first several memory
All write-in has not sent mark in space, then enters transmission task extracting sub-module, to extract next from message queue
Transmission task, and enter removing submodule in current first time end cycle;
Time judging submodule, suitable for judging that all write-in has sent mark spent time and is first several memory headroom
It is no to be less than period first time;It has sent described in wherein and has been written after being identified as each transmission task execution;If first
All write-in has sent mark spent time less than period first time to several memory headrooms, then enters the first pause submodule,
Until spent time reaches period first time plus time out, into submodule is removed, subsequently into the extraction of the task of transmission
Submodule;If first several memory headroom whole write-in has sent mark spent time and has been more than or equal to period first time,
Then enter and remove submodule, subsequently into transmission task extracting sub-module.
First pause submodule, is suitable for pause and extracts transmission task from message queue.
Submodule is removed, suitable for emptying the memory headroom.
Transmission task extracting sub-module, suitable for from information to successively extracting transmission task in column.
Sending submodule is suitable for recalls information transmission interface and executes the transmission task.
In embodiments of the present invention, a Batch sending short message process is equally executed, each different information can be realized
Terminal where receiving number receives corresponding customized information.
In addition, the embodiment of the present invention sends customized information according to pre-set information transmission speed, information is avoided to send out
It send the load capacity of interface excessive, ensure that the efficiency that information is sent.
Embodiment eight
Referring to Fig. 8, it illustrates a kind of structural schematic diagrams of Batch sending short message apparatus of the application, can specifically include:
Customized information template configuration module 810 is believed suitable for being pre-configured with the personalization needed for time Batch sending short message
Cease template.
Identity information acquisition module 820, suitable for obtaining the identity information of each user;The identity information includes that information receives
Number.
Customized information editor generation module 830, suitable for being directed to different identity informations, according to preset customized information
Template generates customized information for each information receiving number.
Critical field acquisition submodule 831 is suitable for being directed to each information receiving number, obtains the number of corresponding each critical field
According to;
Critical field editor submodule 832, suitable for the data of each critical field are inserted the customized information template phase
In the critical field answered;
Customized information generation module 833 is suitable for each information receiving number and generates customized information.
Sending time judgment module 840, suitable for judging whether current time reaches preset sending time.If worked as
The preceding moment reaches scheduled sending time, then enters module 850.
Customized information sending module 850 is suitable for recalls information transmission interface, according to letter corresponding to each customized information
Receiving number is ceased, terminal where the customized information is sent to corresponding information receiving number.
Logging modle 860, suitable for recording the customized information and corresponding information receiving number that send and successfully and fail.
Failed tasks extraction module 870, suitable for extracting the transmission task for sending failure;It is sent subsequently into customized information
Module 850.
Embodiment nine
Referring to Fig. 9, it illustrates a kind of structural schematic diagram of Batch sending short message equipment of the embodiment of the present invention, described batch
Amount sends short message equipment 900 and can specifically include:
Memory 910 and processor 920;
The memory 910 is for storing executable code;
The processor 920 is used to execute the executable code, what the executable code execution included the following steps
Method:
Obtain the identity information of each user;The identity information includes information receiving number;
It is generated for different identity informations according to preset customized information template for each information receiving number a
Property information;
Recalls information transmission interface, according to information receiving number corresponding to each customized information, by the personalized letter
Breath is sent to terminal where corresponding information receiving number.
Certainly, the method that aforementioned arbitrary steps can also be performed in the executable code, the embodiment of the present invention do not add it
With limitation.
In embodiments of the present invention, in embodiments of the present invention, a Batch sending short message process, Ji Keshi are equally executed
Terminal where existing each different information receiving number receives corresponding customized information.
Furthermore it is possible to save time and efforts according to scheduled access time Batch sending short message.Moreover, meeting
Record sends the transmission task successfully and to fail respectively, while recalls information transmission interface can wherein send to send again
The transmission task of failure, improves the success rate of Batch sending short message.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize one in Batch sending short message equipment according to an embodiment of the present invention
The some or all functions of a little or whole components.The present invention is also implemented as executing method as described herein
Some or all device or device programs (for example, computer program and computer program product).Such realization
Program of the invention can store on a computer-readable medium, or may be in the form of one or more signals.This
The signal of sample can be downloaded from an internet website to obtain, and is perhaps provided on the carrier signal or mentions in any other forms
For.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The invention discloses A1, a kind of method of Batch sending short message, comprising:
Obtain the identity information of each user;The identity information includes information receiving number;
It is generated for different identity informations according to preset customized information template for each information receiving number a
Property information;
Recalls information transmission interface, according to information receiving number corresponding to each customized information, by the personalized letter
Breath is sent to terminal where corresponding information receiving number.
A2, method as described in a1, it is described to be directed to different identity informations, according to preset customized information template,
The step of generating customized information for each information receiving number, comprising:
For each information receiving number, the data of corresponding each critical field are obtained;
The data of each critical field are inserted in the corresponding critical field of customized information template;
Customized information is generated for each information receiving number.
The data of each critical field are inserted the corresponding key of the customized information template by A3, as described in A2 method
Step in field, comprising:
By the corresponding user's appellation information of information receiving number, the appellation field in the customized information template is inserted;
By the personalized notifications information of information receiving number, the personalized notifications word in the customized information template is written
Section.
A4, method as described in a1, before the identity information for obtaining each user, further includes:
It is pre-configured with the customized information template needed for time Batch sending short message.
A5, the method as described in one of A1-A4, the recalls information transmission interface, according to each customized information institute
Corresponding information receiving number, where the customized information is sent to corresponding information receiving number the step of terminal, packet
It includes:
Recalls information transmission interface, according to predetermined transmission information rate by each customized information to corresponding information receive number
Terminal where code;It is described to send the transmission item number that information rate includes at the appointed time customized information in the period.
A6, method as described in a5, the recalls information transmission interface, according to predetermined transmission information rate by each personalization
Terminal where information to corresponding information receiving number, comprising:
Transmission task is put into message queue;
According to preset information transmission speed, transmission task is extracted from message queue;The information transmission speed includes
First number of transmission task is executed within specified period first time;
Recalls information transmission interface executes the transmission task.
A7, the method as described in A6, it is described according to preset information transmission speed, transmission task is extracted from message queue
The step of, comprising:
Judge within each period first time, whether all write-in has sent mark in first several memory headroom
Know;Wherein, the memory headroom is emptied in each first time end cycle;Described sent is identified as each transmission task
It is written after being finished;
If all write-in has sent mark in first several memory headroom, then within each period first time
Next transmission task is extracted in pause from message queue, until current first time end cycle, and in current first time
The memory headroom is emptied when end cycle;
If all write-in has not sent mark in first several memory headroom, then within each period first time
Next transmission task is extracted in continuation from message queue, and the memory sky is emptied in current first time end cycle
Between.
A8, the method as described in A6, it is described according to preset information transmission speed, transmission task is extracted from message queue
The step of include:
Judge that all write-in has sent whether mark spent time is less than period first time to first several memory headroom;
It has sent described in wherein and has been written after being identified as each transmission task execution;
If all write-in has sent mark spent time less than period first time, temporarily to first several memory headroom
Stop extracting next transmission task from message queue, reaches period first time until spent time adds time out, and
Empty the memory headroom;
If first several memory headroom whole write-in has sent mark spent time and has been more than or equal to period first time,
Then continue to extract next transmission task from message queue, and empties the memory headroom.
A9, the method as described in one of A1-A4, the recalls information transmission interface, according to each customized information institute
Corresponding information receiving number also wraps before the customized information is sent to corresponding information receiving number place terminal
It includes:
Judge whether current time reaches preset sending time;
If current time reaches scheduled sending time, enter recalls information transmission interface, according to each personalized letter
The corresponding information receiving number of breath, the step of terminal where the customized information is sent to corresponding information receiving number
Suddenly.
A10, the method as described in one of A1-A4, the recalls information transmission interface, according to each customized information institute
Corresponding information receiving number, where the customized information is sent to corresponding information receiving number the step of terminal it
Afterwards, further includes:
Record sends the transmission task successfully and to fail.
After the step of A11, the method as described in A10, the record sends transmission task successfully and unsuccessfully, also wrap
It includes:
Extract the transmission task for sending failure;
Into recalls information transmission interface, according to information receiving number corresponding to each customized information, by the individual character
The step of changing terminal where information is sent to corresponding information receiving number.
The invention also discloses B12, a kind of device of Batch sending short message, comprising:
Identity information acquisition module, suitable for obtaining the identity information of each user;The identity information includes information reception number
Code;
Customized information editor's generation module, suitable for being directed to different identity informations, according to preset customized information mould
Version generates customized information for each information receiving number;
Customized information sending module is suitable for recalls information transmission interface, according to information corresponding to each customized information
Receiving number, terminal where the customized information is sent to corresponding information receiving number.
B13, as described in B12 device, customized information editor's generation module, comprising:
Critical field acquisition submodule is suitable for being directed to each information receiving number, obtains the data of corresponding each critical field;
Critical field editor's submodule, it is corresponding suitable for the data of each critical field are inserted the customized information template
In critical field;
Customized information generation module is suitable for each information receiving number and generates customized information.
B14, the device as described in B13, critical field editor's submodule, comprising:
User's appellation information editing's module is suitable for the corresponding user's appellation information of information receiving number inserting described
Appellation field in property information template;
Personalized notifications information editing's module, suitable for being written described for the personalized notifications information of information receiving number
Personalized notifications field in property information template;
B15, the device as described in B13, before the identity information acquisition module, further includes:
Customized information template configuration module, suitable for being pre-configured with the customized information mould needed for time Batch sending short message
Version.
B16, as described in B12 device, the customized information sending module, comprising:
Speed limit sending submodule is suitable for recalls information transmission interface, believes each personalization according to predetermined transmission information rate
Terminal where breath to corresponding information receiving number;The transmission information rate includes customized information in the at the appointed time period
Transmission item number.
B17, the device as described in B16, the speed limit sending submodule, comprising:
Sorting sub-module is put into message queue suitable for that will send task;
Extracting sub-module, suitable for extracting transmission task from message queue according to preset information transmission speed;The letter
Breath transmission speed includes first number that transmission task is executed within specified period first time;
Sending submodule is suitable for recalls information transmission interface and executes the transmission task.
B18, the device as described in B17, the extracting sub-module, comprising: memory headroom judging submodule is suitable for judgement
Within each period first time, whether all write-in has sent mark in first several memory headroom;Wherein, in described
Space is deposited to empty in each first time end cycle;It is described sent be identified as each transmission task execution after write
Enter;
If all write-in has sent mark in first several memory headroom, then within each period first time
Into the first pause submodule, enter clearly until current first time end cycle, and in current first time end cycle
Except submodule;
If all write-in has not sent mark in first several memory headroom, then within each period first time
Into task extracting sub-module is sent, to extract next transmission task from message queue, and in current period first time
At the end of enter remove submodule;
First pause submodule, is suitable for pause and extracts transmission task from message queue;
Transmission task extracting sub-module, suitable for from information to successively extracting transmission task in column;
Submodule is removed, suitable for emptying the memory headroom.
B19, the device as described in B17, the extracting sub-module include:
Time judging submodule, suitable for judging that all write-in has sent mark spent time and is first several memory headroom
It is no to be less than period first time;It has sent described in wherein and has been written after being identified as each transmission task execution;
If first several memory headroom whole write-in has sent mark spent time and has been less than period first time, into
Enter the first pause submodule, until spent time reaches period first time plus time out, into removing submodule;
If first several memory headroom whole write-in has sent mark spent time and has been more than or equal to period first time,
Then enter and remove submodule, subsequently into transmission task extracting sub-module.
B20, as described in B12 device, before the customized information sending module, further includes:
Sending time judgment module, suitable for judging whether current time reaches preset sending time;
If current time reaches scheduled sending time, enter customized information sending module.
B21, as described in B12 device, after the customized information sending module, further includes:
Logging modle, suitable for recording the customized information and corresponding information receiving number that send and successfully and fail.
B22, the device as described in B21, after the logging modle, further includes:
Failed tasks extraction module, suitable for extracting the transmission task for sending failure;Mould is sent subsequently into customized information
Block.
The invention also discloses C23, a kind of Batch sending short message equipment, comprising:
Memory and processor;
The memory is for storing executable code;
The processor executes the side included the following steps for executing the executable code, the executable code
Method:
Obtain the identity information of each user;The identity information includes information receiving number;
It is generated for different identity informations according to preset customized information template for each information receiving number a
Property information;
Recalls information transmission interface, according to information receiving number corresponding to each customized information, by the personalized letter
Breath is sent to terminal where corresponding information receiving number.