CN116260864A - Information pushing method and device based on multiple channels and storage medium - Google Patents

Information pushing method and device based on multiple channels and storage medium Download PDF

Info

Publication number
CN116260864A
CN116260864A CN202211739387.3A CN202211739387A CN116260864A CN 116260864 A CN116260864 A CN 116260864A CN 202211739387 A CN202211739387 A CN 202211739387A CN 116260864 A CN116260864 A CN 116260864A
Authority
CN
China
Prior art keywords
message
channel
current
sending
current push
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211739387.3A
Other languages
Chinese (zh)
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.)
Guangzhou Yiqixing Information Technology Co ltd
Original Assignee
Guangzhou Yiqixing Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Yiqixing Information Technology Co ltd filed Critical Guangzhou Yiqixing Information Technology Co ltd
Priority to CN202211739387.3A priority Critical patent/CN116260864A/en
Publication of CN116260864A publication Critical patent/CN116260864A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a message pushing method based on multiple channels, which comprises the following steps: acquiring and analyzing a current push message to obtain a message sending channel of the current push message; then selecting a message transmission channel according to the priority of the message transmission channels from the highest priority to the lowest priority and transmitting the current push message; ending the sending event of the current push message when the current push message is successfully sent; instead, one message transmission channel is reselected from the message transmission channels, and the current push message is retried to be transmitted until the current push message is successfully transmitted. The invention can solve the problems of single channel, high cost and the like existing in the prior art when the message is pushed through the short message. The invention also discloses a message pushing device based on the multiple channels and a storage medium.

Description

Information pushing method and device based on multiple channels and storage medium
Technical Field
The present invention relates to message pushing, and in particular, to a method, an apparatus, and a storage medium for pushing information based on multiple channels.
Background
For the online travel agency industry, various information such as order change, group issuing notification, ticket code issuing, ticket expiration reminding and the like needs to be sent to a user through notification in the sales and service processes of products, and the user needs to be timely notified. At present, the information is generally notified to the user in a short message mode, and the short message is widely applied as a service provided by a network operator because the short message has the characteristics of maturity, rapidness, high triggering rate and the like, but as the number of clients increases exponentially, the cost of the short message cost increases exponentially, which is not beneficial to service saving cost, and meanwhile, the message pushing is single. Meanwhile, along with the development of science and technology, more and more channels are available for people to acquire information, and the channels of mail, APP and the like are expanded from short messages. That is, how to use the above channels to quickly, conveniently, accurately and cost-effectively notify the user of the message is more important for the enterprise, and therefore, a message pushing method is urgently needed to solve the above problems.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the purposes of the invention is to provide a message pushing method based on multiple channels, which can solve the problems of single specific mode, high cost and the like of the traditional message pushing through a short message mode.
The second purpose of the invention is to provide a message pushing device based on multiple channels, which can solve the problems of single specific mode, high cost and the like of the conventional message pushing through a short message mode.
The third object of the present invention is to provide a storage medium, which can solve the problems of single specific mode, high cost, etc. of the conventional message pushing method by means of short messages.
One of the purposes of the invention is realized by adopting the following technical scheme:
the message pushing method based on the multiple channels comprises the following steps:
a message acquisition step: acquiring a current push message, analyzing the current push message to obtain a message sending channel list of the current push message, and obtaining a message sending channel of the current push message according to the message sending channel list;
channel selection: selecting one message transmission channel from the message transmission channels of the current push message according to the order of the priority of the message transmission channels from top to bottom, and marking the message transmission channel as the current message transmission channel;
a transmitting step: transmitting the current push message through the current message transmission channel;
judging: judging whether the current push message is successfully sent, if so, ending the sending event of the current push message; if not, executing a channel reselection step:
channel reselection step: taking out the next message transmission channel from the message transmission channels of the current push message according to the order of the priority of the message transmission channels from top to bottom, marking the next message transmission channel as the current message transmission channel, and then executing the transmission step; until the current push message is successfully sent.
Further, the method further comprises the following steps: the step of bottom-covering transmission: and when all message sending channels of the current push message are traversed and the current push message is not successfully sent, or when the message sending times of the current push message exceeds the preset times, sending the current push message through a default message sending channel set by a system.
Further, the judging step further includes: and when the current push message is not successfully sent, reducing the priority of the current message sending channel.
Further, the judging step further includes: when the current push message is not successfully sent, acquiring the return information of the current message sending channel; when the return information of the current message sending channel accords with preset information, closing the current message sending channel; and when the returned information of the current message sending channel does not accord with the preset information, reducing the priority of the current message sending channel.
Further, the step of reducing the priority of the current message sending channel in the judging step specifically means: reducing the current weight of the current message sending channel according to a preset proportion; wherein, each message sending channel is provided with a default weight, and the priority of each message sending channel is obtained according to the current weight of the corresponding message sending channel;
further comprises: channel closing step: and closing the corresponding message sending channel when the current weight of the corresponding message sending channel is lower than a preset weight threshold value.
Further, the method further comprises the following steps: channel weight recovery step: detecting each message transmission channel at regular time, and recovering the current weight of the corresponding message transmission channel to the default weight when the detection of the corresponding message transmission channel passes.
Further, the transmitting step further includes: obtaining the receiving target information and the message variable parameters of the current push message, obtaining a message receiving target terminal according to the matching of the receiving target information, obtaining a message template number according to the matching of the message receiving target terminal, obtaining a message template, generating a real message according to the message template and the message variable parameters, and finally sending the real message out through the current message sending channel; and simultaneously, recording a message sending log and the message sending times when the current push message is sent out.
Further, after the message obtaining step obtains the message sending channel of the current push message according to the message sending channel list, the message obtaining step further includes: filtering the message sending channel of the current push message, and executing the channel selection step on the filtered message sending channel;
and in the message obtaining step, when the message sending channel list is not available in the current push message, obtaining the available message sending channels in the system and using the message sending channels as the message sending channels of the current push message, and then executing the channel selecting step.
The second purpose of the invention is realized by adopting the following technical scheme:
the message pushing device based on multiple channels comprises a memory and a processor, wherein the memory is stored with a message pushing program running on the processor, the message pushing program is a computer program, and the processor realizes the steps of the message pushing method based on multiple channels adopted by one of the purposes of the invention when executing the message pushing program.
The third purpose of the invention is realized by adopting the following technical scheme:
a storage medium being a computer readable storage medium having stored thereon a computer program being a message pushing program which when executed by a processor implements the steps of a multi-channel based message pushing method as employed by one of the objects of the present invention.
Compared with the prior art, the invention has the beneficial effects that:
the invention realizes the pushing of the message by combining a plurality of message sending channels, sets the priority for each message sending, and selects the proper message sending channel to send the pushed message by combining the priority, thereby enabling the pushed message to be sent out quickly and successfully, and solving the problems of single channel, high cost and the like in the prior art for sending the message in a short message mode.
Drawings
FIG. 1 is a flow chart of a message pushing method based on multiple channels;
FIG. 2 is a diagram showing the change of weights when a message transmission channel is abnormal 8 times;
FIG. 3 is a flowchart of step S5 in FIG. 1;
fig. 4 is a schematic diagram of a prize-winning result notification with a WeChat receiving target terminal according to the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and detailed description, wherein it is to be understood that, on the premise of no conflict, the following embodiments or technical features may be arbitrarily combined to form new embodiments.
Example 1
The invention provides a message pushing method based on multiple channels, which is shown in fig. 1 and comprises the following steps:
step S1, acquiring a current push message, analyzing the current push message to obtain a message sending channel list of the current push message, and obtaining a message sending channel of the current push message according to the message sending channel list.
Wherein push messages are typically generated by a business application and sent to the system, which then pushes them. Therefore, the invention also temporarily stores the push message generated by the service application in the system, waits for the system to trigger the push message sending event, and then sends the push message out in sequence. Specifically, the system may provide a message sending interface for the service application to obtain push messages that the service application needs to send, where each received push message is sequentially stored in the system, and a subsequent message is pushed.
In addition, when the system receives the push messages of the service application, different priorities are set according to different push messages and then stored in the system, so that when the system triggers a message sending event, each push message can be sequentially taken out according to the priorities of the push messages and sent out.
In this embodiment, the current push message refers to a push message that needs to be sent currently.
Preferably, for a push message, the push message includes at least push content, content of a receiving target terminal, message variable parameters and the like, and may also include a message sending channel. The message sending channel comprises payment treasures, weChat, mail, short message and the like. Likewise, the receiving target terminal may be a payment treasured account number, a WeChat account number, a mail address, a mobile phone number, etc. These different message transmission channels differ in success rate, cost required, etc. Corresponding priorities can be set for the message sending channels according to different requirements, and when the push message is selected to be sent out, the push message can be selected according to the priorities of the message sending channels so as to ensure that the push message is sent successfully quickly and accurately on the premise of ensuring the cost. The priority setting can be adjusted according to the emphasis of the actual requirement, for example, in order to reduce the cost of the push message, the message is sent by the message sending channel with low cost preferentially, so as to reduce the cost of the push message, and at this time, the priority of the message sending channel with low cost is higher, and the other times are performed. Preferably, the present invention also provides a scheme for setting the priority of the message transmission channels, specifically, by setting weights for each message transmission channel according to requirements, the priority of each message transmission channel is obtained according to the different weights.
More specifically, in this embodiment, setting each message transmission channel sets a default weight, and according to the default weight, priorities of different message transmission channels can be achieved. Meanwhile, with the use of the message sending channels, the default weight of the message sending channels is adjusted according to whether the push message is sent successfully or not so as to reduce the priority, so that when the message sending channels are selected subsequently, the message sending channels with other priorities are prioritized, and the sending success rate of the push message is ensured. For example, when a message transmission channel is unsuccessful in transmitting a push message, it is considered that the message transmission channel may be abnormal, and therefore, the priority of the message transmission channel is reduced by adjusting the weight of the message transmission channel, so that when the message transmission channel is selected later, the message transmission channel is not selected preferentially, and the failure of transmitting the push message is avoided.
In addition, the message transmission channels in the message transmission channel list of the push message are message transmission channels specified by the service application, and there may be invalid message transmission channels. Among them, the invalid message transmission channel is generally a message transmission channel considered to be closed or not existing in the system, and therefore, the message transmission channel list obtained in the message transmission channel list needs to be filtered to filter out the invalid message transmission channel.
And step S2, sorting the message sending channels of the current push message according to the priority of the message sending channels.
Specifically, when the message transmission channels are ordered, the order is ordered according to the order of priority from high to low.
And step S3, selecting a message transmission channel from the sequencing result according to the order of the priority from high to low, and marking the message transmission channel as the current message transmission channel.
After the message sending channels are sequenced, firstly selecting the message sending channel with the highest priority to try to send the push message, and if the sending is unsuccessful, continuously selecting the next message sending channel from the sequencing result according to the sequence of the priority to try to send the push message again until the push message is sent successfully.
And step S4, the current push message is sent out through the current message sending channel.
And selecting one with higher priority according to the priority of the message sending channel to send the current push message. And recording the transmission time in a log mode at the same time when transmitting, and recording the transmission times.
More preferably, when sending the push message, because the content such as the message format of the current push message may be different between different message sending channels and different receiving target terminals, the present invention further needs to perform the following processing on the push message after selecting the current message sending channel:
step one, obtaining the receiving target information and the variable parameters of the message of the push message, and then obtaining the message receiving target terminal according to the matching of the receiving target information.
The receiving destination terminal may comprise a cell phone, a WeChat, an APP or other message receiving terminal (such as an artificially integrated third party software or hardware device). For example, when the receiving target terminal is a mobile phone, the receiving target information is a mobile phone number; and when the receiving target terminal is a WeChat, receiving an openId number provided by the target information for the WeChat.
And step two, obtaining a message template number according to the matching of the receiving target terminal, obtaining a message template by matching, and obtaining a real message by combining the message variable parameters.
Different information such as short messages, weChat, etc. corresponds to different templates according to different contents, and each template has a corresponding template number, for example:
short message template:
honored members: { message content } customer service phone { phone }. [ signature ]
The content of the short message which can be generated is as follows:
honored members: and if the points expired in the month are not used, the points are cleared up after the points expire, and the member center is logged in to check the point details and go to the point mall for exchange. Company X, infinite wind and light brings you-! Customer service telephones XXX-XXXXXXXX. [ X Co ]
WeChat template:
and (5) notifying a winning result: will notify title < replace by actual data >)
And (5) notifying a winning result: prize outcome notification < replace by actual data >
Prize redemption code: prize redemption code < substituted by actual data >
Time: time < replaced by actual data >
Commodity (3): commodity < replace by actual data >
Remarks: remarks < replace by actual data > based on the above template contents, the following winning outcome notification as shown in fig. 4 may be generated.
In addition, different receiving terminals correspond to different sending channels, for example, a short message needs to inform a gateway interface provided by the network operation to send (such as mobile, communication and telecommunication). The micro-letter notification then requires the invocation of the open interface provided by the messenger to send the message.
And the message variable parameter refers to a changed data identifier, which is used for replacing changed data (such as { XXX } in the template), such as a mobile phone number, specific information content, a client phone, a short message signature, an order number and the like,
the real message refers to the information received by the user, and is text content obtained after informing real service data to replace variable parameters in the message template, and the text content not only comprises fixed content in the template, but also comprises specific data corresponding to the variable parameters of the message.
Such as: short message content [ true message ]:
honored members: and if the points expired in the month are not used, the points are cleared up after the points expire, and the member center is logged in to check the point details and go to the point mall for exchange. Company X, infinite wind and light brings you-! Customer service telephones XXX-XXXXXXXX. [ X Co ]
Wherein: the message template is as follows: "honored member: { variable 1} customer service call { variable 2}. { variable 3} ]. And the message variable parameters include: "variate 1=you have points that expire for this month unused, expire and clear, please log in the membership center to view the point details and go to the point mall for redemption. Company X, infinite wind and light brings you-! "," variable 2=xxx-XXXXXXXX "," variable 3= [ X company ].
And step three, sending a message to the current channel. Meanwhile, a transmission log is recorded at the same time of transmission.
Step S5, judging whether the current push message is successfully sent, if so, ending the sending event of the current push message, and continuously taking out the next push message or waiting for further processing of the system; if not, go to step S6.
And S6, taking out the next message transmission channel from the message transmission channels of the current push message according to the order of the priority of the message transmission channels from top to bottom, marking the next message transmission channel as the current message transmission channel, and then executing the step S4.
Until the current push message is sent successfully.
After the current push message is sent out through the current message sending channel, whether the current push message is successfully sent or not needs to be judged, and if the current push message is successfully sent, the sending event of the current push message is finished; if the transmission is unsuccessful, the next message transmission channel is fetched and the transmission is retried, and so on until the current push message is successfully transmitted.
More preferably, if all message sending channels in the message sending channel list of the current push message are traversed, and the current push message is still not successfully sent, in order to ensure that the user can receive the current push message, the invention also sends the current push message through a default message sending channel set by the system. The default message sending channel is set by the system and is used as a message pushing mode of spam. Generally, the default message sending channel is a message sending channel with the highest message sending success rate, highest cost and the like, and can be specifically set according to actual requirements, such as a three-network communication short message gateway. By setting a default message sending channel, the push message is ensured to be finally sent to the user, and the user is prevented from missing important notifications.
In addition, the invention also provides that when the sending times of the current push message exceeds a set value and the current push message is still sent and unsuccessfully sent, the default message sending channel is set to serve as a spam sending channel so as to send the current push message, thereby avoiding the excessive sending times of the current push message, influencing the system performance and influencing the pushing of other push messages.
More preferably, when the current message sending channel is unsuccessful in sending the current push message, it is indicated that there may be an abnormality in the current message sending channel, and the priority of the current message sending channel is adjusted, that is, the priority is reduced, so as to avoid the problem that when the push message is sent subsequently, the current message sending channel is continuously and preferentially selected to send the push message, resulting in unsuccessful sending of the push message and resource waste. Specifically, the invention adjusts the priority of the message sending channel by adjusting the weight of the message sending channel.
Further, in this embodiment, if the default weight of the message sending channel is set to K, when the message sending channel fails to send the push message once, the current weight of the message sending channel is set to K/2.
Similarly, when the message sending channel fails to send the push message n times continuously, the current weight of the message sending channel is as follows:
Figure BDA0004033206620000101
that is, each time the message transmission channel fails to transmit a push message, the current weight of the message transmission channel is divided by 2.
Preferably, the invention also sets that when the current weight of the message sending channel is smaller than the preset weight threshold, the message sending channel is directly closed, and the channel is not started, so that the resource waste is avoided. Assuming that the default weight K of one message transmission channel is 16, as shown in fig. 2, a weight change diagram in which the number of times n of unsuccessful (abnormal) transmission of a push message is 8 is provided for the message transmission channel.
In addition, the invention also sets the preset weight threshold C of the message sending channel to be 0.5 when the message sending channel is closed. That is, when the current weight K of the message transmission channel n <When the message transmission channel is not in use, the message transmission channel is directly closed, and when the message transmission channel fails to transmit the push message continuously or is abnormal 4 times, the message transmission channel is directly closed, and the message transmission channel is not started.
Preferably, when the current push message transmission is unsuccessful in step S5, as shown in fig. 3, the following steps are further performed:
step S51, acquiring the return information of the current message sending channel, judging whether the return information meets preset information, and if yes, executing step S52; if not, step S53 is performed.
And S52, closing the current message sending channel.
Step S53, the priority of the current message sending channel is reduced.
Under the condition that the current push message is not successfully sent through the current message sending channel, the abnormal serious condition of the current message sending channel is judged according to the return information of the current message sending channel, so that different treatments are carried out on the current message sending channel.
The preset information is abnormal information of closing a message sending channel. That is, when the returned information of the current message transmission channel is matched with the abnormal information of the closed message transmission channel, the current message transmission channel is considered to have serious abnormality, and the current message transmission channel is directly closed without adjusting the weight or priority thereof; instead, the priority of the current message transmission channel is reduced. Specifically, the adjustment of the priority thereof is realized according to the aforementioned weight adjustment method. In addition, with use, the abnormal message transmission channel may be restored to the normal operation state, so the invention can also attempt to restore the default weight of the message transmission channel at regular time, thereby ensuring that the priority of the message transmission channel is restored to be normal when the message transmission channel is in normal operation, and the message transmission channel is added into the task of message transmission. For example, the default weight is automatically attempted to be restored when the current weight of the message sending channel is regulated to be 1 in the morning, the message sending channel is detected, if the current weight of the message sending channel is detected to be restored to the default value, and otherwise, the current weight is not regulated.
More preferably, the message sending channels in step S1 are carried by the current push message, and if one push message does not carry a message sending channel, that is, if there is no message sending channel list in the current push message, the present invention uses the message sending channel available in the system as the message sending channel of the current push message, and then step S2 is executed to implement sending of the current push message.
Preferably, the information sending channel in the invention can be a plurality of channels such as short message notification, mail, APP message pushing, social software and the like, and has wide coverage range and wider application, thereby improving the success rate and the sending efficiency of message sending. Meanwhile, the default message sending channel is set, so that the sending out of the message is ensured under the condition that other message sending channels can not normally send, and the message reaching rate is improved.
Example two
Based on the first embodiment, the invention also provides a message sending device based on multiple channels, which comprises a memory and a processor, wherein the memory stores a message pushing program running on the processor, the message pushing program is a computer program, and the processor realizes the following steps when executing the message pushing program:
a message acquisition step: acquiring a current push message, analyzing the current push message to obtain a message sending channel list of the current push message, and obtaining a message sending channel of the current push message according to the message sending channel list;
channel selection: selecting one message transmission channel from the message transmission channels of the current push message according to the order of the priority of the message transmission channels from top to bottom, and marking the message transmission channel as the current message transmission channel;
a transmitting step: transmitting the current push message through the current message transmission channel;
judging: judging whether the current push message is successfully sent, if so, ending the sending event of the current push message; if not, executing a channel reselection step:
channel reselection step: taking out the next message transmission channel from the message transmission channels of the current push message according to the order of the priority of the message transmission channels from top to bottom, marking the next message transmission channel as the current message transmission channel, and then executing the transmission step; until the current push message is successfully sent.
Further, the method further comprises the following steps: the step of bottom-covering transmission: and when all message sending channels of the current push message are traversed and the current push message is not successfully sent, or when the message sending times of the current push message exceeds the preset times, sending the current push message through a default message sending channel set by a system.
Further, the judging step further includes: and when the current push message is not successfully sent, reducing the priority of the current message sending channel.
Further, the judging step further includes: when the current push message is not successfully sent, acquiring the return information of the current message sending channel; when the return information of the current message sending channel accords with preset information, closing the current message sending channel; and when the returned information of the current message sending channel does not accord with the preset information, reducing the priority of the current message sending channel.
Further, the step of reducing the priority of the current message sending channel in the judging step specifically means: reducing the current weight of the current message sending channel according to a preset proportion; wherein, each message sending channel is provided with a default weight, and the priority of each message sending channel is obtained according to the current weight of the corresponding message sending channel;
further comprises: channel closing step: and closing the corresponding message sending channel when the current weight of the corresponding message sending channel is lower than a preset weight threshold value.
Further, the method further comprises the following steps: channel weight recovery step: detecting each message transmission channel at regular time, and recovering the current weight of the corresponding message transmission channel to the default weight when the detection of the corresponding message transmission channel passes.
Further, the transmitting step further includes: obtaining the receiving target information and the message variable parameters of the current push message, obtaining a message receiving target terminal according to the matching of the receiving target information, obtaining a message template number according to the matching of the message receiving target terminal, obtaining a message template, generating a real message according to the message template and the message variable parameters, and finally sending the real message out through the current message sending channel; and simultaneously, recording a message sending log and the message sending times when the current push message is sent out.
Further, after the message obtaining step obtains the message sending channel of the current push message according to the message sending channel list, the message obtaining step further includes: filtering the message sending channel of the current push message, and executing the channel selection step on the filtered message sending channel;
and in the message obtaining step, when the message sending channel list is not available in the current push message, obtaining the available message sending channels in the system and using the message sending channels as the message sending channels of the current push message, and then executing the channel selecting step.
Example III
The present invention also provides a storage medium that is a computer-readable storage medium, on which a computer program is stored, the computer program being a message pushing program that, when executed by a processor, realizes the following steps.
A message acquisition step: acquiring a current push message, analyzing the current push message to obtain a message sending channel list of the current push message, and obtaining a message sending channel of the current push message according to the message sending channel list;
channel selection: selecting one message transmission channel from the message transmission channels of the current push message according to the order of the priority of the message transmission channels from top to bottom, and marking the message transmission channel as the current message transmission channel;
a transmitting step: transmitting the current push message through the current message transmission channel;
judging: judging whether the current push message is successfully sent, if so, ending the sending event of the current push message; if not, executing a channel reselection step:
channel reselection step: taking out the next message transmission channel from the message transmission channels of the current push message according to the order of the priority of the message transmission channels from top to bottom, marking the next message transmission channel as the current message transmission channel, and then executing the transmission step; until the current push message is successfully sent.
Further, the method further comprises the following steps: the step of bottom-covering transmission: and when all message sending channels of the current push message are traversed and the current push message is not successfully sent, or when the message sending times of the current push message exceeds the preset times, sending the current push message through a default message sending channel set by a system.
Further, the judging step further includes: and when the current push message is not successfully sent, reducing the priority of the current message sending channel.
Further, the judging step further includes: when the current push message is not successfully sent, acquiring the return information of the current message sending channel; when the return information of the current message sending channel accords with preset information, closing the current message sending channel; and when the returned information of the current message sending channel does not accord with the preset information, reducing the priority of the current message sending channel.
Further, the step of reducing the priority of the current message sending channel in the judging step specifically means: reducing the current weight of the current message sending channel according to a preset proportion; wherein, each message sending channel is provided with a default weight, and the priority of each message sending channel is obtained according to the current weight of the corresponding message sending channel;
further comprises: channel closing step: and closing the corresponding message sending channel when the current weight of the corresponding message sending channel is lower than a preset weight threshold value.
Further, the method further comprises the following steps: channel weight recovery step: detecting each message transmission channel at regular time, and recovering the current weight of the corresponding message transmission channel to the default weight when the detection of the corresponding message transmission channel passes.
Further, the transmitting step further includes: obtaining the receiving target information and the message variable parameters of the current push message, obtaining a message receiving target terminal according to the matching of the receiving target information, obtaining a message template number according to the matching of the message receiving target terminal, obtaining a message template, generating a real message according to the message template and the message variable parameters, and finally sending the real message out through the current message sending channel; and simultaneously, recording a message sending log and the message sending times when the current push message is sent out.
Further, after the message obtaining step obtains the message sending channel of the current push message according to the message sending channel list, the message obtaining step further includes: filtering the message sending channel of the current push message, and executing the channel selection step on the filtered message sending channel;
and in the message obtaining step, when the message sending channel list is not available in the current push message, obtaining the available message sending channels in the system and using the message sending channels as the message sending channels of the current push message, and then executing the channel selecting step.
The above embodiments are only preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, but any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention are intended to be within the scope of the present invention as claimed.

Claims (10)

1. The message pushing method based on the multiple channels is characterized by comprising the following steps:
a message acquisition step: acquiring a current push message, analyzing the current push message to obtain a message sending channel list of the current push message, and obtaining a message sending channel of the current push message according to the message sending channel list;
channel selection: selecting one message transmission channel from the message transmission channels of the current push message according to the order of the priority of the message transmission channels from top to bottom, and marking the message transmission channel as the current message transmission channel;
a transmitting step: transmitting the current push message through the current message transmission channel;
judging: judging whether the current push message is successfully sent, if so, ending the sending event of the current push message; if not, executing a channel reselection step:
channel reselection step: taking out the next message transmission channel from the message transmission channels of the current push message according to the order of the priority of the message transmission channels from top to bottom, marking the next message transmission channel as the current message transmission channel, and then executing the transmission step; until the current push message is successfully sent.
2. The multi-channel based message pushing method of claim 1, further comprising: the step of bottom-covering transmission: and when all message sending channels of the current push message are traversed and the current push message is not successfully sent, or when the message sending times of the current push message exceeds the preset times, sending the current push message through a default message sending channel set by a system.
3. The multi-channel based message pushing method as claimed in claim 1, wherein the determining step further comprises: and when the current push message is not successfully sent, reducing the priority of the current message sending channel.
4. The multi-channel based message pushing method as claimed in claim 3, wherein the judging step further comprises: when the current push message is not successfully sent, acquiring the return information of the current message sending channel; when the return information of the current message sending channel accords with preset information, closing the current message sending channel; and when the returned information of the current message sending channel does not accord with the preset information, reducing the priority of the current message sending channel.
5. The multi-channel based message pushing method according to claim 3 or 4, wherein the step of determining to decrease the priority of the current message transmission channel specifically means: reducing the current weight of the current message sending channel according to a preset proportion; wherein, each message sending channel is provided with a default weight, and the priority of each message sending channel is obtained according to the current weight of the corresponding message sending channel;
further comprises: channel closing step: and closing the corresponding message sending channel when the current weight of the corresponding message sending channel is lower than a preset weight threshold value.
6. The multi-channel based message pushing method as claimed in claim 5, further comprising: channel weight recovery step: detecting each message transmission channel at regular time, and recovering the current weight of the corresponding message transmission channel to the default weight when the detection of the corresponding message transmission channel passes.
7. The multi-channel based message pushing method as claimed in claim 1, wherein the transmitting step further comprises: obtaining the receiving target information and the message variable parameters of the current push message, obtaining a message receiving target terminal according to the matching of the receiving target information, obtaining a message template number according to the matching of the message receiving target terminal, obtaining a message template, generating a real message according to the message template and the message variable parameters, and finally sending the real message out through the current message sending channel; and simultaneously, recording a message sending log and the message sending times when the current push message is sent out.
8. The multi-channel based message pushing method as claimed in claim 1, wherein after the message obtaining step obtains the message sending channel of the current push message according to the message sending channel list, the method further comprises: filtering the message sending channel of the current push message, and executing the channel selection step on the filtered message sending channel;
and in the message obtaining step, when the message sending channel list is not available in the current push message, obtaining the available message sending channels in the system and using the message sending channels as the message sending channels of the current push message, and then executing the channel selecting step.
9. A multi-channel based message pushing device comprising a memory and a processor, wherein the memory stores a message pushing program running on the processor, the message pushing program being a computer program, and the processor implements the steps of the multi-channel based message pushing method according to any one of claims 1-8 when executing the message pushing program.
10. A storage medium, the storage medium being a computer-readable storage medium having stored thereon a computer program, the computer program being a message push program, characterized by: the message pushing program when executed by a processor implements the steps of the multi-channel based message pushing method according to any of claims 1-8.
CN202211739387.3A 2022-12-31 2022-12-31 Information pushing method and device based on multiple channels and storage medium Pending CN116260864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211739387.3A CN116260864A (en) 2022-12-31 2022-12-31 Information pushing method and device based on multiple channels and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211739387.3A CN116260864A (en) 2022-12-31 2022-12-31 Information pushing method and device based on multiple channels and storage medium

Publications (1)

Publication Number Publication Date
CN116260864A true CN116260864A (en) 2023-06-13

Family

ID=86678528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211739387.3A Pending CN116260864A (en) 2022-12-31 2022-12-31 Information pushing method and device based on multiple channels and storage medium

Country Status (1)

Country Link
CN (1) CN116260864A (en)

Similar Documents

Publication Publication Date Title
US7451922B2 (en) Methods, systems and computer program products for electronic identification card creation and transfer during real time communications
CN102802133B (en) Junk information identification method, device and system
CN109769244B (en) Abnormal telephone card identification method, device, equipment and readable storage medium
CN111225350B (en) Intelligent routing method and device for short messages
US7321921B2 (en) Messaging system in a hybrid network and mobile communication environment
CN107734076A (en) Information push method, device and storage medium
US20150195228A1 (en) Method and device for transmitting an electronic card
CN110855548A (en) Message pushing method and device
WO2006124249A1 (en) Wireless paging system
CN110705926A (en) Method, device and system for acquiring logistics object distribution information
CN113396570A (en) Network service system, computer storage medium for communication and network service method
CN108259319B (en) Unread information reminding method and device
CN114867025A (en) Method and device for preventing short message bombing
CN107579990A (en) Measure of managing contract and server
CN113423120A (en) Data distribution processing method and device based on private network terminal and electronic equipment
CN116260864A (en) Information pushing method and device based on multiple channels and storage medium
CN1853369A (en) Method and apparatus for providing separable billing services
CN115801956A (en) User queuing method and device in online customer service system
CN114862500A (en) Order processing method and device, electronic equipment and storage medium
CN114727241A (en) Method for improving short message group sending efficiency
CN109218162A (en) Mail distribution method and device
CN111784452A (en) Message pushing method and system for realizing order completion
CN116367102B (en) Method and device for automatically switching short message route
CN111460780A (en) Notification method, device, equipment and readable storage medium
US20040184613A1 (en) Method of safely sending e-mails over LAN

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