Summary of the invention
But in some technologies, on the one hand, the infrastructure service of the direct docking information push of each businessman or business side, respectively
Item function is by respectively realizing, cause technical solution irregular, most of functions are simultaneously not perfect, and there are the feelings of overlapping development
Condition;On the other hand, user's actual need is not accounted for, is easy to cause the parameter settings such as information sender formula, sending time not
Rationally, user experience is influenced;On the other hand, it is also easy to lead to the waste of data or resource.
Therefore, in the prior art, it can not achieve the normalizing operation sent to Business Information, this is unusual troublesome
's.
Thus, it is also very desirable to a kind of improved information push method and device, storage medium and electronic equipment, to realize letter
The standardization of breath is sent.
In the present context, embodiments of the present invention are intended to provide a kind of information push method and device, storage medium
And electronic equipment.
According to one aspect of the disclosure, a kind of information push method is provided, comprising:
In response to the data-pushing request of business side, extract in data-pushing request to propelling data;Wherein, institute
Stating to propelling data includes to PUSH message and corresponding tag field, information recipient;
The corresponding transmission state to PUSH message is read into database according to the tag field;
Described when the transmission state of PUSH message is not sent, the corresponding information in the applied business side is called to send
Path is described to PUSH message to send.
It is not sent reading the transmission state to PUSH message in a kind of exemplary embodiment of the disclosure
When, the method also includes:
Described the database will be written to PUSH message, and rope is established according to the tag field when being written successfully
Draw.
It is described to incite somebody to action described when the database is written in PUSH message, institute in a kind of exemplary embodiment of the disclosure
State method further include:
Described when failure is written in PUSH message, generate prompt information and be sent to default object.
In a kind of exemplary embodiment of the disclosure, described to propelling data further includes described corresponding to PUSH message
Push the time;
It is described when the transmission state of PUSH message is not sent reading, the method also includes:
Current time is read to judge whether to meet the push time, to be used for the execution when meeting the push time
To the transmission to PUSH message.
It is described to propelling data further include: information transmission mode in a kind of exemplary embodiment of the disclosure;
It is described to call the corresponding information transmitting path of the business side to send and described include: to PUSH message
The information is sent to PUSH message for described with the information transmission mode in the information transmitting path
Recipient.
It is described to call the corresponding information transmitting path of the business side to send out in a kind of exemplary embodiment of the disclosure
Include: to PUSH message described in sending
The corresponding presupposed information sending method of the information transmitting path is read, and is sent out according to the presupposed information sending method
It send described to PUSH message.
In a kind of exemplary embodiment of the disclosure, the presupposed information sending method includes combination sending mode;
It is described to include: to PUSH message according to described in presupposed information sending method transmission
It is sent respectively using each information sender formula in the combination sending mode described to PUSH message.
In a kind of exemplary embodiment of the disclosure, the presupposed information sending method includes the information transmitting path
The priority data of corresponding information sender formula;
It is described to include: to PUSH message according to described in presupposed information sending method transmission
Extract the corresponding available information sending method of the information recipient;
According to the priority data, the information sender formula of highest priority in the available information sending method is matched
It is set to the information sender formula for waiting for PUSH message.
In a kind of exemplary embodiment of the disclosure, the information sender formula include: mail, short message, APP push,
Public platform push, small routine Service Notification and information recipient be associated in social account push any one or it is any a variety of
Combination.
It is described after PUSH message sending in a kind of exemplary embodiment of the disclosure, the method also includes:
The transmission when propelling data in the information transmitting path is read as a result, in order to the tune when sending failure
It is transmitted with candidate sending method.
In a kind of exemplary embodiment of the disclosure, the method also includes:
It reads and sends disappearing described in failure wait push to PUSH message, and sending for failure in the information transmitting path
When ceasing quantity greater than preset threshold, generates warning message and be simultaneously sent to default object.
In a kind of exemplary embodiment of the disclosure, in response to the registration request of the business side, to the business
Information transmitting path is distributed in side.
According to one aspect of the disclosure, a kind of message driving means is provided, comprising:
Request receiving module is extracted in the data-pushing request for the data-pushing request in response to business side
To propelling data;Wherein, described to propelling data includes to PUSH message and corresponding tag field;
Message status read module, for reading corresponding described disappear wait push into database according to the tag field
The transmission state of breath;
Execution module is sent, for calling the corresponding transmission road in the applied business side when the state of transmission is not sent
Diameter is described to PUSH message to send.
In a kind of exemplary embodiment of the disclosure, described device further include:
Index establishes module, for described when the transmission state of PUSH message is not sent in reading, by described wait push away
It send message that the database is written, and is established and indexed according to the tag field when being written successfully.
In a kind of exemplary embodiment of the disclosure, described device further include:
Prompt information generation module, for when failure is written in PUSH message, generating prompt information described and being sent to
Default object.
In a kind of exemplary embodiment of the disclosure, described to propelling data further includes described corresponding to PUSH message
Push the time;Described device further include:
Time identification module is pushed, for described when the transmission state of PUSH message is not sent in reading, reading is worked as
The preceding time to judge whether to meet the push time, to disappear wait push to described for being executed when meeting the push time
The transmission of breath.
It is described to propelling data further include: information transmission mode in a kind of exemplary embodiment of the disclosure;The hair
The execution module is sent to include:
Transmission mode selecting module, in the information transmitting path with the information transmission mode by described wait push away
Message is sent to be sent to the information recipient.
In a kind of exemplary embodiment of the disclosure, the transmission execution module includes:
Transmission mode read module, for reading the corresponding presupposed information sending method of the information transmitting path, and root
It is sent according to the presupposed information sending method described to PUSH message.
In a kind of exemplary embodiment of the disclosure, the presupposed information sending method includes combination sending mode;Institute
Stating transmission mode read module includes:
Integrated mode transmission module, for sending institute respectively using each information sender formula in the combination sending mode
It states to PUSH message.
In a kind of exemplary embodiment of the disclosure, the presupposed information sending method includes the information transmitting path
The priority data of corresponding information sender formula;The transmission mode read module includes:
Priority mode transmission module, for extracting the corresponding available information sending method of the information recipient, and root
According to the priority data, this is configured wait push away by the information sender formula of highest priority in the available information sending method
Send the information sender formula of message.
In a kind of exemplary embodiment of the disclosure, the information sender formula include: mail, short message, APP push,
Public platform push, small routine Service Notification and information recipient be associated in social account push any one or it is any a variety of
Combination.
In a kind of exemplary embodiment of the disclosure, described device further include:
Transmission result identification module, for described after PUSH message in transmission, to propelling data described described in reading
Transmission in information transmitting path when sending failure as a result, in order to call candidate sending method to be transmitted.
In a kind of exemplary embodiment of the disclosure, described device further include:
Alarm module sends failing to PUSH message, and sending for failure for reading in the information transmitting path
It is described when PUSH message quantity be greater than preset threshold when, generate warning message simultaneously be sent to default object.
In a kind of exemplary embodiment of the disclosure, described device further include:
Registration module, for the registration request in response to the business side, to send road to business side distribution information
Diameter.
According to one aspect of the disclosure, a kind of storage medium is provided, computer program, the computer are stored thereon with
Above-mentioned information push method when program is executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to disappear described in above-mentioned any one via the execution executable instruction to execute
Cease method for pushing.
The information push method of embodiment according to the present invention is able to respond the data-pushing request of different business side, from
And provide standardized message for business side and push interface, keep the access of different business more convenient, succinct.Each business side only needs
The message content and the parameters such as corresponding recipient for predefining message to be sent avoid taking basis between each business platform
The overlapping development of business works.In addition, by adding tag field in propelling data, and according to the tag field to database
Middle verifying transmission state, can accurately judge the transmission state respectively to PUSH message, and the repetition of message is avoided to send or leak hair.
Summary of the invention
The inventors discovered that in the prior art, each upper-layer service, such as each electric business platform, shopping website and social network
It stands etc. and to be required to push service information to user or the message such as sales promotion information.Each business side needs directly docking message push
Infrastructure service, but since the technical solution of each business side is different, the level of technical solution is irregular, is easy to cause message
Not in time, message cannot be accurately sent to for push, or mode is improper causes user experience poor for push, and pushes to message
Abnormal conditions situations such as timely cannot finding and handle.In addition, since each business needs the base of respectively exploitation message push
The case where plinth service, generation overlapping development.
In view of above content, basic thought of the invention is: according to the present invention the information push method of embodiment and
Message driving means, the data-pushing by responding different business side are requested, are pushed away to provide standardized message for business side
Interface is sent, keeps the access of different business more convenient, succinct.Each business side only needs to predefine in the message of message to be sent
The parameters such as appearance and corresponding recipient avoid working to the overlapping development of infrastructure service between each business platform.And then provide one
Message pushes platform, is adapted to different business scenarios, and provide standardized Information Push Service.
After introduced the basic principles of the present invention, lower mask body introduces various non-limiting embodiment party of the invention
Formula.
Illustrative methods
The information push method of illustrative embodiments according to the present invention is described below with reference to Fig. 1.
With reference to Fig. 1, the information push method be may comprise steps of:
S1, requested in response to the data-pushing of business side, extract in data-pushing request to propelling data;Its
In, described to propelling data includes to PUSH message and corresponding tag field, information recipient;
S2, the corresponding transmission state to PUSH message is read into database according to the tag field;
S3, it is described when the transmission state of PUSH message be it is not sent when, call the corresponding information in the applied business side
Transmitting path is described to PUSH message to send.
In the information push method of embodiment of the present invention, the data-pushing by responding different business side is requested, from
And provide standardized message for business side and push interface, keep the access of different business more convenient, succinct.Each business side only needs
The message content and the parameters such as corresponding recipient for predefining message to be sent avoid taking basis between each business platform
The overlapping development of business works.In addition, by adding tag field in propelling data, and according to the tag field to database
Middle verifying transmission state, can accurately judge the transmission state respectively to PUSH message, and the repetition of message is avoided to send or leak hair,
Guarantee that message can be sent to user to the greatest extent.
In step so), in response to the registration request of the business side, to distribute information transmitting path to the business side.
In the illustrative embodiments of the disclosure, refering to what is shown in Fig. 2, each Business Entity, such as electric business website, shopping are put down
Platform, social network sites etc. can be registered in message push platform first.For example, registration content may include each business
The parameters such as Business Name, the business tine description at end.Message pushes platform after receiving the registration request of business side, can
Information transmitting path is allocated in advance for each business side.Further, the corresponding information hair of each information transmitting path can also be configured
Mode is sent, each information transmitting path is corresponding to can have one or more information sender formulas.To avoid for each business
When the PUSH message of side, since information transmitting path is occupied or information transmitting path communicates unstable and system exception etc.
Situation causes to send in time to PUSH message, or sends the situation of mistake.For example, certain shopping website is pushed in message
The registration of platform may include: business name: commodity, which are knocked down-price, freely to be taken;Business description: user is carried out by sharing commodity to good friend
Commodity are knocked down-price, and message is pushed to user by specified information sender formula when commodity are chopped to 0 yuan.
In step sl, requested in response to the data-pushing of business side, extract in data-pushing request wait push
Data;Wherein, described to propelling data includes to PUSH message and corresponding tag field, information recipient.
In the illustrative embodiments of the disclosure, each business side can push platform transmission data-pushing to message and ask
It asks.Include to propelling data in data-pushing request, at least may include specifically disappearing to PUSH message to propelling data
Cease content, corresponding information recipient, and the tag field to PUSH message.Message push platform is receiving business side
After data-pushing request, the parameters in request can be extracted, and verify.
For example, business side can be determined according to content to be sent and other actual demands to propelling data
Design parameter.For example, when the particular content of PUSH message is promotional advertisement, marketing activity or web site activity, it is corresponding
Information recipient can be specified a collection of user, such as user gradation is ordinary user or diamond user or total user
Deng.When PUSH message be logistics distribution message, express delivery receipt information or other specify informations recipient message when, it is corresponding
Information recipient can be some specified user, or the multiple users etc. that are mutually related.
In the illustrative embodiments of the disclosure, for the tag field to PUSH message, idempotent can be used
Tag field is treated PUSH message and is marked.And the structure of idempotent tag field can be pre-configured with.For example, field knot
Structure may include order ID+ idempotent marker bit+mode bit or order ID+ traffic ID;Equal formats.Certainly, the disclosure its
In his illustrative embodiments, can also for field structure setting verifying position, when the structures such as meta position, it is special that the disclosure does not do this
It limits.
It is above-mentioned to disappear including described wait push in propelling data in some exemplary embodiments of the disclosure
Cease the corresponding push time.For example, business side can preset the push period to PUSH message, such as setting 9:
00-17:00 or 12:00-14:00;It is at a time pushed alternatively, also can be set, such as the setting push time is
10:00 or 19:00 etc.;Alternatively, it is to send immediately, such as logistics information, order status are believed that message, which also can be set,
Breath etc..The specific push time can determine according to practical business scene or message content.
In addition, in some exemplary embodiments of the disclosure push time can also be not provided with to propelling data, by disappearing
Breath push platform is respectively classified after the particular content of PUSH message in extraction, according still further to preset push time rule
It is sent.For example, according to classification results, determine that PUSH message be instant message, sales promotion information or information on services etc.,
Pushing time rule may include that instant message is sent immediately, and sales promotion information 10:00-12:00 is sent, information on services 11:
00-14:00 transmission etc..
In some exemplary embodiments of the disclosure, further, in the data-pushing request that business side is sent, may be used also
To include one or more information transmission modes, which kind of mode information reception is sent to by PUSH message for predefining
People.For example, information transmission mode may is that mail, short message, APP push, public platform push, small routine Service Notification with
And information recipient is associated with any one or any a variety of combination in social account push.
For business side, a kind of information transmission mode only can be configured to PUSH message in advance, for example, for ordering
Single logistics information configuration APP push, promotion message setting public platform is pushed etc..Alternatively, a variety of transmissions also can be set
The mode of mode combination, for example, the group of short message, APP push and small routine Service Notification can be configured for reimbursement information
Syntype;For promotional advertisement setting APP is pushed, public platform pushes, the combination push side of small routine Service Notification and mail
Formula etc..Specific message push mode can be according to the content or attributes or the parameter such as information recipient to PUSH message
To determine.The disclosure does not do particular determination to this.
Alternatively, business side can also only be pre-configured with various information and push away in other illustrative embodiments of the disclosure
The priority of business is taken, then determines specific information sender formula according to the priority orders by message push platform.For example, can
To be pre-configured with priority from high to low successively are as follows: APP push, short message, small routine Service Notification, public platform push, mail society
The number of handing over the accounts push etc..Specific priority orders can be determining according to the related content and sending time of message to be sent, this
It is open that particular determination is not done to this.
In step s 2, the corresponding transmission shape to PUSH message is read into database according to the tag field
State.
In the illustrative embodiments of the disclosure, message pushes platform and is extracting every design parameter to propelling data
Afterwards, the corresponding transmission state to PUSH message can be extracted to database first with tag field, realized to the state of transmission
Verifying.It specifically, can be according to the content of idempotent tag field to presetting database, such as MySQL database or cloud
Storage unit, inquire database in whether include the idempotent field data.Identical idempotent field if it exists, then it represents that should be to
PUSH message has been transmitted across, then its state is to have sent.If there is no identical idempotent field, table in database after inquiring
Show that this is not transmitted across to PUSH message, then its state is not sent.
When the transmission state of PUSH message be it is not sent when, refering to what is shown in Fig. 3, above-mentioned step S2 can also include:
Described the database will be written to PUSH message in step S210, and when being written successfully according to the marker word
Duan Jianli index.
In the illustrative embodiments of the disclosure, is determining when PUSH message is to send, can first be written into number
According in library, and when being written successfully, unique index is established according to idempotent tag field in data, to ensure that message to be sent exists
In the case where concurrent, when a plurality of idempotent field identical data write-in database, can only be successfully written a data, avoid user
Receive the duplicate message data of a plurality of content.
Step S220 generates prompt information and is sent to default object described when failure is written in PUSH message.
Based on above content, in the illustrative embodiments of the disclosure, fails if being written to PUSH message, can generate
Corresponding prompt information is sent to designated user or the address of administrator or business side, convenient for attempting to re-write this wait push away
Message is sent, the leakage of message is avoided to send out.
In step s3, the applied business side pair is called when the transmission state of PUSH message is not sent described
The information transmitting path answered is described to PUSH message to send.
In the illustrative embodiments of the disclosure, when determining that message to be sent is not sent, hair can be executed to it
Send operation.Specifically, refering to what is shown in Fig. 4, may include:
Step S310 reads current time to judge whether to meet the push time, for meeting the push
It executes when the time to the transmission to PUSH message.
Before executing transmission operation to message to be sent, push time and current time can be read out first, sentenced
It is disconnected whether to have exceeded the preset push time to PUSH message, if corresponding transmission can be executed by being not above the push time
Operation.If being more than the preset push time, this is not sent to PUSH message.By the way that the sending time of message, realization pair is arranged
Limitation to PUSH message send and it is punctual send, and can be avoided and cause to beat caused by user security risk since sending time is inappropriate
It disturbs.
Step S320 is sent to described to PUSH message in the information transmitting path with the information transmission mode
The information recipient.
In the illustrative embodiments of the disclosure, sent out refering to what is shown in Fig. 4, information can not included in propelling data
Mode is sent, and associated information sender formula sends out message to be sent in advance using the information transmitting path of each business side
It send.Then message push platform is determining after PUSH message is less than the preset push time, can be in preconfigured letter
Transmitting path is ceased, associated information transmission mode executes transmission to message to be sent for utilization.
Specifically, each business can have one or more information transmitting pathes, and each transmitting path can correspond to one kind
Preassigned information transmission mode.For example, can use when business end only has an information transmitting path in the letter
Ceasing transmitting path utilizes preconfigured information transmission mode to user's PUSH message.Alternatively, the corresponding information of business M sends road
Diameter includes path A, and corresponding information transmission mode is APP push;Path B, corresponding information transmission mode are mail push.?
When judging without departing from the push time, can sales promotion information to business M pushed in a manner of mail to user in path B it is related
Promotional messages.Alternatively, order data is sent to user in a manner of APP message in path A.
Alternatively, the corresponding information transmission mode of information transmitting path is also possible to preassigned much information transmission mode
Combined mode is suitable for reaching the higher business of rate or application scenarios to information touching.For example, the corresponding information of business N sends road
Diameter C, corresponding information transmission mode include: the integrated mode of APP push, public platform push and mail push.Message push
Platform, can be respectively by way of APP push, public platform push and mail push when judging without departing from the push time
Message is sent to user simultaneously.So that it is guaranteed that user can receive corresponding message, avoid omitting.
In addition, the corresponding message transmission mode of information transmitting path is also possible to predetermined much information transmission mode
Priority orders.For example, the corresponding information transmitting path D of business P, the priority orders of corresponding information transmission mode are by height
To it is low include: short message, mail, APP push, public platform push, small routine Service Notification, mail social activity account push.Then message
Push platform can extract the available information sending method of each information recipient, then root when judging without departing from the push time
According to preset priority orders, the information of highest priority in the available information sending method of each information recipient is selected to send out
Mode is sent to be sent.For example, if the available information sending method for reading information recipient 1 includes public platform push, little Cheng
Sequence Service Notification is then public platform push according to the information transmission mode of priority orders information recipient 1;If reading letter
The available information sending method of breath recipient 2 includes mail, short message, APP push, then according to priority orders information recipient
2 information transmission mode is short message push.
Alternatively, the priority orders of each information transmission mode can also be delimited according to business scenario.For example, for example user joins
It knocks down-price activity with the commodity on small routine, business side expectation preferentially reaches user by the touching of small routine Service Notification, when small routine takes
Business notice because formid (list mark) exhaust can not touch up to when, touched by way of short message up to user, if the not hand of user
Machine number then passes through public platform and pushes to user, it is ensured that user can know newest activity progress of knocking down-price, but will not be because of message
Excessive harassing and wrecking user.So corresponding priority orders of the srvice instance can be set to small routine Service Notification, short message, the public
Number push.
In addition, in some exemplary embodiments of the disclosure, refering to what is shown in Fig. 5, above-mentioned method can also include:
Step S330 reads the corresponding presupposed information sending method of the information transmitting path, and according to the presupposed information
Sending method sends described to PUSH message.
In the illustrative embodiments of the disclosure, refering to what is shown in Fig. 5, disappearing to also may include in propelling data wait push
The specified information transmission mode of breath.It, can be according to specified information when message push platform judged without departing from the push time
Transmission mode calls corresponding information transmitting path, to send PUSH message to user with specified information transmission mode.
For example, the information transmission mode to specify in propelling data can be according to different information recipient configurations
Different information transmission modes, be also possible to the different information transmission modes configured according to different message content.For example,
When specified information transmission mode is short message, then to should then include the telephone number of information recipient in propelling data;If referring to
It then should include the email address of information recipient in propelling data when fixed information transmission mode is mail.Certainly, in this public affairs
In other exemplary embodiments opened, to can also only include information transmission mode in propelling data, message push platform be being read
It takes respectively after the corresponding specified information transmission mode of PUSH message, then extracts corresponding number into preset customer data base
According to, such as IP address, telephone number or email address etc..
For small routine Service Notification, user can generate corresponding information resources during using small routine,
Such as logon operation, shopping cart is added in commodity, submits the operation such as order, payment and inquiry, it can produce information resources.
The information resources are corresponded with user and are mutually bound with user, and the information resources have certain life cycle.It can be with
Resource pool is established using those information resources, and marks the remaining life cycle of each information resources, and generate the resource information
Corresponding user behavior.When specified information transmission mode is small routine Service Notification, life can be selected in resource pool
The life period, shorter user preferentially sent, such as selection user of the life cycle less than 3 days;It is deposited alternatively, also can choose
It is preferentially sent in the user of specified operation behavior, such as selection login user or payment user.And to those users
Corresponding information resources are deleted in resource pool after transmission message.It, can be maximum to guarantee when using small routine Service Notification
The utilization information resources of degree, and guarantee accurately be sent to each user to PUSH message.
Alternatively, the information transmission mode to specify in propelling data can also in other exemplary embodiments of the disclosure
Being pushed with the integrated mode of the specified much information transmission mode in above-described embodiment, such as mail, social account
Combination or mail, short message, the mode of small routine Service Notification combination, etc..Reading specified much information transmission mode
Combination after, call corresponding information transmitting path, and sent using each information transmission mode.
Alternatively, the information transmission mode to specify in propelling data is also possible to the priority data of information sender formula,
So that message pushes platform after reading the priority data, the available of each information recipient is extracted into presetting database
Information sender formula, and the information sender formula of highest priority is selected, and call corresponding information transmitting path, utilize the letter
Sending method is ceased to user's PUSH message.To guarantee that user can be sent to PUSH message to the greatest extent, and will not be excessive
Send identical information to user, reduce the waste of resource, and avoid harassing and wrecking user.
Based on above content, in some exemplary embodiments of the disclosure, refering to what is shown in Fig. 2, above-mentioned method may be used also
To include:
In step s 4, read the transmission to propelling data in the information transmitting path as a result, in order to
Candidate sending method is called to be transmitted when sending failure.
In the illustrative embodiments of the disclosure, sent after PUSH message by information transmitting path, it can be with
It is read out to result is sent, judges whether message to be sent sends success.If message is sent successfully, can to its without
Operation;If message sends failure, spare information sender formula can be used or call spare information transmitting path with
Retransmit the message.
In addition, in some exemplary embodiments of the disclosure, refering to what is shown in Fig. 2, the above method can also include:
In step s 5, read in the information transmitting path send failure to PUSH message, and send failure
It is described when PUSH message quantity be greater than preset threshold when, generate warning message simultaneously be sent to default object.
In the illustrative embodiments of the disclosure, for each information transmitting path, transmission can be counted in real time
The quantity to PUSH message of failure, and extract corresponding relevant parameter.And reach default threshold sending failure news quantity
When value, warning message is generated.And warning message and the corresponding relevant parameter to PUSH message can be sent to message push
The administrator of platform or the specified object of business side.Convenient for the exception in timely processing system, and to transmission failure news
Carry out the analysis of causes.Sending method can be mail, short message etc..
In conclusion the method that the disclosure provides can distribute corresponding information transmitting path when each business side is registered,
Multiple and different upper-layer services can be docked, and pushes interface for its information for providing standard, allows different business sides only
Message content to be sent, information recipient and sending time and/or sending method are provided, can be pushed away by this message
Platform is sent to push to corresponding user to by message.Mitigate the data processing pressure of business side, and can effectively promote user
Experience.By adding tag field in propelling data, corresponding message to be sent can be accurately judged in the database
Transmission state, avoid repeat send.Due to that can make to PUSH message specified to the addition push time in propelling data
Time be sent to user, avoid sending time is improper from causing to bother user.In addition, being passed by the way that different information is arranged
Defeated mode, can satisfy the demand of upper-layer service multiple business message scene, and message is accurately sent and maximum journey
The guarantee of degree can be sent to user.
Exemplary means
After describing the information push method of exemplary embodiment of the invention, next, with reference to Fig. 6 to the present invention
The message driving means of illustrative embodiments is described.
Refering to what is shown in Fig. 6, the message driving means 10 of exemplary embodiment of the invention may include: request receiving module
101, message status read module 102 and send execution module 103, in which:
The request receiving module 101 can be used for the data-pushing request in response to business side, extracts the data and pushes away
Send request in propelling data;Wherein, described to propelling data includes to PUSH message and corresponding tag field
The message status read module 102 can be used for reading corresponding institute into database according to the tag field
State the transmission state to PUSH message.
The transmission execution module 103 can be used for calling the applied business side pair when transmission state is not sent
The transmitting path answered is described to PUSH message to send.
According to an exemplary embodiment of the present disclosure, described device further include: index establishes module (not shown).
The index establish module can be used for read it is described when the transmission state of PUSH message is not sent, by institute
It states and the database is written to PUSH message, and established and indexed according to the tag field when being written successfully.
According to an exemplary embodiment of the present disclosure, described device further include: prompt information generation module (not shown).
The prompt information generation module can be used for described when failure is written in PUSH message, generate prompt information simultaneously
It is sent to default object.
According to an exemplary embodiment of the present disclosure, described to propelling data further includes described to the corresponding push of PUSH message
Time;Described device further include: push time identification module (not shown).
The push time identification module can be used for read it is described when the transmission state of PUSH message is not sent,
Read current time to judge whether to meet the push time, with for when meeting the push time execution to it is described to
The transmission of PUSH message.
According to an exemplary embodiment of the present disclosure, described to propelling data further include: information transmission mode;The transmission is held
Row module includes: transmission mode selecting module (not shown).
The transmission mode selecting module can be used in the information transmitting path will with the information transmission mode
It is described to be sent to the information recipient to PUSH message.
According to an exemplary embodiment of the present disclosure, the transmission execution module include: transmission mode read module (in figure not
It shows).
The transmission mode read module can be used for reading the corresponding presupposed information sender of the information transmitting path
Formula, and it is described to PUSH message according to presupposed information sending method transmission.
According to an exemplary embodiment of the present disclosure, the presupposed information sending method includes combination sending mode;The biography
Defeated mode read module includes: integrated mode transmission module (not shown).
The integrated mode transmission module can be used for utilizing each information sender formula point in the combination sending mode
It Fa Song not be described to PUSH message.
According to an exemplary embodiment of the present disclosure, the presupposed information sending method includes that the information transmitting path is corresponding
Information sender formula priority data;The transmission mode read module includes:
Priority mode transmission module, for extracting the corresponding available information sending method of the information recipient, and root
According to the priority data, this is configured wait push away by the information sender formula of highest priority in the available information sending method
Send the information sender formula of message.
According to an exemplary embodiment of the present disclosure, the information sender formula includes: mail, short message, APP push, the public
Number push, small routine Service Notification and information recipient are associated with any one or any a variety of group in social account push
It closes.
According to an exemplary embodiment of the present disclosure, described device further include: transmission result identification module (not shown).
The transmission result identification module can be used for sending described after PUSH message, read described to propelling data
Transmission in the information transmitting path when sending failure as a result, in order to call candidate sending method to be transmitted.
According to an exemplary embodiment of the present disclosure, described device further include: alarm module (not shown).
The alarm module can be used for reading sent in the information transmitting path failure to PUSH message, and sending out
The described when PUSH message quantity is greater than preset threshold of failure is sent, warning message is generated and is sent to default object.
According to an exemplary embodiment of the present disclosure, described device further include: registration module (not shown).
The registration module can be used for the registration request in response to the business side, to distribute information to the business side
Transmitting path.
Since each functional module of the message driving means of embodiment of the present invention and above-mentioned information push method are invented
It is identical in embodiment, therefore details are not described herein.
Exemplary storage medium
The audio frequency playing method and device, audio sharing method and device for describing exemplary embodiment of the invention it
Afterwards, next, being illustrated with reference to storage medium of the Fig. 7 to exemplary embodiment of the invention.
Refering to what is shown in Fig. 7, describing the program product for realizing the above method of embodiment according to the present invention
700, can using portable compact disc read only memory (CD-ROM) and including program code, and can in equipment, such as
It is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing, which can be, appoints
What include or the tangible medium of storage program that the program can be commanded execution system, device or device use or and its
It is used in combination.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional mistake
Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user
It is executed in equipment, part executes on a remote computing or sets completely in remote computation on the user computing device for part
It is executed on standby or server.In the situation for being related to remote computing device, remote computing device can pass through the net of any kind
Network, including local area network (LAN) or wide area network (WAN), are connected to user calculating equipment, or, it may be connected to outside calculates and sets
Standby (such as being connected using ISP by internet).
Example electronic device
After describing the storage medium of exemplary embodiment of the invention, next, with reference to Fig. 8 to example of the present invention
The electronic equipment of property embodiment is illustrated.
The electronic equipment 800 that Fig. 8 is shown is only an example, should not function and use scope to the embodiment of the present invention
Bring any restrictions.
As shown in figure 8, electronic equipment 800 is showed in the form of universal computing device.The component of electronic equipment 800 can wrap
It includes but is not limited to: at least one above-mentioned processing unit 810, at least one above-mentioned storage unit 820, the different system components of connection
The bus 830 of (including storage unit 820 and processing unit 810), display unit 840.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 810
Row, so that various according to the present invention described in the execution of the processing unit 810 above-mentioned " illustrative methods " part of this specification
The step of illustrative embodiments.For example, the processing unit 810 can execute step S1 to step S3 as shown in fig. 1,
Or the processing unit 810 can execute step S0 to step S5 as shown in Figure 2.
Storage unit 820 may include volatile memory cell, for example, Random Access Storage Unit (RAM) 8201 and/or
Cache memory unit 8202 can further include read-only memory unit (ROM) 8203.
Storage unit 820 can also include program/utility with one group of (at least one) program module 8205
8204, such program module 8205 includes but is not limited to: operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 830 may include data/address bus, address bus and control bus.
Electronic equipment 800 can also be with one or more external equipments 900 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communicate, this communication can be carried out by input/output (I/O) interface 850.Electronic equipment 800 further includes display unit
840, it is connected to input/output (I/O) interface 850, for being shown.Also, electronic equipment 800 can also pass through network
Adapter 860 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because of spy
Net) communication.As shown, network adapter 860 is communicated by bus 830 with other modules of electronic equipment 800.It should be bright
It is white, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 800, including but not limited to:
Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data are standby
Part storage system etc..
It should be noted that although being referred to several moulds of audio playing apparatus and audio sharing apparatus in the above detailed description
Block or submodule, but it is this division be only exemplary it is not enforceable.In fact, embodiment party according to the present invention
The feature and function of formula, two or more above-described units/modules can embody in a units/modules.Conversely,
The feature and function of an above-described units/modules can be to be embodied by multiple units/modules with further division.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or
Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired
As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one
Step is decomposed into execution of multiple steps.
Although detailed description of the preferred embodimentsthe spirit and principles of the present invention are described by reference to several, it should be appreciated that, this
It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects
Combination is benefited to carry out, this to divide the convenience merely to statement.The present invention is directed to cover appended claims spirit and
Included various modifications and equivalent arrangements in range.