WO2020073538A1 - Message sending method, device and system - Google Patents

Message sending method, device and system Download PDF

Info

Publication number
WO2020073538A1
WO2020073538A1 PCT/CN2018/125947 CN2018125947W WO2020073538A1 WO 2020073538 A1 WO2020073538 A1 WO 2020073538A1 CN 2018125947 W CN2018125947 W CN 2018125947W WO 2020073538 A1 WO2020073538 A1 WO 2020073538A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
user account
sending
account
content
Prior art date
Application number
PCT/CN2018/125947
Other languages
French (fr)
Chinese (zh)
Inventor
刘高峰
Original Assignee
刘高峰
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 刘高峰 filed Critical 刘高峰
Publication of WO2020073538A1 publication Critical patent/WO2020073538A1/en

Links

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]
    • H04L51/046Interoperability with other network applications or services
    • 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]

Definitions

  • the present invention relates to the field of Internet technology, and in particular, to a message sending method, device, and system.
  • the public platform is a platform developed by Internet companies on the basis of network applications such as instant messaging, Weibo, and social networking, and is used to provide business services to individuals, enterprises, and organizations.
  • a public account is an account registered on a public platform and approved for information. Individual users who are interested in the information and services provided by the public account can follow the public account and become a subscriber to the public account.
  • the public account can send a public account message to users who follow the public account. For example, information such as failures, disasters, and credit card consumption can be sent to the user, so that the user knows important information in a timely manner.
  • SMS messages In order not to allow users to miss important information, some service providers will send both public account messages and SMS messages to users at the same time. However, if they send public account messages and SMS messages to users at the same time, this will cause users to receive public account messages with similar contents. And SMS messages, which will cause some interference to users, and will also increase operating costs due to the large number of SMS messages sent.
  • the purpose of the present invention is to provide a method, device and system for sending messages, so that users will not miss important information, and at the same time, they will not repeatedly send public account messages and short message messages to users, and reduce the short message sending operation cost of service providers.
  • the present invention provides the following technical solutions:
  • a message sending method which is applied to a message broker.
  • the method includes:
  • Receiving a message to be sent, the message to be sent includes the message content and the target account;
  • the user account is determined according to the target account;
  • the short message platform Determine the mobile terminal number corresponding to the message content; send a short message sending request to the short message platform, the short message sending request includes the message content and the mobile terminal number, so that the short message platform sends the message content to The mobile terminal number.
  • the method before sending the public account message sending request to the public server, the method further includes:
  • the step of determining the mobile terminal number corresponding to the message content is performed.
  • the user account is determined according to the target account and includes:
  • the user account corresponding to the target account in the preset correspondence is determined as the user account.
  • the judging that the public server failed to send the message content to the network client corresponding to the user account includes:
  • the information indicative of the sending status of the message being information indicative of successfully sending the content of the message to the network client corresponding to the user account, if the preset time If no information representative of the message sending status returned by the public server is received, it is determined that the public server has failed to successfully send the message content to the network client corresponding to the user account; or,
  • the information indicating the sending status of the message is information indicating that the message content is successfully or unsuccessfully sent to the network client corresponding to the user account, then, if The information indicating the sending status of the message received within the preset time is information indicating that the content of the message is not successfully sent to the network client corresponding to the user account, or if the message is not received within the preset time.
  • the information returned by the public server characterizing the sending status of the message determines that the public server has failed to successfully send the content of the message to the network client corresponding to the user account.
  • the determining the mobile terminal number corresponding to the message content includes:
  • the target account number is a mobile terminal number, and it is determined that the target account number is the mobile terminal number corresponding to the message content; or, the mobile terminal number corresponding to the target account in the preset correspondence is determined as the message The mobile terminal number corresponding to the content; or,
  • the message to be sent also includes a mobile terminal number, and the mobile terminal number that is also included is determined as the mobile terminal number corresponding to the message content.
  • the sending a short message sending request to the short message platform includes:
  • the short message sending request including the message content and the mobile terminal number
  • a message forwarding method which is applied to a public server.
  • the method includes:
  • the method before sending the message content to the network client corresponding to the user account, the method further includes:
  • the judging whether the network client corresponding to the user account successfully receives the message content includes:
  • Receiving information indicative of the reception status fed back by the network client corresponding to the user account, and the information indicative of the reception status is information indicative of successful reception, then, if the network corresponding to the user account is received within a preset time Yes, the information indicative of the reception status fed back by the client is yes; if the information indicative of the reception status fed back by the network client corresponding to the user account is not received within a preset time, no; or,
  • Receiving information indicative of the reception status fed back by the network client corresponding to the user account, and the information indicative of the reception status is information indicative of successful reception or failure to receive, then, if the characteristic reception status is received within a preset time
  • the information is information indicative of successful reception, yes; if the information indicative of reception status received within a preset time is information indicative of reception failure, or if the corresponding user account is not received within the preset time
  • the information from the network client that characterizes the reception status is no; or,
  • the detecting whether the user account is online includes:
  • a message sending device, message sending device, or message server which includes: a memory and a processor, where the processor is used to run a program stored in the memory, and the program is executed when the program is run The above message sending method applied to the message broker.
  • a message forwarding device which includes: a memory and a processor, the processor is used to run a program stored in the memory, and the program is executed when the program is applied to the public The server's message forwarding method.
  • a message sending system includes the message sending device, the message sending device or the message server as described above, and the message forwarding device, the message forwarding device or the public server as described above.
  • a storage medium for message transmission is provided, characterized in that the storage medium stores a program, and the program is used to implement the message transmission method applied to the message broker as described above.
  • a storage medium for message forwarding is provided, characterized in that a program is stored in the storage medium, and the program is used to implement the message forwarding method applied to a public server as described above.
  • FIG. 1 shows a schematic structural diagram of an implementation environment provided by the present invention
  • FIG. 2 shows a schematic flowchart of an embodiment of a message sending method provided by the present invention
  • FIG. 3 shows a schematic flowchart of an embodiment of a message forwarding method provided by the present invention
  • FIG. 4 shows a schematic flowchart of another message sending method embodiment provided by the present invention.
  • Public account Also known as a public account, it is an account after individuals, companies, and organizations register information on the public server and pass the review.
  • User ID The ID used to identify individual users in network applications.
  • Subscription relationship If an individual user is interested in the content and services provided by a public account, he can follow the public account to establish a subscription relationship between the individual user and the public account.
  • Subscription account In some implementations, in order to protect user privacy, when an individual user pays attention to a public account, a subscription account will be generated for the user for the public account.
  • User account it is a normal account or a subscription account.
  • the user account refers to a normal account; in some embodiments, the user account refers to a subscription account.
  • Public account message refers to a message provided by a public account service provider and sent to an account that has followed the public account.
  • Short message text or digital information sent and received on a mobile terminal based on the short message service provided by a mobile communication operator, which belongs to a non-real-time data communication service.
  • Mobile terminal number the number to dial to call a mobile user and the receiving number to send a short message to a mobile user, also known as MSISDN (Mobile Subscriber ISDN number, mobile subscriber ISDN number)
  • Public account client the client used by users who use public accounts.
  • FIG. 1 shows a schematic structural diagram of an implementation environment involved in the message sending methods provided by various embodiments of the present invention.
  • the implementation environment includes message agents, public servers, network clients and short message platforms.
  • Agent used to send public account messages and SMS messages to users.
  • the message broker communicates with the public server, as a public account client, configures the authentication credentials of the public account (such as password, access token, key, etc.), thereby sending the public account message to the user through the public server with the public account; message
  • the agent communicates with the SMS platform and acts as a client of the SMS platform, sending SMS messages to users through the SMS platform.
  • the message broker can be applied to a message client for sending messages, a message server that provides message services, and a business system.
  • Public server The background service used to provide the public number message service. It can be a server, a server cluster composed of several servers, or a cloud computing service center.
  • the public server is connected to the network client through a wireless network or a wired network, and is communicatively connected to the message broker.
  • Web Client The client used by users with ordinary accounts. When the user logs in to the client with a normal account, he can receive the message sent by the server.
  • SMS platform a platform for providing SMS sending services, provided by a communications operator or SMS platform operator.
  • the SMS platform communicates with the message agent.
  • the client program type of the above client may be a native application client (such as a native application on an operating system), a web application client (such as a webpage program running on a browser), or a light application client End (such as HTML5, JavaScript-based programs), can also be a hybrid application client program.
  • a native application client such as a native application on an operating system
  • a web application client such as a webpage program running on a browser
  • a light application client End such as HTML5, JavaScript-based programs
  • FIG. 1 does not constitute a limitation on the implementation environment, and may include more or less components than those illustrated, or combine certain components, or arrange different components.
  • FIG. 2 is a schematic flowchart of an embodiment of a message sending method according to an embodiment of the present invention.
  • the message sending method is applied to the message broker in FIG. 1 as an example.
  • the method includes:
  • the message agent receives the message to be sent, wherein the message to be sent includes the message content and the target account.
  • a message broker is used in a message client, and a user who sends a message inputs a message to be sent in the message client.
  • the message to be sent includes the message content and the target account.
  • the message broker is applied to a message server, and the message server receives the message to be sent, and the message to be sent includes the message content and the target account.
  • a message broker is applied in a business system, and a message to be sent is generated when a business event is triggered in the business system, and the message to be sent includes event-related message content and a target account number.
  • S202 Send a public account message sending request to a public server, where the public account message sending request includes the message content and a user account, so that the public server sends the message content to the network client corresponding to the user account
  • the user account is determined according to the target account.
  • Send a public account message to the public server to send a request which may include:
  • the preset interface of the public server is determined in advance, wherein the preset interface is provided by the public server, and the preset interface is used to process a request for sending a public account message received through the preset interface, such as forwarding the public account News
  • Generating a public account message sending request according to the preset interface the public account message sending request including the message content and a user account, the user account is determined according to the target account;
  • the user account is determined according to the target account, and may specifically include:
  • the target account is used as the user account.
  • the target account is a user account of a user on a public server, so the target account is used as the user account.
  • the user account corresponding to the target account in the preset correspondence is determined as the user account.
  • the correspondence relationship between the target account and the user account is saved in advance, and the corresponding user account is obtained in the correspondence based on the target account.
  • the message preset rule may include whether the length of the message content meets the preset requirements, and whether the message content includes non-standard characters or content. If the message content meets the preset rules, continue to perform the next steps, otherwise, return an error message.
  • the message content included in the public account message sending request may also be a message content newly generated based on the message content, that is, the public account message sending request includes the Newly generated message content, the newly generated message content includes the message content.
  • the message content is converted into a file in the form of pictures, voice, etc .; for example, a new message content is generated after the name of the public account is added based on the message content; and for example, according to a preset server message template and pre The method is to fill in the message content into the corresponding parameter position in the server message template and generate new message content.
  • the public server receives the public account message sending request sent by the message agent, and obtains the message content and user account in the public account message sending request.
  • step S204 before performing this step, that is, before sending a public account message sending request to the public server, check whether the public server is online, if online, then perform steps S202 to S205, if not online, perform the following step S204 Go to step S205.
  • the implementation method of detecting whether the public server is online can send detection information to the public server. If the feedback response of the public server is received, it is judged that the public server is online; if the feedback response of the public server is not received within a certain time (for example, 2 seconds) , It is judged that the public server is not online.
  • the public server should promptly send the content of the message to the network client corresponding to the user account, and the public server should determine the corresponding user account Whether the web client successfully received the message content.
  • the public server After the public server judges whether the network client corresponding to the user account has successfully received the message content, it returns information indicating the message sending status to the message agent according to the result of the judgment. Information about successfully sending the message content to the network client corresponding to the user account. As a result, the message agent receives the information representing the sending status of the message returned by the public server, and then determines whether the public server successfully sends the message content to the network client corresponding to the user account according to the information representing the sending status of the message.
  • the information characterizing the sending status of the message is information characterizing that the content of the message has been successfully sent to the network client corresponding to the user account, and if the public server returns Information indicating the sending status of the message, it is determined that the public server successfully sent the content of the message to the network client corresponding to the user account; if the representative message returned by the public server is not received within a preset time If the status information is sent, it is judged that the public server failed to successfully send the message content to the network client corresponding to the user account.
  • the returned information characterizing the message sending status is indicative of the message content being successfully sent Information to the network client corresponding to the user account; if the public server determines that the message content cannot be successfully sent to the network client corresponding to the user account, it does not return information characterizing the sending status of the message.
  • the message agent receives the information indicating the message sending status returned by the public server within a preset time, it determines that the public server successfully sends the message content to the network client corresponding to the user account; If the information indicating the message sending status returned by the public server is not received within the set time, it is judged that the public server fails to successfully send the content of the message to the network client corresponding to the user account.
  • the information characterizing the sending status of the message is information characterizing the success or failure to send the content of the message to the network client corresponding to the user account, if the received The information characterizing the message sending status is information characterizing the successful transmission of the message content to the network client corresponding to the user account, and then it is determined that the public server has successfully sent the message content to the network corresponding to the user account Client; if the information representing the sending status of the message received within the preset time is information indicating that the message content has not been successfully sent to the network client corresponding to the user account, or if it is not within the preset time Receiving the information returned by the public server that characterizes the sending status of the message, it is determined that the public server has failed to successfully send the message content to the network client corresponding to the user account.
  • the returned information characterizing the message sending status is indicative of the message content being successfully sent Information to the web client corresponding to the user account; if the public server determines that the message content cannot be successfully sent to the web client corresponding to the user account, the returned information indicating the sending status of the message is not Information that can successfully send the message content to the network client corresponding to the user account.
  • the public server is determined to be successful Sending the content of the message to the network client corresponding to the user account; if the information indicative of the sending status of the message received within a preset time is indicative of failure to send the content of the message to the user account Information of the corresponding network client, or if the information indicative of the message sending status returned by the public server is not received within a preset time, it is determined that the public server failed to send the message content to the network corresponding to the user account Client.
  • the message agent may not receive the information indicative of the sending status of the message returned by the public server within a preset time. Therefore, in this case, it is determined that the public server fails to send the message content to the network client corresponding to the user account.
  • the characterization message returned
  • the information of the sending status is information indicating that the message content has not been successfully sent to the network client corresponding to the user account
  • the public server determines that the message content has not been successfully If it is sent to the network client corresponding to the user account, information indicating the sending status of the message is not returned, including information indicating that the message content has not been successfully sent to the network client corresponding to the user account.
  • the first embodiment needs to determine whether the public server is unsuccessful when the preset time is reached or exceeded Sending the message content to the network client corresponding to the user account; and the second embodiment may receive information indicating that the message content has not been successfully sent to the network client corresponding to the user account At that time, it can be judged that the public server failed to send the message content to the network client corresponding to the user account. Therefore, the second embodiment can improve the overall efficiency, but the implementation is relatively complicated.
  • Determining the mobile terminal number corresponding to the message content may include various implementation manners, and may at least include:
  • the target account number is a mobile terminal number, and it is determined that the target account number is a mobile terminal number corresponding to the message content.
  • the target account number is a mobile terminal number, and the mobile terminal number is used as the mobile terminal number corresponding to the message content.
  • the mobile terminal number corresponding to the target account in the preset correspondence is determined as the mobile terminal number corresponding to the message content.
  • the correspondence between the target account and the mobile terminal number is pre-stored, and the corresponding mobile terminal number is obtained in the correspondence based on the target account.
  • the message to be sent further includes a mobile terminal number, and the mobile terminal number that is also included is determined as the mobile terminal number corresponding to the content of the message.
  • the message to be sent also includes a mobile terminal number, and the mobile terminal number also included in the message to be sent is determined to be the mobile terminal number corresponding to the content of the message.
  • the short message sending request includes the message content and the mobile terminal number, so that the short message platform sends the message content to the mobile terminal number.
  • Send an SMS sending request to the SMS platform which can include:
  • the preset interface is provided by the short message platform, and the preset interface is used to process the short message sending request received through the preset interface, such as sending short message;
  • the short message sending request including the message content and the mobile terminal number
  • the short message sending request After sending the short message sending request to the short message platform, the short message sending request causes the short message platform to send the message content to the mobile terminal number when receiving the short message sending request.
  • the message content included in the short message sending request may also be a message content newly generated based on the message content, that is, the newly generated message content is included in the short message sending request,
  • the newly generated message content includes the message content.
  • the new message content may be used if it is determined that the new message content conforms to the short message transmission request format; for example, based on the message content
  • new message content is generated; for example, according to a preset SMS message template and a preset method, the message content is filled into the corresponding parameter position in the SMS message template to generate new message content, etc. .
  • the message content can also be received through the SMS platform in time, so that the user will not miss any message content.
  • sending messages through the public server usually has the characteristics of zero tariffs, and because it is determined that the public server has not successfully sent a message to the user, the message is sent through the SMS platform, rather than causing the SMS platform to send a message at any time. Save operating costs.
  • FIG. 3 shows a schematic flowchart of an embodiment of a message forwarding method provided by the present invention.
  • This embodiment is exemplified by applying the message forwarding method to the public server in FIG. 1, the method including:
  • S301 Receive a public account message sending request sent by a message agent, where the public account message sending request includes the message content and the user account.
  • the message agent configures the authentication credentials (such as password, access token, key, etc.) of the corresponding public account, and then sends the public account message request to the public server with the public account.
  • the authentication credentials such as password, access token, key, etc.
  • the public account sending the public account message sending request After receiving the public account message sending request, it is detected whether the public account sending the public account message sending request has the authority to send a message to the user account. For example, detecting the subscription relationship between the user account and the public account that sent the message to send the request, if there is a subscription relationship, continue to perform subsequent steps, otherwise, return an error message.
  • the message preset rule may include whether the length of the message content meets the preset requirements, and whether the message content includes non-standard characters or content. If the message content meets the message preset rules, continue to perform the next steps, otherwise, return an error message.
  • the message content is sent to the network client corresponding to the user account.
  • the network client corresponding to the user account refers to the network client logged in by the user to which the user account belongs.
  • the association between the user ’s ordinary account and the user ’s logged-on web client is established. If the user ’s account is a normal account, the message content is sent to the user ’s associated web client; If the account is a subscription account, the general account corresponding to the user account is obtained according to the user account, and then the message content is sent to the network client associated with the corresponding general account.
  • the network client corresponding to the user account is the network client associated with the user ID corresponding to the user account Sending the message content to the network client corresponding to the user account, that is, obtaining the user ID corresponding to the user account according to the user account, and then sending the message content to the network client associated with the corresponding user ID.
  • sending the message content to the network client corresponding to the user account may also be sending the message content newly generated based on the message content to the network client corresponding to the user account, which is about to be updated
  • the generated message content is sent to the network client corresponding to the user account, and the newly generated message content includes the message content.
  • the message content can be converted into a file in a format such as a picture or voice, or a new message content can be generated after adding the name of a public account based on the message content, or based on A pre-set public account message template and a preset method are used to fill in the message content into the corresponding parameter positions in the public account message template to generate new message content, etc.
  • step S302 to step are performed S304. If not online, return information indicating that the message content has not been successfully sent to the network client corresponding to the user account to the message agent, and step S302 to step S304 are not performed.
  • Another embodiment for detecting whether a user account is online is to query the online state of the user account in the record using the user account in the record that records the online state of the account, and determine whether the user account is online according to the query result.
  • it can include:
  • the online status of an ordinary account is recorded. If the user account is an ordinary account, the online state of the ordinary account is obtained; if the user account is a subscription account, the ordinary account corresponding to the user account is obtained according to the user account, and then The corresponding ordinary account obtains the online status of the corresponding ordinary account in the record.
  • the online status of the user ID is recorded, the user ID corresponding to the user account is obtained according to the user account, and then the online status of the corresponding user ID is obtained in the record according to the corresponding user ID.
  • determining whether the network client corresponding to the user account successfully receives the message content may include various implementation manners, and may include at least:
  • receiving information indicative of the reception status fed back by the network client corresponding to the user account the information indicative of the reception status is information indicative of successful reception, then, if the Yes, the information representing the receiving status fed back by the network client corresponding to the user account is yes; if the information representing the receiving status fed back by the network client corresponding to the user account is not received within a preset time, no .
  • the feedback characterizes the reception Status information is information characterizing the successful reception; if the network client corresponding to the user account does not receive the message content, the information characterizing the reception status is not fed back.
  • the network client corresponding to the user account successfully receives the message content; If the information indicative of the receiving status fed back by the network client corresponding to the user account is not received within a preset time, it is determined that the network client corresponding to the user account has not successfully received the message content.
  • the network client corresponding to the user account may cause that the information representative of the receiving status fed back by the network client corresponding to the user account is not received; for example, due to a network client failure, network failure, etc., It may cause that the information representing the receiving status fed back by the network client corresponding to the user account is not received; for example, after sending the message content to the network client corresponding to the user account, but due to the user
  • the network client corresponding to the account is set to refuse to receive the message, or because the format of the message content is incorrect so that it cannot be parsed correctly, etc., the network client corresponding to the user account fails to receive, and after determining that the reception fails, The network client does not feed back information characterizing the reception status.
  • the information indicative of the reception status is information indicative of successful reception or reception failure, then, if received within a preset time
  • the information representing the reception status is the information representing the successful reception, yes; if the information representing the reception status received within the preset time is the information representing the failure to receive, or if the received information is not received within the preset time If the information representing the receiving status fed back by the network client corresponding to the user account is not, then it is no.
  • the information characterizing the reception status is information characterizing successful reception.
  • the network client corresponding to the user account After sending the message content to the network client corresponding to the user account, but the network client corresponding to the user account is set to refuse to receive the message, or the format of the message content is incorrect
  • the network client corresponding to the user account cannot be parsed correctly, etc., resulting in failure of the network client corresponding to the user account to receive, and after determining that the reception fails, the network client feeds back information indicative of the reception status, which The information is information characterizing the failure of reception.
  • the information indicative of the reception status fed back by the network client corresponding to the user account received within a preset time is information indicative of successful reception, it is determined that the network client corresponding to the user account has successfully received The content of the message; if the information indicative of the reception status fed back by the network client corresponding to the user account received within the preset time is information indicative of failure to receive, or if the user is not received within the preset time
  • the information representing the receiving status fed back by the network client corresponding to the account determines that the network client corresponding to the user account has not successfully received the message content.
  • the network client corresponding to the user account does not need to feed back information indicative of the reception status, including information indicative of reception failure.
  • the network client corresponding to the user account After sending the message content to the network client corresponding to the user account, it is detected whether the user account is online, and if it is online, it is determined that the network client corresponding to the user account successfully receives the message content ; If it is not online, it is determined that the network client corresponding to the user account has not successfully received the message content.
  • the above-mentioned third embodiment can be applied simultaneously with the above-mentioned first embodiment or second embodiment.
  • Returning information characterizing the sending status of the message to the message broker may include various implementation manners, and may at least include:
  • the characterization message is not returned to the message agent Information about the status, so that the message agent sends the message content to the mobile terminal number corresponding to the message content through the short message platform.
  • the network client corresponding to the user account After judging that the network client corresponding to the user account successfully receives the message content, it returns to the message agent information indicating that the message content was successfully sent to the network client corresponding to the user account.
  • the network client corresponding to the user account After judging that the network client corresponding to the user account has not successfully received the message content, it does not return information indicating the message sending status to the message agent.
  • the message agent After returning to the message agent information indicating that the message content was successfully sent to the network client corresponding to the user account, when the message agent receives the information indicating the message sending status, it is determined that the message content has passed the public account message Successfully sent to the user, so that no more SMS messages are sent to the user; when the message agent does not receive information characterizing the sending status of the message within a preset time, it is determined that the content of the message has not been successfully sent to the user through the public account message, and then The message content is sent to the mobile terminal number corresponding to the message content through the short message platform, so that the user can receive the message content in time.
  • a second implementation manner if yes, information indicating that the message content was successfully sent to the network client corresponding to the user account is returned to the message agent; if not, characterization failed is returned to the message agent Sending the message content to the information of the network client corresponding to the user account, so that the message agent sends the message content to the mobile terminal number corresponding to the message content through a short message platform;
  • the network client corresponding to the user account After judging that the network client corresponding to the user account successfully receives the message content, it returns to the message agent information indicating that the message content was successfully sent to the network client corresponding to the user account.
  • the network client corresponding to the user account After judging that the network client corresponding to the user account has not successfully received the message content, it returns to the message agent that the message content has not been successfully sent to the network client corresponding to the user account Information.
  • the message agent After returning to the message agent information indicating that the message content was successfully sent to the network client corresponding to the user account, when the message agent receives the information indicating the message sending status, it is determined that the message content has passed the public account message Successfully sent to the user, so that the user is no longer sent a short message; when the message agent receives information indicating that the message content failed to be sent to the network client corresponding to the user account, or when the message agent is When no information characterizing the sending status of the message is received within the set time, it is determined that the content of the message is not successfully sent to the user through the public account message, and then the message content is sent to the mobile terminal number corresponding to the message content through the SMS platform, So that users can receive the message content in time.
  • the first implementation manner described above is different from the second implementation manner in that the first implementation manner determines that the network client corresponding to the user account has not successfully received the message content. , Neither return information to the message agent that characterizes the successful sending of the message content to the network client corresponding to the user account, nor return to the message agent characterizing the failure to successfully send the message content to the Describe the information of the network client corresponding to the user account.
  • FIG. 4 is a schematic flowchart of another message sending method embodiment provided by the present invention.
  • This embodiment is an embodiment formed by combining the above-mentioned message sending method embodiment and a message forwarding method embodiment.
  • This embodiment uses the message sending method applied in the implementation environment shown in FIG. 1 as an example to illustrate The methods described include:
  • the message agent receives the message to be sent, and the message to be sent includes the message content and the target account.
  • the message agent sends a public account message sending request to the public server, the public account message sending request includes the message content and the user account, so that the public server sends the message content to the user account corresponding to In a network client, the user account is determined according to the target account.
  • the public server receives the public number message sending request sent by the message agent.
  • the public server sends the message content to the network client corresponding to the user account.
  • the public server determines whether the network client corresponding to the user account has successfully received the message content.
  • the public server returns corresponding information characterizing the sending status of the message to the message agent according to the judgment result.
  • the network client corresponding to the user account if it is determined that the network client corresponding to the user account has successfully received the message content, it returns to the message agent that the message content has been successfully sent to the network corresponding to the user account Information about the client; if it is determined that the network client corresponding to the user account has not successfully received the message content, it returns to the message agent that the message content failed to be sent to the user account Information of the network client, so that the message agent sends the message content to the mobile terminal number corresponding to the message content through the SMS platform;
  • the network client corresponding to the user account if it is determined that the network client corresponding to the user account has successfully received the message content, it returns to the message agent that the message content has been successfully sent to the network corresponding to the user account Information of the client; if it is determined that the network client corresponding to the user account has not successfully received the message content, information indicating the sending status of the message is not returned to the message agent, so that the message agent passes the SMS platform Send the message content to the mobile terminal number corresponding to the message content.
  • the message agent receives the information returned by the public server that characterizes the sending status of the message.
  • the message agent makes a judgment based on the information returned by the public server that characterizes the sending status of the message, if it is judged that the public server fails to send the message content to the network client corresponding to the user account, and Steps S407 to S408 are executed.
  • the first embodiment corresponds to the first embodiment described in step S405 above, and the information indicating the message sending status returned by the public server is corresponding to indicating that the message content is successfully sent to the user account Information of the web client of the web site, if the information representing the sending status of the message returned by the public server is received within the preset time, the following steps S407 to S408 are not performed; if the information is not received within the preset time If the information indicating the message sending status returned by the public server is described, the following steps S407 to S408 are performed.
  • the information returned by the public server that characterizes the sending status of the message is to indicate success or failure to send the content of the message to the Information about the network client corresponding to the user account, if the information indicative of the transmission status of the message received within a preset time is information indicating that the message content was successfully sent to the network client corresponding to the user account, then The following steps S407 to S408 are not performed; if the information indicating the transmission status of the message received within the preset time is information indicating that the message content has not been successfully sent to the network client corresponding to the user account, or If the information indicative of the message transmission status returned by the public server is not received within the preset time, the following steps S407 to S408 are executed.
  • the message agent determines the mobile terminal number corresponding to the message content.
  • the message agent sends a short message sending request to a short message platform, the short message sending request includes the message content and the mobile terminal number, so that the short message platform sends the message when receiving the short message sending request The content is sent to the mobile terminal number.
  • the other message sending method embodiment provided above is formed by combining the above message sending method embodiment and a message forwarding method embodiment.
  • a message forwarding method embodiment For specific implementation principles, steps and effects, please refer to the corresponding embodiments. This will not be repeated here.
  • the present invention also provides a message sending device, a message sending device, or a message server, including: a memory, a processor, and a message sending program stored on the memory and capable of running on the processor When the message sending program is executed by the processor, the above message sending method applied to the message broker is realized.
  • the present invention also provides a message forwarding device, message forwarding device, or public server, including: a memory, a processor, and a message forwarding program stored on the memory and executable on the processor When the message forwarding program is executed by the processor, the above message forwarding method applied to a public server is implemented.
  • the present invention also provides a message sending system, the message sending system includes: the message sending device, the message sending device or the message server as described above, and the message forwarding device, the message forwarding device as described above Or public server.
  • the present invention also provides a storage medium for message transmission, characterized in that the storage medium stores a program, and the program is used to implement the message applied to the message broker as described above Delivery method.
  • the present invention also provides a storage medium for message forwarding, characterized in that the storage medium stores a program, and the program is used to implement the message applied to the public server as described above Forwarding method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a message sending method, device and system. The method comprises: receiving a message to be sent, said message comprising message content and a target account number; sending a public number message sending request to a public server, the public number message sending request comprising the message content and a user account number, and the user account number being determined according to the target account number; and if it is determined that the public server fails to successfully send the message content to a network client corresponding to the user account number, determining a mobile terminal number corresponding to the message content and sending a short message sending request to a short message platform, so that the short message platform sends the message content to the mobile terminal number. According to the technical solution of the present invention, if a user fails to receive a public number message normally, the user can receive the relevant message content in a timely fashion by means of the short message platform, so that the user would not miss any information.

Description

一种消息发送方法、装置及系统Message sending method, device and system 技术领域Technical field
本发明涉及互联网技术领域,尤其涉及一种消息发送方法、装置及系统。The present invention relates to the field of Internet technology, and in particular, to a message sending method, device, and system.
背景技术Background technique
为了让用户及时接收到信息,各业务系统或消息服务平台会向用户提供短信消息服务。In order to allow users to receive information in a timely manner, various business systems or message service platforms will provide users with short message service.
随着互联网技术的不断发展,公众平台的应用也越来越广泛。With the continuous development of Internet technology, the application of public platforms is becoming more and more extensive.
公众平台是互联网公司在诸如即时通讯、微博、社交等网络应用的基础上开发的,用于给个人、企业和组织提供业务服务的平台。The public platform is a platform developed by Internet companies on the basis of network applications such as instant messaging, Weibo, and social networking, and is used to provide business services to individuals, enterprises, and organizations.
公众账号是在公众平台上注册且信息审核通过后的账号,个人用户如果对公众账号发送的信息和提供的服务感兴趣,可以关注该公众账号,从而成为该公众账号的一个订阅用户。A public account is an account registered on a public platform and approved for information. Individual users who are interested in the information and services provided by the public account can follow the public account and become a subscriber to the public account.
公众账号可以向关注了该公众账号的用户发送公众号消息,例如可以将诸如故障类、灾害类、信用卡消费等信息发送给用户,以使得用户及时得知重要信息。The public account can send a public account message to users who follow the public account. For example, information such as failures, disasters, and credit card consumption can be sent to the user, so that the user knows important information in a timely manner.
技术问题technical problem
为了不让用户有可能错过重要信息,有些服务商会同时向用户发送公众号消息和短信消息,然而,如果同时向用户发送公众号消息和短信消息,这会让用户收到内容相似的公众号消息和短信消息,从而给用户带来一定的干扰,并且也会由于大量发送短信消息而增加运营成本。In order not to allow users to miss important information, some service providers will send both public account messages and SMS messages to users at the same time. However, if they send public account messages and SMS messages to users at the same time, this will cause users to receive public account messages with similar contents. And SMS messages, which will cause some interference to users, and will also increase operating costs due to the large number of SMS messages sent.
结合短信消息和公众号消息的特点,如何以更低成本、更高效的方式向用户发送消息,使得用户不错过重要信息成为亟需解决的技术问题。Combining the characteristics of SMS messages and public account messages, how to send messages to users in a lower cost and more efficient way, so that users do not miss important information has become an urgent technical problem to be solved.
技术解决方案Technical solution
本发明的目的在于提供一种消息发送方法、装置及系统,以实现让用户不会错过重要信息,同时又不向用户重复发送公众号消息和短信消息,以及减少服务商的短信发送运营成本。The purpose of the present invention is to provide a method, device and system for sending messages, so that users will not miss important information, and at the same time, they will not repeatedly send public account messages and short message messages to users, and reduce the short message sending operation cost of service providers.
为达到上述目的,本发明提供了以下技术方案:To achieve the above objectives, the present invention provides the following technical solutions:
第一方面,提供了一种消息发送方法,应用于消息代理,所述方法包括:In a first aspect, a message sending method is provided, which is applied to a message broker. The method includes:
接收待发送消息,所述待发送消息包括消息内容以及目标账号;Receiving a message to be sent, the message to be sent includes the message content and the target account;
向公众服务器发送公众号消息发送请求,所述公众号消息发送请求包括所述消息内容以及用户账号,以使得所述公众服务器将所述消息内容发送给所述用户账号所对应的网络客户端,所述用户账号是根据所述目标账号确定的;Sending a public account message sending request to a public server, where the public account message sending request includes the message content and a user account, so that the public server sends the message content to the network client corresponding to the user account, The user account is determined according to the target account;
若判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端,则执行下述步骤:If it is judged that the public server fails to send the message content to the network client corresponding to the user account, the following steps are performed:
确定所述消息内容所对应的移动终端号码;向短信平台发送短信发送请求,所述短信发送请求包括所述消息内容以及所述移动终端号码,以使得所述短信平台将所述消息内容发送到所述移动终端号码。Determine the mobile terminal number corresponding to the message content; send a short message sending request to the short message platform, the short message sending request includes the message content and the mobile terminal number, so that the short message platform sends the message content to The mobile terminal number.
优选的,所述向公众服务器发送公众号消息发送请求之前还包括:Preferably, before sending the public account message sending request to the public server, the method further includes:
检测所述公众服务器是否在线;Detect whether the public server is online;
若在线,则执行所述向公众服务器发送公众号消息发送请求的步骤;If online, execute the step of sending a public account message sending request to the public server;
若不在线,则执行所述确定所述消息内容所对应的移动终端号码的步骤。If not online, the step of determining the mobile terminal number corresponding to the message content is performed.
优选的,所述所述用户账号是根据所述目标账号确定的包括:Preferably, the user account is determined according to the target account and includes:
将所述目标账号作为所述用户账号;或者,Use the target account as the user account; or,
将预设的对应关系中与所述目标账号对应的用户账号确定为所述用户账号。The user account corresponding to the target account in the preset correspondence is determined as the user account.
优选的,所述判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端包括:Preferably, the judging that the public server failed to send the message content to the network client corresponding to the user account includes:
接收所述公众服务器返回的表征消息发送状态的信息,该表征消息发送状态的信息为表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则,若在预设时间内没有接收到所述公众服务器返回的表征消息发送状态的信息,则判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端;或者,Receiving information indicative of the sending status of the message returned by the public server, the information indicative of the sending status of the message being information indicative of successfully sending the content of the message to the network client corresponding to the user account, if the preset time If no information representative of the message sending status returned by the public server is received, it is determined that the public server has failed to successfully send the message content to the network client corresponding to the user account; or,
接收所述公众服务器返回的表征消息发送状态的信息,该表征消息发送状态的信息为表征成功或未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则,若在预设时间内接收的该表征消息发送状态的信息为表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,或若在预设时间内没有接收到所述公众服务器返回的表征消息发送状态的信息,则判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端。Receiving information indicating the sending status of the message returned by the public server, the information indicating the sending status of the message is information indicating that the message content is successfully or unsuccessfully sent to the network client corresponding to the user account, then, if The information indicating the sending status of the message received within the preset time is information indicating that the content of the message is not successfully sent to the network client corresponding to the user account, or if the message is not received within the preset time The information returned by the public server characterizing the sending status of the message determines that the public server has failed to successfully send the content of the message to the network client corresponding to the user account.
优选的,所述确定所述消息内容所对应的移动终端号码包括:Preferably, the determining the mobile terminal number corresponding to the message content includes:
所述目标账号为移动终端号码,确定所述目标账号为所述消息内容所对应的移动终端号码;或者,将预设的对应关系中与所述目标账号对应的移动终端号码确定为所述消息内容所对应的移动终端号码;或者,The target account number is a mobile terminal number, and it is determined that the target account number is the mobile terminal number corresponding to the message content; or, the mobile terminal number corresponding to the target account in the preset correspondence is determined as the message The mobile terminal number corresponding to the content; or,
所述待发送消息中还包括移动终端号码,将所述还包括的移动终端号码确定为所述消息内容所对应的移动终端号码。The message to be sent also includes a mobile terminal number, and the mobile terminal number that is also included is determined as the mobile terminal number corresponding to the message content.
优选的,所述向短信平台发送短信发送请求,包括:Preferably, the sending a short message sending request to the short message platform includes:
预先确定所述短信平台的预设接口;Pre-determine the preset interface of the short message platform;
根据所述预设接口生成短信发送请求,所述短信发送请求包括所述消息内容以及所述移动终端号码;Generating a short message sending request according to the preset interface, the short message sending request including the message content and the mobile terminal number;
将所述短信发送请求发送到所述预设接口。Sending the short message sending request to the preset interface.
第二方面,提供了一种消息转发方法,应用于公众服务器,所述方法包括:In a second aspect, a message forwarding method is provided, which is applied to a public server. The method includes:
接收消息代理发送的公众号消息发送请求,所述公众号消息发送请求包括消息内容以及用户账号;Receiving a public account message sending request sent by a message agent, where the public account message sending request includes the message content and the user account;
将所述消息内容发送给所述用户账号所对应的网络客户端;Sending the message content to the network client corresponding to the user account;
判断所述用户账号所对应的网络客户端是否成功接收到所述消息内容;Determine whether the network client corresponding to the user account successfully receives the message content;
若是,则向所述消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息;If yes, return information indicating that the message content was successfully sent to the network client corresponding to the user account to the message agent;
若否,则向所述消息代理返回表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,以使得所述消息代理通过短信平台将所述消息内容发送到所述消息内容所对应的移动终端号码;或者,若否,则不向所述消息代理返回表征消息发送状态的信息,以使得所述消息代理通过短信平台将所述消息内容发送到所述消息内容所对应的移动终端号码。If not, return information indicating that the message content has not been successfully sent to the network client corresponding to the user account to the message agent, so that the message agent sends the message content to the message agent through the SMS platform The mobile terminal number corresponding to the content of the message; or, if not, the information representative of the message sending status is not returned to the message agent, so that the message agent sends the message content to the message content through the SMS platform The corresponding mobile terminal number.
优选的,所述将所述消息内容发送给所述用户账号所对应的网络客户端之前还包括:Preferably, before sending the message content to the network client corresponding to the user account, the method further includes:
检测所述用户账号是否在线;Detect whether the user account is online;
若在线,则执行将所述消息内容发送给所述用户账号所对应的网络客户端的步骤;If online, the step of sending the message content to the network client corresponding to the user account is performed;
若不在线,则向所述消息代理返回表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,并且不执行将所述消息内容发送给所述用户账号所对应的网络客户端的步骤。If it is not online, it returns to the message agent information indicating that the message content has not been successfully sent to the network client corresponding to the user account, and does not perform sending the message content to the user account. Of the web client.
优选的,所述判断所述用户账号所对应的网络客户端是否成功接收到所述消息内容包括:Preferably, the judging whether the network client corresponding to the user account successfully receives the message content includes:
接收所述用户账号所对应的网络客户端反馈的表征接收状态的信息,该表征接收状态的信息为表征接收成功的信息,则,若在预设时间内接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则为是;若在预设时间内没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则为否;或者,Receiving information indicative of the reception status fed back by the network client corresponding to the user account, and the information indicative of the reception status is information indicative of successful reception, then, if the network corresponding to the user account is received within a preset time Yes, the information indicative of the reception status fed back by the client is yes; if the information indicative of the reception status fed back by the network client corresponding to the user account is not received within a preset time, no; or,
接收所述用户账号所对应的网络客户端反馈的表征接收状态的信息,该表征接收状态的信息为表征接收成功或接收失败的信息,则,若在预设时间内接收的该表征接收状态的信息为表征接收成功的信息,则为是;若在预设时间内接收的该表征接收状态的信息为表征接收失败的信息,或若在预设时间内没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则为否;或者,Receiving information indicative of the reception status fed back by the network client corresponding to the user account, and the information indicative of the reception status is information indicative of successful reception or failure to receive, then, if the characteristic reception status is received within a preset time The information is information indicative of successful reception, yes; if the information indicative of reception status received within a preset time is information indicative of reception failure, or if the corresponding user account is not received within the preset time The information from the network client that characterizes the reception status is no; or,
检测所述用户账号是否在线;若在线,则为是;若不在线,则为否。Detect whether the user account is online; if it is online, it is yes; if it is not online, it is no.
优选的,所述检测所述用户账号是否在线包括:Preferably, the detecting whether the user account is online includes:
向所述用户账号所对应的网络客户端发送检测信息;若接收到所述用户账号所对应的网络客户端的反馈响应,则判断所述用户账号在线;若在一定时间内没有接收到所述用户账号所对应的网络客户端的反馈响应,则判断所述用户账号不在线;或者,Sending detection information to the web client corresponding to the user account; if a feedback response from the web client corresponding to the user account is received, it is determined that the user account is online; if the user is not received within a certain time The feedback response of the network client corresponding to the account determines that the user account is not online; or,
根据所述用户账号在账号在线状态记录中查询所述用户账号的在线状态,并根据查询结果确定所述用户账号是否在线Query the online status of the user account in the account online status record according to the user account, and determine whether the user account is online according to the query result
第三方面,提供了一种消息发送装置、消息发送设备或消息服务器,其特征在于,包括:存储器、处理器,所述处理器用于运行所述存储器所存储的程序,所述程序运行时执行上述应用于消息代理的消息发送方法。In a third aspect, a message sending device, message sending device, or message server is provided, which includes: a memory and a processor, where the processor is used to run a program stored in the memory, and the program is executed when the program is run The above message sending method applied to the message broker.
提供了一种消息转发装置、消息转发设备或公众服务器,其特征在于,包括:存储器、处理器,所述处理器用于运行所述存储器所存储的程序,所述程序运行时执行上述应用于公众服务器的消息转发方法。Provided is a message forwarding device, message forwarding device, or public server, which includes: a memory and a processor, the processor is used to run a program stored in the memory, and the program is executed when the program is applied to the public The server's message forwarding method.
提供了一种消息发送系统,所述消息发送系统包括:如上所述的消息发送装置、消息发送设备或消息服务器以及如上所述的消息转发装置、消息转发设备或公众服务器。A message sending system is provided. The message sending system includes the message sending device, the message sending device or the message server as described above, and the message forwarding device, the message forwarding device or the public server as described above.
提供了一种用于消息发送的存储介质,其特征在于,所述存储介质中存储有程序,所述程序用于实现如上所述应用于消息代理的消息发送方法。A storage medium for message transmission is provided, characterized in that the storage medium stores a program, and the program is used to implement the message transmission method applied to the message broker as described above.
提供了一种用于消息转发的存储介质,其特征在于,所述存储介质中存储有程序,所述程序用于实现如上所述应用于公众服务器的消息转发方法。A storage medium for message forwarding is provided, characterized in that a program is stored in the storage medium, and the program is used to implement the message forwarding method applied to a public server as described above.
有益效果Beneficial effect
经由上述的技术方案可知,在本发明技术方案中,用户如果无法正常接收到公众服务器所发送的消息内容,也可以通过短信平台及时的接收到该消息内容,使得用户不会错过任何信息。并且,由于通过公众服务器发送消息通常具有零资费的特点,又由于是在确定公众服务器没有向用户成功发送消息时才会通过短信平台发送消息,而不是任何时刻都使得短信平台发送消息,因此,节省了运营成本。It can be known from the above technical solution that, in the technical solution of the present invention, if the user cannot normally receive the message content sent by the public server, the user can also receive the message content in time through the SMS platform, so that the user will not miss any information. And, because sending messages through the public server usually has the characteristics of zero tariffs, and because it is determined that the public server has not successfully sent a message to the user, the message is sent through the SMS platform, rather than causing the SMS platform to send a message at any time. Save operating costs.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only This is an embodiment of the present invention. For a person of ordinary skill in the art, without paying any creative labor, other drawings may be obtained according to the provided drawings.
图1示出了本发明提供的一种实施环境结构示意图;FIG. 1 shows a schematic structural diagram of an implementation environment provided by the present invention;
图2示出了本发明提供的一种消息发送方法实施例的流程示意图;2 shows a schematic flowchart of an embodiment of a message sending method provided by the present invention;
图3示出了本发明提供的一种消息转发方法实施例的流程示意图;3 shows a schematic flowchart of an embodiment of a message forwarding method provided by the present invention;
图4示出了本发明提供的另一种消息发送方法实施例的流程示意图。FIG. 4 shows a schematic flowchart of another message sending method embodiment provided by the present invention.
本发明的最佳实施方式Best Mode of the Invention
在此处键入本发明的最佳实施方式描述段落。Type the description paragraph of the best mode of the present invention here.
本发明的实施方式Embodiments of the invention
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.
一、相关名词术语1. Related terms
对本发明各个实施例中出现的部分名词或者术语解释如下:Some of the nouns or terms appearing in the various embodiments of the present invention are explained as follows:
公众账号:又称为公众号,是个人、企业和组织在公众服务器上注册信息且审核通过后的账号。Public account: Also known as a public account, it is an account after individuals, companies, and organizations register information on the public server and pass the review.
普通账号:个人用户在网络应用中所使用的账号。Ordinary account: the account used by individual users in network applications.
用户标识:在网络应用中用于识别个人用户的标识。User ID: The ID used to identify individual users in network applications.
订阅关系:个人用户如果对公众账号提供的内容和服务感兴趣,可以关注该公众账号,从而建立该个人用户与该公众账号的订阅关系。Subscription relationship: If an individual user is interested in the content and services provided by a public account, he can follow the public account to establish a subscription relationship between the individual user and the public account.
订阅账号:在一些实施方式中,为了保护用户隐私,在个人用户关注公众账号时,为该用户针对公众账号会产生一个订阅账号。Subscription account: In some implementations, in order to protect user privacy, when an individual user pays attention to a public account, a subscription account will be generated for the user for the public account.
用户账号:为普通账号或订阅账号。在一些实施方式中,用户账号是指普通账号;在一些实施方式中,用户账号是指订阅账号。User account: it is a normal account or a subscription account. In some embodiments, the user account refers to a normal account; in some embodiments, the user account refers to a subscription account.
公众号消息:指由公众号服务商提供的、发送至已关注该公众号的账号中的消息。Public account message: refers to a message provided by a public account service provider and sent to an account that has followed the public account.
短信消息:基于移动通信运营商提供的短信业务在移动终端上发送和接收的文字或数字信息,属于一种非实时的数据通信业务。Short message: text or digital information sent and received on a mobile terminal based on the short message service provided by a mobile communication operator, which belongs to a non-real-time data communication service.
移动终端号码:为呼叫一个移动用户所需拨打的号码,以及为向一个移动用户发送短信消息的接收号码,又称为MSISDN(Mobile Subscriber ISDN number,移动用户ISDN号码)。Mobile terminal number: the number to dial to call a mobile user and the receiving number to send a short message to a mobile user, also known as MSISDN (Mobile Subscriber ISDN number, mobile subscriber ISDN number)
公众号客户端:使用公众账号的用户所使用的客户端。Public account client: the client used by users who use public accounts.
二、 实施环境结构示意图 2. Schematic diagram of the implementation environment structure
请参见图1,其示出了本发明各个实施例提供的消息发送方法所涉及的一种实施环境结构示意图。该实施环境包括消息代理、公众服务器、网络客户端和短信平台。Please refer to FIG. 1, which shows a schematic structural diagram of an implementation environment involved in the message sending methods provided by various embodiments of the present invention. The implementation environment includes message agents, public servers, network clients and short message platforms.
消息代理:用于向用户发送公众号消息和短信消息的代理。消息代理与公众服务器通信连接,作为公众号客户端,配置公众账号的认证凭据(如密码、访问令牌、密钥等),由此以该公众账号通过公众服务器向用户发送公众号消息;消息代理与短信平台通信连接,作为短信平台的客户端,通过短信平台向用户发送短信消息。消息代理可以应用于用于发送消息的消息客户端,也可以应用于提供消息服务的消息服务器,还可以应用于业务系统。Message Agent: Agent used to send public account messages and SMS messages to users. The message broker communicates with the public server, as a public account client, configures the authentication credentials of the public account (such as password, access token, key, etc.), thereby sending the public account message to the user through the public server with the public account; message The agent communicates with the SMS platform and acts as a client of the SMS platform, sending SMS messages to users through the SMS platform. The message broker can be applied to a message client for sending messages, a message server that provides message services, and a business system.
公众服务器:用于提供公众号消息服务的后台服务,可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。公众服务器通过无线网络或者有线网络与网络客户端相连,并且与消息代理通信连接。Public server: The background service used to provide the public number message service. It can be a server, a server cluster composed of several servers, or a cloud computing service center. The public server is connected to the network client through a wireless network or a wired network, and is communicatively connected to the message broker.
网络客户端:使用普通账号的用户所使用的客户端。当用户以普通账号登录到该客户端后,可以接收到服务器发送的消息。Web Client: The client used by users with ordinary accounts. When the user logs in to the client with a normal account, he can receive the message sent by the server.
短信平台:用于提供短信发送服务的平台,由通信运营商或者短信平台运营商提供。短信平台与消息代理通信连接。SMS platform: a platform for providing SMS sending services, provided by a communications operator or SMS platform operator. The SMS platform communicates with the message agent.
上述客户端的客户端程序类型,可以是原生应用客户端(如操作系统上的原生应用程序),也可以是Web应用客户端(如运行在浏览器上的网页程序),也可以是轻应用客户端(如基于HTML5、JavaScript的程序),也可以是混合应用客户端程序。The client program type of the above client may be a native application client (such as a native application on an operating system), a web application client (such as a webpage program running on a browser), or a light application client End (such as HTML5, JavaScript-based programs), can also be a hybrid application client program.
本领域技术人员可以理解,图1中示出的实施环境结构并不构成对实施环境的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art may understand that the structure of the implementation environment shown in FIG. 1 does not constitute a limitation on the implementation environment, and may include more or less components than those illustrated, or combine certain components, or arrange different components.
三、一种消息发送方法实施例3. An embodiment of a message sending method
参见图2,图2是本发明实施例提供的一种消息发送方法实施例的流程示意图。本实施例以该消息发送方法应用在图1中的消息代理来举例说明,所述方法包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of an embodiment of a message sending method according to an embodiment of the present invention. In this embodiment, the message sending method is applied to the message broker in FIG. 1 as an example. The method includes:
S201.  接收待发送消息,所述待发送消息包括消息内容以及目标账号。S201. Receive a message to be sent, the message to be sent includes the message content and the target account.
消息代理接收待发送消息,其中,该待发送消息包括消息内容以及目标账号。The message agent receives the message to be sent, wherein the message to be sent includes the message content and the target account.
例如,消息代理应用于消息客户端中,发送消息的用户在消息客户端中输入待发送消息,该待发送消息包括消息内容和目标账号。For example, a message broker is used in a message client, and a user who sends a message inputs a message to be sent in the message client. The message to be sent includes the message content and the target account.
又例如,消息代理应用于消息服务器中,该消息服务器接收到待发送消息,该待发送消息包括消息内容和目标账号。For another example, the message broker is applied to a message server, and the message server receives the message to be sent, and the message to be sent includes the message content and the target account.
又例如,消息代理应用于业务系统中,当在业务系统中触发业务事件时生成待发送消息,该待发送消息包括事件相关的消息内容和目标账号。For another example, a message broker is applied in a business system, and a message to be sent is generated when a business event is triggered in the business system, and the message to be sent includes event-related message content and a target account number.
S202.  向公众服务器发送公众号消息发送请求,所述公众号消息发送请求包括所述消息内容以及用户账号,以使得所述公众服务器将所述消息内容发送给所述用户账号所对应的网络客户端,所述用户账号是根据所述目标账号确定的。S202. Send a public account message sending request to a public server, where the public account message sending request includes the message content and a user account, so that the public server sends the message content to the network client corresponding to the user account At the terminal, the user account is determined according to the target account.
向公众服务器发送公众号消息发送请求,具体可以包括:Send a public account message to the public server to send a request, which may include:
预先确定公众服务器的预设接口,其中,该预设接口是由公众服务器所提供的,该预设接口用于将通过该预设接口所接收的公众号消息发送请求进行处理,例如转发公众号消息;The preset interface of the public server is determined in advance, wherein the preset interface is provided by the public server, and the preset interface is used to process a request for sending a public account message received through the preset interface, such as forwarding the public account News
根据该预设接口生成公众号消息发送请求,该公众号消息发送请求包括所述消息内容以及用户账号,该用户账号是根据所述目标账号确定的;Generating a public account message sending request according to the preset interface, the public account message sending request including the message content and a user account, the user account is determined according to the target account;
将该公众号消息发送请求发送到该预设接口。Send the public account message sending request to the preset interface.
所述用户账号是根据所述目标账号确定的,具体可以包括:The user account is determined according to the target account, and may specifically include:
在一种实施方式中,将所述目标账号作为所述用户账号。In one embodiment, the target account is used as the user account.
所述目标账号为用户在公众服务器上的用户账号,因此将所述目标账号作为所述用户账号。The target account is a user account of a user on a public server, so the target account is used as the user account.
在另一种实施方式中,将预设的对应关系中与所述目标账号对应的用户账号确定为所述用户账号。In another embodiment, the user account corresponding to the target account in the preset correspondence is determined as the user account.
预先保存了目标账号与用户账号的对应关系,根据所述目标账号在该对应关系中获取对应的用户账号。The correspondence relationship between the target account and the user account is saved in advance, and the corresponding user account is obtained in the correspondence based on the target account.
优选的,接收到待发送消息后,检测消息内容是否符合消息预设规则。例如,消息预设规则可以包括,消息内容的长度是否符合预设要求,消息内容中是否包括不规范的字符或内容等。如果消息内容符合预设规则,则继续执行后续步骤,否则,返回错误消息。Preferably, after receiving the message to be sent, it is detected whether the content of the message conforms to the message preset rule. For example, the message preset rule may include whether the length of the message content meets the preset requirements, and whether the message content includes non-standard characters or content. If the message content meets the preset rules, continue to perform the next steps, otherwise, return an error message.
进一步地,在生成公众号消息发送请求时,该公众号消息发送请求中包括的所述消息内容,还可以是基于所述消息内容新生成的消息内容,即该公众号消息发送请求中包括该新生成的消息内容,该新生成的消息内容包括所述消息内容。例如,将所述消息内容转换成图片、语音等格式的文件;又例如,基于所述消息内容增加公众账号的名称后生成新的消息内容;又例如,根据预先设定的服务器消息模板和预设的方法,将所述消息内容填入到服务器消息模板中相应的参数位置后生成新的消息内容等。Further, when a public account message sending request is generated, the message content included in the public account message sending request may also be a message content newly generated based on the message content, that is, the public account message sending request includes the Newly generated message content, the newly generated message content includes the message content. For example, the message content is converted into a file in the form of pictures, voice, etc .; for example, a new message content is generated after the name of the public account is added based on the message content; and for example, according to a preset server message template and pre The method is to fill in the message content into the corresponding parameter position in the server message template and generate new message content.
相应地,公众服务器接收消息代理发送的公众号消息发送请求,并获取该公众号消息发送请求中的消息内容和用户账号。Correspondingly, the public server receives the public account message sending request sent by the message agent, and obtains the message content and user account in the public account message sending request.
可选地,在执行本步骤之前,即在向公众服务器发送公众号消息发送请求之前,检测公众服务器是否在线,若在线,则执行步骤S202至步骤S205,若不在线,则执行下述步骤S204至步骤S205。Optionally, before performing this step, that is, before sending a public account message sending request to the public server, check whether the public server is online, if online, then perform steps S202 to S205, if not online, perform the following step S204 Go to step S205.
检测公众服务器是否在线的实施方式,可以向公众服务器发送检测信息,如果接收到公众服务器的反馈响应,则判断公众服务器在线;如果在一定时间(例如2秒)内没有接收到公众服务器的反馈响应,则判断公众服务器不在线。The implementation method of detecting whether the public server is online can send detection information to the public server. If the feedback response of the public server is received, it is judged that the public server is online; if the feedback response of the public server is not received within a certain time (for example, 2 seconds) , It is judged that the public server is not online.
S203.  判断所述公众服务器是否成功将所述消息内容发送给所述用户账号所对应的网络客户端;若是,则不执行下述步骤S204至步骤S205;若否,则执行下述步骤S204至步骤S205。S203. Determine whether the public server successfully sends the message content to the network client corresponding to the user account; if so, the following steps S204 to S205 are not performed; if not, the following steps S204 to Step S205.
具体地,消息代理在向公众服务器发送公众号消息发送请求之后,公众服务器应当及时将所述消息内容发送给所述用户账号所对应的网络客户端,并且公众服务器应当判断所述用户账号所对应的网络客户端是否成功接收到所述消息内容。Specifically, after the message agent sends a public account message sending request to the public server, the public server should promptly send the content of the message to the network client corresponding to the user account, and the public server should determine the corresponding user account Whether the web client successfully received the message content.
在公众服务器判断出所述用户账号所对应的网络客户端是否成功接收到所述消息内容之后,根据该判断结果向消息代理返回表征消息发送状态的信息,该表征消息发送状态的信息为表征是否成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息。由此,消息代理接收公众服务器返回的表征消息发送状态的信息,再根据该表征消息发送状态的信息判断公众服务器是否成功将所述消息内容发送给所述用户账号所对应的网络客户端。After the public server judges whether the network client corresponding to the user account has successfully received the message content, it returns information indicating the message sending status to the message agent according to the result of the judgment. Information about successfully sending the message content to the network client corresponding to the user account. As a result, the message agent receives the information representing the sending status of the message returned by the public server, and then determines whether the public server successfully sends the message content to the network client corresponding to the user account according to the information representing the sending status of the message.
根据表征消息发送状态的信息判断公众服务器是否成功将所述消息内容发送给所述用户账号所对应的网络客户端,可以包括:Judging whether the public server successfully sends the content of the message to the network client corresponding to the user account according to the information characterizing the sending status of the message may include:
第一种实施方式,该表征消息发送状态的信息为表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则,若在预设时间内接收到所述公众服务器返回的表征消息发送状态的信息,则判断所述公众服务器成功将所述消息内容发送给所述用户账号所对应的网络客户端;若在预设时间内没有接收到所述公众服务器返回的表征消息发送状态的信息,则判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端。In a first implementation manner, the information characterizing the sending status of the message is information characterizing that the content of the message has been successfully sent to the network client corresponding to the user account, and if the public server returns Information indicating the sending status of the message, it is determined that the public server successfully sent the content of the message to the network client corresponding to the user account; if the representative message returned by the public server is not received within a preset time If the status information is sent, it is judged that the public server failed to successfully send the message content to the network client corresponding to the user account.
在本第一种实施方式中,公众服务器若判断成功将所述消息内容发送给所述用户账号所对应的网络客户端,则返回的表征消息发送状态的信息为表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息;公众服务器若判断未能成功将所述消息内容发送给所述用户账号所对应的网络客户端,则不返回表征消息发送状态的信息。In this first embodiment, if the public server judges that the message content is successfully sent to the network client corresponding to the user account, the returned information characterizing the message sending status is indicative of the message content being successfully sent Information to the network client corresponding to the user account; if the public server determines that the message content cannot be successfully sent to the network client corresponding to the user account, it does not return information characterizing the sending status of the message.
由此,消息代理若在预设时间内接收到公众服务器返回的表征消息发送状态的信息,则判断公众服务器成功将所述消息内容发送给所述用户账号所对应的网络客户端;若在预设时间内没有接收到公众服务器返回的表征消息发送状态的信息,则判断公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端。Therefore, if the message agent receives the information indicating the message sending status returned by the public server within a preset time, it determines that the public server successfully sends the message content to the network client corresponding to the user account; If the information indicating the message sending status returned by the public server is not received within the set time, it is judged that the public server fails to successfully send the content of the message to the network client corresponding to the user account.
需要说明的是,除了上述公众服务器因为判断未能成功将所述消息内容发送给所述用户账号所对应的网络客户端时不返回表征消息发送状态的信息的原因之外,由于公众服务器故障、网络故障等原因,也会使得消息代理在预设时间内没有接收到公众服务器返回的表征消息发送状态的信息。同样,在此情形下,可以将该情形判断为公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端。It should be noted that, in addition to the reason that the above public server does not return information indicating the sending status of the message when it fails to send the message content to the network client corresponding to the user account because of the judgment, the public server has failed, Causes such as network failures may also cause the message agent to not receive information indicative of the message sending status returned by the public server within a preset time. Similarly, in this case, it can be determined that the public server has failed to successfully send the message content to the network client corresponding to the user account.
第二种实施方式,该表征消息发送状态的信息为表征成功或未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则,若在预设时间内接收的该表征消息发送状态的信息为表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则判断所述公众服务器成功将所述消息内容发送给所述用户账号所对应的网络客户端;若在预设时间内接收的该表征消息发送状态的信息为表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,或若在预设时间内没有接收到所述公众服务器返回的表征消息发送状态的信息,则判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端。In a second implementation manner, the information characterizing the sending status of the message is information characterizing the success or failure to send the content of the message to the network client corresponding to the user account, if the received The information characterizing the message sending status is information characterizing the successful transmission of the message content to the network client corresponding to the user account, and then it is determined that the public server has successfully sent the message content to the network corresponding to the user account Client; if the information representing the sending status of the message received within the preset time is information indicating that the message content has not been successfully sent to the network client corresponding to the user account, or if it is not within the preset time Receiving the information returned by the public server that characterizes the sending status of the message, it is determined that the public server has failed to successfully send the message content to the network client corresponding to the user account.
在本第二种实施方式中,公众服务器若判断成功将所述消息内容发送给所述用户账号所对应的网络客户端,则返回的表征消息发送状态的信息为表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息;公众服务器若判断未能成功将所述消息内容发送给所述用户账号所对应的网络客户端,则返回的表征消息发送状态的信息为表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息。In the second embodiment, if the public server judges that the message content is successfully sent to the network client corresponding to the user account, the returned information characterizing the message sending status is indicative of the message content being successfully sent Information to the web client corresponding to the user account; if the public server determines that the message content cannot be successfully sent to the web client corresponding to the user account, the returned information indicating the sending status of the message is not Information that can successfully send the message content to the network client corresponding to the user account.
由此,消息代理若在预设时间内接收的公众服务器返回的表征消息发送状态的信息为表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则判断公众服务器成功将所述消息内容发送给所述用户账号所对应的网络客户端;若在预设时间内接收的该表征消息发送状态的信息为表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,或若在预设时间内没有接收到公众服务器返回的表征消息发送状态的信息,则判断公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端。Therefore, if the message agent returns the information indicating the message sending status returned by the public server within the preset time as the information indicating that the message content was successfully sent to the network client corresponding to the user account, the public server is determined to be successful Sending the content of the message to the network client corresponding to the user account; if the information indicative of the sending status of the message received within a preset time is indicative of failure to send the content of the message to the user account Information of the corresponding network client, or if the information indicative of the message sending status returned by the public server is not received within a preset time, it is determined that the public server failed to send the message content to the network corresponding to the user account Client.
需要说明的是,由于公众服务器故障、网络故障等原因,会使得消息代理在预设时间内没有接收到公众服务器返回的表征消息发送状态的信息。因此,在此情形下,判断为公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端。It should be noted that due to the failure of the public server, network failure, etc., the message agent may not receive the information indicative of the sending status of the message returned by the public server within a preset time. Therefore, in this case, it is determined that the public server fails to send the message content to the network client corresponding to the user account.
与上述第一种实施方式不同的是,在本第二种实施方式中,公众服务器若判断未能成功将所述消息内容发送给所述用户账号所对应的网络客户端,则返回的表征消息发送状态的信息为表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,而在上述第一种实施方式中,公众服务器若判断未能成功将所述消息内容发送给所述用户账号所对应的网络客户端,则不返回表征消息发送状态的信息,包括不返回表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息。Different from the first embodiment described above, in this second embodiment, if the public server determines that the message content cannot be successfully sent to the network client corresponding to the user account, the characterization message returned The information of the sending status is information indicating that the message content has not been successfully sent to the network client corresponding to the user account, and in the first embodiment above, if the public server determines that the message content has not been successfully If it is sent to the network client corresponding to the user account, information indicating the sending status of the message is not returned, including information indicating that the message content has not been successfully sent to the network client corresponding to the user account.
本第二种实施方式相比上述第一种实施方式,如果公众服务器没有返回表征消息发送状态的信息,第一种实施方式需要在达到或超过预设时间时才可以判断出公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端;而第二种实施方式可以在接收到表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息时,即可以判断出公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端,因此,第二种实施方式可以提高整体的效率,但实施方式相对复杂一些。Compared with the first embodiment described above, if the public server does not return information characterizing the sending status of the message, the first embodiment needs to determine whether the public server is unsuccessful when the preset time is reached or exceeded Sending the message content to the network client corresponding to the user account; and the second embodiment may receive information indicating that the message content has not been successfully sent to the network client corresponding to the user account At that time, it can be judged that the public server failed to send the message content to the network client corresponding to the user account. Therefore, the second embodiment can improve the overall efficiency, but the implementation is relatively complicated.
S204.  确定所述消息内容所对应的移动终端号码。S204. Determine the mobile terminal number corresponding to the message content.
确定所述消息内容所对应的移动终端号码可以包括多种实施方式,至少可以包括:Determining the mobile terminal number corresponding to the message content may include various implementation manners, and may at least include:
第一种实施方式,所述目标账号为移动终端号码,确定所述目标账号为所述消息内容所对应的移动终端号码。In a first implementation manner, the target account number is a mobile terminal number, and it is determined that the target account number is a mobile terminal number corresponding to the message content.
所述目标账号是移动终端号码,以该移动终端号码作为所述消息内容所对应的移动终端号码。The target account number is a mobile terminal number, and the mobile terminal number is used as the mobile terminal number corresponding to the message content.
第二种实施方式,将预设的对应关系中与所述目标账号对应的移动终端号码确定为所述消息内容所对应的移动终端号码。In a second implementation manner, the mobile terminal number corresponding to the target account in the preset correspondence is determined as the mobile terminal number corresponding to the message content.
预先保存了目标账号与移动终端号码的对应关系,根据所述目标账号在该对应关系中获取对应的移动终端号码。The correspondence between the target account and the mobile terminal number is pre-stored, and the corresponding mobile terminal number is obtained in the correspondence based on the target account.
第三种实施方式,在所述待发送消息中还包括移动终端号码,将所述还包括的移动终端号码确定为所述消息内容所对应的移动终端号码。In a third implementation manner, the message to be sent further includes a mobile terminal number, and the mobile terminal number that is also included is determined as the mobile terminal number corresponding to the content of the message.
在待发送消息中还包括移动终端号码,以该待发送消息中还包括的移动终端号码确定为所述消息内容所对应的移动终端号码。The message to be sent also includes a mobile terminal number, and the mobile terminal number also included in the message to be sent is determined to be the mobile terminal number corresponding to the content of the message.
S205.  向短信平台发送短信发送请求,所述短信发送请求包括所述消息内容以及所述移动终端号码,以使得所述短信平台将所述消息内容发送到所述移动终端号码。S205. Send a short message sending request to the short message platform, the short message sending request includes the message content and the mobile terminal number, so that the short message platform sends the message content to the mobile terminal number.
向短信平台发送短信发送请求,具体可以包括:Send an SMS sending request to the SMS platform, which can include:
预先确定短信平台的预设接口,其中,该预设接口是由短信平台所提供的,该预设接口用于将通过该预设接口所接收的短信发送请求进行处理,如发送短信消息;Pre-determine the preset interface of the short message platform, wherein the preset interface is provided by the short message platform, and the preset interface is used to process the short message sending request received through the preset interface, such as sending short message;
根据该预设接口生成短信发送请求,该短信发送请求包括所述消息内容以及所述移动终端号码;Generating a short message sending request according to the preset interface, the short message sending request including the message content and the mobile terminal number;
将该短信发送请求发送到该预设接口。Send the SMS sending request to the preset interface.
在向短信平台发送短信发送请求之后,短信发送请求使得短信平台接收到短信发送请求时,将其中的消息内容发送到移动终端号码。After sending the short message sending request to the short message platform, the short message sending request causes the short message platform to send the message content to the mobile terminal number when receiving the short message sending request.
进一步地,在生成短信发送请求时,该短信发送请求中包括的所述消息内容,还可以是基于所述消息内容新生成的消息内容,即该短信发送请求中包括该新生成的消息内容,该新生成的消息内容包括所述消息内容。例如,如果在步骤S202中基于所述消息内容生成新的消息内容,在确定该新的消息内容符合短信发送请求格式的情形下,可以使用该新的消息内容;又例如,基于所述消息内容增加服务器名称后生成新的消息内容;又例如,根据预先设定的短信消息模板和预设的方法,将所述消息内容填入到短信消息模板中相应的参数位置后生成新的消息内容等。Further, when the short message sending request is generated, the message content included in the short message sending request may also be a message content newly generated based on the message content, that is, the newly generated message content is included in the short message sending request, The newly generated message content includes the message content. For example, if a new message content is generated based on the message content in step S202, the new message content may be used if it is determined that the new message content conforms to the short message transmission request format; for example, based on the message content After adding the server name, new message content is generated; for example, according to a preset SMS message template and a preset method, the message content is filled into the corresponding parameter position in the SMS message template to generate new message content, etc. .
通过上述实施过程可知,用户如果无法正常接收到公众服务器所发送的消息内容,也可以通过短信平台及时的接收到该消息内容,使得用户不会错过任何消息内容。并且,由于通过公众服务器发送消息通常具有零资费的特点,又由于是在确定公众服务器没有向用户成功发送消息时才会通过短信平台发送消息,而不是任何时刻都使得短信平台发送消息,因此,节省了运营成本。Through the above implementation process, it can be seen that if the user cannot receive the message content sent by the public server normally, the message content can also be received through the SMS platform in time, so that the user will not miss any message content. And, because sending messages through the public server usually has the characteristics of zero tariffs, and because it is determined that the public server has not successfully sent a message to the user, the message is sent through the SMS platform, rather than causing the SMS platform to send a message at any time. Save operating costs.
四、一种消息转发方法实施例4. An embodiment of a message forwarding method
请参见图3,图3示出了本发明提供的一种消息转发方法实施例的流程示意图。本实施例以该消息转发方法应用在图1中的公众服务器来举例说明,所述方法包括:Please refer to FIG. 3, which shows a schematic flowchart of an embodiment of a message forwarding method provided by the present invention. This embodiment is exemplified by applying the message forwarding method to the public server in FIG. 1, the method including:
S301.  接收消息代理发送的公众号消息发送请求,所述公众号消息发送请求包括消息内容以及用户账号。S301. Receive a public account message sending request sent by a message agent, where the public account message sending request includes the message content and the user account.
消息代理作为公众号客户端,配置相应公众账号的认证凭据(如密码、访问令牌、密钥等),由此以该公众账号向公众服务器发送公众号消息发送请求。As a public account client, the message agent configures the authentication credentials (such as password, access token, key, etc.) of the corresponding public account, and then sends the public account message request to the public server with the public account.
接收消息代理发送的公众号消息发送请求,其中,该公众号消息发送请求包括消息内容以及用户账号。Receive a public account message sending request sent by a message agent, where the public account message sending request includes the message content and the user account.
优选的,接收到公众号消息发送请求后,检测发送该公众号消息发送请求的公众账号是否有向该用户账号发送消息的权限。例如,检测用户账号与发送该消息发送请求的公众账号的订阅关系,如果有订阅关系,则继续执行后续步骤,否则,返回错误消息。Preferably, after receiving the public account message sending request, it is detected whether the public account sending the public account message sending request has the authority to send a message to the user account. For example, detecting the subscription relationship between the user account and the public account that sent the message to send the request, if there is a subscription relationship, continue to perform subsequent steps, otherwise, return an error message.
优选的,接收到消息发送请求后,检测消息内容是否符合消息预设规则。例如,消息预设规则可以包括,消息内容的长度是否符合预设要求,消息内容中是否包括不规范的字符或内容等。如果消息内容符合消息预设规则,则继续执行后续步骤,否则,返回错误消息。Preferably, after receiving the message sending request, it is detected whether the content of the message conforms to the message preset rule. For example, the message preset rule may include whether the length of the message content meets the preset requirements, and whether the message content includes non-standard characters or content. If the message content meets the message preset rules, continue to perform the next steps, otherwise, return an error message.
S302. 将所述消息内容发送给所述用户账号所对应的网络客户端。S302. Send the message content to the network client corresponding to the user account.
在接收到公众号消息发送请求后,将所述消息内容发送给用户账号所对应的网络客户端。After receiving the public account message sending request, the message content is sent to the network client corresponding to the user account.
用户账号所对应的网络客户端是指该用户账号所属的用户所登录的网络客户端。The network client corresponding to the user account refers to the network client logged in by the user to which the user account belongs.
例如,在用户登录后,建立了该用户的普通账号与该用户登录的网络客户端的关联关系,如果用户账号为普通账号,则将消息内容发送给该用户账号所关联的网络客户端;如果用户账号为订阅账号,则根据该用户账号获取该用户账号对应的普通账号,再将消息内容发送给该对应的普通账号所关联的网络客户端。For example, after the user logs in, the association between the user ’s ordinary account and the user ’s logged-on web client is established. If the user ’s account is a normal account, the message content is sent to the user ’s associated web client; If the account is a subscription account, the general account corresponding to the user account is obtained according to the user account, and then the message content is sent to the network client associated with the corresponding general account.
又例如,在用户登录后,建立了该用户的用户标识与该用户登录的网络客户端的关联关系,则用户账号所对应的网络客户端为该用户账号所对应的用户标识所关联的网络客户端;将消息内容发送给用户账号所对应的网络客户端,即,根据用户账号获取该用户账号对应的用户标识,再将消息内容发送给该对应的用户标识所关联的网络客户端。For another example, after the user logs in, the association relationship between the user ID of the user and the network client logged in by the user is established, then the network client corresponding to the user account is the network client associated with the user ID corresponding to the user account Sending the message content to the network client corresponding to the user account, that is, obtaining the user ID corresponding to the user account according to the user account, and then sending the message content to the network client associated with the corresponding user ID.
进一步地,将所述消息内容发送给所述用户账号所对应的网络客户端,还可以是将基于所述消息内容新生成的消息内容发送给所述用户账号所对应的网络客户端,即将新生成的消息内容发送给所述用户账号所对应的网络客户端,该新生成的消息内容包括所述消息内容。例如,以所述消息内容为文本内容为体,可以将所述消息内容转换成图片、语音等格式的文件,或者基于所述消息内容增加公众账号的名称后生成新的消息内容,又或者根据预先设定的公众号消息模板和预设的方法,将所述消息内容填入到公众号消息模板中相应的参数位置后生成新的消息内容等。Further, sending the message content to the network client corresponding to the user account may also be sending the message content newly generated based on the message content to the network client corresponding to the user account, which is about to be updated The generated message content is sent to the network client corresponding to the user account, and the newly generated message content includes the message content. For example, by taking the message content as text content, the message content can be converted into a file in a format such as a picture or voice, or a new message content can be generated after adding the name of a public account based on the message content, or based on A pre-set public account message template and a preset method are used to fill in the message content into the corresponding parameter positions in the public account message template to generate new message content, etc.
可选地,在执行本步骤之前,即在执行将所述消息内容发送给所述用户账号所对应的网络客户端的步骤之前,检测所述用户账号是否在线,若在线,则执行步骤S302至步骤S304,若不在线,则向所述消息代理返回表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,并且不执行步骤S302至步骤S304。Optionally, before performing this step, that is, before performing the step of sending the message content to the network client corresponding to the user account, it is detected whether the user account is online, and if it is online, step S302 to step are performed S304. If not online, return information indicating that the message content has not been successfully sent to the network client corresponding to the user account to the message agent, and step S302 to step S304 are not performed.
检测用户账号是否在线的实施方式,可以向用户账号所对应的网络客户端发送检测信息,如果接收到该用户账号所对应的网络客户端的反馈响应,则判断该用户账号在线;如果在一定时间(例如2秒)内没有接收到该用户账号所对应的网络客户端的反馈响应,则判断该用户账号不在线。To detect whether the user account is online, you can send the detection information to the web client corresponding to the user account. If you receive the feedback response from the web client corresponding to the user account, you can determine that the user account is online; if at a certain time ( For example, within 2 seconds) if no feedback response from the network client corresponding to the user account is received, it is determined that the user account is not online.
检测用户账号是否在线的另一种实施方式,在记录了账号在线状态的记录中,以用户账号在该记录中查询该用户账号的在线状态,并根据查询结果确定该用户账号是否在线。具体的,可以包括:Another embodiment for detecting whether a user account is online is to query the online state of the user account in the record using the user account in the record that records the online state of the account, and determine whether the user account is online according to the query result. Specifically, it can include:
例如,记录的是普通账号的在线状态,如果用户账号为普通账号,则获取该普通账号的在线状态;如果用户账号为订阅账号,则根据该用户账号获取该用户账号对应的普通账号,再根据该对应的普通账号在记录中获取该对应的普通账号的在线状态。For example, the online status of an ordinary account is recorded. If the user account is an ordinary account, the online state of the ordinary account is obtained; if the user account is a subscription account, the ordinary account corresponding to the user account is obtained according to the user account, and then The corresponding ordinary account obtains the online status of the corresponding ordinary account in the record.
又例如,记录的是用户标识的在线状态,根据用户账号获取该用户账号对应的用户标识,再根据该对应的用户标识在记录中获取该对应的用户标识的在线状态。For another example, the online status of the user ID is recorded, the user ID corresponding to the user account is obtained according to the user account, and then the online status of the corresponding user ID is obtained in the record according to the corresponding user ID.
S303.  判断所述用户账号所对应的网络客户端是否成功接收到所述消息内容。S303. Determine whether the network client corresponding to the user account successfully receives the message content.
在将所述消息内容发送给所述用户账号所对应的网络客户端之后,判断所述用户账号所对应的网络客户端是否成功接收到消息内容,可以包括多种实施方式,至少可以包括:After sending the message content to the network client corresponding to the user account, determining whether the network client corresponding to the user account successfully receives the message content may include various implementation manners, and may include at least:
第一种实施方式,接收所述用户账号所对应的网络客户端反馈的表征接收状态的信息,该表征接收状态的信息为表征接收成功的信息,则,若在预设时间内接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则为是;若在预设时间内没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则为否。In a first implementation manner, receiving information indicative of the reception status fed back by the network client corresponding to the user account, the information indicative of the reception status is information indicative of successful reception, then, if the Yes, the information representing the receiving status fed back by the network client corresponding to the user account is yes; if the information representing the receiving status fed back by the network client corresponding to the user account is not received within a preset time, no .
在本第一种实施方式中,将所述消息内容发送给所述用户账号所对应的网络客户端之后,所述用户账号所对应的网络客户端如果接收到所述消息内容,则反馈表征接收状态的信息,该表征接收状态的信息为表征接收成功的信息;所述用户账号所对应的网络客户端如果没有接收到所述消息内容,则不反馈表征接收状态的信息。In the first embodiment, after sending the message content to the network client corresponding to the user account, if the network client corresponding to the user account receives the message content, the feedback characterizes the reception Status information, the information characterizing the reception status is information characterizing the successful reception; if the network client corresponding to the user account does not receive the message content, the information characterizing the reception status is not fed back.
由此,如果在预设时间内接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则判断所述用户账号所对应的网络客户端成功接收到所述消息内容;如果在预设时间内没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则判断所述用户账号所对应的网络客户端未能成功接收到所述消息内容。Therefore, if the information indicating the receiving status fed back by the network client corresponding to the user account is received within a preset time, it is determined that the network client corresponding to the user account successfully receives the message content; If the information indicative of the receiving status fed back by the network client corresponding to the user account is not received within a preset time, it is determined that the network client corresponding to the user account has not successfully received the message content.
需要说明的是,在预设时间内没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息的原因,可能会有多种。例如,由于所述用户账号没有登录到网络客户端,会使得没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息;又例如,由于网络客户端故障、网络故障等,会使得没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息;又例如,将所述消息内容发送给所述用户账号所对应的网络客户端之后,但由于所述用户账号所对应的网络客户端设置了拒绝接收消息,或者由于所述消息内容的格式不正确使得不能正确解析等,导致所述用户账号所对应的网络客户端接收失败,并且在确定接收失败之后,该网络客户端不反馈表征接收状态的信息。It should be noted that there may be multiple reasons for not receiving the information indicative of the reception status fed back by the network client corresponding to the user account within a preset time. For example, because the user account is not logged in to the network client, it may cause that the information representative of the receiving status fed back by the network client corresponding to the user account is not received; for example, due to a network client failure, network failure, etc., It may cause that the information representing the receiving status fed back by the network client corresponding to the user account is not received; for example, after sending the message content to the network client corresponding to the user account, but due to the user The network client corresponding to the account is set to refuse to receive the message, or because the format of the message content is incorrect so that it cannot be parsed correctly, etc., the network client corresponding to the user account fails to receive, and after determining that the reception fails, The network client does not feed back information characterizing the reception status.
第二种实施方式,接收所述用户账号所对应的网络客户端反馈的表征接收状态的信息,该表征接收状态的信息为表征接收成功或接收失败的信息,则,若在预设时间内接收的该表征接收状态的信息为表征接收成功的信息,则为是;若在预设时间内接收的该表征接收状态的信息为表征接收失败的信息,或若在预设时间内没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则为否。In a second implementation manner, receiving information indicative of the reception status fed back by the network client corresponding to the user account, the information indicative of the reception status is information indicative of successful reception or reception failure, then, if received within a preset time The information representing the reception status is the information representing the successful reception, yes; if the information representing the reception status received within the preset time is the information representing the failure to receive, or if the received information is not received within the preset time If the information representing the receiving status fed back by the network client corresponding to the user account is not, then it is no.
在本第二种实施方式中,将所述消息内容发送给所述用户账号所对应的网络客户端之后,所述用户账号所对应的网络客户端如果接收到所述消息内容,则反馈表征接收状态的信息,该表征接收状态的信息为表征接收成功的信息。In the second embodiment, after sending the message content to the network client corresponding to the user account, if the network client corresponding to the user account receives the message content, the feedback characterizes the reception Status information, the information characterizing the reception status is information characterizing successful reception.
将所述消息内容发送给所述用户账号所对应的网络客户端之后,但由于所述用户账号所对应的网络客户端设置了拒绝接收消息,或者由于所述消息内容的格式不正确导致所述用户账号所对应的网络客户端不能正确解析等,导致所述用户账号所对应的网络客户端接收失败,并且在确定接收失败之后,该网络客户端反馈表征接收状态的信息,该表征接收状态的信息为表征接收失败的信息。After sending the message content to the network client corresponding to the user account, but the network client corresponding to the user account is set to refuse to receive the message, or the format of the message content is incorrect The network client corresponding to the user account cannot be parsed correctly, etc., resulting in failure of the network client corresponding to the user account to receive, and after determining that the reception fails, the network client feeds back information indicative of the reception status, which The information is information characterizing the failure of reception.
由此,如果在预设时间内接收的所述用户账号所对应的网络客户端反馈的表征接收状态的信息为表征接收成功的信息,则判断所述用户账号所对应的网络客户端成功接收到所述消息内容;如果在预设时间内接收的所述用户账号所对应的网络客户端反馈的表征接收状态的信息为表征接收失败的信息,或如果在预设时间内没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则判断所述用户账号所对应的网络客户端未能成功接收到所述消息内容。Therefore, if the information indicative of the reception status fed back by the network client corresponding to the user account received within a preset time is information indicative of successful reception, it is determined that the network client corresponding to the user account has successfully received The content of the message; if the information indicative of the reception status fed back by the network client corresponding to the user account received within the preset time is information indicative of failure to receive, or if the user is not received within the preset time The information representing the receiving status fed back by the network client corresponding to the account determines that the network client corresponding to the user account has not successfully received the message content.
需要说明的是,相比第二种实施方式,在第一种实施方式的实施过程中,所述用户账号所对应的网络客户端不需要反馈表征接收状态的信息,包括表征接收失败的信息。It should be noted that, compared to the second embodiment, during the implementation of the first embodiment, the network client corresponding to the user account does not need to feed back information indicative of the reception status, including information indicative of reception failure.
第三种实施方式,检测所述用户账号是否在线;若在线,则判断所述用户账号所对应的网络客户端成功接收到所述消息内容;若不在线,则判断所述用户账号所对应的网络客户端未能成功接收到所述消息内容。In a third implementation manner, it is detected whether the user account is online; if it is online, it is determined that the network client corresponding to the user account successfully receives the message content; if it is not online, it is determined that the user account corresponds to The network client fails to successfully receive the message content.
在将所述消息内容发送给所述用户账号所对应的网络客户端之后,检测所述用户账号是否在线,若在线,则判断所述用户账号所对应的网络客户端成功接收到所述消息内容;若不在线,则判断所述用户账号所对应的网络客户端未能成功接收到所述消息内容。After sending the message content to the network client corresponding to the user account, it is detected whether the user account is online, and if it is online, it is determined that the network client corresponding to the user account successfully receives the message content ; If it is not online, it is determined that the network client corresponding to the user account has not successfully received the message content.
检测所述用户账号是否在线的实施方式,可以参照上述步骤S302中检测所述用户账号是否在线的实施方式,在此不进行赘述。For an implementation manner of detecting whether the user account is online, reference may be made to the implementation manner of detecting whether the user account is online in step S302 above, and details are not described herein again.
实际应用中,上述第三种实施方式可以与上述第一种实施方式或第二种实施方式同时应用。In practical applications, the above-mentioned third embodiment can be applied simultaneously with the above-mentioned first embodiment or second embodiment.
S304.  根据判断结果向所述消息代理返回相应的表征消息发送状态的信息。S304. According to the judgment result, return corresponding information characterizing the sending status of the message to the message agent.
在判断出所述用户账号所对应的网络客户端是否成功接收到所述消息内容之后,根据该判断结果向消息代理返回表征消息发送状态的信息。After judging whether the network client corresponding to the user account successfully receives the message content, according to the judgment result, information indicating the sending status of the message is returned to the message agent.
向消息代理返回表征消息发送状态的信息,可以包括多种实施方式,至少可以包括:Returning information characterizing the sending status of the message to the message broker may include various implementation manners, and may at least include:
第一种实施方式,若是,则向所述消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息;若否,则不向所述消息代理返回表征消息发送状态的信息,以使得所述消息代理通过短信平台将所述消息内容发送到所述消息内容所对应的移动终端号码。In the first embodiment, if it is, information indicating that the message content was successfully sent to the network client corresponding to the user account is returned to the message agent; if not, the characterization message is not returned to the message agent Information about the status, so that the message agent sends the message content to the mobile terminal number corresponding to the message content through the short message platform.
在判断出所述用户账号所对应的网络客户端成功接收到所述消息内容之后,则向所述消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息。After judging that the network client corresponding to the user account successfully receives the message content, it returns to the message agent information indicating that the message content was successfully sent to the network client corresponding to the user account.
在判断出所述用户账号所对应的网络客户端未能成功接收到所述消息内容之后,则不向所述消息代理返回表征消息发送状态的信息。After judging that the network client corresponding to the user account has not successfully received the message content, it does not return information indicating the message sending status to the message agent.
在向消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息之后,当消息代理接收到该表征消息发送状态的信息时,则确定消息内容已经通过公众号消息成功发送给了用户,从而不再向用户发送短信消息;当消息代理在预设时间内没有接收到表征消息发送状态的信息时,则确定消息内容没有通过公众号消息成功发送给用户,从而再通过短信平台将消息内容发送至与该消息内容所对应的移动终端号码,以使得用户可以及时接收到消息内容。After returning to the message agent information indicating that the message content was successfully sent to the network client corresponding to the user account, when the message agent receives the information indicating the message sending status, it is determined that the message content has passed the public account message Successfully sent to the user, so that no more SMS messages are sent to the user; when the message agent does not receive information characterizing the sending status of the message within a preset time, it is determined that the content of the message has not been successfully sent to the user through the public account message, and then The message content is sent to the mobile terminal number corresponding to the message content through the short message platform, so that the user can receive the message content in time.
第二种实施方式,若是,则向所述消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息;若否,则向所述消息代理返回表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,以使得所述消息代理通过短信平台将所述消息内容发送到所述消息内容所对应的移动终端号码;In a second implementation manner, if yes, information indicating that the message content was successfully sent to the network client corresponding to the user account is returned to the message agent; if not, characterization failed is returned to the message agent Sending the message content to the information of the network client corresponding to the user account, so that the message agent sends the message content to the mobile terminal number corresponding to the message content through a short message platform;
在判断出所述用户账号所对应的网络客户端成功接收到所述消息内容之后,则向所述消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息。After judging that the network client corresponding to the user account successfully receives the message content, it returns to the message agent information indicating that the message content was successfully sent to the network client corresponding to the user account.
在判断出所述用户账号所对应的网络客户端未能成功接收到所述消息内容之后,则向所述消息代理返回未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息。After judging that the network client corresponding to the user account has not successfully received the message content, it returns to the message agent that the message content has not been successfully sent to the network client corresponding to the user account Information.
在向消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息之后,当消息代理接收到该表征消息发送状态的信息时,则确定消息内容已经通过公众号消息成功发送给了用户,从而不再向用户发送短信消息;当消息代理接收到表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息时,或者当消息代理在预设时间内没有接收到表征消息发送状态的信息时,则确定消息内容没有通过公众号消息成功发送给用户,从而再通过短信平台将消息内容发送至与该消息内容所对应的移动终端号码,以使得用户可以及时接收到消息内容。After returning to the message agent information indicating that the message content was successfully sent to the network client corresponding to the user account, when the message agent receives the information indicating the message sending status, it is determined that the message content has passed the public account message Successfully sent to the user, so that the user is no longer sent a short message; when the message agent receives information indicating that the message content failed to be sent to the network client corresponding to the user account, or when the message agent is When no information characterizing the sending status of the message is received within the set time, it is determined that the content of the message is not successfully sent to the user through the public account message, and then the message content is sent to the mobile terminal number corresponding to the message content through the SMS platform, So that users can receive the message content in time.
需要说明的是,上述第一种实施方式与本第二种实施方式不同的是,第一种实施方式在判断出所述用户账号所对应的网络客户端未能成功接收到所述消息内容之后,既不向所述消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,也不向所述消息代理返回表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息。It should be noted that the first implementation manner described above is different from the second implementation manner in that the first implementation manner determines that the network client corresponding to the user account has not successfully received the message content. , Neither return information to the message agent that characterizes the successful sending of the message content to the network client corresponding to the user account, nor return to the message agent characterizing the failure to successfully send the message content to the Describe the information of the network client corresponding to the user account.
通过上述实施过程可知,如果公众服务器向用户发送的消息内容没有及时发送给用户,则会向消息代理反馈消息发送状态,以使得消息代理能及时通过短信平台向用户发送相应的消息内容,从而使得用户不会错过任何信息。并且,由于通过公众服务器发送消息通常具有零资费的特点,又由于公众服务器是在确定没有向用户成功发送消息时才会使得短信平台发送相关消息,因此,节省了服务商的运营成本。Through the above implementation process, it can be seen that if the content of the message sent by the public server to the user is not sent to the user in time, the message sending status will be fed back to the message agent, so that the message agent can send the corresponding message content to the user through the SMS platform in time, so that The user will not miss any information. In addition, since sending messages through the public server usually has the characteristics of zero tariff, and because the public server determines that the message is not successfully sent to the user, the SMS platform sends related messages, thus saving the service provider's operating costs.
五、另一种消息发送方法实施例5. Another embodiment of the message sending method
请参见图4,图4示出了本发明提供的另一种消息发送方法实施例的流程示意图。本实施例是结合了上述一种消息发送方法实施例以及一种消息转发方法实施例所形成的实施例,本实施例以该消息发送方法应用在图1所示的实施环境来举例说明,所述方法包括:Please refer to FIG. 4, which is a schematic flowchart of another message sending method embodiment provided by the present invention. This embodiment is an embodiment formed by combining the above-mentioned message sending method embodiment and a message forwarding method embodiment. This embodiment uses the message sending method applied in the implementation environment shown in FIG. 1 as an example to illustrate The methods described include:
S401.  消息代理接收待发送消息,所述待发送消息包括消息内容以及目标账号。S401. The message agent receives the message to be sent, and the message to be sent includes the message content and the target account.
S402.  消息代理向公众服务器发送公众号消息发送请求,所述公众号消息发送请求包括所述消息内容以及用户账号,以使得所述公众服务器将所述消息内容发送给所述用户账号所对应的网络客户端,所述用户账号是根据所述目标账号确定的。S402. The message agent sends a public account message sending request to the public server, the public account message sending request includes the message content and the user account, so that the public server sends the message content to the user account corresponding to In a network client, the user account is determined according to the target account.
相应地,公众服务器接收消息代理发送的所述公众号消息发送请求。Correspondingly, the public server receives the public number message sending request sent by the message agent.
S403.  所述公众服务器将所述消息内容发送给所述用户账号所对应的网络客户端。S403. The public server sends the message content to the network client corresponding to the user account.
S404.  所述公众服务器判断所述用户账号所对应的网络客户端是否成功接收到所述消息内容。S404. The public server determines whether the network client corresponding to the user account has successfully received the message content.
S405.  所述公众服务器根据判断结果向所述消息代理返回相应的表征消息发送状态的信息。S405. The public server returns corresponding information characterizing the sending status of the message to the message agent according to the judgment result.
具体包括:This includes:
第一种实施方式,若判断所述用户账号所对应的网络客户端成功接收到所述消息内容,则向所述消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息;若判断所述用户账号所对应的网络客户端未能成功接收到所述消息内容,则向所述消息代理返回表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,以使得所述消息代理通过短信平台将所述消息内容发送到所述消息内容所对应的移动终端号码;In a first implementation manner, if it is determined that the network client corresponding to the user account has successfully received the message content, it returns to the message agent that the message content has been successfully sent to the network corresponding to the user account Information about the client; if it is determined that the network client corresponding to the user account has not successfully received the message content, it returns to the message agent that the message content failed to be sent to the user account Information of the network client, so that the message agent sends the message content to the mobile terminal number corresponding to the message content through the SMS platform;
第二种实施方式,若判断所述用户账号所对应的网络客户端成功接收到所述消息内容,则向所述消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息;若判断所述用户账号所对应的网络客户端未能成功接收到所述消息内容,则不向所述消息代理返回表征消息发送状态的信息,以使得所述消息代理通过短信平台将所述消息内容发送到所述消息内容所对应的移动终端号码。In a second implementation manner, if it is determined that the network client corresponding to the user account has successfully received the message content, it returns to the message agent that the message content has been successfully sent to the network corresponding to the user account Information of the client; if it is determined that the network client corresponding to the user account has not successfully received the message content, information indicating the sending status of the message is not returned to the message agent, so that the message agent passes the SMS platform Send the message content to the mobile terminal number corresponding to the message content.
相应地,所述消息代理接收所述公众服务器返回的表征消息发送状态的信息。Correspondingly, the message agent receives the information returned by the public server that characterizes the sending status of the message.
S406.  所述消息代理根据所述公众服务器返回的表征消息发送状态的信息进行判断,若判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端,并执行步骤S407至步骤S408。S406. The message agent makes a judgment based on the information returned by the public server that characterizes the sending status of the message, if it is judged that the public server fails to send the message content to the network client corresponding to the user account, and Steps S407 to S408 are executed.
具体包括:This includes:
第一种实施方式,与上述步骤S405中所述第一种实施方式相对应的,所述公众服务器返回的表征消息发送状态的信息为表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则,若在预设时间内接收到所述公众服务器返回的表征消息发送状态的信息,则不执行下述步骤S407至步骤S408;若在预设时间内没有接收到所述公众服务器返回的表征消息发送状态的信息,则执行下述步骤S407至步骤S408。The first embodiment corresponds to the first embodiment described in step S405 above, and the information indicating the message sending status returned by the public server is corresponding to indicating that the message content is successfully sent to the user account Information of the web client of the web site, if the information representing the sending status of the message returned by the public server is received within the preset time, the following steps S407 to S408 are not performed; if the information is not received within the preset time If the information indicating the message sending status returned by the public server is described, the following steps S407 to S408 are performed.
第二种实施方式,与上述步骤S405中所述第二种实施方式相对应的,所述公众服务器返回的表征消息发送状态的信息为表征成功或未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则,若在预设时间内接收的该表征消息发送状态的信息为表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则不执行下述步骤S407至步骤S408;若在预设时间内接收的该表征消息发送状态的信息为表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,或若在预设时间内没有接收到所述公众服务器返回的表征消息发送状态的信息,则执行下述步骤S407至步骤S408。The second implementation mode, corresponding to the second implementation mode in step S405 above, the information returned by the public server that characterizes the sending status of the message is to indicate success or failure to send the content of the message to the Information about the network client corresponding to the user account, if the information indicative of the transmission status of the message received within a preset time is information indicating that the message content was successfully sent to the network client corresponding to the user account, then The following steps S407 to S408 are not performed; if the information indicating the transmission status of the message received within the preset time is information indicating that the message content has not been successfully sent to the network client corresponding to the user account, or If the information indicative of the message transmission status returned by the public server is not received within the preset time, the following steps S407 to S408 are executed.
S407.  所述消息代理确定所述消息内容所对应的移动终端号码。S407. The message agent determines the mobile terminal number corresponding to the message content.
S408.  所述消息代理向短信平台发送短信发送请求,所述短信发送请求包括所述消息内容以及所述移动终端号码,以使得所述短信平台在接收到所述短信发送请求时将所述消息内容发送到所述移动终端号码。S408. The message agent sends a short message sending request to a short message platform, the short message sending request includes the message content and the mobile terminal number, so that the short message platform sends the message when receiving the short message sending request The content is sent to the mobile terminal number.
上述提供的另一种消息发送方法实施例是结合上述一种消息发送方法实施例以及一种消息转发方法实施例所形成的,其具体实现原理、步骤和效果可详见相应的实施例,在此不再赘述。The other message sending method embodiment provided above is formed by combining the above message sending method embodiment and a message forwarding method embodiment. For specific implementation principles, steps and effects, please refer to the corresponding embodiments. This will not be repeated here.
此外,为实现上述目的,本发明还提供一种消息发送装置、消息发送设备或消息服务器,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的消息发送程序,所述消息发送程序被所述处理器执行时实现上述应用于消息代理的消息发送方法。In addition, in order to achieve the above object, the present invention also provides a message sending device, a message sending device, or a message server, including: a memory, a processor, and a message sending program stored on the memory and capable of running on the processor When the message sending program is executed by the processor, the above message sending method applied to the message broker is realized.
此外,为实现上述目的,本发明还提供一种消息转发装置、消息转发设备或公众服务器,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的消息转发程序,所述消息转发程序被所述处理器执行时实现上述应用于公众服务器的消息转发方法。In addition, in order to achieve the above object, the present invention also provides a message forwarding device, message forwarding device, or public server, including: a memory, a processor, and a message forwarding program stored on the memory and executable on the processor When the message forwarding program is executed by the processor, the above message forwarding method applied to a public server is implemented.
此外,为实现上述目的,本发明还提供一种消息发送系统,所述消息发送系统包括:如上所述的消息发送装置、消息发送设备或消息服务器以及如上所述的消息转发装置、消息转发设备或公众服务器。In addition, to achieve the above object, the present invention also provides a message sending system, the message sending system includes: the message sending device, the message sending device or the message server as described above, and the message forwarding device, the message forwarding device as described above Or public server.
此外,为实现上述目的,本发明还提供了一种用于消息发送的存储介质,其特征在于,所述存储介质中存储有程序,所述程序用于实现如上所述应用于消息代理的消息发送方法。In addition, in order to achieve the above object, the present invention also provides a storage medium for message transmission, characterized in that the storage medium stores a program, and the program is used to implement the message applied to the message broker as described above Delivery method.
此外,为实现上述目的,本发明还提供了一种用于消息转发的存储介质,其特征在于,所述存储介质中存储有程序,所述程序用于实现如上所述应用于公众服务器的消息转发方法。In addition, in order to achieve the above object, the present invention also provides a storage medium for message forwarding, characterized in that the storage medium stores a program, and the program is used to implement the message applied to the public server as described above Forwarding method.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括上述要素的物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is any such actual relationship or order. Moreover, the terms "including", "including" or any other variant thereof are intended to cover non-exclusive inclusions, so that an article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, Or it also includes elements inherent to such articles or equipment. Without further restrictions, the element defined by the sentence "include one ..." does not exclude that there are other identical elements in the article or device that includes the above elements.
上述所公开的实施例的说明,使本领域专业技术人员能够实现或使用本发明,但并非因此限制本发明,凡是利用本发明说明书及附图内容所作的任何修改、等效结构或等效流程变换、改进等,或直接或间接运用在其他相关的技术领域,均应包含在本发明的保护范围内。The description of the embodiments disclosed above enables those skilled in the art to implement or use the present invention, but does not limit the present invention. Any modification, equivalent structure or equivalent process made by using the description and drawings of the present invention Transformations, improvements, etc., or direct or indirect application in other related technical fields should be included in the protection scope of the present invention.
工业实用性Industrial applicability
经由上述的技术方案可知,在本发明技术方案中,用户如果无法正常接收到公众服务器所发送的消息内容,也可以通过短信平台及时的接收到该消息内容,使得用户不会错过任何信息。并且,由于通过公众服务器发送消息通常具有零资费的特点,又由于是在确定公众服务器没有向用户成功发送消息时才会通过短信平台发送消息,而不是任何时刻都使得短信平台发送消息,因此,节省了运营成本。It can be known from the above technical solution that, in the technical solution of the present invention, if the user cannot normally receive the message content sent by the public server, the user can also receive the message content in time through the SMS platform, so that the user will not miss any information. And, because sending messages through the public server usually has the characteristics of zero tariffs, and because it is determined that the public server has not successfully sent a message to the user, the message is sent through the SMS platform, rather than causing the SMS platform to send a message at any time. Save operating costs.
序列表自由内容Sequence listing free content
在此处键入序列表自由内容描述段落。Type the sequence listing free content description paragraph here.

Claims (14)

1.一种消息发送方法,其特征在于,应用于消息代理,所述方法包括: 接收待发送消息,所述待发送消息包括消息内容以及目标账号; 向公众服务器发送公众号消息发送请求,所述公众号消息发送请求包括所述消息内容以及用户账号,以使得所述公众服务器将所述消息内容发送给所述用户账号所对应的网络客户端,所述用户账号是根据所述目标账号确定的; 若判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端,则执行下述步骤: 确定所述消息内容所对应的移动终端号码; 向短信平台发送短信发送请求,所述短信发送请求包括所述消息内容以及所述移动终端号码,以使得所述短信平台将所述消息内容发送到所述移动终端号码。1. A message sending method, characterized in that it is applied to a message broker, the method includes: receiving a message to be sent, the message to be sent includes a message content and a target account; sending a public account message sending request to a public server The public account message sending request includes the message content and the user account, so that the public server sends the message content to the network client corresponding to the user account, and the user account is determined according to the target account of; If it is judged that the public server fails to send the message content to the network client corresponding to the user account, the following steps are performed: determining the mobile terminal number corresponding to the message content; sending a short message to the short message platform A sending request, the short message sending request includes the message content and the mobile terminal number, so that the short message platform sends the message content to the mobile terminal number.
2.根据权利要求1所述的消息发送方法,其特征在于,所述向公众服务器发送公众号消息发送请求之前还包括: 检测所述公众服务器是否在线; 若在线,则执行所述向公众服务器发送公众号消息发送请求的步骤; 若不在线,则执行所述确定所述消息内容所对应的移动终端号码的步骤。2. The message sending method according to claim 1, wherein before sending the request for sending a public account message to a public server, the method further comprises: Detecting whether the public server is online; if online, performing the step of sending a public account message sending request to the public server; if not online, performing the step of determining the mobile terminal number corresponding to the content of the message.
3.根据权利要求1所述的消息发送方法,其特征在于,所述所述用户账号是根据所述目标账号确定的包括: 将所述目标账号作为所述用户账号;或者, 将预设的对应关系中与所述目标账号对应的用户账号确定为所述用户账号。3. The message sending method according to claim 1, wherein the user account is determined according to the target account and includes: Use the target account as the user account; or, determine the user account corresponding to the target account in the preset correspondence relationship as the user account.
4.根据权利要求1所述的消息发送方法,其特征在于,所述判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端包括: 接收所述公众服务器返回的表征消息发送状态的信息,该表征消息发送状态的信息为表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则,若在预设时间内没有接收到所述公众服务器返回的表征消息发送状态的信息,则判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端;或者, 接收所述公众服务器返回的表征消息发送状态的信息,该表征消息发送状态的信息为表征成功或未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,则,若在预设时间内接收的该表征消息发送状态的信息为表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,或若在预设时间内没有接收到所述公众服务器返回的表征消息发送状态的信息,则判断所述公众服务器未能成功将所述消息内容发送给所述用户账号所对应的网络客户端。The message sending method according to claim 1, wherein the judging that the public server has failed to send the message content to the network client corresponding to the user account includes: Receiving information indicative of the sending status of the message returned by the public server, the information indicative of the sending status of the message being information indicative of successfully sending the content of the message to the network client corresponding to the user account, if the preset time If no information characterizing the sending status of the message returned by the public server is received, it is determined that the public server failed to successfully send the message content to the network client corresponding to the user account; or, the public The information indicating the message sending status returned by the server is information indicating that the message sending status is successfully or unsuccessfully sent to the network client corresponding to the user account, if the preset time The information received within the message indicating the sending status of the message is information indicating that the message content has not been successfully sent to the network client corresponding to the user account, or if it has not been received by the public server within a preset time Information characterizing the sending status of the message, it is judged that the public server is unsuccessful Sending the message content to the network client corresponding to the user account.
5.根据权利要求1所述的消息发送方法,其特征在于,所述确定所述消息内容所对应的移动终端号码包括: 所述目标账号为移动终端号码,确定所述目标账号为所述消息内容所对应的移动终端号码;或者, 将预设的对应关系中与所述目标账号对应的移动终端号码确定为所述消息内容所对应的移动终端号码;或者, 所述待发送消息中还包括移动终端号码,将所述还包括的移动终端号码确定为所述消息内容所对应的移动终端号码。5. The message sending method according to claim 1, wherein the determining of the mobile terminal number corresponding to the content of the message comprises: the target account number is a mobile terminal number, and the target account number is determined to be the message The mobile terminal number corresponding to the content; or, determining the mobile terminal number corresponding to the target account in the preset correspondence as the mobile terminal number corresponding to the message content; or, the message to be sent also includes The mobile terminal number determines the mobile terminal number that is also included as the mobile terminal number corresponding to the message content.
6.根据权利要求1所述的消息发送方法,其特征在于,所述向短信平台发送短信发送请求,包括: 预先确定所述短信平台的预设接口; 根据所述预设接口生成短信发送请求,所述短信发送请求包括所述消息内容以及所述移动终端号码; 将所述短信发送请求发送到所述预设接口。6. The message sending method according to claim 1, wherein the sending a short message sending request to the short message platform comprises: pre-determining a preset interface of the short message platform; generating a short message sending request according to the preset interface , The short message sending request includes the message content and the mobile terminal number; Sending the short message sending request to the preset interface.
7.一种消息转发方法,其特征在于,应用于公众服务器,所述方法包括: 接收消息代理发送的公众号消息发送请求,所述公众号消息发送请求包括消息内容以及用户账号; 将所述消息内容发送给所述用户账号所对应的网络客户端; 判断所述用户账号所对应的网络客户端是否成功接收到所述消息内容; 若是,则向所述消息代理返回表征成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息; 若否,则向所述消息代理返回表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,以使得所述消息代理通过短信平台将所述消息内容发送到所述消息内容所对应的移动终端号码;或者,若否,则不向所述消息代理返回表征消息发送状态的信息,以使得所述消息代理通过短信平台将所述消息内容发送到所述消息内容所对应的移动终端号码。7. A message forwarding method, characterized in that it is applied to a public server, the method includes: Receiving a public account message sending request sent by a message agent, where the public account message sending request includes a message content and a user account; sending the message content to a network client corresponding to the user account; Determine whether the network client corresponding to the user account successfully receives the message content; if so, return information indicating that the message content was successfully sent to the network client corresponding to the user account to the message agent; If not, return information indicating that the message content has not been successfully sent to the network client corresponding to the user account to the message agent, so that the message agent sends the message content to the message agent through the SMS platform The mobile terminal number corresponding to the content of the message; or, if not, the information representative of the message sending status is not returned to the message agent, so that the message agent sends the message content to the message content through the SMS platform The corresponding mobile terminal number.
8.根据权利要求7所述的消息转发方法,其特征在于,所述将所述消息内容发送给所述用户账号所对应的网络客户端之前还包括: 检测所述用户账号是否在线; 若在线,则执行将所述消息内容发送给所述用户账号所对应的网络客户端的步骤; 若不在线,则向所述消息代理返回表征未能成功将所述消息内容发送给所述用户账号所对应的网络客户端的信息,并且不执行将所述消息内容发送给所述用户账号所对应的网络客户端的步骤。8. The message forwarding method according to claim 7, wherein before sending the message content to the network client corresponding to the user account further comprises: detecting whether the user account is online; if online , Execute the step of sending the message content to the network client corresponding to the user account; If it is not online, it returns to the message agent information indicating that the message content has not been successfully sent to the network client corresponding to the user account, and does not perform sending the message content to the user account. Of the web client.
9.根据权利要求7所述的消息转发方法,其特征在于,所述判断所述用户账号所对应的网络客户端是否成功接收到所述消息内容包括: 接收所述用户账号所对应的网络客户端反馈的表征接收状态的信息,该表征接收状态的信息为表征接收成功的信息,则,若在预设时间内接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则为是;若在预设时间内没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则为否;或者, 接收所述用户账号所对应的网络客户端反馈的表征接收状态的信息,该表征接收状态的信息为表征接收成功或接收失败的信息,则,若在预设时间内接收的该表征接收状态的信息为表征接收成功的信息,则为是;若在预设时间内接收的该表征接收状态的信息为表征接收失败的信息,或若在预设时间内没有接收到所述用户账号所对应的网络客户端反馈的表征接收状态的信息,则为否;或者, 检测所述用户账号是否在线;若在线,则为是;若不在线,则为否。9. The message forwarding method according to claim 7, wherein the judging whether the network client corresponding to the user account successfully receives the message content comprises: receiving the network client corresponding to the user account The information indicative of the reception status fed back by the terminal, and the information indicative of the reception status is the information indicative of the successful reception, then, if the information indicative of the reception status fed back by the network client corresponding to the user account is received within a preset time, Yes, if it is not received within the preset time, the information indicating the receiving status fed back by the network client corresponding to the user account is not received; or, Receiving information indicative of the reception status fed back by the network client corresponding to the user account, and the information indicative of the reception status is information indicative of successful reception or failure to receive, then, if the characteristic reception status is received within a preset time The information is information indicative of successful reception, yes; if the information indicative of reception status received within a preset time is information indicative of reception failure, or if the corresponding user account is not received within the preset time The information from the network client that characterizes the reception status is no; or, Detect whether the user account is online; if it is online, it is yes; if it is not online, it is no.
10.根据权利要求8或9所述的消息发送方法,其特征在于,所述检测所述用户账号是否在线包括: 向所述用户账号所对应的网络客户端发送检测信息;若接收到所述用户账号所对应的网络客户端的反馈响应,则判断所述用户账号在线;若在一定时间内没有接收到所述用户账号所对应的网络客户端的反馈响应,则判断所述用户账号不在线;或者, 根据所述用户账号在账号在线状态记录中查询所述用户账号的在线状态,并根据查询结果确定所述用户账号是否在线。10. The message sending method according to claim 8 or 9, wherein the detecting whether the user account is online comprises: Sending detection information to the web client corresponding to the user account; if a feedback response from the web client corresponding to the user account is received, it is determined that the user account is online; if the user is not received within a certain time The feedback response of the network client corresponding to the account determines that the user account is not online; or, queries the online status of the user account in the account online status record according to the user account, and determines the user account according to the query result Whether online.
11.一种消息发送装置、消息发送设备或消息服务器,其特征在于,包括:存储器、处理器,所述处理器用于运行所述存储器所保存的程序,所述程序运行时执行如权利要求1至6中任一项所述的消息发送方法。11. A message sending device, message sending device, or message server, characterized by comprising: a memory and a processor, the processor is used to run a program stored in the memory, and the program is executed as claimed in claim 1 when the program is running. The message sending method described in any one of 6.
12.一种消息转发装置、消息转发设备或公众服务器,其特征在于,包括:存储器、处理器,所述处理器用于运行所述存储器所保存的程序,所述程序运行时执行如权利要求7至10中任一项所述的消息转发方法。12. A message forwarding device, a message forwarding device, or a public server, characterized by comprising: a memory and a processor, the processor is used to run a program stored in the memory, and the program is executed as claimed in claim 7 when the program is running The message forwarding method according to any one of 10.
13.一种消息发送系统,其特征在于,所述消息发送系统包括:如权利要求11所述的消息发送装置、消息发送设备或消息服务器以及如权利要求12所述的消息转发装置、消息转发设备或公众服务器。13. A message sending system, characterized in that the message sending system comprises: the message sending device, the message sending device, or the message server according to claim 11, and the message forwarding device, message forwarding according to claim 12 Device or public server.
14.一种存储介质,其特征在于,所述存储介质中存储有程序,所述程序用于实现如权利要求1至10中任一项所述的方法。14. A storage medium, characterized in that a program is stored in the storage medium, and the program is used to implement the method according to any one of claims 1 to 10.
 A
PCT/CN2018/125947 2018-10-09 2018-12-30 Message sending method, device and system WO2020073538A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811174063.3A CN108965115B (en) 2018-10-09 2018-10-09 Message sending method, device and system
CN201811174063.3 2018-10-09

Publications (1)

Publication Number Publication Date
WO2020073538A1 true WO2020073538A1 (en) 2020-04-16

Family

ID=64472919

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/125947 WO2020073538A1 (en) 2018-10-09 2018-12-30 Message sending method, device and system

Country Status (2)

Country Link
CN (1) CN108965115B (en)
WO (1) WO2020073538A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347939B (en) * 2018-10-09 2021-05-14 刘高峰 Message sending method and device and public platform
CN108965115B (en) * 2018-10-09 2021-05-14 刘高峰 Message sending method, device and system
CN109995879A (en) * 2019-04-15 2019-07-09 深圳壹账通智能科技有限公司 Device, method and the storage medium of message push
CN110855548A (en) * 2019-10-18 2020-02-28 深圳前海微众银行股份有限公司 Message pushing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014204259A1 (en) * 2013-06-20 2014-12-24 Eom Myung Yong Method and server for transmitting notice message, and method of managing group chatting message
CN105869094A (en) * 2016-03-21 2016-08-17 腾讯科技(深圳)有限公司 Medical consultation system, method and device
CN106470149A (en) * 2015-08-20 2017-03-01 腾讯科技(深圳)有限公司 Message method and device
CN107592618A (en) * 2017-08-31 2018-01-16 咪咕动漫有限公司 A kind of crosstalk reminding method, device and storage medium
CN108965115A (en) * 2018-10-09 2018-12-07 刘高峰 A kind of message method, apparatus and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252721A (en) * 2007-07-24 2008-08-27 杭州义盛祥通信技术有限公司 Method for mobile terminal equipment to send message
KR101530550B1 (en) * 2009-10-06 2015-06-22 삼성전자 주식회사 Communication system, apparatus and method for providing call state thereof
CN104378341B (en) * 2013-12-25 2016-04-20 腾讯科技(深圳)有限公司 Template acquisition methods, template provider method, Apparatus and system
CN104378282B (en) * 2013-12-25 2016-08-24 腾讯科技(深圳)有限公司 Message method, message forwarding method, Apparatus and system
CN105025448A (en) * 2014-04-22 2015-11-04 中国电信股份有限公司 IM information pushing method and system, server and platform
CN104038910A (en) * 2014-06-20 2014-09-10 中国联合网络通信集团有限公司 Method and system for processing instant messages
CN106874983A (en) * 2017-02-24 2017-06-20 何建超 A kind of Intelligent Notification card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014204259A1 (en) * 2013-06-20 2014-12-24 Eom Myung Yong Method and server for transmitting notice message, and method of managing group chatting message
CN106470149A (en) * 2015-08-20 2017-03-01 腾讯科技(深圳)有限公司 Message method and device
CN105869094A (en) * 2016-03-21 2016-08-17 腾讯科技(深圳)有限公司 Medical consultation system, method and device
CN107592618A (en) * 2017-08-31 2018-01-16 咪咕动漫有限公司 A kind of crosstalk reminding method, device and storage medium
CN108965115A (en) * 2018-10-09 2018-12-07 刘高峰 A kind of message method, apparatus and system

Also Published As

Publication number Publication date
CN108965115B (en) 2021-05-14
CN108965115A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US10425375B2 (en) Message sending method, apparatus, and system, and server
US10063547B2 (en) Authorization authentication method and apparatus
WO2020073538A1 (en) Message sending method, device and system
EP2383946B1 (en) Method, server and system for providing resource for an access user
US7065341B2 (en) User authentication apparatus, controlling method thereof, and network system
US10476833B2 (en) Warning method and apparatus, and processing server
CN101990183B (en) Method, device and system for protecting user information
EP3402136B1 (en) Information interaction method, client and device
CN107241336B (en) Identity verification method and device
US10432581B2 (en) Network identification as a service
EP1764972A1 (en) Authentication and authorization architecture for an access gateway
US9973513B2 (en) Method and apparatus for communication number update
JP2007264835A (en) Authentication method and system
WO2021027600A1 (en) Single log-in method, apparatus and device, and computer-readable storage medium
CN103905399A (en) Account registration management method and apparatus
WO2012055134A1 (en) Method and system for group sending short message
CN108933789B (en) Method for preventing personal information leakage and third-party application server
CN109525588B (en) Verification code processing method, device and system
CN105230091A (en) Make a call in a communications system
CN109274699A (en) Method for authenticating, device, server and storage medium
WO2020073537A1 (en) Message sending method, device, and public platform
CN110378494B (en) Remote facing slip method, remote facing slip device, storage medium and computer equipment
EP1764971B1 (en) Third party access gateway for telecommunications services
CN112953951B (en) User login verification and security detection method and system based on domestic CPU
CN115664761A (en) Single sign-on method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18936698

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18936698

Country of ref document: EP

Kind code of ref document: A1