Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The embodiments of the invention provide a kind of information push method, including:
S100:User's login is detected whether;
Username and password typically can be all inputted when logging in system by user, after the completion of input, sends and steps on to server
Record request, or in the case of non-first time login system, logging request is sent to server by the way of automated log on,
In this step, when server receives logging request or the automated log on request of user's transmission, user's login just can confirm that.
S200:When having detected user's login, the login time is obtained;
In this step, when server end has detected user's login, the login time of user is obtained.Specifically,
In actual mechanical process, can first detect user terminal whether the time synchronized with server end, if not
It is synchronous, time synchronized first is carried out in user terminal and server end, then obtain the login time of user.
S300:The message that login time filtering according to getting prestores;
In the embodiment of the present invention, whether the resource that message is used to identify in the commending contents position of terminal setting has renewal.
During resource in the commending contents position of layout terminal, resource mentioned here can be picture, website, video, can also be should
With, game etc., one resource entry-into-force time of each resource allocation and the URL addresses where resource typically can be all given, moreover,
During server end layout resource, the collection initial time and its collection period of a resource can be typically set, according to set
The resource entry-into-force time can be calculated in collection initial time and collection period, and the collection that the resource entry-into-force time is generally resource rises
Time beginning adds certain delay, because to ensure that user can see and energy when current time reaches the resource entry-into-force time
The resource in commending contents position is enough got, therefore, before current time reaches the distributed resource entry-into-force time, server
The resource after renewal is obtained from the URL addresses, the resource after the renewal of acquisition is write into corresponding commending contents position.In this way,
When current time reaches the resource entry-into-force time, after user is it is seen that can simultaneously get the renewal in commending contents position
Resource.
Preferably, the message to be prestored according to the login time filtering got is specifically as follows:Judge the login time
Whether between message entry-into-force time and message out-of-service time, if so, then extracting the message.
The message entry-into-force time in this programme can be consistent with the resource entry-into-force time above-mentioned, can also resource come into force
Time after time delay certain time length.Next resource of commending contents position of the message out-of-service time where the resource
The message entry-into-force time.
In step s 200, after getting the login time of user, the login time of user is compared and when message comes into force
Between and the message out-of-service time size, be more than the message entry-into-force time if logged on the time, and be less than the message out-of-service time, that is, step on
The time is recorded between message entry-into-force time and message out-of-service time, then is come out message extraction.
S400:Judge whether the message after filtering has been issued to the user;
S500:If it is not, the message after filtering is sent to the user;
As a kind of preferable mode of the embodiment of the present invention, also include after step S500:
The message sent and the user are marked, the user is had transmitted to identify the message.
Because between message entry-into-force time and message out-of-service time, user repeatedly may be signed among system, and
As soon as if detecting that user logs in, effective message in the login time of user is sent to user, message certainly will be caused
Repeat to send, so as to influence Consumer's Experience.So in the embodiment of this programme, in order to avoid there is the above situation, to having sent out
The message for giving user is marked, and the user is had transmitted to for identifying the message, whether judges the message after filtering
When having been issued to the user, whether the message after query filter has the mark, if carrying the mark in message, illustrates that this disappears
Breath has had transmitted to user, then no longer transmits the message to user.User terminal receives the message of server end transmission
When, user terminal can be stored the messages in, when reaching the message out-of-service time, is deleted the message of failure by user terminal.
It should be noted that in the present embodiment, except can be transmitted the message to when user logs in outside user, also
The message push request of server can be sent to according to user, is sent to the corresponding message of user.Certainly, user can also select
Select and do not send message push request, only passively receive the message of server end transmission, specifically, one can be set in terminal
Push switch, when push switch is closed mode, user asks PUSH message without normal direction server end, when the push switchs
When being opening, user can send the request message of message push to server end.
Based on any of the above-described embodiment, the content of message can include the message entry-into-force time, resource link, resource class with
And the message out-of-service time.Based on the present embodiment, step S500 is specially:By the message entry-into-force time of the message, resource link,
Resource class and message out-of-service time are sent to user;
It should be noted that in the case where servers'data amount is little, the message entry-into-force time can come into force with resource
Time consistency, still, in the case where servers'data amount is very big, in order to ensure that user when receiving message, can obtain
Get respective resources, that is to say, that in order to ensure user when receiving message, user can visit according to the message got
The resource link of message is asked, so as to get corresponding resource, appropriate duration can be postponed according to actual conditions, such as, 1
Minute, 5 minutes etc., but also for ensureing expired message not to be sent into user simultaneously, message will come into force in message
Sent between time and message out-of-service time, so, both ensure that will not be sent to user by the message related to resources to have failed, again
It can ensure that user can get corresponding resource in the case where servers'data amount is very big.
Based on any of the above-described embodiment, server end enters according to the log-on message of user to the message to be prestored in database
Row filtering, obtains the effective message in the login time of user.With the raising of the content service ability of terminal, commending contents
Position is more and more, and correspondingly, available resource is with regard to many in commending contents position, and correspondingly, the message that can be found is also more next
More, so, the message that user receives is also more and more, interested disappears so as to cause user to quickly find oneself
Breath, based on this, extracts its resource class from the message of acquisition, than picture as described above, website, regards in this programme
Frequently, the resource class such as application, game, and by after filtering to message classified according to resource class, and disappear sorted
Breath is sent to user, so, can be according to the message of classification, by message when user receives the message of server end push
It is shown by its classification on the same page, therefore, user can fully understand the full content currently updated, and according to
The hobby of itself selects media resource interested.
Based on same inventive concept, as shown in figure 3, the embodiment of the present invention additionally provides a kind of message pusher, bag
Detection module is included, for detecting whether there is user's login, if having detected user's login, testing result is sent to login
Time-obtaining module;Login time acquisition module, after the testing result sent for receiving the detection module, obtain this and step on
The time is recorded, and the login time is sent to Message screening module, or the login time is stored for message screening mould
Block is read;Memory module, for storing the message;Message screening module, for receiving the login time acquisition module hair
The login time that send or after the login time acquisition module reads the login time, during according to the login got
Between filter memory module in message, the message after filtering is sent to judge module;Judge module, for judging to disappear from described
Whether the message obtained in breath filtering module has transmitted to the user, if judged result is no, will determine that result and mistake
Message after filter is sent to message transmission module;Message transmission module, for the message after filtering to be sent into user.Wherein,
When the resource in commending contents position that the message is used to set when terminal has renewal, notify that the resource has renewal to user.
In the embodiment of the present invention, detection module is for detecting whether there is user's login.
Username and password typically can be all inputted when logging in system by user, after the completion of input, sends and steps on to server
Record request, or in the case of non-first time login system, logging request is sent to server by the way of automated log on,
In this step, when server receives logging request or the automated log on request of user's transmission, user's login just can confirm that.
When detection module has detected user's login, testing result is sent to login time acquisition module.
Login time acquisition module is used for after receiving the testing result that the detection module is sent, and obtains the login
Time, and the login time is sent to Message screening module, or the login time is stored for Message screening module
Read;In actual mechanical process, can first detect user terminal whether the time synchronized with server end, if different
Step, time synchronized first is carried out in user terminal and server end, then obtain the login time of user.
Memory module, for storing the message.
In the present embodiment, in the resource in the commending contents position of layout terminal, resource mentioned here can be picture,
Website, video, application, game etc. are can also be, can prestore a piece of news in the database of server end, it is preferable that
The message content stored in memory module can include the message entry-into-force time, the message out-of-service time, institute's layout resource it is resources-type
Other and resource link etc..
Message screening module, for receiving login time that the login time acquisition module sends or from the login
, will according to the message in the login time filtering memory module got after time-obtaining module reads the login time
Message after filtering is sent to judge module;Preferably, Message screening module also includes comparison module, for the login
Whether the time is more than the message entry-into-force time and is less than the message out-of-service time, if so, message extraction out then is issued into judge module
The login time is judged whether between message entry-into-force time and message out-of-service time, if so, then extracting the message.Wherein,
Whether the message that judge module is used to judge to obtain from the Message screening module has transmitted to the user, if judging knot
Fruit is no, then will determine that result is sent to message transmission module;Message after filtering is sent to user by message module user.
Preferably, the present apparatus also includes mark module, for the message for marking message transmission module to send, to identify this
Message has transmitted to the user.
Because between message entry-into-force time and message out-of-service time, user repeatedly may be signed among system, and
As soon as if detecting that user logs in, effective message in the login time of user is sent to user, message certainly will be caused
Repeat to send, so as to influence Consumer's Experience.So in the embodiment of this programme, in order to avoid there is the above situation, to having sent out
The message for giving user is marked, and the user is had transmitted to for identifying the message, whether judges the message after filtering
When having been issued to the user, whether the message after query filter has the mark, if carrying the mark in message, illustrates that this disappears
Breath has had transmitted to user, then no longer transmits the message to user.User terminal receives the message of server end transmission
When, user terminal can be stored the messages in, when reaching the message out-of-service time, is deleted the message of failure by user terminal.
Preferably, the present apparatus also includes extraction module, for extracting its resource class from the message after filtering;Classification
Module, for the message after filtering to be classified according to the resource class that the extraction module extracts;
Classification sending module, for sorted message in the sort module to be sent into user.
Based on any of the above-described embodiment, server end enters according to the log-on message of user to the message to be prestored in database
Row filtering, obtains the effective message in the login time of user.With the raising of the content service ability of terminal, commending contents
Position is more and more, and correspondingly, available resource is with regard to many in commending contents position, and correspondingly, the message that can be found is also more next
More, so, the message that user receives is also more and more, interested disappears so as to cause user to quickly find oneself
Breath, based on this, extracts its resource class from the message of acquisition, than picture as described above, website, regards in this programme
Frequently, the resource class such as application, game, and by after filtering to message classified according to resource class, and disappear sorted
Breath is sent to user, so, can be according to the message of classification, by message when user receives the message of server end push
It is shown by its classification on the same page, therefore, user can fully understand the full content currently updated, and according to
The hobby of itself selects media resource interested.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation
The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.