CN104320325B - A message push method and device - Google Patents
A message push method and device Download PDFInfo
- Publication number
- CN104320325B CN104320325B CN201410303841.XA CN201410303841A CN104320325B CN 104320325 B CN104320325 B CN 104320325B CN 201410303841 A CN201410303841 A CN 201410303841A CN 104320325 B CN104320325 B CN 104320325B
- Authority
- CN
- China
- Prior art keywords
- message
- user
- time
- module
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种消息推送方法及装置。The present invention relates to the field of communication technologies, in particular to a message pushing method and device.
背景技术Background technique
目前,智能终端能够提供给用户大量的图片、视频、应用、游戏等内容,为了将这些内容推荐给用户,很多的智能终端厂商在智能终端的导航页或者Launcher页面上设置了内容推荐位,通过编排内容推荐位的资源,推荐给用户不断更新的内容。At present, smart terminals can provide users with a large amount of content such as pictures, videos, applications, and games. In order to recommend these contents to users, many smart terminal manufacturers have set content recommendation positions on the navigation page or Launcher page of smart terminals. Arrange resources for content recommendation, recommending constantly updated content to users.
现有技术通常采用推送技术使用户了解更新的内容,即通过传送消息给用户,来减少用户网上搜索的时间,帮助用户高效率地发掘有价值的信息。如图1所示,现有技术中在编排内容推荐位上的资源时,通常会在编排页面上增加一个发送消息的选项,编排好内容推荐位上的资源后,当要发送给用户导航页或者Launcher页面上某个内容推荐位上的资源更新消息时,需要后台运营人员查询编排页面,当查找到当前已经生效的资源时,选择发送消息选项,将这条资源更新的消息发送给用户。The prior art usually adopts a push technology to make users understand updated content, that is, by sending messages to users, to reduce users' online search time and help users discover valuable information efficiently. As shown in Figure 1, when arranging the resources on the content recommendation position in the prior art, an option to send a message is usually added on the arrangement page. Or when there is a resource update message on a certain content recommendation position on the Launcher page, the background operator needs to query the layout page. When a resource that has already taken effect is found, select the Send message option to send the resource update message to the user.
发明人在实现过程中发现,由于需要后台运营人员控制更新消息的发送,势必需要运营人员不断地查询编排页面,尤其当编排页面很多时,运营人员需要逐个查询编排页面以获得当前有更新的资源,这样就很容易出现没有及时将当前已经生效的资源的更新消息发送给用户,或者将当前还未生效的资源的更新消息发送给了用户,而导致用户不能及时获取资源更新消息或者当用户接收到了更新消息,但是消息对应的资源还未生效,用户无法获取相应资源的弊端。The inventor found in the implementation process that since background operators need to control the sending of update messages, operators must constantly query the layout pages, especially when there are many layout pages, operators need to query the layout pages one by one to obtain current updated resources , so it is easy to fail to send the update message of the resource that has already taken effect to the user in time, or send the update message of the resource that has not yet taken effect to the user in time, resulting in the user not being able to obtain the resource update message in time or when the user receives the resource update message The update message has arrived, but the resource corresponding to the message has not yet taken effect, and the user cannot obtain the corresponding resource.
发明内容Contents of the invention
本发明提供了一种消息推送方法及装置,用以解决现有技术中存在的用户不能及时获取资源更新消息以及获取到资源更新消息后,无法获取相应资源的问题。The present invention provides a method and device for pushing messages, which are used to solve the problems in the prior art that users cannot obtain resource update messages in time and cannot obtain corresponding resources after obtaining resource update messages.
本发明提供的一种消息推送方法,该方法包括检测是否有用户登录;当检测到有用户登录时,获取该登录时间;根据获取到的登录时间过滤预存的消息;判断过滤后的消息是否已发送给所述用户;若否,将过滤后的消息发送给所述用户;其中,所述消息用于当终端设置的内容推荐位上的资源有更新时,通知用户该资源有更新。A method for pushing messages provided by the present invention, the method includes detecting whether a user logs in; when detecting a user logging in, obtaining the log-in time; filtering pre-stored messages according to the obtained log-in time; judging whether the filtered messages have been Send it to the user; if not, send the filtered message to the user; wherein, the message is used to notify the user that the resource is updated when the resource on the content recommendation position set by the terminal is updated.
作为同一个发明构思,本发明还提供了一种消息推送装置,包括检测模块,用于检测是否有用户登录,如果检测到有用户登录,则将检测结果发送给登录时间获取模块;登录时间获取模块,用于接收到所述检测模块发送的检测结果后,获取该登录时间,并将该登录时间发送给消息过滤模块,或者将所述登录时间保存以供消息过滤模块读取;存储模块,用于存储所述消息;消息过滤模块,用于接收所述登录时间获取模块发送的登录时间或者从所述登录时间获取模块读取到所述登录时间后,根据获取到的登录时间过滤存储模块中的消息,As the same inventive concept, the present invention also provides a message push device, including a detection module for detecting whether there is a user login, and if a user login is detected, the detection result is sent to the login time acquisition module; the login time acquisition module A module, configured to obtain the login time after receiving the detection result sent by the detection module, and send the login time to the message filtering module, or save the login time for the message filtering module to read; the storage module, for storing the message; a message filtering module, configured to receive the login time sent by the login time acquisition module or to filter the storage module according to the acquired login time after reading the login time from the login time acquisition module message in
将过滤后的消息发送给判断模块;判断模块,用于判断从所述消息过滤模块中获取的消息是否已经发送给所述用户,若判断结果为否,则将判断结果和过滤后的消息发送给消息发送模块;消息发送模块,用于将过滤后的消息发送给用户。其中,所述消息用于当终端设置的内容推荐位上的资源有更新时,通知用户该资源有更新。The filtered message is sent to the judging module; the judging module is used to judge whether the message obtained from the message filtering module has been sent to the user, and if the judging result is no, then the judging result and the filtered message are sent To the message sending module; the message sending module is used to send the filtered message to the user. Wherein, the message is used for notifying the user that the resource on the content recommendation position set by the terminal has been updated.
本发明提供的一种消息推送方法及装置中,所述消息是在编排内容推荐位上的资源时,服务器端自动同步生成并存储在数据库中的消息,用于当终端设置的内容推荐位上的资源更新时,将消息发送给用户,以便通知用户资源更新。当检测到有用户登录时,即检测到用户连接到系统之后,获取用户的登录时间,根据获取到的登录时间过滤预存在数据库中的消息,如果判断过滤后的消息还没有发给过该用户,则将过滤后的消息发送给该用户。本方案中,由于当检测到用户登录后,不需要人为参与,后台自动将数据库中的消息按照登录时间进行过滤,过滤出当前时间有效的消息发送给用户,避免了现有技术中,由于需要运营人员控制消息的发送所带来的不能及时将当前已经生效的消息发送给用户,或者将还未生效的消息发送给用户导致的用户无法获取相应资源的弊端。In the message push method and device provided by the present invention, the message is a message automatically generated by the server and stored in the database when arranging the resources on the content recommendation position, and is used when the content recommendation position set by the terminal When the resource of the resource is updated, a message is sent to the user to notify the user of the resource update. When a user login is detected, that is, after the user is connected to the system, the user's login time is obtained, and the messages pre-stored in the database are filtered according to the obtained login time. If it is judged that the filtered message has not been sent to the user , the filtered message is sent to the user. In this solution, since no human participation is required after detecting that the user has logged in, the background automatically filters the messages in the database according to the login time, and filters out valid messages at the current time and sends them to the user, avoiding the need to Operators control the sending of messages, resulting in the inability to send messages that have already taken effect to users in a timely manner, or send messages that have not yet taken effect to users, resulting in the disadvantage that users cannot obtain corresponding resources.
附图说明Description of drawings
图1为现有技术中手动编排内容示意图。Fig. 1 is a schematic diagram of manually editing content in the prior art.
图2为本发明实施例中一种消息推送方法的流程图。Fig. 2 is a flow chart of a message pushing method in an embodiment of the present invention.
图3为本发明实施例中一种消息推送装置的结构示意图。Fig. 3 is a schematic structural diagram of a message push device in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例提供了一种消息推送方法,包括:An embodiment of the present invention provides a message push method, including:
S100:检测是否有用户登录;S100: Detect whether there is a user login;
用户登录系统的时候一般都会输入用户名和密码,输入完成后,向服务器发送登录请求,或者在非第一次登录系统的情况下,采用自动登录的方式向服务器发送登录请求,本步骤中,服务器接收到用户发送的登录请求或者自动登录请求时,就能确认有用户登录。When the user logs in to the system, the user usually enters the user name and password. After the input is completed, the login request is sent to the server, or in the case of not logging in to the system for the first time, the login request is sent to the server by means of automatic login. In this step, the server When a login request from a user or an automatic login request is received, a user login can be confirmed.
S200:当检测到有用户登录时,获取该登录时间;S200: When it is detected that a user logs in, obtain the login time;
本步骤中,服务器端检测到有用户登录时,获取用户的登录时间。具体地,In this step, when the server side detects that a user logs in, it obtains the user's login time. specifically,
在实际操作过程中,可以先检测一下用户端是否和服务器端的时间同步,如果不同步,先在用户端和服务器端进行时间同步,再获取用户的登录时间。In the actual operation process, you can first check whether the time of the client and the server are synchronized. If not, first synchronize the time between the client and the server, and then obtain the user's login time.
S300:根据获取到的登录时间过滤预存的消息;S300: Filter the pre-stored messages according to the obtained login time;
本发明实施例中,消息用于标识终端设置的内容推荐位上的资源是否有更新。在编排终端的内容推荐位上的资源时,这里所说的资源可以是图片、网站、视频、还可以是应用、游戏等等,一般都会给每一个资源分配一个资源生效时间及资源所在的URL地址,而且,服务器端编排资源时,一般会设置一个资源的采集起始时间及其采集周期,根据所设置的采集起始时间和采集周期可以计算得到资源生效时间,资源生效时间一般为资源的采集起始时间加上一定的延迟,因为要保证当当前时间到达资源生效时间时,用户可以看到并能够获取到内容推荐位上的资源,因此,当当前时间到达所分配的资源生效时间之前,服务器从该URL地址中获取更新后的资源,将获取的更新后的资源写入相应的内容推荐位。如此,当当前时间到达资源生效时间时,用户就可以看到并能够获取到内容推荐位上的更新后的资源。In the embodiment of the present invention, the message is used to identify whether the resource on the content recommendation position set by the terminal has been updated. When arranging the resources on the content recommendation position of the terminal, the resources mentioned here can be pictures, websites, videos, applications, games, etc. Generally, each resource will be assigned a resource effective time and the URL where the resource is located Address, and, when the server arranges resources, it will generally set a collection start time and collection cycle of a resource. According to the set collection start time and collection cycle, the effective time of the resource can be calculated. The effective time of the resource is generally the resource's effective time Add a certain delay to the collection start time, because it is necessary to ensure that when the current time reaches the effective time of the resource, the user can see and obtain the resources on the content recommendation position. Therefore, when the current time reaches the allocated resource effective time , the server obtains the updated resource from the URL address, and writes the obtained updated resource into the corresponding content recommendation position. In this way, when the current time reaches the effective time of the resource, the user can see and obtain the updated resource on the content recommendation position.
优选地,根据获取到的登录时间过滤预存的消息具体可以为:判断所述登录时间是否在消息生效时间与消息失效时间之间,若是,则提取该消息。Preferably, filtering the pre-stored messages according to the obtained login time may be specifically: judging whether the login time is between the effective time of the message and the invalidation time of the message, and if so, extracting the message.
本方案中的消息生效时间可以和上面提到的资源生效时间一致,也可以资源生效时间延迟一定时长之后的时间。消息失效时间为所述资源所在的内容推荐位的下一个资源的消息生效时间。The effective time of the message in this solution can be the same as the effective time of the resource mentioned above, or it can be delayed for a certain period of time after the effective time of the resource. The message expiration time is the effective time of the message of the resource next to the content recommendation position where the resource is located.
在步骤S200中,获取到用户的登录时间之后,比较用户的登录时间和消息生效时间以及消息失效时间的大小,如果登录时间大于消息生效时间,且小于消息失效时间,即登录时间在消息生效时间和消息失效时间之间,则将消息提取出来。In step S200, after obtaining the user's login time, compare the user's login time with the message effective time and the message expiration time, if the login time is greater than the message effective time and less than the message expiration time, that is, the login time is within the message effective time and the message expiration time, the message is extracted.
S400:判断过滤后的消息是否已发送给所述用户;S400: Determine whether the filtered message has been sent to the user;
S500:若否,将过滤后的消息发送给所述用户;S500: If not, send the filtered message to the user;
作为本发明实施例的一种优选的方式,在步骤S500之后还包括:As a preferred manner of the embodiment of the present invention, after step S500, it also includes:
标记该已发送的消息及所述用户,以便标识该消息已经发送给所述用户。The sent message and the user are marked to identify that the message has been sent to the user.
因为在消息生效时间和消息失效时间之间,用户可能会多次登录到系统当中,而如果一检测到用户登录,就将用户的登录时间内有效的消息发送给用户,势必造成消息的重复发送,从而影响用户体验。所以,本方案的实施例中,为了避免出现上述情况,对已经发送给用户的消息进行标记,用于标识该消息已经发送给所述用户,判断过滤后的消息是否已发送给所述用户时,查询过滤后的消息是否有该标记,如果消息中带有该标记,说明该消息已经发送给了用户,则不再将该消息发送给用户。用户终端接收到服务器端发送的消息时,可以将消息存储在用户终端,当到达消息失效时间时,由用户终端将失效的消息删除。Because between the effective time of the message and the invalidation time of the message, the user may log in to the system multiple times, and if the user's login is detected, the valid message within the user's login time will be sent to the user, which will inevitably cause repeated sending of messages , thereby affecting the user experience. Therefore, in the embodiment of this solution, in order to avoid the above situation, the message that has been sent to the user is marked to identify that the message has been sent to the user, and when judging whether the filtered message has been sent to the user , to check whether the filtered message has this mark, if the message has this mark, it means that the message has been sent to the user, and the message will not be sent to the user. When the user terminal receives the message sent by the server, the message can be stored in the user terminal, and when the expiration time of the message is reached, the user terminal will delete the expired message.
需要说明的是,本实施例中,除了可以在用户登录时,将消息发送给用户之外,还可以根据用户发送给服务器的消息推送请求,发送给用户相应的消息。当然,用户也可以选择不发送消息推送请求,只被动地接收服务器端发送的消息,具体地,可以在终端设置一个推送开关,当该推送开关是关闭状态时,用户无法向服务器端请求推送消息,当该推送开关是开启状态时,用户可以向服务器端发送消息推送的请求消息。It should be noted that, in this embodiment, in addition to sending a message to the user when the user logs in, a corresponding message may also be sent to the user according to a message push request sent by the user to the server. Of course, the user can also choose not to send a message push request, and only passively receive the message sent by the server. Specifically, a push switch can be set on the terminal. When the push switch is turned off, the user cannot request a push message from the server. , when the push switch is on, the user can send a message push request message to the server.
基于上述任一实施例,消息的内容可以包括消息生效时间,资源链接、资源类别以及消息失效时间。基于本实施例,步骤S500具体为:将所述消息的消息生效时间、资源链接、资源类别以及消息失效时间发送给用户;Based on any of the above embodiments, the content of the message may include message effective time, resource link, resource type, and message expiration time. Based on this embodiment, step S500 is specifically: sending the message effective time, resource link, resource type and message expiration time of the message to the user;
需要说明的是,在服务器端数据量不大的情况下,消息生效时间可以和资源生效时间一致,但是,在服务器端数据量很大的情况下,为了保证用户在接收到消息时,能够获取到相应资源,也就是说,为了保证用户在接收到消息时,用户可以根据获取到的消息,访问消息的资源链接,从而获取到相应的资源,可以根据实际情况,延迟适当的时长,比如,1分钟,5分钟等,但是同时还为了保证不将已经过期的消息发送给用户,消息要在消息生效时间与消息失效时间之间发送,这样,既保证了不会将已经失效的资源消息发送给用户,又能在服务器端数据量很大的情况下,保证用户可以获取到相应的资源。It should be noted that when the amount of data on the server side is not large, the effective time of the message can be consistent with the effective time of the resource. However, in the case of a large amount of data on the server side, in order to ensure that the user can obtain the To the corresponding resource, that is to say, in order to ensure that when the user receives the message, the user can access the resource link of the message according to the obtained message, so as to obtain the corresponding resource, the appropriate time can be delayed according to the actual situation, for example, 1 minute, 5 minutes, etc., but at the same time, in order to ensure that the expired message will not be sent to the user, the message should be sent between the message effective time and the message expiration time, so as to ensure that the expired resource message will not be sent For users, it can also ensure that users can obtain corresponding resources when the amount of data on the server side is large.
基于上述任一实施例,服务器端根据用户的登录信息,对数据库中预存的消息进行过滤,得到在用户的登录时间内有效的消息。随着终端的内容服务能力的提高,内容推荐位越来越多,相应地,内容推荐位上可提供的资源就很多,相应地,可查找到的消息也越来越多,这样,用户接收到的消息也越来越多,从而导致用户不能很快地找到自己感兴趣的消息,基于此,本方案中从获取的消息中提取出其资源类别,比如之前所述的图片、网站、视频、应用、游戏等资源类别,并将过滤后到的消息按照资源类别进行分类,并将分类后的消息发送给用户,这样,当用户接收到服务器端推送的消息时,可以根据分类的消息,将消息按其类别在同一个页面上进行展示,因此,用户可以全面了解当前更新的全部内容,并根据自身的喜好选择感兴趣的媒体资源。Based on any of the above embodiments, the server side filters the pre-stored messages in the database according to the user's login information to obtain messages that are valid within the user's login time. With the improvement of the content service capability of the terminal, there are more and more content recommendation positions. Correspondingly, there are many resources that can be provided on the content recommendation positions. Correspondingly, more and more messages can be found. In this way, users receive There are more and more messages received, which makes users unable to quickly find the messages they are interested in. Based on this, this solution extracts the resource categories from the received messages, such as the pictures, websites, and videos mentioned above. , applications, games and other resource categories, and classify the filtered messages according to the resource categories, and send the classified messages to the user. In this way, when the user receives the message pushed by the server, according to the classified message, The news is displayed on the same page according to its category, so users can fully understand all the content of the current update, and choose the media resources they are interested in according to their preferences.
基于同样的发明构思,如图3所示,本发明实施例还提供了一种消息推送装置,包括检测模块,用于检测是否有用户登录,如果检测到有用户登录,则将检测结果发送给登录时间获取模块;登录时间获取模块,用于接收到所述检测模块发送的检测结果后,获取该登录时间,并将该登录时间发送给消息过滤模块,或者将所述登录时间保存以供消息过滤模块读取;存储模块,用于存储所述消息;消息过滤模块,用于接收所述登录时间获取模块发送的登录时间或者从所述登录时间获取模块读取到所述登录时间后,根据获取到的登录时间过滤存储模块中的消息,将过滤后的消息发送给判断模块;判断模块,用于判断从所述消息过滤模块中获取的消息是否已经发送给所述用户,若判断结果为否,则将判断结果和过滤后的消息发送给消息发送模块;消息发送模块,用于将过滤后的消息发送给用户。其中,所述消息用于用于当终端设置的内容推荐位上的资源有更新时,通知用户该资源有更新。Based on the same inventive concept, as shown in Figure 3, the embodiment of the present invention also provides a message push device, including a detection module, used to detect whether there is a user login, and if it is detected that a user is logged in, the detection result is sent to The login time acquisition module; the login time acquisition module is used to obtain the login time after receiving the detection result sent by the detection module, and send the login time to the message filtering module, or save the login time for message The filtering module reads; the storage module is used to store the message; the message filtering module is used to receive the login time sent by the login time acquisition module or read the login time from the login time acquisition module, according to The obtained login time filters the messages in the storage module, and sends the filtered messages to the judging module; the judging module is used to judge whether the message obtained from the message filtering module has been sent to the user, if the judging result is If not, send the judgment result and the filtered message to the message sending module; the message sending module is used to send the filtered message to the user. Wherein, the message is used for notifying the user that the resource on the content recommendation position set by the terminal has been updated.
本发明实施例中,检测模块用于检测是否有用户登录。In the embodiment of the present invention, the detection module is used to detect whether there is a user logging in.
用户登录系统的时候一般都会输入用户名和密码,输入完成后,向服务器发送登录请求,或者在非第一次登录系统的情况下,采用自动登录的方式向服务器发送登录请求,本步骤中,服务器接收到用户发送的登录请求或者自动登录请求时,就能确认有用户登录。当检测模块检测到有用户登录,将检测结果发送给登录时间获取模块。When the user logs in to the system, the user usually enters the user name and password. After the input is completed, the login request is sent to the server, or in the case of not logging in to the system for the first time, the login request is sent to the server by means of automatic login. In this step, the server When a login request from a user or an automatic login request is received, a user login can be confirmed. When the detection module detects that a user logs in, the detection result is sent to the login time acquisition module.
登录时间获取模块用于用于接收到所述检测模块发送的检测结果后,获取该登录时间,并将该登录时间发送给消息过滤模块,或者将所述登录时间保存以供消息过滤模块读取;在实际操作过程中,可以先检测一下用户端是否和服务器端的时间同步,如果不同步,先在用户端和服务器端进行时间同步,再获取用户的登录时间。The login time acquisition module is used to obtain the login time after receiving the detection result sent by the detection module, and send the login time to the message filtering module, or save the login time for the message filtering module to read ; In the actual operation process, you can first check whether the time synchronization between the user end and the server end, if not, first synchronize the time between the user end and the server end, and then obtain the user's login time.
存储模块,用于存储所述消息。A storage module, configured to store the message.
本实施例中,在编排终端的内容推荐位上的资源时,这里所说的资源可以是图片、网站、视频、还可以是应用、游戏等等,可以在服务器端的数据库中预存一条消息,优选地,存储模块中存储的消息内容可以包括消息生效时间、消息失效时间,所编排资源的资源类别以及资源链接等等。In this embodiment, when arranging the resources on the content recommendation position of the terminal, the resources mentioned here can be pictures, websites, videos, applications, games, etc., and a message can be prestored in the database on the server side, preferably Specifically, the message content stored in the storage module may include the effective time of the message, the invalidation time of the message, the resource category of the programmed resource, the resource link, and the like.
消息过滤模块,用于接收所述登录时间获取模块发送的登录时间或者从所述登录时间获取模块读取到所述登录时间后,根据获取到的登录时间过滤存储模块中的消息,将过滤后的消息发送给判断模块;优选地,消息过滤模块还包括比较模块,用于比较所述登录时间是否大于消息生效时间并小于消息失效时间,若是,则将消息提取出来发给判断模块判断所述登录时间是否在消息生效时间与消息失效时间之间,若是,则提取该消息。其中,判断模块用于判断从所述消息过滤模块中获取的消息是否已经发送给所述用户,若判断结果为否,则将判断结果发送给消息发送模块;消息模块用户将过滤后的消息发送给用户。A message filtering module, configured to receive the login time sent by the login time acquisition module or after reading the login time from the login time acquisition module, filter the messages in the storage module according to the acquired login time, and filter the filtered The message is sent to the judging module; preferably, the message filtering module also includes a comparison module, which is used to compare whether the login time is greater than the effective time of the message and less than the invalidation time of the message, if so, extract the message and send it to the judging module to judge the Whether the login time is between the effective time of the message and the invalid time of the message, if so, extract the message. Wherein, the judging module is used to judge whether the message obtained from the message filtering module has been sent to the user, if the judging result is no, then the judging result is sent to the message sending module; the message module user sends the filtered message to the user.
优选地,本装置还包括标记模块,用于标记消息发送模块发送的消息,以便标识该消息已经发送给所述用户。Preferably, the device further includes a marking module, configured to mark the message sent by the message sending module, so as to identify that the message has been sent to the user.
因为在消息生效时间和消息失效时间之间,用户可能会多次登录到系统当中,而如果一检测到用户登录,就将用户的登录时间内有效的消息发送给用户,势必造成消息的重复发送,从而影响用户体验。所以,本方案的实施例中,为了避免出现上述情况,对已经发送给用户的消息进行标记,用于标识该消息已经发送给所述用户,判断过滤后的消息是否已发送给所述用户时,查询过滤后的消息是否有该标记,如果消息中带有该标记,说明该消息已经发送给了用户,则不再将该消息发送给用户。用户终端接收到服务器端发送的消息时,可以将消息存储在用户终端,当到达消息失效时间时,由用户终端将失效的消息删除。Because between the effective time of the message and the invalidation time of the message, the user may log in to the system multiple times, and if the user's login is detected, the valid message within the user's login time will be sent to the user, which will inevitably cause repeated sending of messages , thereby affecting the user experience. Therefore, in the embodiment of this solution, in order to avoid the above situation, the message that has been sent to the user is marked to identify that the message has been sent to the user, and when judging whether the filtered message has been sent to the user , to check whether the filtered message has this mark, if the message has this mark, it means that the message has been sent to the user, and the message will not be sent to the user. When the user terminal receives the message sent by the server, the message can be stored in the user terminal, and when the expiration time of the message is reached, the user terminal will delete the expired message.
优选地,本装置还包括提取模块,用于从过滤后的消息中提取出其资源类别;分类模块,用于按照所述提取模块提取出的资源类别将过滤后的消息进行分类;Preferably, the device further includes an extraction module, configured to extract the resource category from the filtered message; a classification module, configured to classify the filtered message according to the resource category extracted by the extraction module;
分类发送模块,用于将所述分类模块中分类后的消息发送给用户。A classification sending module, configured to send the classified messages in the classification module to the user.
基于上述任一实施例,服务器端根据用户的登录信息,对数据库中预存的消息进行过滤,得到在用户的登录时间内有效的消息。随着终端的内容服务能力的提高,内容推荐位越来越多,相应地,内容推荐位上可提供的资源就很多,相应地,可查找到的消息也越来越多,这样,用户接收到的消息也越来越多,从而导致用户不能很快地找到自己感兴趣的消息,基于此,本方案中从获取的消息中提取出其资源类别,比如之前所述的图片、网站、视频、应用、游戏等资源类别,并将过滤后到的消息按照资源类别进行分类,并将分类后的消息发送给用户,这样,当用户接收到服务器端推送的消息时,可以根据分类的消息,将消息按其类别在同一个页面上进行展示,因此,用户可以全面了解当前更新的全部内容,并根据自身的喜好选择感兴趣的媒体资源。Based on any of the above embodiments, the server side filters the pre-stored messages in the database according to the user's login information to obtain messages that are valid within the user's login time. With the improvement of the content service capability of the terminal, there are more and more content recommendation positions. Correspondingly, there are many resources that can be provided on the content recommendation positions. Correspondingly, more and more messages can be found. In this way, users receive There are more and more messages received, which makes users unable to quickly find the messages they are interested in. Based on this, this solution extracts the resource categories from the received messages, such as the pictures, websites, and videos mentioned above. , applications, games and other resource categories, and classify the filtered messages according to the resource categories, and send the classified messages to the user. In this way, when the user receives the message pushed by the server, according to the classified message, The news is displayed on the same page according to its category, so users can fully understand all the content of the current update, and choose the media resources they are interested in according to their preferences.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a Means for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart flow or flows and/or block diagram block or blocks.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810108031.7A CN108063725B (en) | 2014-06-30 | 2014-06-30 | Message pushing method |
| CN201410303841.XA CN104320325B (en) | 2014-06-30 | 2014-06-30 | A message push method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410303841.XA CN104320325B (en) | 2014-06-30 | 2014-06-30 | A message push method and device |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810108031.7A Division CN108063725B (en) | 2014-06-30 | 2014-06-30 | Message pushing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104320325A CN104320325A (en) | 2015-01-28 |
| CN104320325B true CN104320325B (en) | 2018-02-06 |
Family
ID=52375499
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410303841.XA Active CN104320325B (en) | 2014-06-30 | 2014-06-30 | A message push method and device |
| CN201810108031.7A Active CN108063725B (en) | 2014-06-30 | 2014-06-30 | Message pushing method |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810108031.7A Active CN108063725B (en) | 2014-06-30 | 2014-06-30 | Message pushing method |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN104320325B (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106257928B (en) * | 2015-06-19 | 2020-06-30 | 阿里巴巴集团控股有限公司 | Audio file acquisition method, update notification sending method, equipment and system |
| CN105069011A (en) * | 2015-07-07 | 2015-11-18 | 安一恒通(北京)科技有限公司 | Webpage favorite management method, device and system |
| CN105721282B (en) * | 2016-01-25 | 2019-09-20 | 腾讯科技(深圳)有限公司 | Message display method and device |
| CN108900506A (en) * | 2018-06-28 | 2018-11-27 | 江苏中威科技软件系统有限公司 | Information push method, push server and transmission control protocol server |
| CN108932328A (en) * | 2018-07-03 | 2018-12-04 | 郑州云海信息技术有限公司 | A kind of page info update method and device |
| CN109711997A (en) * | 2018-08-20 | 2019-05-03 | 平安普惠企业管理有限公司 | Insurance business method for pushing, device, equipment and readable storage medium storing program for executing |
| CN111371753B (en) * | 2020-02-24 | 2022-07-08 | 中国建设银行股份有限公司 | Resource sharing method and device |
| CN112231590B (en) * | 2020-10-15 | 2023-06-27 | 中国联合网络通信集团有限公司 | Content recommendation method, system, computer device and storage medium |
| CN112308246A (en) * | 2020-10-27 | 2021-02-02 | 广东电网有限责任公司 | Power failure notification method and system |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101610556A (en) * | 2008-06-16 | 2009-12-23 | 大唐移动通信设备有限公司 | The method and apparatus that switch a kind of sub-district |
| CN103023984A (en) * | 2012-11-23 | 2013-04-03 | 青岛海信传媒网络技术有限公司 | Terminal application server and application log filtering method thereof |
| CN103095748A (en) * | 2011-10-28 | 2013-05-08 | 腾讯科技(北京)有限公司 | Method, server and system capable of sending updated microblog information of friend |
| CN103297248A (en) * | 2012-03-01 | 2013-09-11 | 腾讯科技(北京)有限公司 | Method and device for giving notice of information of micro-blog client |
| US8589495B1 (en) * | 2009-01-13 | 2013-11-19 | Adobe Systems Incorporated | Context-based notification delivery |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7941491B2 (en) * | 2004-06-04 | 2011-05-10 | Messagemind, Inc. | System and method for dynamic adaptive user-based prioritization and display of electronic messages |
| CN101068222A (en) * | 2007-01-15 | 2007-11-07 | 腾讯科技(深圳)有限公司 | Method and device for processing information |
| US8380930B2 (en) * | 2009-01-06 | 2013-02-19 | Disney Enterprises, Inc. | Refreshing cached data based on content identifier map |
| CN101784097B (en) * | 2009-01-16 | 2015-05-20 | 中兴通讯股份有限公司 | System message update instructing method and device |
| CN101572799B (en) * | 2009-05-31 | 2012-02-29 | 中兴通讯股份有限公司 | Method for displaying instant messages on web TV and system |
| CN101917482B (en) * | 2010-08-23 | 2016-08-24 | 宇龙计算机通信科技(深圳)有限公司 | A kind of information-pushing method and Information Push Server |
| CN103378978A (en) * | 2012-04-16 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Message push method and server |
| US20140070922A1 (en) * | 2012-09-10 | 2014-03-13 | Garry Davis | Doorbell system, apparatus, and method |
-
2014
- 2014-06-30 CN CN201410303841.XA patent/CN104320325B/en active Active
- 2014-06-30 CN CN201810108031.7A patent/CN108063725B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101610556A (en) * | 2008-06-16 | 2009-12-23 | 大唐移动通信设备有限公司 | The method and apparatus that switch a kind of sub-district |
| US8589495B1 (en) * | 2009-01-13 | 2013-11-19 | Adobe Systems Incorporated | Context-based notification delivery |
| CN103095748A (en) * | 2011-10-28 | 2013-05-08 | 腾讯科技(北京)有限公司 | Method, server and system capable of sending updated microblog information of friend |
| CN103297248A (en) * | 2012-03-01 | 2013-09-11 | 腾讯科技(北京)有限公司 | Method and device for giving notice of information of micro-blog client |
| CN103023984A (en) * | 2012-11-23 | 2013-04-03 | 青岛海信传媒网络技术有限公司 | Terminal application server and application log filtering method thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104320325A (en) | 2015-01-28 |
| CN108063725A (en) | 2018-05-22 |
| CN108063725B (en) | 2021-06-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104320325B (en) | A message push method and device | |
| CN104317959B (en) | Data mining method and device based on social platform | |
| US9300755B2 (en) | System and method for determining information reliability | |
| CN105095211B (en) | The acquisition methods and device of multi-medium data | |
| CN102946343B (en) | The method and system of access audio frequency and video community virtual room | |
| CN107085549B (en) | Method and device for generating fault information | |
| CN106095743B (en) | A kind of RichText Edition method and device | |
| CN107294919A (en) | A kind of detection method and device of horizontal authority leak | |
| CN104104586A (en) | Method and apparatus for performing merge control of multiple dynamic messages and program product thereof | |
| CN108305180A (en) | A kind of friend recommendation method and device | |
| CN104615770B (en) | A kind of recommendation method and device of mobile terminal favorites data | |
| CN105095343A (en) | Information processing method, information display method and device | |
| CN106899558B (en) | Access request processing method and device and storage medium | |
| CN105611331B (en) | A kind of video pushing method and system based on smart television | |
| CN104598651A (en) | Method and apparatus for managing favorite on mobile terminal | |
| CN108038233B (en) | Method and device for collecting articles, electronic equipment and storage medium | |
| TWI557583B (en) | Webpage comment classification method, system and webpage management device | |
| CN104899320A (en) | Webpage repair method, terminal, server and system | |
| CN105550183A (en) | Identifying method of identifying information in webpage and electronic device | |
| EP3177022A1 (en) | Remote customized-channel control method, server, client and control system | |
| US10331786B2 (en) | Device compatibility management | |
| CN106997363A (en) | A kind of data processing method and equipment | |
| CN106817592B (en) | Method and device for recommending and scheduling home page | |
| CN108322912B (en) | Method and device for distinguishing short messages | |
| CN106911634A (en) | A kind of login method and equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C41 | Transfer of patent application or patent right or utility model | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20151105 Address after: 266071 Laoshan, Qingdao province Hongkong District No. East Road, room 248, room 131 Applicant after: Qingdao Hisense Media Networks Co., Ltd. Address before: 100176, room 6, building 25, No. four, No. 201, Hai Lu, Daxing District economic and Technological Development Zone, Beijing, China Applicant before: Sea view (Beijing) Technology Co., Ltd. |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20170124 Address after: 266100 Shandong Province, Qingdao city Laoshan District Songling Road No. 399 Applicant after: Poly Polytron Technologies Inc Address before: 266071 Laoshan, Qingdao province Hongkong District No. East Road, room 248, room 131 Applicant before: Qingdao Hisense Media Networks Co., Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |