[go: up one dir, main page]

CN110100426B - Method and device for subscribing to news, computer equipment, computer storage medium - Google Patents

Method and device for subscribing to news, computer equipment, computer storage medium Download PDF

Info

Publication number
CN110100426B
CN110100426B CN201780002034.6A CN201780002034A CN110100426B CN 110100426 B CN110100426 B CN 110100426B CN 201780002034 A CN201780002034 A CN 201780002034A CN 110100426 B CN110100426 B CN 110100426B
Authority
CN
China
Prior art keywords
message
subscription
terminal
target account
push
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
Application number
CN201780002034.6A
Other languages
Chinese (zh)
Other versions
CN110100426A (en
Inventor
任超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yun Zhong Fei Network Technology Co ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Shenzhen Yun Zhong Fei Network Technology Co ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yun Zhong Fei Network Technology Co ltd, Shenzhen Huantai Technology Co Ltd filed Critical Shenzhen Yun Zhong Fei Network Technology Co ltd
Publication of CN110100426A publication Critical patent/CN110100426A/en
Application granted granted Critical
Publication of CN110100426B publication Critical patent/CN110100426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Landscapes

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

Abstract

A method and apparatus for subscribing to messages, a computer device, a computer storage medium, the method comprising: the method comprises the steps that a terminal obtains a first subscription operation aiming at a target account, generates a subscription message based on the first subscription operation, and sends the subscription message to a server (201); the terminal receives a message pushed by the target account number (202); the terminal analyzes the message pushed by the target account to obtain the pushing time corresponding to the message and/or the pushing accumulated times corresponding to the message (203); the terminal determines whether to display a prompt interface based on the push time corresponding to the message and/or the push accumulated times corresponding to the message, wherein the prompt interface is used for prompting a user whether to execute a second subscription operation (204) aiming at the target account; and when the terminal displays the prompt interface and obtains a second subscription operation aiming at the target account, continuing to receive the message pushed by the target account (205).

Description

订阅消息的方法及装置、计算机设备、计算机存储介质Method and device for subscribing to news, computer equipment, computer storage medium

技术领域technical field

本发明涉及互联网领域中的消息推送技术,尤其涉及一种订阅消息的方法及装置、计算机设备、计算机存储介质。The present invention relates to a message push technology in the Internet field, in particular to a method and device for subscribing to a message, computer equipment, and a computer storage medium.

背景技术Background technique

公共号是开发者或商家在公众平台上申请的应用账号,开发者或商家通过公众号可在应用平台上实现和特定群体的沟通互动。对于用户而言,需要搜索并关注公众号,才可以接收到该公众号推送的消息,也即用户订阅了该公众号的消息。A public account is an application account that developers or merchants apply for on the public platform. Developers or merchants can communicate and interact with specific groups on the application platform through the official account. For the user, it is necessary to search and follow the official account to receive the news pushed by the official account, that is, the user has subscribed to the news of the official account.

如果用户想取消订阅公众号的消息,则用户需要手动取消对该公众号的关注,这样才不再接收该公众号推送的消息。随着用户关注的公众号越来越多,导致越来越多的订阅消息推送给用户,大量的消息会导致用户查看的主动性降低,甚至放弃查看订阅消息,这导致公众号与用户之间的沟通互动效率降低,公众号的功能逐渐被边缘化。If the user wants to unsubscribe from the news of the official account, the user needs to manually unfollow the official account, so as not to receive the messages pushed by the official account. As users pay more and more attention to official accounts, more and more subscription messages are pushed to users. A large number of messages will reduce the initiative of users to view, or even give up viewing subscription messages. The efficiency of communication and interaction is reduced, and the function of the official account is gradually marginalized.

发明内容Contents of the invention

本发明实施例提供了一种订阅消息的方法及装置、计算机设备、计算机存储介质。Embodiments of the present invention provide a method and device for subscribing to messages, computer equipment, and computer storage media.

本发明实施例提供的订阅消息的方法,包括:The method for subscribing to a message provided by an embodiment of the present invention includes:

终端接收目标账号推送的消息;The terminal receives the message pushed by the target account;

所述终端确定所述消息对应的推送参数;The terminal determines a push parameter corresponding to the message;

所述终端基于所述推送参数,确定是否展示提示界面,所述提示界面用于提示用户是否针对所述目标账号执行续订阅操作。The terminal determines whether to display a prompt interface based on the push parameters, and the prompt interface is used to prompt the user whether to perform a subscription renewal operation for the target account.

本发明实施例提供的订阅消息的装置,包括:The device for subscribing to messages provided by the embodiments of the present invention includes:

接收单元,用于接收所述目标账号推送的消息;a receiving unit, configured to receive a message pushed by the target account;

确定单元,用于确定所述消息对应的推送参数;a determining unit, configured to determine push parameters corresponding to the message;

判断单元,用于基于所述推送参数,确定是否展示提示界面,所述提示界面用于提示用户是否针对所述目标账号执行续订阅操作。The judging unit is configured to determine whether to display a prompt interface based on the push parameters, and the prompt interface is used to prompt the user whether to perform a subscription renewal operation for the target account.

本发明实施例提供的计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可执行指令,其特征在于,所述处理器执行所述计算机可执行指令时实现上述的订阅消息的方法。The computer equipment provided by the embodiments of the present invention includes a memory, a processor, and computer-executable instructions stored in the memory and operable on the processor, wherein the processor implements the above-mentioned computer-executable instructions when executing the computer-executable instructions method of subscribing to messages.

本发明实施例提供的计算机存储介质,其上存储有计算机可执行指令,该计算机可执行指令被处理器执行时实现上述的订阅消息的方法。The computer storage medium provided by the embodiments of the present invention stores computer-executable instructions thereon, and when the computer-executable instructions are executed by a processor, the above-mentioned method for subscribing to messages is implemented.

采用本发明实施例的技术方案,用户可以对公众号进行试关注,当试关注达到一定时长后或者试关注的消息达到一定量后,用户再决定是否永久关注(简称为关注)该公众号,从而便于用户根据体验决定是否关注某些公众号,避免用户关注过多无用的公众号而导致接收到繁多的消息,保障了公众号与用户之间的沟通互动效率,避免了公众号被边缘化。By adopting the technical solution of the embodiment of the present invention, the user can try to pay attention to the official account. When the trial attention reaches a certain period of time or the message of the trial attention reaches a certain amount, the user decides whether to permanently follow (abbreviated as follow) the official account. This makes it easier for users to decide whether to pay attention to certain official accounts based on experience, avoiding users receiving too many messages from paying attention to too many useless official accounts, ensuring the efficiency of communication and interaction between official accounts and users, and avoiding the marginalization of official accounts .

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1为本发明实施例中进行信息交互的各方硬件实体的示意图;FIG. 1 is a schematic diagram of various hardware entities performing information interaction in an embodiment of the present invention;

图2为本发明实施例的订阅消息的方法的流程示意图一;FIG. 2 is a first schematic flowchart of a method for subscribing to messages according to an embodiment of the present invention;

图3为本发明实施例的公众号的界面示意图一;FIG. 3 is a first schematic diagram of the interface of the official account of the embodiment of the present invention;

图4为本发明实施例的公众号的界面示意图二;Fig. 4 is a second schematic interface diagram of the official account of the embodiment of the present invention;

图5为本发明实施例的订阅消息的方法的流程示意图二;FIG. 5 is a second schematic flow diagram of a method for subscribing to messages according to an embodiment of the present invention;

图6为本发明实施例的订阅消息的方法的流程示意图三;FIG. 6 is a third schematic flowchart of a method for subscribing to messages according to an embodiment of the present invention;

图7为本发明实施例的订阅消息的方法的流程示意图四;FIG. 7 is a fourth schematic flowchart of a method for subscribing to messages according to an embodiment of the present invention;

图8为本发明实施例的订阅消息的方法的流程示意图五;FIG. 8 is a fifth schematic flow diagram of a method for subscribing to messages according to an embodiment of the present invention;

图9为本发明实施例的订阅消息的装置的结构组成示意图一;FIG. 9 is a first structural diagram of a device for subscribing to messages according to an embodiment of the present invention;

图10为本发明实施例的订阅消息的装置的结构组成示意图二;FIG. 10 is a second structural diagram of an apparatus for subscribing to messages according to an embodiment of the present invention;

图11为本发明实施例的计算机设备的结构组成示意图。FIG. 11 is a schematic diagram of the structural composition of a computer device according to an embodiment of the present invention.

具体实施方式Detailed ways

为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明实施例。In order to understand the characteristics and technical contents of the embodiments of the present invention in more detail, the implementation of the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. The attached drawings are only for reference and description, and are not intended to limit the embodiments of the present invention.

图1为本发明实施例中进行信息交互的各方硬件实体的示意图,图1中包括:服务器11、终端21-24,终端21-24通过有线网络或者无线网络与服务器11进行信息交互,终端包括手机、台式机、PC机、一体机等类型,一个示例中,服务器11可以通过网络与第一类终端(如公众号的开发者或商家所在的终端)进行交互,第一类终端在服务器中提交素材并注册公众号。相对于第一类终端而言,终端设备21-24可以称为第二类终端(如普通用户所在的终端,或称为公众号推送消息的对象),第二类终端中安装有与服务器进行交互的应用,通过该应用可以展示公众号的内容,例如图片、文字、音频、视频,当第二类终端关注某个公众号后,服务器会定期或不定期地向第二类终端推送该公众号的消息。Fig. 1 is a schematic diagram of the hardware entities of all parties performing information interaction in the embodiment of the present invention. Fig. 1 includes: a server 11, terminals 21-24, and the terminals 21-24 perform information interaction with the server 11 through a wired network or a wireless network, and the terminal Including mobile phones, desktops, PCs, all-in-one machines, etc. In one example, the server 11 can interact with the first type of terminal (such as the terminal where the developer of the official account or the merchant is located) through the network. The first type of terminal is located on the server Submit the material and register the official account. With respect to the terminal of the first type, the terminal devices 21-24 can be called the terminal of the second type (such as the terminal where the common user is located, or the object that is called the official account push message), and the second type of terminal is installed with the An interactive application, through which the content of the official account can be displayed, such as pictures, text, audio, and video. When the second type of terminal pays attention to a certain official account, the server will regularly or irregularly push the official account to the second type of terminal. No. news.

上述图1的例子只是实现本发明实施例的一个系统架构实例,本发明实施例并不限于上述图1所述的系统结构,基于该系统架构,提出本发明各个实施例。The above example in FIG. 1 is only an example of a system architecture for implementing the embodiment of the present invention. The embodiment of the present invention is not limited to the system architecture described in FIG. 1 above. Based on the system architecture, various embodiments of the present invention are proposed.

本发明实施例的技术方案中,终端接收目标账号推送的消息;所述终端确定所述消息对应的推送参数;所述终端基于所述推送参数,确定是否展示提示界面,所述提示界面用于提示用户是否针对所述目标账号执行续订阅操作。In the technical solution of the embodiment of the present invention, the terminal receives the message pushed by the target account; the terminal determines the push parameter corresponding to the message; the terminal determines whether to display a prompt interface based on the push parameter, and the prompt interface is used for Prompting the user whether to perform a subscription renewal operation for the target account.

上述方案中,推送参数包括推送时间和/或所述消息对应的推送累积次数。以下结合具体的推送参数对本发明实施例的技术方案做描述。In the above solution, the push parameters include the push time and/or the cumulative push times corresponding to the message. The technical solutions of the embodiments of the present invention are described below in conjunction with specific pushing parameters.

图2为本发明实施例的订阅消息的方法的流程示意图一,如图2所示,所述订阅消息的方法包括以下步骤:FIG. 2 is a first schematic flow diagram of a method for subscribing a message according to an embodiment of the present invention. As shown in FIG. 2 , the method for subscribing a message includes the following steps:

步骤201:终端获得针对目标账号的订阅操作,基于所述订阅操作生成订阅消息,向服务器发送所述订阅消息。Step 201: The terminal obtains a subscription operation for a target account, generates a subscription message based on the subscription operation, and sends the subscription message to a server.

本发明实施例中,终端可以是手机、平板电脑、笔记本、台式机等任意类型的终端,终端中安装有应用(APP),该应用可以是即时通讯类的APP,也可以是支持融合通信(RCS)功能的APP。这里,融合通信是一种结合了网络消息与传统短彩信的通信技术,例如:通过融合通信功能能够实现将网络端的信息发送到某个手机号。In the embodiment of the present invention, the terminal can be any type of terminal such as a mobile phone, a tablet computer, a notebook, or a desktop computer, and an application (APP) is installed in the terminal. The application can be an instant messaging APP, or it can support converged communication ( RCS) function APP. Here, converged communication is a communication technology that combines network messages with traditional short and multimedia messages. For example, through the converged communication function, information from the network can be sent to a certain mobile phone number.

本发明实施例中的应用具有公众号功能,用户通过应用能够搜索并关注指定的公众号,从而接收到公众号推送的消息。The application in the embodiment of the present invention has the function of the official account, and the user can search and follow the specified official account through the application, so as to receive the message pushed by the official account.

本发明实施例中,目标账号是指某个公众号,公众号可以但不局限于为以下标识:手机号、昵称、字符串组合、二维码。In the embodiment of the present invention, the target account refers to a public account, which can be, but not limited to, the following identifiers: mobile phone number, nickname, character string combination, and QR code.

本发明实施例中,在步骤201之前,所述终端展示目标账号对应的交互界面,所述交互界面上至少具有第一交互控件,所述第一交互控件用于接受所述订阅操作。具体地,如图3所示,用户搜索到公众号后,进入到该公众号的关注界面,这个关注界面也即是目标账号对应的交互界面,在关注界面上具有“试关注”控件,也即第一交互控件。在一实施方式中,关注界面上还可以具有“关注”控件。这里,如果用户点击“试关注”控件,则会执行本发明实施例的以下步骤202至步骤205;如果用户点击“关注”控件,则终端永久接收服务器发送的由该公众号推送的消息,直到用户取消对该公众号的关注为止。In the embodiment of the present invention, before step 201, the terminal displays an interactive interface corresponding to the target account, the interactive interface has at least a first interactive control, and the first interactive control is used to accept the subscription operation. Specifically, as shown in Figure 3, after the user searches for an official account, he enters the follow interface of the official account. This follow interface is also the interactive interface corresponding to the target account. That is, the first interactive control. In an implementation manner, there may also be a "follow" control on the follow interface. Here, if the user clicks the "Try to follow" control, the following steps 202 to 205 of the embodiment of the present invention will be executed; Until the user unfollows the official account.

本发明实施例中,终端获得位于所述第一交互控件上的订阅操作时,基于所述订阅操作生成订阅消息,其中,所述订阅消息携有所述订阅操作对应的订阅时间;所述终端将携有所述订阅操作对应的订阅时间的订阅消息发送给所述服务器。In the embodiment of the present invention, when the terminal obtains the subscription operation on the first interactive control, it generates a subscription message based on the subscription operation, wherein the subscription message carries the subscription time corresponding to the subscription operation; the terminal Sending a subscription message carrying the subscription time corresponding to the subscription operation to the server.

上述方案中,订阅操作对应的订阅时间可以是以下时间:In the above solution, the subscription time corresponding to the subscription operation can be the following time:

终端获得位于所述第一交互控件上的订阅操作的时间;或者,The time when the terminal obtains the subscription operation on the first interactive control; or,

终端基于所述订阅操作生成订阅消息的时间。The time when the terminal generates a subscription message based on the subscription operation.

本发明实施例中,订阅操作对应的订阅时间也可以不携带在订阅消息中,这种情况下,订阅操作对应的订阅时间可以是以下时间:服务器接收到订阅消息的时间。In the embodiment of the present invention, the subscription time corresponding to the subscription operation may not be carried in the subscription message. In this case, the subscription time corresponding to the subscription operation may be the following time: the time when the server receives the subscription message.

本发明实施例中,服务器接收到订阅消息后,便可以确定出订阅操作对应的订阅时间,记录订阅操作对应的订阅时间为T1。In the embodiment of the present invention, after receiving the subscription message, the server can determine the subscription time corresponding to the subscription operation, and record the subscription time corresponding to the subscription operation as T1.

步骤202:所述终端接收所述目标账号推送的消息。Step 202: The terminal receives a message pushed by the target account.

本发明实施例中,当终端订阅了目标账号的消息后,服务器便定期或不定期地向终端推送该目标账号的消息。这里,服务器向终端发送的消息中携带如下信息的至少之一:消息对应的推送时间、消息对应的推送累积次数、订阅操作对应的订阅时间。In the embodiment of the present invention, after the terminal subscribes to the message of the target account, the server regularly or irregularly pushes the message of the target account to the terminal. Here, the message sent by the server to the terminal carries at least one of the following information: the push time corresponding to the message, the cumulative number of pushes corresponding to the message, and the subscription time corresponding to the subscription operation.

其中,消息对应的推送时间是指服务器发送消息的时间T2。Wherein, the push time corresponding to the message refers to the time T2 when the server sends the message.

其中,消息对应的推送累积次数是指服务器发送消息的累积量,例如:当终端订阅了目标账号的消息后,服务器第一次向终端发送该目标账号的消息时,对应的消息的推送累积次数为1,服务器第二次向终端发送该目标账号的消息时,对应的消息的推送累积次数为2,依次类推,服务器第n次向终端发送该目标账号的消息时,对应的消息的推送累积次数为n。Among them, the cumulative number of pushes corresponding to the message refers to the cumulative amount of messages sent by the server, for example: after the terminal subscribes to the message of the target account, when the server sends the message of the target account to the terminal for the first time, the cumulative number of pushes of the corresponding message is 1, when the server sends the message of the target account to the terminal for the second time, the cumulative number of pushes of the corresponding message is 2, and so on, when the server sends the message of the target account to the terminal for the nth time, the cumulative number of pushes of the corresponding message The number of times is n.

步骤203:所述终端对所述目标账号推送的消息进行解析,得到所述消息对应的推送时间和/或所述消息对应的推送累积次数。Step 203: The terminal parses the message pushed by the target account, and obtains the push time corresponding to the message and/or the cumulative push times corresponding to the message.

本发明实施例中,终端对所述目标账号推送的消息进行解析,得到如下信息的至少之一:消息对应的推送时间、消息对应的推送累积次数、订阅操作对应的订阅时间。In the embodiment of the present invention, the terminal parses the message pushed by the target account, and obtains at least one of the following information: push time corresponding to the message, cumulative push times corresponding to the message, and subscription time corresponding to the subscription operation.

在一应用场景中,终端可以只解析得到消息对应的推送时间、消息对应的推送累积次数,其中,订阅操作对应的订阅时间可以是终端本身确定出。In an application scenario, the terminal may only analyze and obtain the push time corresponding to the message and the cumulative push times corresponding to the message, wherein the subscription time corresponding to the subscription operation may be determined by the terminal itself.

在另一应用场景中,终端解析得到消息对应的推送时间、消息对应的推送累积次数、订阅操作对应的订阅时间,其中,订阅操作对应的订阅时间是服务器确定出。In another application scenario, the terminal parses to obtain the push time corresponding to the message, the cumulative number of pushes corresponding to the message, and the subscription time corresponding to the subscription operation, wherein the subscription time corresponding to the subscription operation is determined by the server.

上述方案中,终端获取到的内容可以是以下组合的任意一种:In the above solution, the content acquired by the terminal can be any of the following combinations:

消息对应的推送时间、订阅操作对应的订阅时间;The push time corresponding to the message and the subscription time corresponding to the subscription operation;

消息对应的推送累积次数;The cumulative number of pushes corresponding to the message;

消息对应的推送时间、订阅操作对应的订阅时间、消息对应的推送累积次数。The push time corresponding to the message, the subscription time corresponding to the subscription operation, and the cumulative push times corresponding to the message.

步骤204:所述终端基于所述消息对应的推送时间和/或所述消息对应的推送累积次数,确定是否展示提示界面,所述提示界面用于提示用户是否针对所述目标账号执行续订阅操作。Step 204: The terminal determines whether to display a prompt interface based on the push time corresponding to the message and/or the cumulative number of push times corresponding to the message, and the prompt interface is used to prompt the user whether to perform a subscription renewal operation for the target account .

本发明实施例中,确定是否展示提示界面可以通过以下方式来实现:In the embodiment of the present invention, determining whether to display a prompt interface can be implemented in the following manner:

方式一:终端基于所述消息对应的推送时间以及所述订阅操作对应的订阅时间,确定是否展示提示界面。Way 1: The terminal determines whether to display a prompt interface based on the push time corresponding to the message and the subscription time corresponding to the subscription operation.

这种方式中,终端只需获取如下内容:消息对应的推送时间、订阅操作对应的订阅时间。In this way, the terminal only needs to obtain the following content: the push time corresponding to the message, and the subscription time corresponding to the subscription operation.

方式二:终端基于所述消息对应的推送累积次数,确定是否展示提示界面。Method 2: The terminal determines whether to display a prompt interface based on the cumulative push times corresponding to the message.

这种方式中,终端只需获取如下内容:消息对应的推送累积次数。In this way, the terminal only needs to obtain the following content: the cumulative number of pushes corresponding to the message.

方式三:终端基于所述消息对应的推送时间以及所述订阅操作对应的订阅时间,以及所述消息对应的推送累积次数,确定是否展示提示界面。Mode 3: The terminal determines whether to display a prompt interface based on the push time corresponding to the message, the subscription time corresponding to the subscription operation, and the cumulative number of times of push corresponding to the message.

这种方式中,终端需要获取如下内容:消息对应的推送时间、订阅操作对应的订阅时间、消息对应的推送累积次数。In this way, the terminal needs to obtain the following content: the push time corresponding to the message, the subscription time corresponding to the subscription operation, and the cumulative push times corresponding to the message.

步骤205:所述终端展示所述提示界面且获得针对所述目标账号的续订阅操作时,继续接收所述目标账号推送的消息。Step 205: When the terminal displays the prompt interface and obtains a subscription renewal operation for the target account, continue to receive messages pushed by the target account.

本发明实施例中,提示界面上至少具有第二交互控件和第三交互控件,所述第二交互控件用于接受所述续订阅操作,所述第三交互控件用于接受拒绝续订阅操作。In the embodiment of the present invention, the prompt interface has at least a second interactive control and a third interactive control, the second interactive control is used to accept the subscription renewal operation, and the third interactive control is used to accept and reject the subscription renewal operation.

具体地,如图4所示,提示界面上具有“继续关注”控件和“取消关注”控件,其中,“继续关注”控件也即是第二交互控件,当用户点击“继续关注”控件时,代表用户永久关注公众号,当用户点击“取消关注”时,代表用户取消对该公众号的“试关注”。Specifically, as shown in Figure 4, there are "continue to follow" controls and "unfollow" controls on the prompt interface, wherein the "continue to follow" control is also the second interactive control, when the user clicks on the "continue to follow" control, On behalf of the user, follow the official account permanently. When the user clicks "unfollow", it means canceling the "trial follow" of the official account on behalf of the user.

本发明实施例中,终端获得针对所述目标账号的续订阅操作时,可以不做任何操作,服务器侧会继续向终端发送由所述目标账号推送的消息,反之,终端获得拒绝订阅操作时,生成取消订阅消息,向服务器发送取消订阅消息,服务器接收到取消订阅消息时,便终止向终端发送由所述目标账号推送的消息。当然,终端获得针对所述目标账号的续订阅操作时,也可以向服务器发送一个指示消息,指示服务器继续向终端发送由所述目标账号推送的消息。In the embodiment of the present invention, when the terminal obtains the subscription renewal operation for the target account, it may not do any operation, and the server side will continue to send the message pushed by the target account to the terminal; otherwise, when the terminal obtains the subscription rejection operation, Generate an unsubscribe message, send the unsubscribe message to the server, and when the server receives the unsubscribe message, it stops sending the message pushed by the target account to the terminal. Of course, when the terminal obtains the subscription renewal operation for the target account, it may also send an indication message to the server, instructing the server to continue sending the message pushed by the target account to the terminal.

本发明实施例的技术方案,提供了一种关注公众号的方式,允许用户尝试接收一些推送消息或经过一段时间后,再决定是否要继续关注该公众号,有效避免了公众号关注堆积而导致公众号功能边缘化的问题。The technical solution of the embodiment of the present invention provides a way to pay attention to the official account, allowing the user to try to receive some push messages or after a period of time, and then decide whether to continue to follow the official account, effectively avoiding the accumulation of attention on the official account. The problem of the marginalization of official account functions.

图5为本发明实施例的订阅消息的方法的流程示意图二,如图5所示,所述订阅消息的方法包括以下步骤:FIG. 5 is a second schematic flow diagram of a method for subscribing a message according to an embodiment of the present invention. As shown in FIG. 5 , the method for subscribing a message includes the following steps:

步骤501:终端获得针对目标账号的订阅操作,基于所述订阅操作生成订阅消息,向服务器发送所述订阅消息。Step 501: The terminal obtains a subscription operation for a target account, generates a subscription message based on the subscription operation, and sends the subscription message to a server.

本发明实施例中,终端获得位于所述第一交互控件上的订阅操作时,基于所述订阅操作生成订阅消息,其中,所述订阅消息携有所述订阅操作对应的订阅时间;所述终端将携有所述订阅操作对应的订阅时间的订阅消息发送给所述服务器。服务器接收到订阅消息后,便可以确定出订阅操作对应的订阅时间,记录订阅操作对应的订阅时间为T1。In the embodiment of the present invention, when the terminal obtains the subscription operation on the first interactive control, it generates a subscription message based on the subscription operation, wherein the subscription message carries the subscription time corresponding to the subscription operation; the terminal Sending a subscription message carrying the subscription time corresponding to the subscription operation to the server. After receiving the subscription message, the server can determine the subscription time corresponding to the subscription operation, and record the subscription time corresponding to the subscription operation as T1.

步骤502:所述终端接收所述服务器发送的由所述目标账号推送的消息。Step 502: The terminal receives the message sent by the server and pushed by the target account.

本发明实施例中,当终端订阅了目标账号的消息后,服务器便定期或不定期地向终端推送该目标账号的消息。这里,服务器向终端发送的消息中携带如下信息:消息对应的推送时间、订阅操作对应的订阅时间。In the embodiment of the present invention, after the terminal subscribes to the message of the target account, the server regularly or irregularly pushes the message of the target account to the terminal. Here, the message sent by the server to the terminal carries the following information: push time corresponding to the message, and subscription time corresponding to the subscription operation.

其中,消息对应的推送时间是指服务器发送消息的时间T2。Wherein, the push time corresponding to the message refers to the time T2 when the server sends the message.

步骤503:所述终端对所述目标账号推送的消息进行解析,得到所述消息对应的推送时间和所述订阅操作对应的订阅时间。Step 503: The terminal parses the message pushed by the target account, and obtains the push time corresponding to the message and the subscription time corresponding to the subscription operation.

步骤504:所述终端计算所述消息对应的推送时间和所述订阅操作对应的订阅时间的时间差值;所述终端判断所述时间差值是否大于等于第一预设阈值;所述时间差值大于等于第一预设阈值时,确定展示提示界面,所述提示界面用于提示用户是否针对所述目标账号执行续订阅操作。Step 504: The terminal calculates the time difference between the push time corresponding to the message and the subscription time corresponding to the subscription operation; the terminal judges whether the time difference is greater than or equal to a first preset threshold; the time difference When the value is greater than or equal to the first preset threshold, it is determined to display a prompt interface, and the prompt interface is used to prompt the user whether to perform a subscription renewal operation for the target account.

例如:假设第一预设阈值为t,t可以是1周、1个月等等,如果T2-T1≥t,则展示提示界面。For example: assuming that the first preset threshold is t, t can be 1 week, 1 month, etc., if T2-T1≥t, then display a prompt interface.

步骤505:所述终端展示所述提示界面且获得针对所述目标账号的续订阅操作时,继续接收所述服务器发送的由所述目标账号推送的消息。Step 505: When the terminal displays the prompt interface and obtains a subscription renewal operation for the target account, continue to receive messages sent by the server and pushed by the target account.

本发明实施例中,提示界面上至少具有第二交互控件和第三交互控件,所述第二交互控件用于接受所述续订阅操作,所述第三交互控件用于接受拒绝续订阅操作。In the embodiment of the present invention, the prompt interface has at least a second interactive control and a third interactive control, the second interactive control is used to accept the subscription renewal operation, and the third interactive control is used to accept and reject the subscription renewal operation.

图6为本发明实施例的订阅消息的方法的流程示意图三,如图6所示,所述订阅消息的方法包括以下步骤:FIG. 6 is a third schematic flowchart of a method for subscribing a message according to an embodiment of the present invention. As shown in FIG. 6 , the method for subscribing a message includes the following steps:

步骤601:终端获得针对目标账号的订阅操作,基于所述订阅操作生成订阅消息,向服务器发送所述订阅消息。Step 601: The terminal obtains a subscription operation for a target account, generates a subscription message based on the subscription operation, and sends the subscription message to a server.

步骤602:所述终端接收所述服务器发送的由所述目标账号推送的消息。Step 602: The terminal receives the message sent by the server and pushed by the target account.

本发明实施例中,当终端订阅了目标账号的消息后,服务器便定期或不定期地向终端推送该目标账号的消息。这里,服务器向终端发送的消息中携带如下信息:所述消息对应的推送累积次数。In the embodiment of the present invention, after the terminal subscribes to the message of the target account, the server regularly or irregularly pushes the message of the target account to the terminal. Here, the message sent by the server to the terminal carries the following information: the cumulative number of pushing times corresponding to the message.

其中,消息对应的推送累积次数是指服务器发送消息的累积量,例如:当终端订阅了目标账号的消息后,服务器第一次向终端发送该目标账号的消息时,对应的消息的推送累积次数为1,服务器第二次向终端发送该目标账号的消息时,对应的消息的推送累积次数为2,依次类推,服务器第n次向终端发送该目标账号的消息时,对应的消息的推送累积次数为n。Among them, the cumulative number of pushes corresponding to the message refers to the cumulative amount of messages sent by the server, for example: after the terminal subscribes to the message of the target account, when the server sends the message of the target account to the terminal for the first time, the cumulative number of pushes of the corresponding message is 1, when the server sends the message of the target account to the terminal for the second time, the cumulative number of pushes of the corresponding message is 2, and so on, when the server sends the message of the target account to the terminal for the nth time, the cumulative number of pushes of the corresponding message The number of times is n.

步骤603:所述终端对所述目标账号推送的消息进行解析,得到所述消息对应的推送累积次数。Step 603: The terminal parses the message pushed by the target account, and obtains the cumulative push times corresponding to the message.

步骤604:所述终端判断所述消息对应的推送累积次数是否大于等于第二预设阈值;所述消息对应的推送累积次数大于等于第二预设阈值时,确定展示提示界面,所述提示界面用于提示用户是否针对所述目标账号执行续订阅操作。Step 604: The terminal judges whether the cumulative number of pushes corresponding to the message is greater than or equal to a second preset threshold; when the cumulative number of pushes corresponding to the message is greater than or equal to the second preset threshold, determine to display a prompt interface, and the prompt interface Used to prompt the user whether to perform a subscription renewal operation for the target account.

例如:假设第二预设阈值为N,N可以是100、200等等,如果n≥N,则展示提示界面。For example: assuming that the second preset threshold is N, N can be 100, 200, etc., if n≥N, a prompt interface will be displayed.

步骤605:所述终端展示所述提示界面且获得针对所述目标账号的续订阅操作时,继续接收所述服务器发送的由所述目标账号推送的消息。Step 605: When the terminal displays the prompt interface and obtains the subscription renewal operation for the target account, continue to receive the message sent by the server and pushed by the target account.

本发明实施例中,提示界面上至少具有第二交互控件和第三交互控件,所述第二交互控件用于接受所述续订阅操作,所述第三交互控件用于接受拒绝续订阅操作。In the embodiment of the present invention, the prompt interface has at least a second interactive control and a third interactive control, the second interactive control is used to accept the subscription renewal operation, and the third interactive control is used to accept and reject the subscription renewal operation.

图7为本发明实施例的订阅消息的方法的流程示意图三,如图7所示,所述订阅消息的方法包括以下步骤:FIG. 7 is a third schematic flowchart of a method for subscribing a message according to an embodiment of the present invention. As shown in FIG. 7 , the method for subscribing a message includes the following steps:

步骤701:终端获得针对目标账号的订阅操作,基于所述订阅操作生成订阅消息,向服务器发送所述订阅消息。Step 701: The terminal obtains a subscription operation for a target account, generates a subscription message based on the subscription operation, and sends the subscription message to a server.

本发明实施例中,终端获得位于所述第一交互控件上的订阅操作时,基于所述订阅操作生成订阅消息,其中,所述订阅消息携有所述订阅操作对应的订阅时间;所述终端将携有所述订阅操作对应的订阅时间的订阅消息发送给所述服务器。In the embodiment of the present invention, when the terminal obtains the subscription operation on the first interactive control, it generates a subscription message based on the subscription operation, wherein the subscription message carries the subscription time corresponding to the subscription operation; the terminal Sending a subscription message carrying the subscription time corresponding to the subscription operation to the server.

上述方案中,订阅操作对应的订阅时间可以是以下时间:In the above solution, the subscription time corresponding to the subscription operation can be the following time:

终端获得位于所述第一交互控件上的订阅操作的时间;或者,The time when the terminal obtains the subscription operation on the first interactive control; or,

终端基于所述订阅操作生成订阅消息的时间。The time when the terminal generates a subscription message based on the subscription operation.

本发明实施例中,订阅操作对应的订阅时间也可以不携带在订阅消息中,这种情况下,订阅操作对应的订阅时间可以是以下时间:服务器接收到订阅消息的时间。In the embodiment of the present invention, the subscription time corresponding to the subscription operation may not be carried in the subscription message. In this case, the subscription time corresponding to the subscription operation may be the following time: the time when the server receives the subscription message.

本发明实施例中,服务器接收到订阅消息后,便可以确定出订阅操作对应的订阅时间,记录订阅操作对应的订阅时间为T1。In the embodiment of the present invention, after receiving the subscription message, the server can determine the subscription time corresponding to the subscription operation, and record the subscription time corresponding to the subscription operation as T1.

步骤702:所述终端接收所述服务器发送的由所述目标账号推送的消息。Step 702: The terminal receives the message sent by the server and pushed by the target account.

本发明实施例中,当终端订阅了目标账号的消息后,服务器便定期或不定期地向终端推送该目标账号的消息。这里,服务器向终端发送的消息中携带如下信息:消息对应的推送时间、消息对应的推送累积次数、订阅操作对应的订阅时间。In the embodiment of the present invention, after the terminal subscribes to the message of the target account, the server regularly or irregularly pushes the message of the target account to the terminal. Here, the message sent by the server to the terminal carries the following information: the push time corresponding to the message, the cumulative number of pushes corresponding to the message, and the subscription time corresponding to the subscription operation.

其中,消息对应的推送时间是指服务器发送消息的时间T2。Wherein, the push time corresponding to the message refers to the time T2 when the server sends the message.

其中,消息对应的推送累积次数是指服务器发送消息的累积量,例如:当终端订阅了目标账号的消息后,服务器第一次向终端发送该目标账号的消息时,对应的消息的推送累积次数为1,服务器第二次向终端发送该目标账号的消息时,对应的消息的推送累积次数为2,依次类推,服务器第n次向终端发送该目标账号的消息时,对应的消息的推送累积次数为n。Among them, the cumulative number of pushes corresponding to the message refers to the cumulative amount of messages sent by the server, for example: after the terminal subscribes to the message of the target account, when the server sends the message of the target account to the terminal for the first time, the cumulative number of pushes of the corresponding message is 1, when the server sends the message of the target account to the terminal for the second time, the cumulative number of pushes of the corresponding message is 2, and so on, when the server sends the message of the target account to the terminal for the nth time, the cumulative number of pushes of the corresponding message The number of times is n.

步骤703:所述终端对所述目标账号推送的消息进行解析,得到消息对应的推送时间、消息对应的推送累积次数、订阅操作对应的订阅时间。Step 703: The terminal parses the message pushed by the target account, and obtains the push time corresponding to the message, the cumulative number of pushes corresponding to the message, and the subscription time corresponding to the subscription operation.

步骤704:所述终端计算所述消息对应的推送时间和所述订阅操作对应的订阅时间的时间差值;所述终端判断所述时间差值是否大于等于第一预设阈值,以及判断所述消息对应的推送累积次数是否大于等于第二预设阈值,执行步骤705或步骤706。Step 704: The terminal calculates the time difference between the push time corresponding to the message and the subscription time corresponding to the subscription operation; the terminal judges whether the time difference is greater than or equal to a first preset threshold, and judges the Whether the cumulative number of pushing times corresponding to the message is greater than or equal to the second preset threshold, execute step 705 or step 706.

步骤705:所述时间差值大于等于第一预设阈值,且所述消息对应的推送累积次数大于等于第二预设阈值时,确定展示提示界面,执行步骤707。Step 705: When the time difference is greater than or equal to the first preset threshold, and the cumulative number of pushes corresponding to the message is greater than or equal to the second preset threshold, determine to display a prompt interface, and execute step 707.

步骤706:所述时间差值大于等于第一预设阈值,或所述消息对应的推送累积次数大于等于第二预设阈值时,确定展示提示界面。Step 706: When the time difference is greater than or equal to a first preset threshold, or the cumulative number of pushes corresponding to the message is greater than or equal to a second preset threshold, determine to display a prompt interface.

这里,所述提示界面用于提示用户是否针对所述目标账号执行续订阅操作。Here, the prompt interface is used to prompt the user whether to perform a subscription renewal operation for the target account.

步骤707:所述终端展示所述提示界面且获得针对所述目标账号的续订阅操作时,继续接收所述服务器发送的由所述目标账号推送的消息。Step 707: When the terminal displays the prompt interface and obtains a subscription renewal operation for the target account, continue to receive the message sent by the server and pushed by the target account.

本发明实施例中,提示界面上至少具有第二交互控件和第三交互控件,所述第二交互控件用于接受所述续订阅操作,所述第三交互控件用于接受拒绝续订阅操作。In the embodiment of the present invention, the prompt interface has at least a second interactive control and a third interactive control, the second interactive control is used to accept the subscription renewal operation, and the third interactive control is used to accept and reject the subscription renewal operation.

图8为本发明实施例的订阅消息的方法的流程示意图四,如图8所示,所述订阅消息的方法包括以下步骤:FIG. 8 is a fourth schematic flowchart of a method for subscribing a message according to an embodiment of the present invention. As shown in FIG. 8 , the method for subscribing a message includes the following steps:

步骤801:终端获得针对公众号的“试关注”操作。Step 801: The terminal obtains the operation of "trial follow" for the official account.

步骤802:终端记录当前时间为T1。Step 802: The terminal records the current time as T1.

步骤803:终端接收服务器发送的由所述公众号推送的消息,消息携带如下信息:T1、T2、n。Step 803: The terminal receives the message sent by the server and pushed by the official account, and the message carries the following information: T1, T2, n.

这里,T1是指“试关注”操作对应的时间,T2是指消息对应的推送时间,n是指消息对应的累积推送次数。Here, T1 refers to the time corresponding to the "try to follow" operation, T2 refers to the push time corresponding to the message, and n refers to the cumulative push times corresponding to the message.

步骤804:终端计算t=T2-T1。Step 804: The terminal calculates t=T2-T1.

步骤805:终端判断t是否大于等于T,和/或,n是否大于等于N;是时,执行步骤806,否时,执行步骤803。Step 805: The terminal judges whether t is greater than or equal to T, and/or whether n is greater than or equal to N; if yes, execute step 806; if no, execute step 803.

这里,T和N分别为预设的阈值。Here, T and N are preset thresholds respectively.

步骤806:展示提示界面,终端是否获得“继续关注”操作,是时,执行步骤807,否时,执行步骤808。Step 806: Display a prompt interface, whether the terminal has obtained the "continue to follow" operation, if yes, execute step 807, if no, execute step 808.

步骤807:终端接续接收服务器发送的由所述公众号推送的消息。Step 807: The terminal continues to receive the message pushed by the official account sent by the server.

步骤808:终端取消对公众号的关注。Step 808: The terminal cancels following the official account.

图9为本发明实施例的订阅消息的装置的结构组成示意图一,如图9所示,所述装置包括:FIG. 9 is a schematic diagram of the first structural composition of a device for subscribing to messages according to an embodiment of the present invention. As shown in FIG. 9 , the device includes:

接收单元901,用于接收所述目标账号推送的消息;a receiving unit 901, configured to receive a message pushed by the target account;

确定单元902,用于确定所述消息对应的推送参数;A determining unit 902, configured to determine a push parameter corresponding to the message;

判断单元903,用于基于所述推送参数,确定是否展示提示界面,所述提示界面用于提示用户是否针对所述目标账号执行续订阅操作。The judging unit 903 is configured to determine whether to display a prompt interface based on the push parameters, and the prompt interface is used to prompt the user whether to perform a subscription renewal operation for the target account.

本领域技术人员应当理解,图9所示的订阅消息的装置中的各单元的实现功能可参照前述订阅消息的方法的相关描述而理解。图9所示的订阅消息的装置中的各单元的功能可通过运行于处理器上的程序而实现,也可通过具体的逻辑电路而实现。Those skilled in the art should understand that the implementation functions of each unit in the device for subscribing messages shown in FIG. 9 can be understood with reference to the related description of the method for subscribing messages. The functions of each unit in the device for subscribing to messages shown in FIG. 9 may be realized by a program running on a processor, or may be realized by a specific logic circuit.

图10为本发明实施例的订阅消息的装置的结构组成示意图二,如图10所示,所述装置包括:FIG. 10 is a second schematic diagram of the structural composition of a device for subscribing to messages according to an embodiment of the present invention. As shown in FIG. 10 , the device includes:

接收单元901,用于接收所述目标账号推送的消息;a receiving unit 901, configured to receive a message pushed by the target account;

确定单元902,用于确定所述消息对应的推送参数;A determining unit 902, configured to determine a push parameter corresponding to the message;

判断单元903,用于基于所述推送参数,确定是否展示提示界面,所述提示界面用于提示用户是否针对所述目标账号执行续订阅操作。The judging unit 903 is configured to determine whether to display a prompt interface based on the push parameters, and the prompt interface is used to prompt the user whether to perform a subscription renewal operation for the target account.

在一实施方式中,所述装置还包括:In one embodiment, the device also includes:

显示单元904,用于展示所述提示界面;a display unit 904, configured to display the prompt interface;

输入单元905,用于获得针对所述目标账号的续订阅操作;An input unit 905, configured to obtain a subscription renewal operation for the target account;

所述接收单元901,还用于续接收所述目标账号推送的消息。The receiving unit 901 is further configured to continuously receive messages pushed by the target account.

在一实施方式中,所述确定单元902,用于对所述目标账号推送的消息进行解析,得到所述消息对应的推送时间和/或所述消息对应的推送累积次数;In one embodiment, the determining unit 902 is configured to analyze the message pushed by the target account to obtain the push time corresponding to the message and/or the cumulative number of pushes corresponding to the message;

所述判断单元903,用于基于所述消息对应的推送时间和/或所述消息对应的推送累积次数,确定是否展示提示界面。The judging unit 903 is configured to determine whether to display a prompt interface based on the push time corresponding to the message and/or the cumulative push times corresponding to the message.

在一实施方式中,所述装置还包括:In one embodiment, the device also includes:

输入单元906,用于获得针对目标账号的订阅操作;基于所述订阅操作生成订阅消息;The input unit 906 is configured to obtain a subscription operation for the target account; generate a subscription message based on the subscription operation;

发送单元907,用于基向服务器发送所述订阅消息。The sending unit 907 is configured to send the subscription message to the server.

在一实施方式中,所述装置还包括:In one embodiment, the device also includes:

显示单元904,用于展示目标账号对应的交互界面,所述交互界面上至少具有第一交互控件,所述第一交互控件用于接受所述订阅操作;The display unit 904 is configured to display an interactive interface corresponding to the target account, the interactive interface has at least a first interactive control, and the first interactive control is used to accept the subscription operation;

所述输入单元906,具体用于获得位于所述第一交互控件上的订阅操作;基于所述订阅操作生成订阅消息,其中,所述订阅消息携有所述订阅操作对应的订阅时间;The input unit 906 is specifically configured to obtain a subscription operation located on the first interactive control; generate a subscription message based on the subscription operation, wherein the subscription message carries a subscription time corresponding to the subscription operation;

所述发送单元907,具体用于将携有所述订阅操作对应的订阅时间的订阅消息发送给所述服务器。The sending unit 907 is specifically configured to send a subscription message carrying the subscription time corresponding to the subscription operation to the server.

在一实施方式中,所述判断单元903包括:In one embodiment, the judging unit 903 includes:

第一判断子单元9031,用于基于所述消息对应的推送时间以及所述订阅操作对应的订阅时间,确定是否展示提示界面;或者,The first judging subunit 9031 is configured to determine whether to display a prompt interface based on the push time corresponding to the message and the subscription time corresponding to the subscription operation; or,

第二判断子单元9032,用于基于所述消息对应的推送累积次数,确定是否展示提示界面;或者,The second judging subunit 9032 is configured to determine whether to display a prompt interface based on the cumulative push times corresponding to the message; or,

第三判断子单元9033,用于基于所述消息对应的推送时间以及所述订阅操作对应的订阅时间,以及所述消息对应的推送累积次数,确定是否展示提示界面。The third judging subunit 9033 is configured to determine whether to display a prompt interface based on the push time corresponding to the message, the subscription time corresponding to the subscription operation, and the cumulative push times corresponding to the message.

在一实施方式中,所述第一判断子单元9031,具体用于计算所述消息对应的推送时间和所述订阅操作对应的订阅时间的时间差值;所述终端判断所述时间差值是否大于等于第一预设阈值;所述时间差值大于等于第一预设阈值时,确定展示提示界面。In one embodiment, the first judging subunit 9031 is specifically configured to calculate the time difference between the push time corresponding to the message and the subscription time corresponding to the subscription operation; the terminal judges whether the time difference greater than or equal to a first preset threshold; when the time difference is greater than or equal to the first preset threshold, it is determined to display a prompt interface.

在一实施方式中,所述第二判断子单元9032,具体用于判断所述消息对应的推送累积次数是否大于等于第二预设阈值;所述消息对应的推送累积次数大于等于第二预设阈值时,确定展示提示界面。In one embodiment, the second judging subunit 9032 is specifically configured to judge whether the cumulative number of pushes corresponding to the message is greater than or equal to a second preset threshold; the cumulative number of pushes corresponding to the message is greater than or equal to the second preset threshold When the threshold is reached, make sure to display the prompt interface.

在一实施方式中,所述第三判断子单元9033,具体用于计算所述消息对应的推送时间和所述订阅操作对应的订阅时间的时间差值;所述终端判断所述时间差值是否大于等于第一预设阈值,以及判断所述消息对应的推送累积次数是否大于等于第二预设阈值;所述时间差值大于等于第一预设阈值,且所述消息对应的推送累积次数大于等于第二预设阈值时,确定展示提示界面;或者,所述时间差值大于等于第一预设阈值,或所述消息对应的推送累积次数大于等于第二预设阈值时,确定展示提示界面。In one embodiment, the third judging subunit 9033 is specifically configured to calculate the time difference between the push time corresponding to the message and the subscription time corresponding to the subscription operation; the terminal judges whether the time difference greater than or equal to the first preset threshold, and judging whether the cumulative number of pushes corresponding to the message is greater than or equal to the second preset threshold; the time difference is greater than or equal to the first preset threshold, and the cumulative number of pushes corresponding to the message is greater than or equal to the second preset threshold; When it is equal to the second preset threshold, it is determined to display the prompt interface; or, when the time difference is greater than or equal to the first preset threshold, or the cumulative number of pushes corresponding to the message is greater than or equal to the second preset threshold, it is determined to display the prompt interface .

在一实施方式中,所述提示界面上至少具有第二交互控件和第三交互控件,所述第二交互控件用于接受所述续订阅操作,所述第三交互控件用于接受拒绝续订阅操作。In one embodiment, the prompt interface has at least a second interactive control and a third interactive control, the second interactive control is used to accept the subscription renewal operation, and the third interactive control is used to accept and reject the subscription renewal operate.

本领域技术人员应当理解,图10所示的订阅消息的装置中的各单元的实现功能可参照前述订阅消息的方法的相关描述而理解。图10所示的订阅消息的装置中的各单元的功能可通过运行于处理器上的程序而实现,也可通过具体的逻辑电路而实现。Those skilled in the art should understand that the implementation functions of each unit in the device for subscribing messages shown in FIG. 10 can be understood with reference to the relevant description of the method for subscribing messages. The functions of each unit in the device for subscribing to messages shown in FIG. 10 may be realized by a program running on a processor, or may be realized by a specific logic circuit.

本发明实施例上述订阅消息的装置如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。If the above-mentioned device for subscribing messages in the embodiment of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for Make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, read only memory (ROM, Read Only Memory), magnetic disk or optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.

相应地,本发明实施例还提供一种计算机存储介质,其中存储有计算机可执行指令,该计算机可执行指令被处理器执行时实现本发明实施例的上述信道跳频的确定方法。Correspondingly, an embodiment of the present invention further provides a computer storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the above method for determining channel frequency hopping in the embodiment of the present invention is implemented.

图11为本发明实施例的计算机设备的结构组成示意图,如图11所示,计算机设备10可以包括一个或多个(图中仅示出一个)处理器12(处理器12可以包括但不限于微处理器(MCU,Micro Controller Unit)或可编程逻辑器件(FPGA,Field Programmable GateArray)等的处理装置)、用于存储数据的存储器14、以及用于通信功能的传输装置16。本领域普通技术人员可以理解,图11所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算机设备10还可包括比图11中所示更多或者更少的组件,或者具有与图11所示不同的配置。Fig. 11 is a schematic diagram of the structural composition of a computer device according to an embodiment of the present invention. As shown in Fig. 11, a computer device 10 may include one or more (only one is shown in the figure) processors 12 (the processor 12 may include but not limited to A processing device such as a microprocessor (MCU, Micro Controller Unit) or a programmable logic device (FPGA, Field Programmable Gate Array), a memory 14 for storing data, and a transmission device 16 for communication functions. Those of ordinary skill in the art can understand that the structure shown in FIG. 11 is only for illustration, and it does not limit the structure of the above-mentioned electronic device. For example, computer device 10 may also include more or fewer components than shown in FIG. 11 , or have a different configuration than that shown in FIG. 11 .

存储器14可用于存储应用软件的软件程序以及模块,如本发明实施例中的订阅消息的方法对应的程序指令/模块,处理器12通过运行存储在存储器14内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器14可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器14可进一步包括相对于处理器12远程设置的存储器,这些远程存储器可以通过网络连接至计算机设备10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 14 can be used to store software programs and modules of application software, such as the program instructions/modules corresponding to the method of subscribing to messages in the embodiment of the present invention, and the processor 12 executes various functions by running the software programs and modules stored in the memory 14. A functional application and data processing, that is, to realize the above-mentioned method. The memory 14 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 14 may further include memory located remotely from processor 12 , and such remote memory may be connected to computer device 10 via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

传输装置16用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机设备10的通信供应商提供的无线网络。在一个实例中,传输装置16包括一个网络适配器(NIC,Network Interface Controller),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置16可以为射频(RF,Radio Frequency)模块,其用于通过无线方式与互联网进行通讯。The transmission device 16 is used to receive or transmit data via a network. The specific example of the above-mentioned network may include a wireless network provided by the communication provider of the computer device 10 . In one example, the transmission device 16 includes a network adapter (NIC, Network Interface Controller), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 16 may be a radio frequency (RF, Radio Frequency) module, which is used to communicate with the Internet in a wireless manner.

本发明实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。The technical solutions described in the embodiments of the present invention may be combined arbitrarily if there is no conflict.

在本发明所提供的几个实施例中,应该理解到,所揭露的方法和智能设备,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present invention, it should be understood that the disclosed methods and smart devices can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.

上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各实施例中的各功能单元可以全部集成在一个第二处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be fully integrated into a second processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention.

Claims (12)

1. A method of subscribing to messages, the method comprising:
the terminal receives a message pushed by a target account;
the terminal determines push parameters corresponding to the message;
the terminal determines whether to display a prompt interface based on the pushing parameters, wherein the prompt interface is used for prompting a user whether to execute a renewing operation aiming at the target account;
the terminal determines push parameters corresponding to the message, including:
the terminal analyzes the message pushed by the target account to obtain the pushing time corresponding to the message and/or the pushing accumulated times corresponding to the message;
the terminal determines whether to display a prompt interface based on the pushing parameters, and the method comprises the following steps:
the terminal calculates a time difference value between the push time corresponding to the message and the subscription time corresponding to the subscription operation;
the terminal judges whether the time difference value is larger than or equal to a first preset threshold value or not, and judges whether the push accumulated times corresponding to the message is larger than or equal to a second preset threshold value or not;
when the time difference value is greater than or equal to a first preset threshold value and the push accumulated times corresponding to the message is greater than or equal to a second preset threshold value, determining to display a prompt interface; or when the time difference value is greater than or equal to a first preset threshold value or the push accumulated times corresponding to the message is greater than or equal to a second preset threshold value, determining to display a prompt interface.
2. The method of subscribing to messages according to claim 1, wherein the method further comprises:
and the terminal displays the prompt interface and obtains the renewing operation aiming at the target account, and continuously receives the message pushed by the target account.
3. The method for subscribing to messages according to claim 1, wherein before the terminal receives the message pushed by the target account number, the method further comprises:
the terminal obtains a subscription operation aiming at the target account, generates a subscription message based on the subscription operation, and sends the subscription message to the server.
4. A method of subscribing to messages as claimed in claim 3, wherein the method further comprises:
the terminal displays an interactive interface corresponding to the target account, wherein the interactive interface is provided with at least a first interactive control, and the first interactive control is used for receiving the subscription operation;
the terminal obtains a subscription operation aiming at a target account, generates a subscription message based on the subscription operation, and sends the subscription message to a server, wherein the subscription operation comprises the following steps:
when the terminal obtains a subscription operation on the first interaction control, a subscription message is generated based on the subscription operation, wherein the subscription message carries subscription time corresponding to the subscription operation;
and the terminal sends the subscription message carrying the subscription time corresponding to the subscription operation to the server.
5. The method for subscribing to messages according to claim 1, wherein the prompt interface has at least a second interactive control for accepting the renewing operation and a third interactive control for accepting the refusing of the renewing operation.
6. An apparatus for subscribing to messages, comprising:
the receiving unit is used for receiving the message pushed by the target account;
the determining unit is used for determining push parameters corresponding to the message;
the judging unit is used for determining whether a prompt interface is displayed or not based on the pushing parameters, and the prompt interface is used for prompting a user whether to execute a renewing operation aiming at the target account;
the determining unit is further configured to parse the message pushed by the target account to obtain a push time corresponding to the message and/or a push cumulative number corresponding to the message;
the judging unit is further configured to calculate a time difference between the push time corresponding to the message and the subscription time corresponding to the subscription operation; the terminal judges whether the time difference value is larger than or equal to a first preset threshold value or not, and judges whether the push accumulated times corresponding to the message is larger than or equal to a second preset threshold value or not; when the time difference value is greater than or equal to a first preset threshold value and the push accumulated times corresponding to the message is greater than or equal to a second preset threshold value, determining to display a prompt interface; or when the time difference value is greater than or equal to a first preset threshold value or the push accumulated times corresponding to the message is greater than or equal to a second preset threshold value, determining to display a prompt interface.
7. The apparatus of subscribing to messages according to claim 6, wherein the apparatus further comprises:
the display unit is used for displaying the prompt interface;
the input unit is used for obtaining a renewing operation aiming at the target account;
the receiving unit is further configured to continuously receive the message pushed by the target account.
8. The apparatus of subscribing to messages according to claim 6, wherein the apparatus further comprises:
the input unit is used for obtaining subscription operation aiming at the target account; generating a subscription message based on the subscription operation;
and the sending unit is used for sending the subscription message to the server.
9. The apparatus of subscribing to messages according to claim 8, wherein the apparatus further comprises:
the display unit is used for displaying an interactive interface corresponding to the target account, and the interactive interface is provided with at least a first interactive control which is used for receiving the subscription operation;
the input unit is specifically configured to obtain a subscription operation located on the first interaction control; generating a subscription message based on the subscription operation, wherein the subscription message carries subscription time corresponding to the subscription operation;
the sending unit is specifically configured to send a subscription message carrying a subscription time corresponding to the subscription operation to the server.
10. The apparatus for subscribing to messages according to claim 6, wherein the alert interface has at least a second interactive control for accepting the renewing operation and a third interactive control for accepting the refusing of the renewing operation.
11. A computer device comprising a memory, a processor and computer executable instructions stored on the memory and executable on the processor, wherein the processor, when executing the computer executable instructions, performs the method steps of any one of claims 1-5.
12. A computer storage medium having stored thereon computer executable instructions which when executed by a processor implement the method steps of any of claims 1-5.
CN201780002034.6A 2017-09-18 2017-09-18 Method and device for subscribing to news, computer equipment, computer storage medium Active CN110100426B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/102145 WO2019051849A1 (en) 2017-09-18 2017-09-18 Method and device for subscribing message, computer apparatus, and computer storage medium

Publications (2)

Publication Number Publication Date
CN110100426A CN110100426A (en) 2019-08-06
CN110100426B true CN110100426B (en) 2023-05-26

Family

ID=65722229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780002034.6A Active CN110100426B (en) 2017-09-18 2017-09-18 Method and device for subscribing to news, computer equipment, computer storage medium

Country Status (2)

Country Link
CN (1) CN110100426B (en)
WO (1) WO2019051849A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039994B (en) * 2020-09-02 2024-02-27 深邦智能科技集团(青岛)有限公司 Internet-based remote monitoring method, device and server
CN114710463B (en) * 2020-12-31 2024-03-15 腾讯科技(深圳)有限公司 Message subscription and publishing method, device, medium and equipment
CN113364670B (en) * 2021-06-16 2022-07-26 北京轻松筹信息技术有限公司 Data pushing method and device and electronic equipment
CN113641912B (en) * 2021-08-20 2024-02-09 北京得间科技有限公司 Information pushing method, computing device and computer storage medium
CN114065277B (en) * 2021-10-29 2024-07-16 北京百度网讯科技有限公司 Bill pushing method and device, electronic equipment and storage medium
CN114125045B (en) * 2021-10-29 2024-04-02 北京旷视科技有限公司 Data processing method, device and electronic system
CN114679490B (en) * 2022-03-15 2024-04-26 广州美骑网络科技股份有限公司 Information message content intelligent pushing system and method based on big data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539662A (en) * 2014-12-12 2015-04-22 小米科技有限责任公司 Information transmission method and device
CN104994121A (en) * 2015-05-11 2015-10-21 努比亚技术有限公司 Method and device for pushing notification messages
CN105453124A (en) * 2013-08-01 2016-03-30 微软技术许可有限责任公司 System for syndicating subscriptions with retailers
CN107040454A (en) * 2017-03-20 2017-08-11 微梦创科网络科技(中国)有限公司 Unread message based reminding method and device under a kind of quick more new scene of big data quantity

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1573478A2 (en) * 2002-12-19 2005-09-14 International Business Machines Corporation A method for distributing software licenses using xml documents
US20070268121A1 (en) * 2006-05-18 2007-11-22 Daryush Vasefi On-line portal system and method for management of devices and services
CN100579126C (en) * 2007-09-21 2010-01-06 腾讯科技(深圳)有限公司 A mail subscription method and server
US9392312B1 (en) * 2013-04-10 2016-07-12 Google Inc. Subscriptions to channels on the web
WO2014176748A1 (en) * 2013-04-28 2014-11-06 Tencent Technology (Shenzhen) Company Limited Method, device, and system for accessing third party platforms via a messaging application
US10482545B2 (en) * 2014-01-02 2019-11-19 Katherine Elizabeth Anderson User management of subscriptions to multiple social network platforms
CN104702984A (en) * 2015-02-12 2015-06-10 福建新大陆通信科技股份有限公司 Set-top box multi-functional weather forecast system and method thereof
CN104853230B (en) * 2015-05-14 2017-10-24 无锡天脉聚源传媒科技有限公司 A kind of hot video method for pushing and device
US9998793B2 (en) * 2015-09-25 2018-06-12 Rovi Guides, Inc. Methods and systems for determining at a present time a date at a future time at which a media asset will become available from the content provider
US10205982B2 (en) * 2015-09-25 2019-02-12 Rovi Guides, Inc. Methods and systems for managing media subscriptions
CN105704312B (en) * 2016-01-20 2019-02-26 Oppo广东移动通信有限公司 Message pushing processing method and message pushing processing device
CN106470151B (en) * 2016-09-27 2019-11-01 腾讯科技(深圳)有限公司 The method and apparatus of Public Service Identities are handled in social networking application
CN106506328A (en) * 2016-10-18 2017-03-15 江西博瑞彤芸科技有限公司 The method for pushing of message
CN106570637A (en) * 2016-10-28 2017-04-19 努比亚技术有限公司 Information prompt device and information prompt method in two-dimensional code data acquisition

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105453124A (en) * 2013-08-01 2016-03-30 微软技术许可有限责任公司 System for syndicating subscriptions with retailers
CN104539662A (en) * 2014-12-12 2015-04-22 小米科技有限责任公司 Information transmission method and device
CN104994121A (en) * 2015-05-11 2015-10-21 努比亚技术有限公司 Method and device for pushing notification messages
CN107040454A (en) * 2017-03-20 2017-08-11 微梦创科网络科技(中国)有限公司 Unread message based reminding method and device under a kind of quick more new scene of big data quantity

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于微信公众号的省域数字图书馆信息资源推送服务研究;姜博;河南图书馆学刊;全文 *

Also Published As

Publication number Publication date
CN110100426A (en) 2019-08-06
WO2019051849A1 (en) 2019-03-21

Similar Documents

Publication Publication Date Title
CN110100426B (en) Method and device for subscribing to news, computer equipment, computer storage medium
CN105337843B (en) Interactive system, method, client and background server
US8776105B2 (en) Method and system for automatic content recognition protocols
US9288230B2 (en) Methods and apparatus for providing or receiving data connectivity
CN107888965B (en) Image gift display method and device, terminal, system and storage medium
CN103984468A (en) Method and device for information processing
CN103748609A (en) Method for transferring media playback from a different device
US20160283984A1 (en) Chat advertisements
KR101783431B1 (en) Method for providing funding and consulting information related with entertainment by crowd funding system
US20120117593A1 (en) System and Method of Delivering Advertisements to a Mobile Communication Device
CN108022126A (en) Lottery qualification determining method, device, server and storage medium
CN105578295A (en) Video playing control method and equipment thereof
CN108096838A (en) Gift bag gets method, apparatus, server, mobile terminal and storage medium
CN104159328A (en) Method for prompting identification card information, mobile terminal and electronic equipment
CN111784412A (en) Information push method, device, electronic device and storage medium
WO2014176896A1 (en) System and method for updating information in an instant messaging application
US11165916B2 (en) Information processing method, information processing apparatus, and non-transitory recording medium storing instructions for executing an information processing method
CN106330681B (en) Method, system and related equipment for sharing film watching information
TW201941623A (en) Internet of things system and method for pushing message
CN110381057B (en) Communication connection processing method, device, storage medium, processor and system
EP2993636B1 (en) System architecture for closed-loop mobile lockscreen display state control
CN108196756B (en) Method and device for switching input of instant messaging interface, storage medium and terminal equipment
KR102051828B1 (en) Method of making video communication and device of mediating video communication
WO2023005199A1 (en) Data processing method and apparatus
CN112235412B (en) Message processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518057 Fuan Science and Technology Building, Block B, No. 13, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 207-2

Applicant after: Shenzhen Huantai Technology Co.,Ltd.

Address before: 518057 Fuan Science and Technology Building, Block B, No. 13, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 207-2

Applicant before: SHENZHEN YUN ZHONG FEI NETWORK TECHNOLOGY Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant