CN109347939B - Message sending method and device and public platform - Google Patents
Message sending method and device and public platform Download PDFInfo
- Publication number
- CN109347939B CN109347939B CN201811174062.9A CN201811174062A CN109347939B CN 109347939 B CN109347939 B CN 109347939B CN 201811174062 A CN201811174062 A CN 201811174062A CN 109347939 B CN109347939 B CN 109347939B
- Authority
- CN
- China
- Prior art keywords
- message
- short message
- content
- sending
- target account
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000001514 detection method Methods 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims 1
- 230000008569 process Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a message sending method, a message sending device and a public platform, wherein the method is applied to the public platform and comprises the steps of firstly receiving a message sending request; then the message content is sent to the target account; if the target account number is determined to not receive the message content within the preset time, determining a mobile terminal number corresponding to the message content; generating a short message sending request comprising the message content and the mobile terminal number; and the short message sending request enables a short message platform to send the message content to the mobile terminal number when receiving the short message sending request. In the technical scheme of the invention, if the user can not normally receive the important message sent by the public platform, the user can also receive the related message content in time through the short message platform, so that the user can not miss any important message.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a message sending method, a message sending device and a public platform.
Background
With the continuous development of internet technology, the application of public platforms is more and more extensive.
The public platform is developed on the basis of network communication service by internet companies and is used for providing business service for individuals, enterprises and organizations.
The public platform can send important information such as fault, disaster, credit card consumption and the like to the account number associated with the public platform, so that the user can know the important information in time.
Therefore, how to make the user not miss important messages becomes a technical problem to be solved urgently.
Disclosure of Invention
The invention aims to provide a message sending method, a message sending device and a public platform so as to prevent a user from missing important messages.
In order to achieve the purpose, the invention provides the following technical scheme:
a message sending method is applied to a public platform, and comprises the following steps:
receiving a message sending request; the message sending request at least comprises message content and a target account;
sending the message content to the target account;
if the target account number is determined to not receive the message content within the preset time, determining a mobile terminal number corresponding to the message content;
sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request.
Optionally, before sending the message content to the target account, the method further includes:
detecting whether the target account is online;
if the information is online, the step of sending the information content to the target account is executed;
if not, determining a mobile terminal number corresponding to the message content and sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request.
Optionally, the determining that the target account fails to receive the message content includes:
if the message sending state fed back by the target account is not received within the preset time, determining that the message content cannot be received by the target account; or, detecting whether the target account is online; if not, determining that the target account fails to receive the message content.
Optionally, the determining the mobile terminal number corresponding to the message content includes:
and taking the mobile terminal number corresponding to the target account number in a preset relation table as the mobile terminal number corresponding to the message content.
Optionally, if the message sending request further includes a mobile terminal number, the determining of the mobile terminal number corresponding to the message content includes:
and determining the mobile terminal number in the message sending request as the mobile terminal number corresponding to the message content.
Optionally, if the message sending request further includes a message template identifier, the sending the message content to the target account includes:
determining a public number template according to the message template identifier;
generating a public number message content according to the public number template and the message content;
and sending the public number message content as the message content to the target account.
Optionally, the message sending request further includes a message template identifier, and the sending the short message sending request to the short message platform includes:
determining a preset interface of the short message platform;
determining a short message template according to the message template identifier;
converting the message content into a short message template input parameter of the short message template;
generating short message content according to the short message template and the short message template input parameters;
generating a short message sending request according to the preset interface, wherein the short message sending request comprises the short message content and the mobile terminal number;
and sending the short message sending request to the preset interface.
Optionally, the message sending request further includes a message template identifier, and the generating of the short message sending request includes:
determining a preset interface of the short message platform;
determining a short message template according to the message template identifier;
determining a short message template identifier according to the message template identifier;
converting the message content into a short message template input parameter of the short message template;
generating short message template message content according to the short message template and the short message template input parameters;
generating a short message sending request according to the preset interface, wherein the short message sending request comprises the short message template message content, the short message template identifier and the mobile terminal number;
and sending the short message sending request to the preset interface.
In another aspect, the present invention discloses a message sending apparatus applied to a public platform, the apparatus comprising:
the receiving module is used for receiving a message sending request; the message sending request at least comprises message content and a target account;
the sending module is used for sending the message content to the target account;
the determining module is used for determining a mobile terminal number corresponding to the message content if the target account number is determined to not receive the message content within the preset time;
the output module is used for sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request.
The invention also discloses a public platform which comprises the message sending device.
According to the technical scheme, compared with the prior art, the invention discloses a message sending method, a message sending device and a public platform, wherein the method is applied to the public platform and firstly receives a message sending request; the message sending request comprises message content and a target account number associated with a public platform; then the message content is sent to the target account; if the target account number is determined to not receive the message content within the preset time, determining a mobile terminal number corresponding to the message content; sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request. In the technical scheme of the invention, if the user can not normally receive the important message sent by the public platform, the user can also receive the related message content in time through the short message platform, so that the user can not miss any important message. In addition, because the forwarding instruction is output when the message content cannot be normally received, the short message platform is not enabled to send the message content at any time, and therefore, the operation cost of the public number service provider is saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart illustrating a message sending method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a message sending method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating a process of sending message content to a target account in a message sending method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating a message sending apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention is mainly applied to the related field of public platforms, and the core idea can be understood that when a user cannot normally receive the message content sent by the public platform, the user receives the message content in a short message platform mode, so that the user can timely receive important messages such as disaster information, credit card swiping information and the like.
Referring to fig. 1, fig. 1 is a flowchart illustrating a message sending method according to an embodiment of the present invention.
The invention provides a message sending method, which is applied to a public platform and comprises the following steps:
s101, receiving a message sending request; the message sending request at least comprises message content and a target account;
the embodiment of the invention is applied to a public platform, and the public platform receives a message sending request, wherein the message sending request at least comprises message content and a target account.
It is understood that the sending of the message sending request may include a public number terminal in communication connection with a public platform, or may be a message client acting on a service system server, or may be a message client configured by the service system itself.
The public number terminal is a terminal used by a public number which is registered with relevant information in a system of a public platform by a person, an enterprise or an organization and passes the examination. The public number terminal may transmit a message through the public platform.
The message client acting on the service system server is configured with authentication credentials (such as account passwords, access tokens, keys and the like) of corresponding public numbers, and can send public number messages to users through a public platform. The business system server may be a server of a business system used by a third party facilitator such as a bank. When a user consumes using a credit card, for example, a relevant event is triggered in the service system server, and the event generates relevant event information.
Preferably, after receiving the message sending request, it is detected whether the message content conforms to a preset rule of the message.
The message preset rule may include whether the length of the message content meets a preset requirement, whether the message content includes irregular characters or content, and the like. If the rule is in accordance with the preset rule, the subsequent steps are continuously executed, otherwise, an error message is returned to the sender.
Preferably, after receiving the message sending request, detecting whether the target account number meets the account number preset rule.
The preset account rule may include whether the target account and the public number corresponding to the sender have an association relationship. For example, if the target account is not a subscription account of the public number, the target account does not conform to the preset account rule.
S102, sending the message content to the target account;
in the embodiment of the invention, after the message sending request is received, the message content can be sent to the target account in time.
S103, if the target account number is determined to not receive the message content within the preset time, determining a mobile terminal number corresponding to the message content.
In the embodiment of the invention, after the message content is sent to the target account, if the target account receives the message content, the successful sending state of the message is fed back, and after the public platform receives the successful sending state of the message fed back by the target account, the successful receiving of the message content by the target account is determined, then the subsequent steps are not executed, and the message sending process is finished.
If the successful sending state of the message fed back by the target account is not received within a preset time (for example, 5 seconds), determining that the target account fails to receive the message content, and determining a mobile terminal number corresponding to the message content.
It can be understood that, determining that the target account fails to receive the message content may also be detecting whether the target account is online within a preset time, and if not, determining that the target account fails to receive the message content.
The mode of detecting whether the target account is online may be that a public platform sends a detection instruction or a detection message, and determines whether the target account is online according to a feedback response of the target account.
In actual use, for example, the target account may not be connected to the network or the network connection is unstable, so that the user cannot receive the public number message in time. Therefore, with the embodiment, only after receiving the successful message sending status fed back by the target account, it is determined that the message content is successfully received by the target account, and if the successful message sending status fed back by the target account is not received within the preset time, it is determined that the mobile terminal number corresponding to the message content and a short message sending request are generated.
The process of determining the mobile terminal number corresponding to the message content may include two embodiments.
First, determining a mobile terminal number corresponding to a message content includes:
and taking the mobile terminal number corresponding to the target account number in a preset relation table as the mobile terminal number corresponding to the message content.
It will be appreciated that the mobile terminal number may be a cell phone number.
It can be understood that the relationship table is a table in which the correspondence between the target account and the mobile terminal number is pre-stored. The corresponding relation is preset for the target account.
Second, if the message sending request further includes a mobile terminal number, determining the mobile terminal number corresponding to the message content includes:
and determining the mobile terminal number in the message sending request as the mobile terminal number corresponding to the message content.
Of course, it is understood that the target account is a mobile terminal number, and the target account is taken as the mobile terminal number.
S104, sending a short message sending request to a short message platform, wherein the short message sending request comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request.
The public platform is in communication connection with the short message platform, and the sending of the short message sending request to the short message platform specifically comprises:
determining a preset interface of a short message platform; the preset interface is provided by the short message platform and is used for processing the short message sending request received by the preset interface, such as sending a short message.
And generating a short message sending request according to the preset interface, wherein the short message sending request comprises the message content and the mobile terminal number.
And sending the short message sending request to the preset interface.
The short message sending request enables the short message platform to send the message content to the mobile terminal number when receiving the short message sending request.
It can be understood that the short message platform is a platform for providing a short message sending service, and is provided by a communication operator or a short message platform operator.
According to the technical scheme, if the user cannot normally receive the important message sent by the public platform, the user can also receive the related message content in time through the short message platform, so that the user cannot miss any important message. In addition, because the short message sending request is generated when the message content cannot be normally received, and the short message platform is not used for sending the message content at any time, the operation cost of the public number service provider is saved.
In the embodiment of the present invention, referring to fig. 2, fig. 2 is another flow diagram of a message sending method provided in the embodiment of the present invention.
S201, receiving a message sending request; the message sending request at least comprises message content and a target account;
the implementation process of this step may refer to step S101 in the foregoing embodiment, which is not described herein again.
S202, detecting whether the target account is online or not;
s203, if the online detection is on line, executing the step S2031 to the step S2033;
s204, if the mobile terminal is not on line, determining a mobile terminal number corresponding to the message content and sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request.
In the embodiment of the present invention, before sending the message content to the target account, it is detected whether the target account is online, if so, the message content is sent to the target account, and step S2031 to step S2033 are executed, and the specific implementation process refers to step S102 to step S104, which is not described herein again.
If not, determining a mobile terminal number corresponding to the message content and sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request. For a specific process, reference may be made to related embodiments of this process in S103 and S104 in the foregoing embodiments, which are not described herein again.
The mode of detecting whether the target account is online may be that the public platform periodically sends a detection instruction or a detection message, and determines whether the target account is online through a feedback response of the target account. The implementation aims to determine the corresponding mobile terminal number immediately so as to send the short message to the user once the target account is determined not to be on line, so that the processing efficiency of message sending is improved.
On the basis of the above embodiment, in the embodiment of the present invention, the message sending request may further include a message template identifier. Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a process of sending message content to a target account in a message sending method according to an embodiment of the present invention.
S301, determining a public number template according to the message template identifier;
s302, generating a public number message content according to the public number template and the message content;
s303, sending the public number message content as the message content to the target account.
In the embodiment of the invention, the message sending request carries the message template identification.
The message template mark is used for marking the public number template, and the corresponding public number template is called to generate the public number message content based on the message template mark.
In the embodiment of the invention, the corresponding relation between the message template identification and the public number template is stored in advance, and a preset method for generating the public number message content by using the public number template is also stored. Therefore, the public number message content can be generated according to the public number template and the message content. The public number template comprises fixed content and at least one parameter content, the fixed content is content which does not change when the public number message content is generated based on the public number template, and the parameter content is content which needs to be filled when the public number message content is generated based on the public number template.
It should be noted that, in the embodiment of the present invention, generating the public account message content according to the public account template and the message content may include that the message content conforms to a rule of a public account template input parameter, and is directly used, or the message content is converted into a public account template input parameter of the public account template, and then the public account message content is generated according to the public account template and the public account template input parameter, and then the public account message content is sent to the target account as the message content.
In actual use, for example, the message content is the message content to be pushed to the user, the message content includes one or more parameter contents, and the public platform fills the corresponding parameter contents into the corresponding parameter positions in the template according to a preset method.
For example, taking the "buy goods" message content as an example, the message content is as follows:
{ "member": Zhang III "," foods ": napkin", "sum": RMB 10.00 Yuan "}
Wherein, the 'member', the 'goods' and the 'sum' are parameter names, and the 'Zhang III', the 'paper towel' and the 'RMB 10.00 Yuan' are parameter contents.
The public number template corresponding to the message template identification corresponding to the message content comprises:
honored members, your transaction information is as follows:
and (4) member: $ member }
Commercial products: $ goods }
Amount of money: $ Sum }
Wherein, the 'respected member' and your transaction information are as follows, the 'member', 'commodity' and 'amount' are fixed contents; "member", "goods", and "sum" are parameter contents.
Then, the final generated public number message content includes:
honored members, your transaction information is as follows:
and (4) member: zhang three
Commercial products: paper towel
Amount of money: RMB 10.00 yuan
It can be seen that, in the embodiment of the present invention, the message content may be a public account message content generated according to the public account template determined by the message template identifier.
In another embodiment of the invention, the corresponding relation between the message template mark and the message template and the preset method for generating the message content by using the message template are preset, so that if the message sending request comprises the message template mark, the message content is converted into the message content conforming to the message template in advance when the message sending request is sent to the message platform.
And converting the message content into a short message template input parameter, then using the short message template input parameter as an input parameter to generate short message content, and sending the short message content to a preset interface. The short message platform forwards the content of the short message to the number of the mobile terminal, so that the user can receive the important message in time.
In actual use, the format of the short message template is the format of the short message content that can be received by the short message platform, i.e. the message content generated by the short message template is the short message content that will be received by the target short message platform.
Taking a short message template of 'purchasing goods' as an example, the template is as follows:
honored member $ { member }, your goods purchased is $ { goods }, the amount is $ { sum }, thank you for your patronage!
Wherein, "members in respect", "goods you buy are", "amount is" and "thank you for your patronage! "is fixed content; the 'member', 'goods' and 'sum' are parameter contents, and the finally generated short message content is in a format conforming to the short message content of the target short message platform.
The message content is converted as follows:
zhang Sanzhu member, you buy paper towel, money 10.00 Yuan RMB, thank you for your patronage!
And generating a short message sending request comprising the short message content and the mobile terminal number. And sending the short message sending request to a preset interface, so that the short message platform sends the content of the short message to the mobile terminal number. Therefore, when the user cannot normally receive the message content sent by the public platform, the user can receive the relevant important information in time.
On the basis of the foregoing embodiment, in yet another embodiment of the present invention, a corresponding relationship between a message template identifier and a short message template identifier is preset, and a corresponding relationship between the message template identifier and a short message template and a preset method for generating a short message template message by using the short message template are preset, so that if the message template identifier is included in the message sending request, when the short message sending request is sent to the short message platform, the message content is converted into a short message template message conforming to the short message template in advance.
And converting the message content into a short message template input parameter, then using the short message template input parameter as an input parameter to generate the short message template message content, and sending the short message template message content to a preset interface. The short message platform generates the short message content based on the short message template identification and the short message template message content and then forwards the short message content to the mobile terminal number, so that the user can receive the important message in time.
In actual use, the corresponding short message template identification and the short message template are obtained according to the message template identification.
The format of the short message template is the format of the short message template which can be received by the short message platform, namely, the content generated by the short message template is the content of the short message template which is to be received by the target short message platform.
Taking a short message template of 'purchasing goods' as an example, the template is as follows:
params=[${member},${goods},${sum}]
wherein "params ═ is fixed content; the 'member', 'goods' and 'sum' are parameter contents, and the finally generated short message template message is in a format conforming to the short message template message content of the target short message platform.
The message content is converted as follows:
params [ "Zhang san", "paper towel", "RMB 10.00 Yuan" ]
And generating a short message sending request comprising the short message template message content, the short message template identifier and the mobile terminal number, and sending the short message sending request to a preset interface, so that the short message platform generates the short message content based on the short message template message content and the short message template identifier and then sends the short message content to the mobile terminal number. Therefore, when the user cannot normally receive the message content sent by the public platform, the user can receive the relevant important information in time.
The method of the invention can be realized by adopting devices in various forms, and the embodiment of the invention also discloses a message sending device corresponding to the message sending method. Referring to fig. 4, a schematic structural diagram of a message sending apparatus according to an embodiment of the present invention is provided.
The embodiment of the invention provides a message sending device, which is applied to a public platform, and comprises:
a receiving module 1, configured to receive a message sending request; the message sending request at least comprises message content and a target account;
a sending module 2, configured to send the message content to the target account;
the determining module 3 is configured to determine a mobile terminal number corresponding to the message content if it is determined that the message content cannot be received by the target account within a preset time;
the output module 4 is used for sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request.
Optionally, before sending the message content to the target account, the method further includes:
detecting whether the target account is online;
if the information is online, the step of sending the information content to the target account is executed;
if not, determining a mobile terminal number corresponding to the message content and sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request.
Optionally, the determining that the target account fails to receive the message content includes:
and if the message sending state fed back by the target account is not received within the preset time, determining that the message content cannot be received by the target account.
Optionally, the determining the mobile terminal number corresponding to the message content includes:
and taking the mobile terminal number corresponding to the target account number in a preset relation table as the mobile terminal number corresponding to the message content.
Optionally, if the message sending request further includes a mobile terminal number, the determining of the mobile terminal number corresponding to the message content includes:
and determining the mobile terminal number in the message sending request as the mobile terminal number corresponding to the message content.
Optionally, if the message sending request further includes a message template identifier, the sending the message content to the target account includes:
determining a public number template according to the message template identifier;
generating a public number message content according to the public number template and the message content;
and sending the public number message content as the message content to the target account.
Optionally, the message sending request further includes a message template identifier, and the sending the short message sending request to the short message platform includes:
determining a preset interface of the short message platform;
determining a short message template according to the message template identifier;
converting the message content into a short message template input parameter of the short message template;
generating short message content according to the short message template and the short message template input parameters;
generating a short message sending request according to the preset interface, wherein the short message sending request comprises the short message content and the mobile terminal number;
and sending the short message sending request to the preset interface.
Optionally, the message sending request further includes a message template identifier, and the generating of the short message sending request includes:
determining a preset interface of the short message platform;
determining a short message template according to the message template identifier;
determining a short message template identifier according to the message template identifier;
converting the message content into a short message template input parameter of the short message template;
generating short message template message content according to the short message template and the short message template input parameters;
generating a short message sending request according to the preset interface, wherein the short message sending request comprises the short message template message content, the short message template identifier and the mobile terminal number;
and sending the short message sending request to the preset interface.
According to the technical scheme, compared with the prior art, the invention discloses a message sending method, a message sending device and a public platform, wherein a message sending request is received firstly; the message sending request comprises message content and a target account; then the message content is sent to the target account; if the target account number is determined to not receive the message content within the preset time, determining a mobile terminal number corresponding to the message content; sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request. In the technical scheme of the invention, if the user can not normally receive the important message sent by the public platform, the user can also receive the related message content in time through the short message platform, so that the user can not miss any important message. In addition, because the short message sending request is sent to the short message platform only when the target account is determined not to normally receive the message content, but the short message platform is not enabled to send the message content at any time, the operation cost of the public number service provider is saved.
In addition, in order to achieve the above object, the present invention further provides a public platform, which includes the aforementioned message sending apparatus.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in an article or device that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (9)
1. A message sending method, applied to a public platform, the method comprising:
receiving a message sending request; the message sending request at least comprises message content and a target account;
sending the message content to the target account;
if the target account number is determined to not receive the message content within the preset time, determining a mobile terminal number corresponding to the message content;
sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; enabling the short message platform to send the message content to the mobile terminal number when receiving the short message sending request;
wherein the determining that the target account number fails to receive the message content comprises:
if the message sending state fed back by the target account is not received within the preset time, determining that the message content cannot be received by the target account; or,
and sending a detection instruction or a detection message to the target account to detect whether the target account is online, and if not, determining that the target account cannot receive the message content.
2. The method according to claim 1, wherein before sending the message content to the target account, the method further comprises:
detecting whether the target account is online;
if the information is online, the step of sending the information content to the target account is executed;
if not, determining a mobile terminal number corresponding to the message content and sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; and the short message platform sends the message content to the mobile terminal number when receiving the short message sending request.
3. The message sending method according to claim 1 or 2, wherein the determining the mobile terminal number corresponding to the message content comprises:
and taking the mobile terminal number corresponding to the target account number in a preset relation table as the mobile terminal number corresponding to the message content.
4. The method according to claim 1 or 2, wherein the message sending request further includes a mobile terminal number, and the determining the mobile terminal number corresponding to the message content includes:
and determining the mobile terminal number in the message sending request as the mobile terminal number corresponding to the message content.
5. The message sending method according to claim 1 or 2, wherein the message sending request further includes a message template identifier, and then sending the message content to the target account includes:
determining a public number template according to the message template identifier;
generating a public number message content according to the public number template and the message content;
and sending the public number message content as the message content to the target account.
6. The message sending method according to claim 1 or 2, wherein the message sending request further includes a message template identifier, and the sending of the message sending request to the short message platform includes:
determining a preset interface of the short message platform;
determining a short message template according to the message template identifier;
converting the message content into a short message template input parameter of the short message template;
generating short message content according to the short message template and the short message template input parameters;
generating a short message sending request according to the preset interface, wherein the short message sending request comprises the short message content and the mobile terminal number;
and sending the short message sending request to the preset interface.
7. The message sending method according to claim 1 or 2, wherein the message sending request further includes a message template identifier, and the generating of the short message sending request includes:
determining a preset interface of the short message platform;
determining a short message template according to the message template identifier;
determining a short message template identifier according to the message template identifier;
converting the message content into a short message template input parameter of the short message template;
generating short message template message content according to the short message template and the short message template input parameters;
generating a short message sending request according to the preset interface, wherein the short message sending request comprises the short message template message content, the short message template identifier and the mobile terminal number;
and sending the short message sending request to the preset interface.
8. A message transmission apparatus applied to a public platform, the apparatus comprising:
the receiving module is used for receiving a message sending request; the message sending request at least comprises message content and a target account;
the sending module is used for sending the message content to the target account;
the determining module is used for determining a mobile terminal number corresponding to the message content if the target account number is determined to not receive the message content within the preset time;
the output module is used for sending a short message sending request to a short message platform, wherein the short message sending request at least comprises the message content and the mobile terminal number; enabling the short message platform to send the message content to the mobile terminal number when receiving the short message sending request;
wherein the determining that the target account number fails to receive the message content comprises:
if the message sending state fed back by the target account is not received within the preset time, determining that the message content cannot be received by the target account; or,
and sending a detection instruction or a detection message to the target account to detect whether the target account is online, and if not, determining that the target account cannot receive the message content.
9. A public platform comprising a messaging device according to claim 8.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811174062.9A CN109347939B (en) | 2018-10-09 | 2018-10-09 | Message sending method and device and public platform |
| PCT/CN2018/125946 WO2020073537A1 (en) | 2018-10-09 | 2018-12-30 | Message sending method, device, and public platform |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811174062.9A CN109347939B (en) | 2018-10-09 | 2018-10-09 | Message sending method and device and public platform |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109347939A CN109347939A (en) | 2019-02-15 |
| CN109347939B true CN109347939B (en) | 2021-05-14 |
Family
ID=65308734
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811174062.9A Active CN109347939B (en) | 2018-10-09 | 2018-10-09 | Message sending method and device and public platform |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109347939B (en) |
| WO (1) | WO2020073537A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110855548B (en) * | 2019-10-18 | 2025-01-14 | 深圳前海微众银行股份有限公司 | A message push method and device |
| CN116662451A (en) * | 2023-06-19 | 2023-08-29 | 中国建设银行股份有限公司 | Data synchronization processing method and device, computer equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102413073A (en) * | 2011-11-30 | 2012-04-11 | 中兴通讯股份有限公司 | Instant message sending method and device |
| CN104378282A (en) * | 2013-12-25 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Information sending method and information forwarding method, device and system |
| CN105025448A (en) * | 2014-04-22 | 2015-11-04 | 中国电信股份有限公司 | IM information pushing method and system, server and platform |
| CN106874983A (en) * | 2017-02-24 | 2017-06-20 | 何建超 | A kind of Intelligent Notification card |
| US9706405B2 (en) * | 2001-08-21 | 2017-07-11 | Bookit Oy Ajanvarauspalvelu | Communication method and system |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102202010A (en) * | 2011-05-09 | 2011-09-28 | 韩平亮 | Message transmission client and communication method with combination of short message and network |
| CN103856391A (en) * | 2012-12-06 | 2014-06-11 | 中国电信股份有限公司 | Information communication method and system, and server |
| CN106330674A (en) * | 2016-08-25 | 2017-01-11 | 广州御银科技股份有限公司 | On-line information pushing system |
| CN107426093A (en) * | 2017-08-24 | 2017-12-01 | 深圳双创科技发展有限公司 | A kind of message method and terminal |
| CN108965115B (en) * | 2018-10-09 | 2021-05-14 | 刘高峰 | Message sending method, device and system |
-
2018
- 2018-10-09 CN CN201811174062.9A patent/CN109347939B/en active Active
- 2018-12-30 WO PCT/CN2018/125946 patent/WO2020073537A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9706405B2 (en) * | 2001-08-21 | 2017-07-11 | Bookit Oy Ajanvarauspalvelu | Communication method and system |
| CN102413073A (en) * | 2011-11-30 | 2012-04-11 | 中兴通讯股份有限公司 | Instant message sending method and device |
| CN104378282A (en) * | 2013-12-25 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Information sending method and information forwarding method, device and system |
| CN105025448A (en) * | 2014-04-22 | 2015-11-04 | 中国电信股份有限公司 | IM information pushing method and system, server and platform |
| CN106874983A (en) * | 2017-02-24 | 2017-06-20 | 何建超 | A kind of Intelligent Notification card |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109347939A (en) | 2019-02-15 |
| WO2020073537A1 (en) | 2020-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108965115B (en) | Message sending method, device and system | |
| CN104767613A (en) | Signature verification method, device and system | |
| CN106097023A (en) | A kind of data processing method and device | |
| US9426655B2 (en) | Legal authentication message confirmation system and method | |
| CN105530175A (en) | Message processing method, device and system | |
| WO2019072197A1 (en) | Red packet distribution method, device, and medium | |
| CN104717342A (en) | Method and device for awakening client application based on short message | |
| CN109257321B (en) | Secure login method and device | |
| CN108200077B (en) | Method and device for calling interface | |
| CN111669745A (en) | Security verification method and device based on 5G information, storage medium and equipment | |
| CN101071492A (en) | Mobile phone fee payment method and system based on mobile phone bank | |
| CN109347939B (en) | Message sending method and device and public platform | |
| WO2013095498A1 (en) | Printing for mobile phone tasks | |
| KR101523494B1 (en) | Mobile payment relay validation system and method in online and offline | |
| CN114666750A (en) | Message fallback method and device, message processing equipment and MaaP platform equipment | |
| JP2014146186A (en) | Settlement support device and settlement support program | |
| KR20080059136A (en) | How to Issue and Set a Courier Safety Password | |
| CN109327814B (en) | Short message processing method and device, electronic equipment and readable storage medium | |
| JP2018036790A (en) | Authentication device, identity confirmation method, and program | |
| CN106534322B (en) | Equipment and method for directly responding to bottom layer message | |
| CN109120661B (en) | Method and apparatus for distributing electronic card, server and readable storage medium | |
| KR20090118900A (en) | Recommended marketing service provision method and system | |
| KR101150771B1 (en) | Method and apparatus for providing social assurance services | |
| CN105100060B (en) | Electronic equipment authenticity verification method and device | |
| KR101565567B1 (en) | System and method for providing safety message notification service |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |