[go: up one dir, main page]

HK1215830A1 - Method and device for sending message - Google Patents

Method and device for sending message Download PDF

Info

Publication number
HK1215830A1
HK1215830A1 HK16103736.5A HK16103736A HK1215830A1 HK 1215830 A1 HK1215830 A1 HK 1215830A1 HK 16103736 A HK16103736 A HK 16103736A HK 1215830 A1 HK1215830 A1 HK 1215830A1
Authority
HK
Hong Kong
Prior art keywords
user
message
message sending
channel
pushed
Prior art date
Application number
HK16103736.5A
Other languages
Chinese (zh)
Other versions
HK1215830B (en
Inventor
吳燕萍
吴燕萍
Original Assignee
创新先进技术有限公司
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 创新先进技术有限公司 filed Critical 创新先进技术有限公司
Publication of HK1215830A1 publication Critical patent/HK1215830A1/en
Publication of HK1215830B publication Critical patent/HK1215830B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Description

Message sending method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a message sending method and device.
Background
In the prior art, when content to be pushed (such as marketing content or product information) needs to be notified to a user, a service server sends a message carrying the content to be pushed to a user device through a specific message sending channel. However, when the service server sends a message to the user equipment through a specific message sending channel, it cannot be guaranteed that the message is sent to the user equipment, so that the user may not be notified of the content to be pushed, and the development and popularization of the service are directly affected.
In order to notify the user of the content to be pushed, it is necessary to ensure that a message carrying the content to be pushed is sent to the user equipment. Based on this, in the prior art, the service server needs to send a message carrying the content to be pushed to the user equipment through a plurality of message sending channels at the same time, thereby ensuring that the user can be notified of the content to be pushed. However, when the service server sends messages to the user equipment through a plurality of message sending channels at the same time, waste of system resources and network resources is caused, and when the user equipment receives a plurality of messages carrying the same content to be pushed, the user is still disturbed, which affects the user experience.
Disclosure of Invention
The embodiment of the application provides a message sending method and device, so as to inform a user of content to be pushed, avoid waste of system resources and network resources, and improve the use experience of the user.
In order to achieve the above object, an embodiment of the present application provides a message sending method, where the message sending method includes:
the push server obtains content to be pushed;
aiming at a plurality of message sending channels, the push server obtains the login probability of each message sending channel in the appointed time and determines the message sending channel with the highest login probability;
and the push server sends the message carrying the content to be pushed by utilizing the message sending channel with the highest login probability.
The method for obtaining the content to be pushed by the push server specifically comprises the following steps:
when the content to be pushed needs to be sent to a user, the pushing server receives a message carrying the content to be pushed from a service server, and obtains the content to be pushed from the message.
The push server sends the message carrying the content to be pushed by using the message sending channel with the highest login probability, and the method also comprises the following steps:
the push server judges whether the highest login probability is larger than a preset value or not; if so, the push server executes the process of sending the message carrying the content to be pushed by using the message sending channel with the highest login probability; if not, the push server determines a specific message sending channel and sends the message carrying the content to be pushed by using the specific message sending channel.
Before the push server obtains the login probability of each message sending channel in the specified time, the method further comprises the following steps:
when the content to be pushed needs to be sent to a user, the pushing server obtains user identifications corresponding to the user in a plurality of message sending channels;
for each message sending channel, the push server utilizes the user identification corresponding to the message sending channel of the user to inquire whether the user is in a login state under the message sending channel;
and if the user is not in a login state in all the message sending channels, the push server executes a process of obtaining the login probability of each message sending channel in a specified time and sending the message carrying the content to be pushed by using the message sending channel with the highest login probability.
After the push server utilizes the user identifier corresponding to the user in the message sending channel to query whether the user is in a login state in the message sending channel, the method further includes:
if the user is in a login state only in one message sending channel, the push server sends a message carrying the content to be pushed through the message sending channel;
and if the user is in a login state under a plurality of message sending channels, the push server selects one message sending channel from the plurality of message sending channels by using a preset selection strategy and sends the message carrying the content to be pushed by using the selected message sending channel.
The process of the push server obtaining the user identifiers respectively corresponding to the user in the multiple message sending channels specifically includes:
the push server receives a message carrying user information from a service server;
when the user information is user identifications respectively corresponding to a user in a plurality of message sending channels, the push server obtains the user identifications respectively corresponding to the user in the plurality of message sending channels from the message from the service server; or, when the user information is a user name, the push server queries a locally maintained user identifier table entry through the user name to obtain user identifiers corresponding to the user in a plurality of message sending channels respectively; the user identification table entry is used for recording the corresponding relation between a user name and user identifications corresponding to the user in the plurality of message sending channels.
For each message sending channel, the process that the push server queries whether the user is in a login state under the message sending channel by using the user identifier corresponding to the user in the message sending channel specifically comprises the following steps:
the push server sends a request message carrying a user identifier corresponding to a user in a message sending channel to an application server corresponding to the message sending channel, and the application server utilizes the user identifier to inquire whether the user is in a login state in the message sending channel;
the push server receives a response message carrying that the user is in a login state or not in the login state under the message sending channel from the application server;
and the push server determines that the user is in a login state under the message sending channel or is not in the login state under the message sending channel according to the information carried in the response message.
The process of sending, by the push server, the message carrying the content to be pushed through the message sending channel specifically includes:
the push server generates message templates corresponding to the application servers respectively and sends the message templates corresponding to the application servers respectively to the application servers;
when the message carrying the content to be pushed is sent through a message sending channel, the pushing server sends the content to be pushed to an application server corresponding to the message sending channel, and the application server generates a message by using a message template and the content to be pushed and sends the message.
The embodiment of the application provides a push server, the push server specifically includes:
the obtaining module is used for obtaining the content to be pushed;
the determining module is used for obtaining the login probability of each message sending channel in the designated time aiming at the plurality of message sending channels and determining the message sending channel with the highest login probability;
and the sending module is used for sending the message carrying the content to be pushed by utilizing the message sending channel with the highest login probability.
The obtaining module is specifically configured to receive a message carrying the content to be pushed from a service server when the content to be pushed needs to be sent to a user, and obtain the content to be pushed from the message.
The sending module is further used for judging whether the highest login probability is larger than a preset value;
if yes, executing the process of sending the message carrying the content to be pushed by utilizing the message sending channel with the highest login probability; if not, determining a specific message sending channel, and sending the message carrying the content to be pushed by using the specific message sending channel.
The obtaining module is further configured to obtain user identifiers corresponding to the users in the multiple message sending channels when the content to be pushed needs to be sent to the users;
the determining module is further configured to, for each message sending channel, query, by using a user identifier corresponding to the user in the message sending channel, whether the user is in a login state in the message sending channel;
the sending module is further configured to, if the user is not in a login state in all the message sending channels, execute a process of obtaining a login probability of each message sending channel within a specified time and sending a message carrying the content to be pushed by using the message sending channel with the highest login probability.
The sending module is further configured to send a message carrying the content to be pushed through one message sending channel if the user is in a login state only in the one message sending channel;
and if the user is in a login state under a plurality of message sending channels, selecting one message sending channel from the plurality of message sending channels by using a preset selection strategy, and sending the message carrying the content to be pushed by using the selected message sending channel.
The obtaining module is specifically configured to receive a message carrying user information from a service server;
when the user information is user identifications respectively corresponding to a user in a plurality of message sending channels, obtaining the user identifications respectively corresponding to the user in the plurality of message sending channels from the message from the service server; or, when the user information is a user name, querying a user identifier table item locally maintained by the push server through the user name to obtain user identifiers respectively corresponding to the user in a plurality of message sending channels; the user identification table entry is used for recording the corresponding relation between a user name and user identifications corresponding to the user in the plurality of message sending channels.
The determining module is specifically configured to send a request message carrying a user identifier corresponding to the message sending channel to an application server corresponding to the message sending channel, and the application server queries whether the user is in a login state in the message sending channel by using the user identifier;
receiving a response message carrying that the user is in a login state or not in the login state under the message sending channel from the application server;
and determining that the user is in a login state under the message sending channel or is not in the login state under the message sending channel according to the information carried in the response message.
The sending module is further configured to generate message templates corresponding to the application servers respectively, and send the message templates corresponding to the application servers respectively to the application servers;
when a message carrying the content to be pushed is sent through a message sending channel, the content to be pushed is sent to an application server corresponding to the message sending channel, and the application server generates a message by using a message template and the content to be pushed and sends the message.
Compared with the prior art, the embodiment of the application has at least the following advantages: in the embodiment of the application, the message carrying the content to be pushed can be sent to the user equipment through the message sending channel with the highest login probability, so that the content to be pushed is notified to the user as much as possible, the probability of notifying the content to be pushed to the user is improved, waste of system resources and network resources can be avoided, the system resources and the network resources are saved, disturbance to the user can be avoided, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings of the embodiments of the present application without creative efforts.
Fig. 1 is a schematic view of an application scenario proposed in an embodiment of the present application;
fig. 2 is a schematic flow chart of a message sending method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a push server according to a second embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, not all 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 application.
Example one
In view of the problems in the prior art, an embodiment of the present application provides a message sending method, and fig. 1 is a schematic view of an application scenario of the embodiment of the present application. The push server is a server for deciding a message sending channel (the sending channel may also be referred to as a channel) provided in the embodiment of the present application, the service server is a server for sending the content to be pushed to the user, and the application server is a server corresponding to each application, such as a server corresponding to a mail, a server corresponding to a WeChat, a server corresponding to a short message, and the like.
In the application scenario, as shown in fig. 2, the message sending method may include the following steps:
step 201, the push server obtains the content to be pushed.
In the embodiment of the present application, the process of obtaining the content to be pushed by the push server specifically includes, but is not limited to: when the service server needs to send the content to be pushed to the user, the pushing server receives a message carrying the content to be pushed from the service server, and obtains the content to be pushed from the message.
Step 202, for a plurality of message sending channels, the push server obtains the login probability of each message sending channel in the designated time, and determines the message sending channel with the highest login probability.
Wherein, the message sending channel includes but is not limited to: the system comprises a vigorous channel, a mail channel, a short message channel, an information channel in a website, an application client channel, a QQ channel, a WeChat channel, an MSN channel and the like.
Step 203, the push server sends the message carrying the content to be pushed by using the message sending channel with the highest login probability, that is, the push server sends the message carrying the content to be pushed to the corresponding user equipment through the message sending channel with the highest login probability, and the user equipment displays the content to be pushed to the user.
In this embodiment of the present application, the push server sends a message carrying a content to be pushed by using a message sending channel with the highest login probability, where the method includes: the push server judges whether the highest login probability is larger than a preset value or not; if yes, the push server executes the process of sending the message carrying the content to be pushed by using the message sending channel with the highest login probability; if not, the push server determines a specific message sending channel and sends the message carrying the content to be pushed by using the specific message sending channel.
Specifically, the push server obtains the login probability of each message sending channel within a specified time (for example, 7 days); if the highest login probability is larger than a preset value (such as 50%), the push server selects a message sending channel with the highest login probability from all message sending channels, and sends a message carrying the content to be pushed by using the message sending channel with the highest login probability; if the highest login probability is not larger than the preset value, the push server selects a specific message sending channel (such as a short message channel) from all message sending channels, and sends the message carrying the content to be pushed by using the specific message sending channel.
For example, the push server obtains the login probability of each message sending channel (such as a WeChat channel, a Wanwang channel, a mail channel, a short message channel, and the like) within a specified time (such as 7 days); suppose that the probability of the user logging in the WeChat channel in the last 7 days is 50%, the probability of the user logging in the Wang channel in the last 7 days is 40%, the probability of the user logging in the mail channel in the last 7 days is 30%, and the probability of the user logging in the SMS channel in the last 7 days is 30%. Assuming that the preset value is 40%, the highest login probability (i.e., 50%) is greater than the preset value (e.g., 40%), and at this time, the push server selects a message sending channel (i.e., a WeChat channel) with the highest login probability from all message sending channels; and then, the push server sends a message carrying the content A to be pushed through the micro-communication channel, namely, the push server sends the message carrying the content A to be pushed to the mobile terminal where the micro-signal code 1 is located currently through the micro-communication channel, and the mobile terminal displays the content A to be pushed to the user. Assuming that the preset value is 50%, the highest login probability (i.e. 50%) is not greater than the preset value (e.g. 50%), and at this time, the push server selects a specific message transmission channel (e.g. short message channel) from all message transmission channels; and then, the push server sends a message carrying the content A to be pushed through the short message channel, namely, the push server sends the message carrying the content A to be pushed to the mobile terminal where the mobile phone number 1 is located currently through the short message channel, and the mobile terminal displays the content A to be pushed to the user.
In this embodiment of the application, before the push server obtains the login probability of each message sending channel in the specified time, that is, before step 202 and step 203 are executed, when the content to be pushed needs to be sent to the user, the push server further obtains user identifiers corresponding to the plurality of message sending channels respectively by the user. And for each message sending channel, the push server queries whether the user is in a login state in the message sending channel by using the user identification corresponding to the message sending channel. If the user is not in a login state in all the message sending channels (for example, when all the message sending channels include a vigorous channel, a mail channel, a short message channel and a WeChat channel, the user is not in a login state in all the WeChat channels, the vigorous channel, the mail channel and the short message channel), the push server executes a process of obtaining the login probability of each message sending channel in a specified time and sending the message carrying the content to be pushed by using the message sending channel with the highest login probability, namely executing the processes of step 202 and step 203. If the user is in a login state only in one message sending channel (for example, when all the message sending channels comprise a vigorous channel, a mail channel, a short message channel and a WeChat channel, the user is in the login state in the WeChat channel, and the vigorous channel, the mail channel and the short message channel are not in the login state), the push server sends the message carrying the content to be pushed through the message sending channel. If the user is in a login state under the plurality of message sending channels (for example, when all the message sending channels comprise a vigorous channel, a mail channel, a short message channel and a WeChat channel, the user is in the login state in the WeChat channel, the vigorous channel, the mail channel and the short message channel), the push server selects one message sending channel from the plurality of message sending channels by using a preset selection strategy, and sends a message carrying the content to be pushed by using the selected message sending channel.
In the embodiment of the present application, in the process that the push server obtains the user identifiers corresponding to the multiple message sending channels, the corresponding obtaining manner specifically includes, but is not limited to, the following manners: the push server receives a message carrying user information from a service server; when the user information is user identifications respectively corresponding to the user in the plurality of message sending channels, the push server obtains the user identifications respectively corresponding to the user in the plurality of message sending channels from the message from the service server; or, when the user information is a user name, the push server queries a locally maintained user identifier table entry through the user name to obtain user identifiers respectively corresponding to the user in the plurality of message sending channels; the user identification table entry is used for recording the corresponding relation between the user name and the user identification corresponding to the user in the plurality of message sending channels.
Specifically, when the service server needs to send the content to be pushed to the user, the push server obtains the content to be pushed and obtains user identifiers corresponding to the user in the plurality of message sending channels.
Wherein, the message sending channel includes but is not limited to: the system comprises a vigorous channel, a mail channel, a short message channel, an information channel in a website, an application client channel, a QQ channel, a WeChat channel and an MSN channel. The user identifier corresponding to the user in the message sending channel includes but is not limited to: the user identification corresponding to the user in the vigorous channel is a vigorous number, the user identification corresponding to the user in the mail channel is a mail address, the user identification corresponding to the user in the short message channel is a mobile phone number, the user identification corresponding to the user in the information channel of the website is a website registration name, the user identification corresponding to the user in the application client channel is an application identification, the user identification corresponding to the user in the QQ channel is a QQ number, the user identification corresponding to the user in the WeChat channel is a micro signal code, and the user identification corresponding to the user in the MSN channel is an MSN number. Of course, in practical application, the message sending channel and the user identifier corresponding to the user in the message sending channel are not limited to the above case, and the above case is only an example for convenience of description in the embodiment of the present application, and may be arbitrarily selected in practical application.
In the embodiment of the application, when the service server needs to send the content to be pushed (such as marketing content or product information) to the user, the service server notifies the push server of the content to be pushed and the user information, and the push server completes the process of sending the content to be pushed to the user in the subsequent process.
In the embodiment of the present application, the process of obtaining, by a push server, a content to be pushed and obtaining user identifiers corresponding to a user in a plurality of message sending channels includes, but is not limited to, the following specific steps:
in the first mode, the push server receives a message carrying the content to be pushed and the user information from the service server, and obtains the content to be pushed from the message from the service server. In this way, the user information is the user identifiers respectively corresponding to the user in the plurality of message sending channels, and therefore, when the user information is the user identifiers respectively corresponding to the user in the plurality of message sending channels, the push server directly obtains the user identifiers respectively corresponding to the user in the plurality of message sending channels from the message from the service server.
For example, when the service server 1 needs to send a content a to be pushed to the user 1, the service server 1 sends a message to the push server, where the message carries the content a to be pushed and carries user identifiers corresponding to the user 1 in a plurality of message sending channels, such as a wang number 1 corresponding to the user 1 in a wang channel, a mailbox address 1 corresponding to the user 1 in a mail channel, a mobile phone number 1 corresponding to the user 1 in a short message channel, and a micro signal code 1 corresponding to the user 1 in a micro communication channel. After receiving the message from the service server 1, the push server directly obtains the content a to be pushed from the message from the service server 1, and directly obtains the user identifiers respectively corresponding to the user 1 in the plurality of message sending channels from the message from the service server 1, that is, the wangwang number 1 corresponding to the user 1 in the wangwang channel, the mailbox address 1 corresponding to the user 1 in the mail channel, the mobile phone number 1 corresponding to the user 1 in the short message channel, and the micro-signal code 1 corresponding to the user 1 in the micro-communication channel.
And secondly, the push server locally maintains a user identification table entry, wherein the user identification table entry is used for recording the corresponding relation between the user name and the user identification corresponding to the user in the plurality of message sending channels. The push server receives a message carrying the content to be pushed and the user information from the service server, and obtains the content to be pushed from the message from the service server. In the second mode, the user information is a user name, and therefore, when the user information is the user name, the push server queries the locally maintained user identifier table entry through the user name to obtain the user identifiers corresponding to the users in the multiple message sending channels respectively.
For example, the user identification entry maintained locally by the push server is shown in table 1. When the service server 1 needs to send the content a to be pushed to the user 1, the service server 1 sends a message to the push server, where the message carries the content a to be pushed and carries the user name (i.e., the user name 1) of the user 1. After receiving the message from the service server 1, the push server directly obtains the content a to be pushed from the message from the service server 1. In addition, the push server queries the user identifier table entries shown in table 1 through the user name 1 to obtain the user identifiers corresponding to the user 1 in the multiple message sending channels, that is, the wang number 1 corresponding to the user 1 in the wang channel, the mailbox address 1 corresponding to the user 1 in the mail channel, the mobile phone number 1 corresponding to the user 1 in the short message channel, and the micro-signal number 1 corresponding to the user 1 in the micro-message channel.
TABLE 1
In the embodiment of the application, for each message sending channel, the push server may query whether the user is in a login state in the message sending channel by using the user identifier corresponding to the user in the message sending channel. For example, the message sending channel is a prosperous channel, a mail channel, a short message channel and a WeChat channel. Aiming at the vigorous channel, the push server utilizes a vigorous number 1 corresponding to the vigorous channel of the user 1 to inquire whether the user 1 is in a login state under the vigorous channel; aiming at the mail channel, the push server utilizes the mailbox address 1 corresponding to the mail channel of the user 1 to inquire whether the user 1 is in a login state in the mail channel; aiming at the short message channel, the push server utilizes the mobile phone number 1 corresponding to the short message channel of the user 1 to inquire whether the user 1 is in a login state in the short message channel; aiming at the micro communication channel, the push server utilizes the micro signal code 1 corresponding to the user 1 in the micro communication channel to inquire whether the user 1 is in a login state in the micro communication channel.
In the embodiment of the present application, the process of querying, by the push server, whether the user is in a login state in the message sending channel by using the user identifier corresponding to the message sending channel by the user specifically includes, but is not limited to, the following manners: for each message sending channel, the push server sends a request message carrying a user identifier corresponding to the message sending channel to an application server corresponding to the message sending channel, and the application server queries whether the user is in a login state in the message sending channel by using the user identifier; then, the application server returns a response message carrying that the user is in a login state or not in the login state under the message sending channel to the push server; then, the push server receives a response message carrying that the user is in a login state or not in the login state under the message sending channel from the application server; and then, the push server determines that the user is in a login state under the message sending channel or the user is not in the login state under the message sending channel according to the information carried in the response message.
For example, for the wang channel, the push server sends a request message carrying the wang number 1 corresponding to the user 1 in the wang channel to an application server (e.g., the wang server) corresponding to the wang channel. The waning server uses the waning number 1 to query whether the user 1 is in the login state in the waning channel, and the manner of querying whether the user 1 is in the login state in the waning channel is not described herein again. The vigorous network server returns a response message carrying that the user 1 is in a login state or not in the login state under the vigorous network channel to the push server. The push server receives a response message from the busy server carrying that the user 1 is in a login state or not in the login state in the busy channel. The push server determines that the user 1 is in the login state in the busy channel or that the user 1 is not in the login state in the busy channel through the information carried in the response message, that is, determines whether the user 1 is in the login state in the busy channel.
In addition, the processing procedures for the mail channel, the short message channel and the wechat channel are similar to the processing procedures for the wang channel, and are different from the corresponding application servers, so that repeated descriptions are omitted here.
In the embodiment of the application, if the user is not in the login state under all the message sending channels, the push server selects one message sending channel from all the message sending channels by using a preset selection strategy and sends the message carrying the content to be pushed by using the selected message sending channel, namely, the push server sends the message carrying the content to be pushed to the corresponding user equipment through the currently selected message sending channel, and the user equipment displays the content to be pushed to the user. Further, the process of the push server selecting one message sending channel from all message sending channels by using a preset second selection policy specifically includes, but is not limited to, the following modes: the push server obtains the login probability of each message sending channel in the appointed time; if the highest login probability is larger than a preset value, the push server selects a message sending channel with the highest login probability from all message sending channels; if the highest login probability is not larger than the preset value, the push server selects a specific message sending channel (such as a short message channel) from all message sending channels. For example, if the user is not in a login state in all of the wechat channel, the wang channel, the mail channel and the short message channel, the push server obtains the login probability of each message sending channel (i.e., the wechat channel, the wang channel, the mail channel and the short message channel) within a specified time (e.g., 7 days); suppose that the probability of the user logging in the WeChat channel in the last 7 days is 50%, the probability of the user logging in the Wang channel in the last 7 days is 40%, the probability of the user logging in the mail channel in the last 7 days is 30%, and the probability of the user logging in the SMS channel in the last 7 days is 30%. Assuming that the preset value is 40%, the highest login probability (i.e., 50%) is greater than the preset value (e.g., 40%), and at this time, the push server selects a message sending channel (i.e., a WeChat channel) with the highest login probability from all message sending channels; and then, the push server sends a message carrying the content A to be pushed through the micro-communication channel, namely, the push server sends the message carrying the content A to be pushed to the mobile terminal where the micro-signal code 1 is located currently through the micro-communication channel, and the mobile terminal displays the content A to be pushed to the user. Assuming that the preset value is 50%, the highest login probability (i.e. 50%) is not greater than the preset value (e.g. 50%), and at this time, the push server selects a specific message transmission channel (e.g. short message channel) from all message transmission channels; and then, the push server sends a message carrying the content A to be pushed through the short message channel, namely, the push server sends the message carrying the content A to be pushed to the mobile terminal where the mobile phone number 1 is located currently through the short message channel, and the mobile terminal displays the content A to be pushed to the user.
In the above processing process, when the push server selects one message sending channel from all message sending channels by using the preset second selection policy, the selection is performed based on the login probability of the message sending channel within the specified time, and of course, in the actual application, the selection is not limited to the login probability, for example, the number of times of opening the push message corresponding to the message sending channel may also be based, which is not described in detail in the embodiment of the present application.
In the embodiment of the application, if the user is in the login state only in one message sending channel, the push server sends the message carrying the content to be pushed through the message sending channel (i.e. the only one message sending channel in the login state), i.e. the push server sends the message carrying the content to be pushed to the corresponding user equipment through the message sending channel, and the message is displayed to the user by the user equipment. For example, if the user is in a login state in the wechat channel, and is not in a login state in the wang channel, the mail channel and the short message channel, the push server sends a message carrying the content a to be pushed through the wechat channel, that is, the push server sends the message carrying the content a to be pushed to the mobile terminal where the micro-signal code 1 is currently located through the wechat channel, and the mobile terminal displays the content a to be pushed to the user.
In the embodiment of the application, if the user is in a login state under multiple message sending channels, the push server selects one message sending channel from multiple message sending channels (i.e. multiple message sending channels currently in the login state) by using a preset selection policy (the preset selection policy may be arbitrarily set according to experience, for example, the preset selection policy is set to be a policy with the lowest cost), and sends a message carrying the content to be pushed by using the selected message sending channel, that is, the push server sends the message carrying the content to be pushed to the corresponding user equipment through the currently selected message sending channel (the message sending channel currently in the login state), and the message is displayed to the user by the user equipment. For example, if the user is in a login state in all of the wechat channel, the wang channel, the mail channel, and the short message channel, the push server selects a message sending channel with the lowest cost from the wechat channel, the wang channel, the mail channel, and the short message channel, and if the mail channel is the message sending channel with the lowest cost, the push server selects the mail channel and sends a message carrying the content a to be pushed through the mail channel, that is, the push server sends the message carrying the content a to be pushed to the user equipment (e.g., PC) where the mail address 1 is currently located through the mail channel, and the user equipment displays the content a to be pushed to the user.
In this embodiment, the push server may further generate message templates corresponding to the respective application servers, and send the message templates corresponding to the respective application servers. Further, in the process that the push server sends the message carrying the content to be pushed through the message sending channel, when the message carrying the content to be pushed is sent through the message sending channel, the push server needs to send the content to be pushed to the application server corresponding to the message sending channel, and then the application server generates the message by using the message template and the content to be pushed and sends the message carrying the content to be pushed.
For example, the push server generates a message template 1 of an application server corresponding to the micro communication channel, and sends the message template 1 to the application server corresponding to the micro communication channel; the push server generates a message template 2 of an application server corresponding to the vigorous channel, and sends the message template 2 to the application server corresponding to the vigorous channel; the push server generates a message template 3 of an application server corresponding to the mail channel and sends the message template 3 to the application server corresponding to the mail channel; the push server generates a message template 4 of the application server corresponding to the short message channel, and sends the message template 4 to the application server corresponding to the short message channel.
Assuming that the push server needs to send a message carrying the content A to be pushed through the micro communication channel, the push server sends the content A to be pushed to an application server corresponding to the micro communication channel, and the application server corresponding to the micro communication channel generates the message by using the message template 1 and the content A to be pushed and sends the message. Assuming that the push server needs to send a message carrying the content a to be pushed through the wang channel, the push server sends the content a to be pushed to the application server corresponding to the wang channel, and the application server corresponding to the wang channel generates a message by using the message template 2 and the content a to be pushed, and sends the message.
To sum up, in the embodiment of the present application, a message carrying a content to be pushed can be sent to a user device through a message sending channel (such as a wechat channel, a prosperous channel, a mail channel, a short message channel, and the like) with the highest login probability, so that the user is notified of the content to be pushed as much as possible, the probability of notifying the user of the content to be pushed is improved, waste of system resources and network resources can be avoided, the system resources and the network resources are saved, harassment to the user can be avoided, and the use experience of the user is improved.
Example two
Based on the same application concept as the method, an embodiment of the present application further provides a push server, as shown in fig. 3, where the push server specifically includes:
an obtaining module 11, configured to obtain content to be pushed;
a determining module 12, configured to obtain, for multiple message sending channels, a login probability of each message sending channel within a specified time, and determine a message sending channel with the highest login probability;
a sending module 13, configured to send, by using the message sending channel with the highest login probability, a message carrying the content to be pushed.
The obtaining module 11 is specifically configured to receive a message carrying a content to be pushed from a service server when the content to be pushed needs to be sent to a user, and obtain the content to be pushed from the message.
The sending module 13 is further configured to determine whether the highest login probability is greater than a preset value;
if yes, executing the process of sending the message carrying the content to be pushed by utilizing the message sending channel with the highest login probability; if not, determining a specific message sending channel, and sending the message carrying the content to be pushed by using the specific message sending channel.
The obtaining module 11 is further configured to obtain user identifiers corresponding to the users in the multiple message sending channels when the content to be pushed needs to be sent to the users; the determining module 12 is further configured to, for each message sending channel, query, by using a user identifier corresponding to the user in the message sending channel, whether the user is in a login state in the message sending channel; the sending module 13 is further configured to, if the user is not in a login state in all the message sending channels, execute a process of obtaining a login probability of each message sending channel in a specified time and sending a message carrying the content to be pushed by using the message sending channel with the highest login probability.
The sending module 13 is further configured to send, if the user is in a login state only in one message sending channel, a message carrying the content to be pushed through the one message sending channel;
and if the user is in a login state under a plurality of message sending channels, selecting one message sending channel from the plurality of message sending channels by using a preset selection strategy, and sending the message carrying the content to be pushed by using the selected message sending channel.
The obtaining module 11 is specifically configured to receive a message carrying user information from a service server; when the user information is user identifications respectively corresponding to a user in a plurality of message sending channels, obtaining the user identifications respectively corresponding to the user in the plurality of message sending channels from the message from the service server; or, when the user information is a user name, querying a user identifier table item locally maintained by the push server through the user name to obtain user identifiers respectively corresponding to the user in a plurality of message sending channels; the user identification table entry is used for recording the corresponding relation between a user name and user identifications corresponding to the user in the plurality of message sending channels.
The determining module 12 is specifically configured to send a request message carrying a user identifier corresponding to the message sending channel to an application server corresponding to the message sending channel, and the application server queries whether the user is in a login state in the message sending channel by using the user identifier;
receiving a response message carrying that the user is in a login state or not in the login state under the message sending channel from the application server;
and determining that the user is in a login state under the message sending channel or is not in the login state under the message sending channel according to the information carried in the response message.
The sending module 13 is further configured to generate message templates corresponding to the application servers respectively, and send the message templates corresponding to the application servers respectively to the application servers;
when a message carrying the content to be pushed is sent through a message sending channel, the content to be pushed is sent to an application server corresponding to the message sending channel, and the application server generates a message by using a message template and the content to be pushed and sends the message.
The modules of the device can be integrated into a whole or can be separately deployed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods described in the embodiments of the present application. Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. The disclosure of the present application is only a few specific embodiments, but the present application is not limited to these, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (16)

1. A method for sending messages, the method comprising the steps of:
the push server obtains content to be pushed;
aiming at a plurality of message sending channels, the push server obtains the login probability of each message sending channel in the appointed time and determines the message sending channel with the highest login probability;
and the push server sends the message carrying the content to be pushed by utilizing the message sending channel with the highest login probability.
2. The method according to claim 1, wherein the obtaining, by the push server, the content to be pushed specifically includes:
when the content to be pushed needs to be sent to a user, the pushing server receives a message carrying the content to be pushed from a service server, and obtains the content to be pushed from the message.
3. The method of claim 1, wherein the push server sends the message carrying the content to be pushed by using the message sending channel with the highest login probability, and before the sending step, the method further comprises:
the push server judges whether the highest login probability is larger than a preset value or not; if so, the push server executes the process of sending the message carrying the content to be pushed by using the message sending channel with the highest login probability; if not, the push server determines a specific message sending channel and sends the message carrying the content to be pushed by using the specific message sending channel.
4. The method of claim 1, wherein before the push server obtains a login probability for each messaging channel within a specified time, the method further comprises:
when the content to be pushed needs to be sent to a user, the pushing server obtains user identifications corresponding to the user in a plurality of message sending channels;
for each message sending channel, the push server utilizes the user identification corresponding to the message sending channel of the user to inquire whether the user is in a login state under the message sending channel;
and if the user is not in a login state in all the message sending channels, the push server executes a process of obtaining the login probability of each message sending channel in a specified time and sending the message carrying the content to be pushed by using the message sending channel with the highest login probability.
5. The method of claim 4, wherein after the push server uses the user identifier corresponding to the user in the messaging channel to query whether the user is in a login state in the messaging channel, the method further comprises:
if the user is in a login state only in one message sending channel, the push server sends a message carrying the content to be pushed through the message sending channel;
and if the user is in a login state under a plurality of message sending channels, the push server selects one message sending channel from the plurality of message sending channels by using a preset selection strategy and sends the message carrying the content to be pushed by using the selected message sending channel.
6. The method according to claim 4, wherein the process of the push server obtaining the user identifiers respectively corresponding to the user in the plurality of message sending channels specifically includes:
the push server receives a message carrying user information from a service server;
when the user information is user identifications respectively corresponding to a user in a plurality of message sending channels, the push server obtains the user identifications respectively corresponding to the user in the plurality of message sending channels from the message from the service server; or, when the user information is a user name, the push server queries a locally maintained user identifier table entry through the user name to obtain user identifiers corresponding to the user in a plurality of message sending channels respectively; the user identification table entry is used for recording the corresponding relation between a user name and user identifications corresponding to the user in the plurality of message sending channels.
7. The method according to claim 4, wherein, for each message sending channel, the pushing server uses a user identifier corresponding to the user in the message sending channel to query whether the user is in a login state in the message sending channel, specifically including:
the push server sends a request message carrying a user identifier corresponding to a user in a message sending channel to an application server corresponding to the message sending channel, and the application server utilizes the user identifier to inquire whether the user is in a login state in the message sending channel;
the push server receives a response message carrying that the user is in a login state or not in the login state under the message sending channel from the application server;
and the push server determines that the user is in a login state under the message sending channel or is not in the login state under the message sending channel according to the information carried in the response message.
8. The method according to any one of claims 1, 3, and 5, wherein the process of the push server sending the message carrying the content to be pushed through a message sending channel specifically includes:
the push server generates message templates corresponding to the application servers respectively and sends the message templates corresponding to the application servers respectively to the application servers;
when the message carrying the content to be pushed is sent through a message sending channel, the pushing server sends the content to be pushed to an application server corresponding to the message sending channel, and the application server generates a message by using a message template and the content to be pushed and sends the message.
9. A push server, characterized in that the push server specifically includes:
the obtaining module is used for obtaining the content to be pushed;
the determining module is used for obtaining the login probability of each message sending channel in the designated time aiming at the plurality of message sending channels and determining the message sending channel with the highest login probability;
and the sending module is used for sending the message carrying the content to be pushed by utilizing the message sending channel with the highest login probability.
10. The push server of claim 9,
the obtaining module is specifically configured to receive a message carrying the content to be pushed from a service server when the content to be pushed needs to be sent to a user, and obtain the content to be pushed from the message.
11. The push server of claim 9,
the sending module is further used for judging whether the highest login probability is larger than a preset value;
if yes, executing the process of sending the message carrying the content to be pushed by utilizing the message sending channel with the highest login probability; if not, determining a specific message sending channel, and sending the message carrying the content to be pushed by using the specific message sending channel.
12. The push server of claim 9,
the obtaining module is further configured to obtain user identifiers corresponding to the users in the multiple message sending channels when the content to be pushed needs to be sent to the users;
the determining module is further configured to, for each message sending channel, query, by using a user identifier corresponding to the user in the message sending channel, whether the user is in a login state in the message sending channel;
the sending module is further configured to, if the user is not in a login state in all the message sending channels, execute a process of obtaining a login probability of each message sending channel within a specified time and sending a message carrying the content to be pushed by using the message sending channel with the highest login probability.
13. The push server of claim 12,
the sending module is further configured to send a message carrying the content to be pushed through one message sending channel if the user is in a login state only in the one message sending channel;
and if the user is in a login state under a plurality of message sending channels, selecting one message sending channel from the plurality of message sending channels by using a preset selection strategy, and sending the message carrying the content to be pushed by using the selected message sending channel.
14. The push server of claim 12,
the obtaining module is specifically configured to receive a message carrying user information from a service server;
when the user information is user identifications respectively corresponding to a user in a plurality of message sending channels, obtaining the user identifications respectively corresponding to the user in the plurality of message sending channels from the message from the service server; or, when the user information is a user name, querying a user identifier table item locally maintained by the push server through the user name to obtain user identifiers respectively corresponding to the user in a plurality of message sending channels; the user identification table entry is used for recording the corresponding relation between a user name and user identifications corresponding to the user in the plurality of message sending channels.
15. The push server of claim 12,
the determining module is specifically configured to send a request message carrying a user identifier corresponding to the message sending channel to an application server corresponding to the message sending channel, and the application server queries whether the user is in a login state in the message sending channel by using the user identifier;
receiving a response message carrying that the user is in a login state or not in the login state under the message sending channel from the application server;
and determining that the user is in a login state under the message sending channel or is not in the login state under the message sending channel according to the information carried in the response message.
16. Push server according to any of claims 9, 11, 13,
the sending module is further configured to generate message templates corresponding to the application servers respectively, and send the message templates corresponding to the application servers respectively to the application servers;
when a message carrying the content to be pushed is sent through a message sending channel, the content to be pushed is sent to an application server corresponding to the message sending channel, and the application server generates a message by using a message template and the content to be pushed and sends the message.
HK16103736.5A 2016-04-01 Method and device for sending message HK1215830B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410253563.1A CN105227595B (en) 2014-06-09 2014-06-09 A kind of message method and equipment

Publications (2)

Publication Number Publication Date
HK1215830A1 true HK1215830A1 (en) 2016-09-15
HK1215830B HK1215830B (en) 2020-10-16

Family

ID=

Also Published As

Publication number Publication date
CN105227595A (en) 2016-01-06
CN105227595B (en) 2019-09-03

Similar Documents

Publication Publication Date Title
US11310239B2 (en) Network connection method, hotspot terminal and management terminal
JP6104388B2 (en) Information processing method, priority information transmission method and apparatus
US10491548B2 (en) Techniques to configure bot flow
US20140025780A1 (en) Across-Application Network Communication Method And Device
US11616747B1 (en) Systems and methods for multi-agent messaging
US10547577B2 (en) Techniques for templated messages
CN104092596B (en) A kind of management method, Apparatus and system of music groups of users
HK1219184A1 (en) Method and device for transmitting message
US11165899B1 (en) Techniques to manage contact records
CN105227595A (en) A kind of message method and equipment
CN107734076A (en) Information push method, device and storage medium
CN102130853A (en) Group message interaction realization method and system
CN102185701A (en) Method and system for realizing group information interaction
US20170272948A1 (en) Method and apparatus for establishment of private commnunication between devices
US20140324994A1 (en) Method and device for transmitting and forwarding a message
CN102185699A (en) Group information interaction method and system for community platform
US10268532B2 (en) Application message processing system, method, and application device
CN115951923B (en) Subscription event management method, display system, device and storage medium
CN102137038A (en) Group information interaction method and system based on community platform
CN102164099A (en) Webpage-based group information interaction realization method and system
US20090216864A1 (en) Methods, apparatuses, and computer program products, for automatically finding configuration settings for services
CN104065563A (en) Processing method, device and system for instant message
US20160044028A1 (en) Message authentication
US9515970B2 (en) Techniques for auto-detecting positions in a multi-resource login control of instant messaging
CN114205813A (en) Method and device for adding friends, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PC Patent ceased (i.e. patent has lapsed due to the failure to pay the renewal fee)

Effective date: 20250608