CN111756840B - Message pushing method and device - Google Patents

Message pushing method and device Download PDF

Info

Publication number
CN111756840B
CN111756840B CN202010580950.1A CN202010580950A CN111756840B CN 111756840 B CN111756840 B CN 111756840B CN 202010580950 A CN202010580950 A CN 202010580950A CN 111756840 B CN111756840 B CN 111756840B
Authority
CN
China
Prior art keywords
activity
information
user
subscription
page
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
CN202010580950.1A
Other languages
Chinese (zh)
Other versions
CN111756840A (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.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media 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 Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202010580950.1A priority Critical patent/CN111756840B/en
Publication of CN111756840A publication Critical patent/CN111756840A/en
Application granted granted Critical
Publication of CN111756840B publication Critical patent/CN111756840B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding

Landscapes

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

Abstract

The invention provides a message pushing method and a device, wherein the method comprises the following steps: when detecting a subscription message sent by a client to a subscription server, acquiring subscription information contained in the subscription message; the subscription information is information generated by the client for subscribing the target page when the user accesses the target page through the client; detecting whether the activity server generates activity currently or not in real time, acquiring activity information when the activity is generated, and determining the pushing range of the activity; judging whether the target page is in a pushing range or not; if the activity information is in the pushing range, the activity information is generated and pushed to the client, the client is triggered to display the activity information on the target page, and the user participates in the activity through the target page. By applying the method, the client side actively subscribes the target page, when the activity server side generates the activity and the target page is in the pushing range, the activity server side can directly push the activity message of the activity to the client side, and the user can timely know the currently generated activity and choose to join the activity.

Description

Message pushing method and device
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and an apparatus for pushing a message.
Background
With the rapid development of information technology, more and more ways for users to acquire information are available. When a user acquires an activity message of a certain activity through a client, the user can subscribe the activity which is interested in the user on the client in advance. When the activity starts, the server pushes the activity to the client according to the subscription information of the user, and the subscribed activity is displayed to the user through the client.
Currently, when a user subscribes to a specified activity, the user needs to subscribe to a page corresponding to the activity, but only one activity is generated on one page. Thus, when a user ends a subscribed activity on the current page, the user cannot receive other unsubscribed activities in the page. Meanwhile, the server usually generates a new activity in real time according to the requirements of each user of the current page, and only pushes the activity to the subscribed user related to the newly added activity, while for other users who do not subscribe to the activity, the newly added activity may be interested, but the user cannot know the generation of the activity or cannot join the activity. If the user needs to know all the activities on a certain page, each activity needs to be subscribed, which brings inconvenience to the user and affects the experience of the user.
Disclosure of Invention
In view of this, the present invention provides a message pushing method, by which a client may actively subscribe a target page without performing a subscription operation, and generate an activity at an activity server, and when the target page is in an activity pushing range, an activity message of the activity may be directly pushed to the client, so that a user may timely learn the currently generated activity and select to join the activity, thereby improving a user experience.
The invention also provides a message pushing device used for ensuring the realization and the application of the method in practice.
A message push method, comprising:
when detecting a subscription message sent by a client to a subscription service end, acquiring subscription information contained in the subscription message; the subscription information is information for subscribing the target page generated by the client based on the user information of the user and the page information of the target page when the user accesses the target page through the client currently;
detecting whether a preset activity server generates activity currently or not in real time, and acquiring activity information of the activity when the activity server generates the activity;
determining a push range for the campaign based on the campaign information;
judging whether the target page is in the pushing range or not based on the page information of the target page in the subscription information and the user information of the user;
and if the target page is in the pushing range, generating an activity message corresponding to the activity, pushing the activity message to the client, and triggering the client to display the activity message on the target page so that the user participates in the activity through the target page.
The above method, optionally, the determining the pushing range of the activity based on the activity information includes:
acquiring activity pushing parameters contained in the activity information;
analyzing the activity pushing parameters to obtain page identification positions of all pages to be pushed corresponding to the activity;
and determining the pushing range of the activity based on the page identification bits of the pages.
Optionally, the determining, based on the page information of the target page in the subscription information and the user information of the user, whether the target page is within the push range includes:
acquiring page identification information corresponding to the target page in the page information;
judging whether the page identification information is matched with any page identification bit in the activity pushing parameters or not;
if the page identification information is matched with any page identification bit in the active push parameters, determining that the target page is in the push range;
if the page identification information is not matched with all page identification bits in the activity pushing parameters, judging whether the user information contains a no-topic subscription protocol corresponding to the subscription service terminal, wherein the no-topic subscription protocol is a protocol signed by the user and the subscription service terminal and used for subscribing all activities generated by the activity service terminal;
if the user information contains a non-topic subscription protocol corresponding to the subscription server, determining that the target page is in the push range;
and if the user information does not contain the non-topic subscription protocol corresponding to the subscription server, determining that the target page is not in the push range.
Optionally, in the foregoing method, the pushing the activity message to the client includes:
acquiring pushing time corresponding to the activity contained in the activity information;
and starting a preset timer to time, and pushing the activity message to the client when the time counted by the timer reaches the pushing time.
Optionally, the method described above, after pushing the activity message to the client, further includes:
when a user identity authentication request corresponding to the activity sent by the activity service is received, determining a user to be authenticated corresponding to the identity authentication request, and acquiring authentication information of the user to be authenticated;
acquiring various historical subscription information prestored in the subscription service terminal, and verifying whether the user to be verified is a real user participating in the activity or not based on the various historical subscription information and the verification information;
and if the user to be verified is the real user participating in the activity, sending a user online notification corresponding to the user to be verified to the activity server, so that the activity server agrees to the user to be verified to join the activity based on the user online notification.
A message pushing apparatus, comprising:
the first acquisition unit is used for acquiring subscription information contained in subscription information when the subscription information sent by a client to a subscription server is detected; the subscription information is information for subscribing the target page, which is generated by the client based on the user information of the user and the page information of the target page when the user accesses the target page through the client currently;
the second acquisition unit is used for detecting whether a preset activity server generates activity currently or not in real time and acquiring activity information of the activity when the activity server generates the activity;
a determining unit, configured to determine a push range of the activity based on the activity information;
a judging unit, configured to judge whether the target page is within the push range based on page information of the target page in the subscription information and user information of the user;
and the pushing unit is used for generating an activity message corresponding to the activity if the target page is within the pushing range, pushing the activity message to the client, and triggering the client to display the activity message on the target page so that the user participates in the activity through the target page.
The above apparatus, optionally, the determining unit includes:
the first acquiring subunit is configured to acquire an activity pushing parameter included in the activity information;
the analysis subunit is configured to analyze the activity pushing parameter to obtain a page identifier of each page to be pushed corresponding to the activity;
and the first determining subunit is configured to determine the active push range based on the page identification bits of the respective pages.
The above apparatus, optionally, the determining unit includes:
the second acquiring subunit is configured to acquire page identification information corresponding to the target page in the page information;
the first judging subunit is configured to judge whether the page identifier information matches any page identifier bit in the active push parameter;
a second determining subunit, configured to determine that the target page is within the push range if the page identification information matches any page identification bit in the active push parameter;
a second determining subunit, configured to determine whether the user information includes a non-topic subscription protocol corresponding to the subscription service end if the page identification information is not matched with all page identification bits in the activity pushing parameter, where the non-topic subscription protocol is a protocol, signed by the user and the subscription service end, for subscribing to all activities generated by the activity service end;
a third determining subunit, configured to determine that the target page is within the push range if the user information includes a non-topic subscription protocol corresponding to the subscription server;
a fourth determining subunit, configured to determine that the target page is not within the push range if the user information does not include a non-topic subscription protocol corresponding to the subscription server.
The above apparatus, optionally, the pushing unit includes:
a third obtaining subunit, configured to obtain push time corresponding to the activity included in the activity information;
and the pushing subunit is used for starting a preset timer to time and pushing the activity message to the client when the timing time of the timer reaches the pushing time.
The above apparatus, optionally, further comprises:
the authentication unit is used for determining a user to be authenticated corresponding to the identity authentication request and acquiring authentication information of the user to be authenticated when the user identity authentication request corresponding to the activity sent by the activity service is received; acquiring all historical subscription information pre-stored in the subscription server, and verifying whether the user to be verified is a real user participating in the activity or not based on all the historical subscription information and the verification information; and if the user to be verified is a user who really participates in the activity, sending a user online notification corresponding to the user to be verified to the activity server, so that the activity server agrees that the user to be verified joins in the activity based on the user online notification.
A storage medium, comprising stored instructions, wherein when executed, the instructions control a device on which the storage medium is located to execute the above message pushing method.
An electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the message pushing method described above.
Compared with the prior art, the invention has the following advantages:
the invention provides a message pushing method, which comprises the following steps: when detecting a subscription message sent by a client to a subscription server, acquiring subscription information contained in the subscription message; the subscription information is information for subscribing the target page generated by the client based on the user information of the user and the page information of the target page when the user accesses the target page through the client at present; detecting whether the activity server generates activity currently or not in real time, and acquiring activity information of the activity when the activity server generates the activity; determining a push range of the activity based on the activity information; judging whether the target page is in a pushing range or not based on the page information of the target page in the subscription information and the user information of the user; and if the target page is in the pushing range, generating an activity message corresponding to the activity, pushing the activity message to the client, and triggering the client to display the activity message on the target page so as to enable the user to participate in the activity through the target page. By applying the method provided by the invention, the client side can actively subscribe the target page under the condition that the user does not execute the subscription operation, the activity is generated at the activity server side, and when the target page is in the activity pushing range, the activity message of the activity can be directly pushed to the client side, so that the user can timely know the currently generated activity and can select to join the activity, and the experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for pushing a message according to an embodiment of the present invention;
fig. 2 is a flowchart of another method of a message pushing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a method for pushing a message according to an embodiment of the present invention;
fig. 4 is a device structure diagram of a message pushing device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions, and the terms "comprises", "comprising", or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor appliances, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the invention provides a message pushing method which can be applied to various system platforms, wherein an execution main body of the method can be a subscription server or a processor arranged in the subscription server, and a subscription server user receives and records subscription messages sent by a client and can push related subscription messages to the client. The method flow chart of the method is shown in fig. 1, and specifically includes:
s101: when detecting a subscription message sent by a client to a subscription server, acquiring subscription information contained in the subscription message;
the subscription information is information for subscribing the target page generated by the client based on the user information of the user and the page information of the target page when the user accesses the target page through the client currently;
in the embodiment of the invention, when a user accesses a certain webpage through a client, the page of the webpage currently accessed by the user is determined as the target page, and the target page can be a page on demand, a channel page and other pages. After loading a target page to be accessed for the user, the client generates subscription information corresponding to the target page according to the user information of the user and the page information of the target page. And the client actively sends subscription information to the subscription server through the subscription information under the condition that the user does not sense. And when the client side is detected to send the subscription message to the subscription service side, obtaining the subscription information contained in the subscription message.
It should be noted that, in addition to the subscription information, the subscription message may also include information such as a user unique identification code corresponding to the user, a device ID of the client, a platform number, and an application version number. When the client sends the subscription message to the subscription service terminal, the subscription message is sent to the subscription service terminal through a preset subscription interface. In the process of sending the subscription message, the subscription message may be sent through a preset topic subscription protocol, where the topic subscription protocol may be: mgact @ android/pageID/customId. Wherein, pageID represents the id of the target page, and customId represents the custom id, which can be in default.
S102: detecting whether a preset activity server generates activity currently or not in real time, and acquiring activity information of the activity when the activity server generates the activity;
in the embodiment of the present invention, the subscription server needs to detect whether an activity is currently generated at the active server in real time. According to the requirements of the user or factors such as the access amount of the user on a certain page, the technical staff in the background can send related information such as activity content and activity starting time to the activity server through the activity system in the background, and the activity server generates the activity after receiving the activity content uploaded by the technical staff. When the subscription server side detects that the activity server side generates the activity currently, the activity information of the activity is obtained.
The activity information includes information such as activity content, activity name, activity start time, activity push page, and the like.
It should be noted that the activity server may generate an activity according to the information about the activity content uploaded by the technician, and may also start the activity according to the activity start time, and when the user needs to join the activity, the user must join the activity through the activity server.
Further, in the process of detecting whether the active server generates an activity currently, the subscription server may send a detection signal to the active server in real time, and when the active server returns an activity signal corresponding to the currently sent detection signal, it may determine that the active server generates an activity.
S103: determining a push range for the campaign based on the campaign information;
in the embodiment of the present invention, the activity generated by the activity server specifies to push the page of the activity, and the pushing range of the activity can be determined according to the related information of the page of the activity specified in the activity information.
S104: judging whether the target page is in the pushing range or not based on the page information of the target page in the subscription information and the user information of the user;
in the embodiment of the present invention, when the client sends the subscription message to the subscription server, the subscription message may be provided with a corresponding subscription topic, the subscription topic is related to a page currently accessed by the user, and the subscription message with the subscription topic is a topic subscription message. In addition, a subscription topic may not be set according to the user information, and a subscription message without a subscription topic is a non-topic subscription message. The non-topic subscription message means that the subscription message does not specify to subscribe to a certain page, and no matter any page needs to push an active message, the active message can be pushed to a user corresponding to the non-topic subscription message. Therefore, according to the page information and the user information, whether the target page is in the pushing range of the activity or not can be determined.
S105: and if the target page is in the pushing range, generating an activity message corresponding to the activity, pushing the activity message to the client, and triggering the client to display the activity message on the target page so that the user participates in the activity through the target page.
In the embodiment of the present invention, if the target page is within the push range, the activity may be pushed to the client. And generating a corresponding activity message according to the activity information of the activity, and pushing the activity message to the client. After receiving the activity message, the client can pop up and display the activity message on a target page, and can also add the activity message into a preset message queue, and remind a user that the target page has activity currently in a message window form on the target page. The user may select whether to join the activity based on the activity message.
It should be noted that, when receiving the activity message, the client receives the activity message through a preset message receiving protocol, which can ensure that two different data protocols are used when sending the subscription message and receiving the activity message, and ensure that the processes of sending the subscription message and receiving the message are independent.
In the method provided by the embodiment of the invention, when a user accesses a target page, the client sends a subscription message to the subscription server according to the target page currently accessed by the user. And after detecting the subscription message sent by the client, acquiring the subscription information in the subscription message. Meanwhile, the subscription server detects whether the activity server generates activity in real time, and if the subscription server generates activity, the subscription server acquires activity information of the activity from the activity server so as to determine a push range in which the activity generated by the activity server currently needs to be pushed. After the push range is determined, whether the target page is in the push range of the activity needs to be determined according to the page information and the user information in the subscription information, and when the target page is determined to be in the push range, the activity message of the activity is pushed to the client, the client displays the activity message on the target page, and the user can participate in the activity through the activity message displayed on the target page.
Similarly, in the embodiment of the present invention, after the subscription service end determines that the target page is within the activity range, in addition to pushing the activity message to the client, for other clients, if the page currently accessed by the user corresponding to the other clients is also within the activity range and the other clients have sent subscription messages to the subscription service end, the subscription service end may also push the activity message to the other clients.
It should be noted that the activity message may include an activity link of the activity, and when the user needs to join the activity, the client may click the activity message on the target page, and connect the activity server through the activity link according to the click operation of the user, so as to load the activity page of the activity.
In order to better embody the content of the above embodiments, the present invention provides an application scenario of the embodiments:
when a user accesses the channel page A, the client sends a subscription message for subscribing the channel page A to the subscription server. After detecting the subscription message sent by the client, acquiring the subscription information in the subscription message, and detecting whether the activity server generates new activity in real time. When the activity server generates the red-covered rain activity, the activity information of the red-covered rain activity is obtained, and the pushing range of the red-covered rain activity needing to be pushed is determined. If the red-envelope rain activity needs to be pushed to all the channel pages, determining that the channel page A is in an activity pushing range, simultaneously generating a red-envelope rain message corresponding to the red-envelope rain activity, pushing the red-envelope rain message to the client, displaying the red-envelope rain message on the channel page A by the client, and enabling the user to join the red-envelope rain activity according to the red-envelope rain message.
By applying the method provided by the embodiment of the invention, the client actively subscribes the target page, when the activity server generates the activity and the target page is in the pushing range, the activity server can directly push the activity message of the activity to the client, and the user can timely know the currently generated activity and select to join the activity.
In the method provided in the embodiment of the present invention, based on the content in step S103, when it is detected that the activity server generates an activity, the activity server obtains activity information of the activity to determine a push range in which the activity needs to be pushed, and the specific process may include:
acquiring activity pushing parameters contained in the activity information;
analyzing the activity pushing parameters to obtain page identification positions of all pages to be pushed corresponding to the activity;
and determining the pushing range of the activity based on the page identification bits of the pages.
In the message pushing method provided in the embodiment of the present invention, the activity is an activity set by a technical back-end technician according to a specific requirement, before the activity server generates an activity, the technician has already set each page that needs to be pushed by the activity, and uploads a relevant code corresponding to the activity server, so that the activity server generates the activity that needs to be pushed. After obtaining the activity information, the subscription server obtains the activity pushing parameter of the activity from the activity information, the activity pushing parameter is provided with a plurality of identification bits, and each identification bit can be used for designating a page for pushing the activity, so that the pushing range of the activity is determined by each page identification bit in the pushing parameter.
Based on the method provided by the above embodiment, after the active push scope is determined, it needs to be determined whether the target page is within the active push scope. Specifically, a process of determining whether the target page is within the push range based on the page information of the target page in the subscription information and the user information of the user is shown in fig. 2, where the process may include:
s201: acquiring page identification information corresponding to the target page in the page information;
in the embodiment of the present invention, the page identification information may be an id of the page or a page identification bit.
S202: judging whether the page identification information is matched with any page identification bit in the activity pushing parameters or not; if yes, executing S204; if not, executing S203;
in the embodiment of the present invention, it is determined whether the page identifier information matches any page identifier bit, so as to determine whether the active push parameter includes the page identifier bit of the target page.
S203: if the page identification information is not matched with all page identification bits in the activity pushing parameters, judging whether the user information contains a non-topic subscription protocol corresponding to the subscription service terminal, wherein the non-topic subscription protocol is a protocol which is signed by the user and the subscription service terminal and used for subscribing all activities generated by the activity service terminal; if yes, executing S204; if not, executing S205;
in the embodiment of the present invention, if the page identification information is not matched with all the page identification bits in the active push parameter, it is required to determine whether the user has signed a theme-free subscription protocol with the subscription server in advance. The no-topic subscription protocol can be used for pushing corresponding activity messages to a client where a user is located by the subscription service side as long as new activities are generated by the activity service side no matter the user accesses any page when the user is online.
S204: if the page identification information is matched with any page identification bit in the active push parameters, or the user information comprises a non-topic subscription protocol corresponding to the subscription server, determining that the target page is in the push range;
in the embodiment of the present invention, if the user information includes a theme-less subscription protocol, it may be determined that all activities can be pushed to the client where the user is located, or if the page identification information is matched with any page identification bit, it is determined that the target page is within a pushing range of the activity.
For example, after the activity push parameter is analyzed, three page identification bits 001, 010, and 100 are obtained, where the page identification bit 001 is a page identification bit of the channel page a, the page identification bit 010 is a page representation bit of the channel page B, and the page identification bit 100 is a page identification bit of the channel page C, and then it can be determined that the push range of the activity is the channel page a, the channel page B, and the channel page C. If the page identification information in the page information is 001, the page identification bit representing the target page is 001, so that the target page can be determined to be the channel page a and is in the active push range.
S205: and if the user information does not contain the non-topic subscription protocol corresponding to the subscription service terminal, determining that the target page is not in the push range.
In the embodiment of the present invention, if the user information does not include the theme-less subscription protocol, and the page identifier of the target page is not matched with each page identifier, it may be determined that the target page is not within the push range. The subscription service will not push the activity message to the client.
In the message pushing method provided in the embodiment of the present invention, after the pushing range of the activity is determined, it is first determined whether the target page is within the pushing range according to the page identification information in the page information. Specifically, the page identification information is matched with each page identification bit in the active push parameter, if any page identification bit is matched with the page identification information, it is determined that the target page is within the push range, if no matched page identification bit exists, it is required to detect whether the user information includes a no-topic subscription protocol, if so, it may be determined that the target page is within the push range, and if not, it is determined that the target page is not within the push range.
It should be noted that, in the method provided in the embodiment of the present invention, in the process of determining whether the target page is in the push range, it may be determined whether the user information includes a non-topic subscription protocol, and then, in a case that it is determined that the non-topic subscription protocol is not included, it is determined whether the page identification information is matched with each page identification bit.
Specifically, the active push range may specify that a page is the active push range. All pages can also be designated as the pushing range of the activity, and each page specifically needing to push the activity message can be set according to the activity requirement, which is not limited herein.
By applying the method provided by the embodiment of the invention, each page needing to be pushed by the activity is determined according to the activity pushing parameters in the activity information, and whether the target page is in the activity pushing range is further determined according to the page information and the user information, so that the activity can be pushed to the client when the target page is in the activity pushing range.
In the method provided in the embodiment of the present invention, after determining that the target page is within the push range, the method may push the active message to the client, and specifically may include:
acquiring pushing time corresponding to the activity contained in the activity information;
and starting a preset timer to time, and pushing the activity message to the client when the time counted by the timer reaches the pushing time.
In the message pushing method provided by the embodiment of the invention, when the activity is generated at the activity server, the corresponding activity starting time is set, and the pushing time for pushing the activity is set according to the activity starting time. Wherein the push time may coincide with the activity start time, or the push time may be earlier than the activity start time. And timing by a preset timer, and pushing the activity message of the activity to the client when the timing time of the timer reaches the pushing time of the activity.
By applying the method provided by the embodiment of the invention, when the pushing time is up, the activity message is pushed to the client in time, so that the user can know the activity in time and join the activity when the activity starts.
Optionally, in the method provided in the embodiment of the present invention, before the active push time is reached, the user may change the currently accessed target page. I.e., the user may exit the access destination page and revisit another new page. And at the moment, the client sends the subscription message corresponding to the new page to the preset server again. And the processes of the above-described embodiments S102 to S104 are performed again. After determining that the new page is in the active push scope, the activity message is also sent to the client, and the client should display the activity message on the new page. If the new page is not in the activity pushing range, the subscription service end cannot push the activity message to the client, or the client cannot display the activity message on the new page after the subscription service end pushes the activity message to the client.
In the method provided by the embodiment of the invention, after receiving the activity message through the client, the user sends the activity joining request to the activity server according to the activity link in the activity message. At this time, after the activity server receives an activity join request of a certain user, in order to avoid the user from embezzling the activity, it is necessary to determine whether the user requesting to join the activity uses other plug-in software to participate in the activity. The determining whether the user requesting to join the activity is stealing the activity may specifically include:
when a user identity authentication request corresponding to the activity sent by the activity service is received, determining a user to be authenticated corresponding to the identity authentication request, and acquiring authentication information of the user to be authenticated;
acquiring all historical subscription information pre-stored in the subscription server, and verifying whether the user to be verified is a real user participating in the activity or not based on all the historical subscription information and the verification information;
and if the user to be verified is a user who really participates in the activity, sending a user online notification corresponding to the user to be verified to the activity server, so that the activity server agrees that the user to be verified joins in the activity based on the user online notification.
In the activity pushing method provided by the embodiment of the invention, after the subscription server successfully sends the activity message to each client in the pushing range, when a user of any client requests to join the activity, the user currently requesting to join the activity is determined as the user to be verified. The active server side sends a user identity authentication request corresponding to the user to be authenticated to the subscription server side, and the subscription server side obtains authentication information of the user to be authenticated according to the request and obtains various historical subscription information prestored in the subscription server side at the same time. Since each historical subscription information contains user information, it is only necessary to match the user information in each historical subscription information with the user information of the user to be verified in the verification information, and it is possible to verify whether the user to be verified is a real user participating in the activity according to the page information in each historical subscription information and the current page visited by the user to be verified in the verification information. If the user to be verified is a real user participating in the activity, the user is represented that the user is not embezzled in the activity, and the subscription service end sends a user online notification corresponding to the user to be verified to the activity service end to inform the activity service end that the user is a real user, and at the moment, the activity service end will pass a request of the user for joining the activity.
Optionally, in addition to verifying whether the user to be verified really participates in the activity according to the historical subscription information and the verification information, whether the target client is consistent with the client that originally sent the subscription message may also be determined according to the target client corresponding to the user to be verified, and if so, the user to be verified is determined to be the user who really participates in the activity.
Further, if the user to be verified is not the user really participating in the activity, the subscription service end sends a user offline notification to the activity service end, and at this time, the activity service end can refuse the user to join the activity.
By applying the method provided by the embodiment of the invention, the subscription server can comprehensively master the user dynamics including the use scene, the foreground and background switching and whether the connection is disconnected. And when the user joins in the activity, the user can be verified, and the phenomenon that other users who plug in the mobile phone steal the activity is avoided.
Based on the message pushing method provided by the foregoing embodiment, referring to the schematic diagram of fig. 3, a specific implementation process of the present invention includes the following contents:
1. a user accesses a target page;
2. the client sends a subscription message to the subscription server according to the target page accessed by the user;
3. acquiring subscription information in a subscription message, and detecting whether an activity server generates an activity in real time;
4. the activity server generates activity and feeds back a corresponding activity signal to the subscription server;
5. the subscription server side obtains activity information of the activity and determines a pushing range of the activity;
6. judging whether the target page is in a pushing range or not; if yes, executing step 7; if not, not pushing the active message of the activity to the client;
7. the subscription server side pushes an activity message to the client side;
8. the user requests to join the activity to the activity server through the client based on the activity message;
9. the method comprises the steps that after an activity server side receives a request for joining the activity from a client side, a user identity authentication request is sent to a subscription server side;
10. the subscription service end verifies the identity of the user, judges whether the user is a real user participating in the activity, and if so, executes the step 11; if not, executing step 12;
11. sending an online notification to the activity server so that the activity server allows the user to join the activity;
12. and sending an offline notification to the activity server so that the activity server refuses the user to join the activity.
The method provided by the embodiment of the invention not only can actively subscribe the currently accessed page for the user under the condition that the user does not sense the page, but also ensures that the user can timely receive each activity in the page. Meanwhile, the subscription server can judge whether the user is online or not, whether embezzlement exists or not and the like at any time according to each subscription information.
The specific implementation procedures and derivatives thereof of the above embodiments are within the scope of the present invention.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides a message pushing apparatus, which is used for implementing the method in fig. 1 specifically, and the message pushing apparatus provided in the embodiment of the present invention may be applied to a computer terminal or various mobile devices, and a schematic structural diagram of the message pushing apparatus is shown in fig. 4, and specifically includes:
a first obtaining unit 401, configured to obtain subscription information included in a subscription message when detecting that the subscription message is sent from a client to a subscription server; the subscription information is information for subscribing the target page generated by the client based on the user information of the user and the page information of the target page when the user accesses the target page through the client currently;
a second obtaining unit 402, configured to detect whether a preset active server currently generates an activity in real time, and obtain activity information of the activity when the active server generates the activity;
a determining unit 403, configured to determine a pushing range of the activity based on the activity information;
a determining unit 404, configured to determine, based on the page information of the target page in the subscription information and the user information of the user, whether the target page is within the push range;
a pushing unit 405, configured to generate an activity message corresponding to the activity if the target page is within the pushing range, push the activity message to the client, and trigger the client to display the activity message on the target page, so that the user participates in the activity through the target page.
In the message pushing apparatus provided in the embodiment of the present invention, when it is detected that the client sends the subscription message, the first obtaining unit obtains the subscription information in the subscription message. The subscription information is information for subscribing the target page generated by the client according to the target page accessed by the user. When the subscription server detects that the activity server generates the activity, the second obtaining unit obtains the activity information of the activity. The determining unit determines a pushing range when the activity needs to be pushed, wherein the pushing range refers to each page capable of pushing the activity. And judging whether the target page is in the pushing range of the activity or not through the judging unit, so that the pushing unit pushes the activity message of the activity to the client when the target page is determined to be in the pushing range.
By applying the device provided by the embodiment of the invention, the client actively subscribes the target page, when the activity server generates the activity and the target page is in the pushing range, the activity server can directly push the activity message of the activity to the client, and the user can timely know the currently generated activity and select to join the activity.
In the apparatus provided in the embodiment of the present invention, the determining unit 403 includes:
a first obtaining subunit, configured to obtain an activity push parameter included in the activity information;
the analysis subunit is configured to analyze the activity pushing parameter to obtain a page identifier of each page to be pushed corresponding to the activity;
and the first determining subunit is used for determining the pushing range of the activity based on the page identification bits of the pages.
In the apparatus provided in the embodiment of the present invention, the determining unit 404 includes:
the second acquiring subunit is configured to acquire page identification information corresponding to the target page in the page information;
the first judging subunit is configured to judge whether the page identifier information matches any page identifier bit in the active push parameter;
a second determining subunit, configured to determine that the target page is within the push range if the page identification information matches any page identification bit in the active push parameter;
a second determining subunit, configured to determine, if the page identifier information is not matched with all page identifier bits in the activity pushing parameter, whether the user information includes a non-topic subscription protocol corresponding to the subscription service end, where the non-topic subscription protocol is a protocol signed by the subscription service end and used for subscribing to all activities generated by the activity service end by the user;
a third determining subunit, configured to determine that the target page is within the push range if the user information includes a non-topic subscription protocol corresponding to the subscription server;
a fourth determining subunit, configured to determine that the target page is not within the push range if the user information does not include a non-topic subscription protocol corresponding to the subscription server.
In the apparatus provided in the embodiment of the present invention, the pushing unit 405 includes:
a third obtaining subunit, configured to obtain push time corresponding to the activity included in the activity information;
and the pushing subunit is used for starting a preset timer to time and pushing the activity message to the client when the timing time of the timer reaches the pushing time.
The device provided by the embodiment of the invention further comprises:
the authentication unit is used for determining a user to be authenticated corresponding to the identity authentication request and acquiring authentication information of the user to be authenticated when the user identity authentication request corresponding to the activity sent by the activity service is received; acquiring all historical subscription information pre-stored in the subscription server, and verifying whether the user to be verified is a real user participating in the activity or not based on all the historical subscription information and the verification information; and if the user to be verified is the real user participating in the activity, sending a user online notification corresponding to the user to be verified to the activity server, so that the activity server agrees to the user to be verified to join the activity based on the user online notification.
The specific working process of each unit in the message pushing apparatus disclosed in the above embodiment of the present invention may refer to the corresponding content in the message pushing method disclosed in the above embodiment of the present invention, and is not described herein again.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the device where the storage medium is located is controlled to execute the message pushing method.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 5, which specifically includes a memory 501 and one or more instructions 502, where the one or more instructions 502 are stored in the memory 501, and are configured to be executed by one or more processors 503 to perform the following operations according to the one or more instructions 502:
when detecting a subscription message sent by a client to a subscription server, acquiring subscription information contained in the subscription message; the subscription information is information for subscribing the target page, which is generated by the client based on the user information of the user and the page information of the target page when the user accesses the target page through the client currently;
detecting whether a preset activity server generates activity currently or not in real time, and acquiring activity information of the activity when the activity server generates the activity;
determining a push range for the campaign based on the campaign information;
judging whether the target page is in the pushing range or not based on the page information of the target page in the subscription information and the user information of the user;
and if the target page is in the pushing range, generating an activity message corresponding to the activity, pushing the activity message to the client, and triggering the client to display the activity message on the target page so that the user participates in the activity through the target page.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
To clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A message pushing method, comprising:
when detecting a subscription message sent by a client to a subscription server, acquiring subscription information contained in the subscription message; the subscription information is information for subscribing the target page generated by the client based on the user information of the user and the page information of the target page when the user accesses the target page through the client currently;
detecting whether a preset activity server generates activity currently or not in real time, and acquiring activity information of the activity when the activity server generates the activity;
determining a push range for the campaign based on the campaign information;
judging whether the target page is in the push range or not based on the page information of the target page in the subscription information and the user information of the user;
if the target page is within the pushing range, generating an activity message corresponding to the activity, pushing the activity message to the client, triggering the client to display the activity message on the target page, so that the user participates in the activity through the target page, and the activity message is popped up and displayed on the target page, or the target page is reminded of the user that the target page has the activity currently in a message window mode.
2. The method of claim 1, wherein the determining the push scope for the activity based on the activity information comprises:
acquiring activity pushing parameters contained in the activity information;
analyzing the activity pushing parameters to obtain page identification positions of all pages to be pushed corresponding to the activity;
and determining the pushing range of the activity based on the page identification bits of the pages.
3. The method according to claim 2, wherein the determining whether the target page is within the push range based on the page information of the target page in the subscription information and the user information of the user comprises:
acquiring page identification information corresponding to the target page in the page information;
judging whether the page identification information is matched with any page identification bit in the activity pushing parameters;
if the page identification information is matched with any page identification bit in the active push parameters, determining that the target page is in the push range;
if the page identification information is not matched with all page identification bits in the activity pushing parameters, judging whether the user information contains a no-topic subscription protocol corresponding to the subscription service terminal, wherein the no-topic subscription protocol is a protocol signed by the user and the subscription service terminal and used for subscribing all activities generated by the activity service terminal;
if the user information contains a non-topic subscription protocol corresponding to the subscription server, determining that the target page is in the push range;
and if the user information does not contain the non-topic subscription protocol corresponding to the subscription server, determining that the target page is not in the push range.
4. The method of claim 1, wherein pushing the active message to the client comprises:
acquiring pushing time corresponding to the activity contained in the activity information;
and starting a preset timer to time, and pushing the activity message to the client when the timing time of the timer reaches the pushing time.
5. The method of claim 1, wherein after pushing the activity message to the client, further comprising:
when a user identity authentication request corresponding to the activity sent by the activity service is received, determining a user to be authenticated corresponding to the identity authentication request, and acquiring authentication information of the user to be authenticated;
acquiring all historical subscription information pre-stored in the subscription server, and verifying whether the user to be verified is a real user participating in the activity or not based on all the historical subscription information and the verification information;
and if the user to be verified is the real user participating in the activity, sending a user online notification corresponding to the user to be verified to the activity server, so that the activity server agrees to the user to be verified to join the activity based on the user online notification.
6. A message push apparatus, comprising:
the first acquisition unit is used for acquiring subscription information contained in subscription information when the subscription information sent by a client to a subscription server is detected; the subscription information is information for subscribing the target page, which is generated by the client based on the user information of the user and the page information of the target page when the user accesses the target page through the client currently;
the second acquisition unit is used for detecting whether a preset activity server generates activity currently or not in real time and acquiring activity information of the activity when the activity server generates the activity;
a determining unit, configured to determine a push range of the activity based on the activity information;
a judging unit, configured to judge whether the target page is within the push range based on page information of the target page in the subscription information and user information of the user;
and the pushing unit is used for generating an activity message corresponding to the activity if the target page is within the pushing range, pushing the activity message to the client, triggering the client to display the activity message on the target page so that the user participates in the activity through the target page, and popping up and displaying the activity message on the target page or reminding the user that the target page has the activity currently in a message window form on the target page.
7. The apparatus of claim 6, wherein the determining unit comprises:
the first acquiring subunit is configured to acquire an activity pushing parameter included in the activity information;
the analysis subunit is configured to analyze the activity pushing parameter to obtain a page identifier of each page to be pushed corresponding to the activity;
and the first determining subunit is configured to determine the active push range based on the page identification bits of the respective pages.
8. The apparatus according to claim 6, wherein the determining unit comprises:
the second acquiring subunit is configured to acquire page identification information corresponding to the target page in the page information;
the first judging subunit is configured to judge whether the page identifier information matches any page identifier bit in the active push parameter;
a second determining subunit, configured to determine that the target page is within the push range if the page identification information matches any page identification bit in the active push parameter;
a second determining subunit, configured to determine whether the user information includes a non-topic subscription protocol corresponding to the subscription service end if the page identification information is not matched with all page identification bits in the activity pushing parameter, where the non-topic subscription protocol is a protocol, signed by the user and the subscription service end, for subscribing to all activities generated by the activity service end;
a third determining subunit, configured to determine that the target page is within the push range if the user information includes a non-topic subscription protocol corresponding to the subscription server;
a fourth determining subunit, configured to determine that the target page is not within the push range if the user information does not include a non-topic subscription protocol corresponding to the subscription server.
9. The apparatus of claim 6, wherein the pushing unit comprises:
a third obtaining subunit, configured to obtain push time corresponding to the activity included in the activity information;
and the pushing subunit is used for starting a preset timer to time and pushing the activity message to the client when the timing time of the timer reaches the pushing time.
10. The apparatus of claim 6, further comprising:
the verification unit is used for determining a user to be verified corresponding to the identity verification request and acquiring verification information of the user to be verified when the user identity verification request corresponding to the activity sent by the activity service is received; acquiring all historical subscription information pre-stored in the subscription server, and verifying whether the user to be verified is a real user participating in the activity or not based on all the historical subscription information and the verification information; and if the user to be verified is the real user participating in the activity, sending a user online notification corresponding to the user to be verified to the activity server, so that the activity server agrees to the user to be verified to join the activity based on the user online notification.
CN202010580950.1A 2020-06-23 2020-06-23 Message pushing method and device Active CN111756840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010580950.1A CN111756840B (en) 2020-06-23 2020-06-23 Message pushing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010580950.1A CN111756840B (en) 2020-06-23 2020-06-23 Message pushing method and device

Publications (2)

Publication Number Publication Date
CN111756840A CN111756840A (en) 2020-10-09
CN111756840B true CN111756840B (en) 2023-04-07

Family

ID=72677476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010580950.1A Active CN111756840B (en) 2020-06-23 2020-06-23 Message pushing method and device

Country Status (1)

Country Link
CN (1) CN111756840B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923180B (en) * 2021-09-30 2023-02-03 北京字跳网络技术有限公司 Topic group message pushing method, receiving method, device, system and storage medium
CN114553949A (en) * 2022-02-15 2022-05-27 北京京东乾石科技有限公司 Page message pushing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036970A (en) * 2012-12-11 2013-04-10 北京奇虎科技有限公司 Method and system for page frame content subscription
CN107025234A (en) * 2016-02-01 2017-08-08 中国移动通信集团公司 A kind of information-pushing method and caching server
CN109587194A (en) * 2017-09-29 2019-04-05 武汉斗鱼网络科技有限公司 A kind of action message methods of exhibiting, client and server
CN110417869A (en) * 2019-07-05 2019-11-05 广州华多网络科技有限公司 A kind of activity method for pushing, device and computer equipment
CN111241402A (en) * 2020-01-14 2020-06-05 恩亿科(北京)数据科技有限公司 Information pushing method and device, electronic equipment and readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8230347B2 (en) * 2008-04-04 2012-07-24 Hewlett-Packard Development Company, L. P. System and method for prompting users to subscribe to web feeds based on web browsing activity
CN103001926A (en) * 2011-09-09 2013-03-27 华为技术有限公司 Method, device and system for subscription notification
CN103034716A (en) * 2012-12-11 2013-04-10 北京奇虎科技有限公司 Subscribing method and device for page content
US20160014057A1 (en) * 2014-07-08 2016-01-14 Samsung Electronics Co., Ltd. Method and system for providing dynamically customized web push messages in a wireless network
US9742818B2 (en) * 2014-12-10 2017-08-22 Oracle International Corporation Pushing events to web pages used for interaction with applications
CN105162687A (en) * 2015-08-11 2015-12-16 甘肃万维信息技术有限责任公司 WEB-based real-time message push method
CN111325601A (en) * 2020-02-07 2020-06-23 北京搜狗科技发展有限公司 Commodity subscription method, commodity subscription device and commodity subscription medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036970A (en) * 2012-12-11 2013-04-10 北京奇虎科技有限公司 Method and system for page frame content subscription
CN107025234A (en) * 2016-02-01 2017-08-08 中国移动通信集团公司 A kind of information-pushing method and caching server
CN109587194A (en) * 2017-09-29 2019-04-05 武汉斗鱼网络科技有限公司 A kind of action message methods of exhibiting, client and server
CN110417869A (en) * 2019-07-05 2019-11-05 广州华多网络科技有限公司 A kind of activity method for pushing, device and computer equipment
CN111241402A (en) * 2020-01-14 2020-06-05 恩亿科(北京)数据科技有限公司 Information pushing method and device, electronic equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Yousef Alghamdi.Activity-based cloud sending: Push services for user device multiplicity.2015 12th Annual IEEE Consumer Communications and Networking Conference (CCNC).2015,全文. *
张玉杰 ; 张海涛 ; 张婷婷 ; .基于MQTT的物联网系统消息发布/订阅方法研究.电视技术.2017,(Z3),全文. *

Also Published As

Publication number Publication date
CN111756840A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN106714206B (en) Method and device for detecting wireless network access point connecting network
CN111756840B (en) Message pushing method and device
CN102651731A (en) Video display method and video display device
CN110138573B (en) Conference state prompting method, server, intelligent terminal and storage medium
TW201203140A (en) Online service providing system, method, server and mobile device thereof, and computer program product
US10192042B2 (en) User verifying method, terminal device, server and storage medium
US9838501B2 (en) Method and server for generating contact relationship data in network communication system
TW201518977A (en) Method for applying safety verification, applying server, applying client and system
CN109495378A (en) Detect method, apparatus, server and the storage medium of abnormal account number
CN111092904B (en) Network connection method and device
CN112346751A (en) Application program installation method and device, electronic equipment and storage medium
CN113242308B (en) Information pushing method, device, equipment and storage medium
CN108288152B (en) Interaction method, terminal and storage medium for sharing information
CN107087293A (en) A kind of cut-in method, terminal and server
CN109327468A (en) A kind of offline reminding method, device, equipment and storage medium
CN106817296B (en) Information recommendation test method and device and electronic equipment
KR20140111137A (en) Method, server and system for providing coupon of online game
CN111314767A (en) Interactive component loading method and device for interactive video
CN110751464A (en) Information prompting method, device, equipment and storage medium
EP4310407A1 (en) Control right switching method and apparatus for virtual remote control, device, and storage medium
US20140351087A1 (en) Registration process
CN111193655B (en) Information processing method, information processing apparatus, server, and storage medium
CN109412931B (en) Method, device and terminal equipment for performing knowledge question answering by using instant messaging mode
CN113413590A (en) Information verification method and device, computer equipment and storage medium
CN111131502A (en) Multi-system parking service information pushing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant