Message transmission method and device, server and storage medium

The forwarding of messages through the third server solves the problem that the consultant cannot receive replies from the merchant’s customer service after leaving, and realizes the function of receiving messages even if he leaves the application, improving service quality and user experience.

CN119496756APending Publication Date: 2025-02-21TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311056534.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-21
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

In the merchant customer service program, the consultant cannot receive reply messages from the merchant customer service after leaving, resulting in a decline in service quality and user experience.

Method used

The message is forwarded from the first server of the first application to the second server of the second application through the third server of the second application, and send a message on the third client of the second application based on the identification information of the message receiving object, so that the consulting object can receive it reply.

Benefits of technology

Ensure that the consultant can receive messages from the merchant customer service even if he leaves the merchant application, improving service quality and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496756A_ABST
    Figure CN119496756A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a message transmission method and device, a server and a storage medium, and relates to the technical field of computers.The method is executed by a first server and comprises the steps that first information sent by a first client of a first application is received; determining a current connection state of a second client of the first application; and under the condition that the current connection state is the first state, sending the first information to a second server of a second application through a third server, so that the second server sends the first message to a third client of the second application based on a first object identifier of a message receiving object of the first message, the first server and the second server perform information interaction through the third server; according to the embodiment of the invention, the situation that the message receiving object cannot receive the message sent by the first client of the first application after the second client of the first application is disconnected with the server of the first application can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology. Specifically, the present application relates to a message transmission method, device, server and storage medium. Background Art

[0002] With the development of information technology, online businesses such as online consultation and online shopping have also developed. People can have conversations with merchants online to consult about services or products, etc. However, in some cases, after asking some questions on the merchant customer service interface, people may leave the application before waiting for the merchant customer service staff to reply. In this case, even if the merchant customer service staff replies to these questions, people may still accept these replies, which not only reduces the merchant's service quality, but also reduces the consulting experience;

[0003] For example, in the mini program scenario, some merchants use self-developed customer service programs to exchange information with the consulting objects, that is, the merchant's customer service and the consulting objects exchange information through the merchant's own background. However, in some cases, the consulting object leaves the self-developed customer service program after consulting in the self-developed customer service program, and the consulting object will not be able to receive the reply message from the merchant's customer service. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, server and storage medium for transmitting messages that allow the consulting object to still receive messages replied by the merchant customer service after leaving the self-developed customer service program. In order to achieve the above purpose, the technical solutions provided by the embodiments of the present application are as follows:

[0005] In a first aspect, a message transmission method is provided, the method being executed by a first server of a first application, comprising:

[0006] Receiving first information sent by a first client of a first application, wherein the first information includes a first message to be sent;

[0007] Determine a current connection state of a second client of the first application, where the current connection state is a first state or a second state, where the first state indicates that the connection between the second client and the first server is disconnected, and the second state indicates that the connection between the second client and the first server is not disconnected;

[0008] When the current connection state is the first state, the first information is sent to the second server of the second application through the third server, so that the second server sends the first message to the third client of the second application based on the first object identifier of the message receiving object of the first message, and the first server and the second server exchange information through the third server;

[0009] The second client and the third client are clients of a message receiving object of the first message, and the first object identifier is an object identifier of the message receiving object in the second application.

[0010] In a possible implementation, if the connection state of the second client of the first application is changed from the second state to the first state, the method further includes:

[0011] The preset message is sent to the second server through the third server, so that the second server sends the preset message to the third client based on the first object identifier of the message receiving object of the preset message.

[0012] In another possible implementation manner, the first object identifier of the message receiving object is obtained by at least one of the following methods:

[0013] Acquire a first object identifier of the message receiving object from the first information;

[0014] The second object identifier of the message receiving object in the first application is obtained, and the first object identifier of the message receiving object is determined based on a mapping relationship between the first object identifier and the second object identifier and the second object identifier of the message receiving object.

[0015] In a second aspect, a message transmission device is provided, including:

[0016] A first receiving module, configured to receive first information sent by a first client of a first application, wherein the first information includes a first message to be sent;

[0017] a determination module, configured to determine a current connection state of a second client of a first application, wherein the current connection state is a first state or a second state, wherein the first state indicates that the connection between the second client and the first server is disconnected, and the second state indicates that the connection between the second client and the first server is not disconnected;

[0018] A first sending module is used to send the first information to the second server of the second application through the third server when the current connection state is the first state, so that the second server sends the first message to the third client of the second application based on the first object identifier of the message receiving object of the first message, and the first server and the second server exchange information through the third server;

[0019] The second client and the third client are clients of a message receiving object of the first message, and the first object identifier is an object identifier of the message receiving object in the second application.

[0020] In a possible implementation manner, when the connection state of the second client of the first application changes from the second state to the first state, the device further includes:

[0021] The second sending module is used to send the preset message to the second server through the third server, so that the second server sends the preset message to the third client based on the first object identifier of the message receiving object of the preset message.

[0022] In another possible implementation manner, the first object identifier of the message receiving object is obtained by at least one of the following methods:

[0023] Acquire a first object identifier of the message receiving object from the first information;

[0024] The second object identifier of the message receiving object in the first application is obtained, and the first object identifier of the message receiving object is determined based on a mapping relationship between the first object identifier and the second object identifier and the second object identifier of the message receiving object.

[0025] In a third aspect, an embodiment of the present application further provides a first server, the first terminal comprising a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement a message transmission method provided in any possible implementation manner of the first aspect.

[0026] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the message transmission method provided in any possible implementation manner of the first aspect is implemented.

[0027] In a fifth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the message transmission method provided in any possible implementation manner of the first aspect.

[0028] In a sixth aspect, a message transmission method is provided, the method being executed by a third server, comprising:

[0029] receiving first information sent by a first server, where the first information is received by the first server through a first client of a first application, and the first information is sent when the first server detects that a current connection state of a second client of the first application is a first state, and the first information includes a first message to be sent, and the first state indicates that the second client is disconnected from the first server;

[0030] Sending the first message to a second server of a second application, so that the second server sends the first message to a third client of the second application based on a first object identifier of a message receiving object of the first message, and the first server and the second server exchange information through the third server;

[0031] The second client and the third client are clients of a message receiving object of the first message, and the first object identifier is an object identifier of the message receiving object in the second application.

[0032] In a possible implementation, the method further includes any of the following:

[0033] receiving a preset message sent by the first server, and sending the preset message to a second server of the second application, so that the second server sends the preset message to a third client of the second application based on a first object identifier of a message receiving object of the preset message, wherein the preset message is sent when the first server detects that the connection state of the second client changes from a second state to a first state, and the second state indicates that the connection between the second client and the first server is not disconnected;

[0034] When a connection disconnection indication message sent by the first server is received, a preset message is sent to the second server of the second application, so that the second server sends the preset message to the third client of the second application based on the first object identifier of the message receiving object of the preset message, and the connection disconnection indication message is used to indicate that the second client is disconnected from the first server.

[0035] In another possible implementation manner, the sending the first information to the second server of the second application includes:

[0036] If the preset condition is met, sending the first information to the second server of the second application;

[0037] The preset condition includes: detecting the authorization information of the message receiving object through the second client, or satisfying at least one of the preset requirements;

[0038] The authorization information is used to authorize receiving a message from the first application through the second client.

[0039] In another possible implementation manner, the preset condition includes that the first message satisfies a preset condition;

[0040] If the first message does not meet the preset requirement, the method further includes any of the following:

[0041] Adjust the first message according to the preset requirement, and send the first adjusted information to the second server based on the first object identifier of the message receiving object of the first message;

[0042] A prompt message is sent to the first server, and based on the first object identifier of the message receiving object of the first message, a second adjusted message re-received from the first server is sent to the second server, where the second adjusted message is obtained by the first server after adjustment according to the prompt message, and the prompt message is used to prompt the first server to adjust the first message.

[0043] In another possible implementation, the method further includes:

[0044] When the reply message sent by the third client is received through the second server, the reply message is sent to the first server, so that the first server sends the reply message to the first client, and the reply message is a reply message to the first message.

[0045] In another possible implementation, the reply message carries a first object identifier of the object to which the message is sent;

[0046] The sending the reply message to the first server includes:

[0047] Determine the URL of the first application corresponding to the first object identifier based on a mapping relationship between the object identifier and the uniform resource locator URL of the first application and the first object identifier;

[0048] Based on the URL of the first application, the reply message is sent to the first server.

[0049] In another possible implementation, the mapping relationship is obtained in the following manner:

[0050] In response to the URL configuration operation of the message management object, displaying the URL configuration page;

[0051] The mapping relationship between the first object identifier configured in the message management object and the URL of the first application is obtained through the URL configuration page, and the mapping relationship is stored.

[0052] In another possible implementation, the method further includes:

[0053] receiving second information and a session message sent by the first server, wherein the second information includes a second message to be sent, the second information is sent by the first server when the current connection state of the second client changes from the first state to the second state and then changes back to the first state, and the session message is a session message between the second client and the first client after the connection state of the second client changes from the first state to the second state and before it changes back to the first state;

[0054] The second message and the session message are sent to a third client of the second application through the second server.

[0055] In a seventh aspect, a message transmission device is provided, including:

[0056] a second receiving module, configured to receive first information sent by a first server, the first information being received by the first server through a first client of a first application, and the first information being sent when the first server detects that a current connection state of a second client of the first application is in a first state, the first information including a first message to be sent, and the first state indicating that a connection between the second client and the first server is disconnected;

[0057] A third sending module is used to send the first message to the second server of the second application, so that the second server sends the first message to the third client of the second application based on the first object identifier of the message receiving object of the first message, and the first server and the second server exchange information through the third server;

[0058] The second client and the third client are clients of a message receiving object of the first message, and the first object identifier is an object identifier of the message receiving object in the second application.

[0059] In a possible implementation manner, the device further includes a first preset message processing module or a second preset message processing module, wherein:

[0060] The first preset message processing module is configured to receive a preset message sent by the first server, and send the preset message to a second server of the second application, so that the second server sends the preset message to a third client of the second application based on a first object identifier of a message receiving object of the preset message, wherein the preset message is sent when the first server detects that a connection state of the second client changes from a second state to a first state, and the second state indicates that the connection between the second client and the first server is not disconnected;

[0061] The second preset message processing module is used to send the preset message to the second server of the second application when receiving the connection disconnection indication message sent by the first server, so that the second server can send the preset message to the third client of the second application based on the first object identifier of the message receiving object of the preset message, and the connection disconnection indication message is used to indicate that the second client is disconnected from the first server.

[0062] In another possible implementation manner, when the third sending module sends the first information to the second server of the second application, it is specifically configured to:

[0063] When a preset condition is met, sending the first information to a second server of a second application;

[0064] The preset condition includes: detecting the authorization information of the message receiving object through the second client, or satisfying at least one of the preset requirements;

[0065] The authorization information is used to authorize receiving a message from the first application through the second client.

[0066] In another possible implementation manner, the preset condition includes that the first message satisfies a preset condition;

[0067] When the first message does not meet the preset requirement, the device further includes: a fourth sending module or a fifth sending module, wherein:

[0068] The fourth sending module is used to adjust the first message according to the preset requirement, and send the first adjusted information to the second server based on the first object identifier of the message receiving object of the first message;

[0069] The fifth sending module is used to send the prompt information to the first server, and based on the first object identifier of the message receiving object of the first message, send the second adjusted message re-received from the first server to the second server, wherein the second adjusted message is obtained by the first server after adjustment according to the prompt information, and the prompt information is used to prompt the first server to adjust the first message.

[0070] In another possible implementation, the device further includes: a sixth sending module, wherein:

[0071] The sixth sending module is used to send the reply message to the first server when receiving the reply message sent by the third client through the second server, so that the first server sends the reply message to the first client, and the reply message is a reply message to the first message.

[0072] In another possible implementation, the reply message carries a first object identifier of the object to which the message is sent;

[0073] The sixth sending module, when sending the reply message to the first server, is specifically used to:

[0074] Determine the URL of the first application corresponding to the first object identifier based on a mapping relationship between the object identifier and the uniform resource locator URL of the first application and the first object identifier;

[0075] Based on the URL of the first application, the reply message is sent to the first server.

[0076] In another possible implementation, the mapping relationship is obtained in the following manner:

[0077] In response to the URL configuration operation of the message management object, displaying the URL configuration page;

[0078] The mapping relationship between the first object identifier configured in the message management object and the URL of the first application is obtained through the URL configuration page, and the mapping relationship is stored.

[0079] In another possible implementation, the device further includes: a third receiving module and a seventh sending module, wherein:

[0080] The third receiving module is used to receive second information and a session message sent by the first server, wherein the second information includes a second message to be sent, the second information is sent by the first server when the current connection state of the second client changes from the first state to the second state and then changes back to the first state, and the session message is a session message between the second client and the first client after the connection state of the second client changes from the first state to the second state and before it changes back to the first state;

[0081] The seventh sending module is used to send the second message and the session message to the third client of the second application through the second server.

[0082] In the eighth aspect, an embodiment of the present application further provides a third server, the first terminal includes a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the message transmission method provided by any possible implementation method of the fifth aspect.

[0083] In the ninth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the message transmission method provided by any possible implementation method of the fifth aspect is implemented.

[0084] In the tenth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the message transmission method provided by any possible implementation method of the fifth aspect.

[0085] The beneficial effects of the technical solution provided by the embodiment of the present application are as follows:

[0086] The embodiments of the present application provide a message transmission method, device, server and storage medium. In the embodiments of the present application, after the first server of the first application receives the first information including the first message to be sent by the first client of the first application, if the second client of the first application and the first server are disconnected at this time, that is, the message receiving object leaves the first application at this time, then the first information is sent to the second server of the second application through the third server, so that the second server sends the first message to the third client of the second application based on the identification information of the message receiving object in the second application, so that the message receiving object can view the first message from the third client of the second application, thereby avoiding the situation where the message receiving object cannot receive the message sent by the first client of the first application after the second client of the first application is disconnected from the server of the first application. For example, the message sending object is the merchant customer service, that is, the first client of the first application is the first client corresponding to the merchant customer service, and the message receiving object is the consulting object, that is, the second client of the first application and the third client of the second application are the clients corresponding to the consulting object. In this way, it is also possible to avoid the situation where the consulting object cannot receive the merchant customer service message after leaving the merchant application, thereby improving the service quality of the merchant while improving the consultant experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0088] Figure 1a A schematic diagram of a message transmission system in an embodiment of the present application;

[0089] Figure 1b This is an example diagram of a message transmission process in an embodiment of the present application;

[0090] Figure 2 A schematic diagram of the implementation logic of a message transmission method in an embodiment of the present application;

[0091] Figure 3 A schematic flow chart of a method for message transmission performed by a first terminal in an embodiment of the present application;

[0092] Figure 4 A schematic flow chart of a method for message transmission performed by a second terminal in an embodiment of the present application;

[0093] Figure 5a , Figure 5b as well as Figure 5c This is a schematic diagram of the operation of receiving a message through an instant messaging application on the message receiving side in an embodiment of the present application;

[0094] Figure 6 This is a schematic diagram of a message transmission device structure in an embodiment of the present application;

[0095] Figure 7 This is a schematic diagram of another device structure for message transmission in an embodiment of the present application;

[0096] Figure 8 This is a schematic diagram of the structure of a server in an embodiment of the present application. DETAILED DESCRIPTION

[0097] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0098] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B". When describing multiple (two or more) items, if the relationship between the multiple items is not clearly defined, the multiple items may refer to one, multiple or all of the multiple items. For example, the description of "parameter A includes A1, A2, A3" can be implemented as parameter A including A1 or A2 or A3, and can also be implemented as parameter A including at least two of the three items A1, A2, A3.

[0099] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0100] Customer service message: The message receiving object generated in the mini program interacts with the mini program developer.

[0101] Self-developed customer service program: Xiaochengnei’s customer service system is developed by the merchants themselves.

[0102] Mini Program Customer Service Message Box: After the message recipient initiates a consultation at a merchant using the Mini Program customer service, he or she can retrieve the conversation box in the communication conversation list.

[0103] Mini Program Customer Service Message Rules: After the message recipient goes up, for example, the merchant customer service can go down 5 messages within 48 hours, among which the message recipient goes up for the message recipient to send a message to the Mini Program.

[0104] In order to avoid the situation where the consulting object cannot receive the message sent by the merchant after leaving the consultation through the self-developed customer service program, the embodiment of the present application provides a message transmission method and also introduces a message transmission system architecture, such as Figure 1aAs shown, the transmission system may include: a first terminal, a second terminal, a first server, a second server and a third server, wherein the first terminal is provided with a first client of a first application, and the second terminal is provided with a second client of the first application and a third client of the second application;

[0105] The first client of the first application, the first server and the second client of the first application may exchange information through a self-developed channel, wherein the self-developed channel is a channel developed by the merchant himself;

[0106] Furthermore, the first client of the first application may exchange information through the first server, the first server may exchange information through the third server and the second server, and the second server may exchange information with the third client of the second application;

[0107] On the basis of the above system architecture, that is, the second client of the above first application is disconnected from the first server, the first client of the first application sends the first message to the first server of the first application, the first server of the first application sends the first message to the second server of the second application through the third server, and the second server of the second application sends the first message to the third client of the second application;

[0108] Furthermore, the reply message of the message receiving object to the first message is sent to the second server of the second application through the third client of the second application, and then sent to the first server of the first application through the third server, so that the first server of the first application transmits it to the first client of the first application;

[0109] Specifically, the following describes the message transmission method through a specific example. Figure 1b As shown, after the merchant customer service inputs the message through the merchant client, it can be passed to the merchant backend through the self-developed customer service program. The merchant backend sends the message to the mini program backend, and the mini program backend sends the message to the instant messaging application client corresponding to the consulting object's terminal through the instant messaging backend, so that the consulting object can view the merchant customer service message in the corresponding instant messaging application client.

[0110] It should be noted that when the merchant backend sends the message to the instant messaging application client of the consulting object through the mini-program backend and the instant messaging application backend, the mini-program backend needs to pre-acquire the object identifier corresponding to the consulting object in the instant messaging application, and then send the message based on the object identifier; in this embodiment of the application, the mini-program backend pre-acquires the object identifier of the consulting object in the instant messaging application, which can be that the mini-program backend directly obtains the object identifier of the consulting object in the instant messaging application from the merchant backend, or obtains the object identifier of the consulting object in the instant messaging application from the instant messaging application backend, or first obtains the object identifier of the consulting object in the merchant's self-developed customer service program from the merchant backend, and then determines the object identifier of the consulting object in the instant messaging application based on the relationship between the object identifier of the merchant's self-developed customer service program and the object identifier in the instant messaging application.

[0111] It should be noted that in the optional embodiments of the present application, the object information involved (for example, the object identifier corresponding to the consulting object in the instant messaging application, the object identifier corresponding to the consulting object in the merchant, etc.) and other related data, when the embodiments in the present application are applied to specific products or technologies, need to obtain the permission or consent of the object, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions. In other words, if the embodiments of the present application involve data related to the object, it needs to be obtained through the authorization and consent of the object, the authorization and consent of the relevant departments, and in compliance with the relevant laws, regulations and standards of the country and region. If personal information is involved in the embodiments, the acquisition of all personal information needs to obtain the consent of the individual. If sensitive information is involved, the separate consent of the information subject needs to be obtained. The embodiments also need to be implemented with the authorization and consent of the object.

[0112] On this basis, the consulting party can send a reply message in the instant messaging application. The instant messaging application background will send the reply message to the mini program background. The mini program background will then call back the reply message to the merchant background. The merchant background will pass it to the merchant customer service through the self-developed customer service program, so that the merchant customer service can view the reply message of the consulting party.

[0113] Alternatively, when the consulting party sees the message from the merchant's customer service through the instant messaging application, he or she can return to the customer service interface of the merchant's self-developed customer service program and continue to send reply messages to the merchant's backend through the self-developed customer service program, so that the merchant's customer service can see the message replied by the consulting party.

[0114] Further, in order to implement the message transmission method in the embodiment of the present application through the above architecture, the embodiment of the present application takes the first application as the application corresponding to the merchant's self-developed customer service program shown above and the second application as a mini program application as an example to introduce the implementation logic of the embodiment of the present application, such as Figure 2As shown,

[0115] The merchant's access cost, that is, before the merchant transmits a message through the structure shown in the embodiment of the present application, needs to perform the following operations:

[0116] 1. The merchant registers the page mini program path through the mini program background; the page mini program here is the merchant’s self-developed customer service program;

[0117] 2. The merchant references the "Mini Program Customer Service Message User Authorization Component" on the Mini Program page and submits the Mini Program code for review. The reviewer confirms that the page belongs to "Self-Developed Customer Service" and that the referenced component is on the "Self-Developed Customer Service" page;

[0118] 3. The merchant connects to the mini program customer service agreement and configures the callback, that is, configures the mapping relationship between the merchant object identifier and the uniform resource locator (URL) of the first application;

[0119] Furthermore, in the process of transmitting messages by the merchant through the structure shown in the embodiment of the present application, it is required that:

[0120] 1. Support active downlink of a fixed message "Hello, how can I help you with your inquiry?" to start a conversation with the consulting object;

[0121] 2. Support conversations with consulting objects in the mini program customer service. The logic is consistent with that of the mini program customer service, and user reply messages are pushed to the developer server.

[0122] Furthermore, in order to avoid inconvenience to the message recipient (consulting object) when the message is transmitted through the system structure shown in the embodiment of the present application, it is necessary to set the message rules for the message transmitted by the system shown in the embodiment of the present application:

[0123] 1. The merchant has strict rules when sending messages through the system structure shown in the embodiment of the present application; for example, the message recipient (consulting object) needs authorization, and can receive messages through the system structure shown in the embodiment of the present application. The ability is controlled by the instant messaging application or the mini program application. For example, if the consulting object leaves the merchant's self-developed customer service program for no more than 48 hours, the instant messaging application or the mini program application actively pushes events to the merchant;

[0124] 2. When the merchant sends a message through the system structure shown in the embodiment of the present application, the message sent meets the preset requirements, such as the content of the message sent for the first time is fixed, and the message sent again meets the specific rules. For example, for a mini program application, the specific rule can be a mini program customer service message rule;

[0125] Furthermore, based on the above embodiment, a method for message transmission is described in detail through a specific embodiment, which is specifically as follows:

[0126] The embodiment of the present application provides a message transmission method, which is executed by a first server of a first application, such as Figure 3 As shown, the method may include:

[0127] Step S301: Receive first information sent by a first client of a first application.

[0128] The first information includes a first message to be sent. In an embodiment of the present application, the first client of the first application obtains the first message input by the message sending object in the first client of the first application, and then sends the obtained first message to the first server of the first application.

[0129] For example, the first application may be the application corresponding to the merchant's self-developed customer service program, and the first server may be the merchant's backend server. That is to say, the client of the application corresponding to the merchant's self-developed customer service program obtains the customer service message input by the customer service staff, and then sends it to the merchant's backend server through the self-developed channel.

[0130] Step S302: Determine the current connection status of the second client of the first application.

[0131] The current connection state is a first state or a second state, the first state indicates that the connection between the second client and the first server is disconnected, and the second state indicates that the connection between the second client and the first server is not disconnected. In an embodiment of the present application, when the message receiving object exits the second client of the first application, that is, the first server determines that the connection between the second client of the first application and the first server is disconnected, otherwise the first server determines that the connection between the second client of the first application and the first server is not disconnected.

[0132] Among them, the second client of the first application is connected to the first server through a self-developed channel.

[0133] It should be noted that the first server can determine the current connection status of the second client after receiving the first information sent by the first client, or can detect the connection status of the second client in real time, which is not limited in the embodiment of the present application.

[0134] Step S303: When the current connection state is the first state, the first information is sent to the second server of the second application through the third server, so that the second server sends the first message to the third client of the second application based on the first object identifier of the message receiving object of the first message.

[0135] Specifically, when the first server detects that the connection between the second client and the first server is disconnected, the first server sends the first information to the third server, and then the third server sends the first information to the second server, and then the second server sends the first message to the third client based on the first object identifier of the message receiving object of the first message.

[0136] Specifically, in the embodiment of the present application, the first server can call the API interface to send the first information to the third server, and then the third server can send the first information to the second server through the interface between the second server, and then the second server sends the first message to the third client based on the first object identifier of the message receiving object of the first message. For example, the first server sends the first information to the third server by calling the wxa_push_msg API.

[0137] Further, if the third server is a server subordinate to the second server, the third server may communicate with the second server through an internal interface, that is, the third server sends the first information to the second server through the internal interface.

[0138] Furthermore, after the second server sends the first message to the third client, the message receiving object can view the first message through the third client.

[0139] The first server and the second server exchange information through the third server; the second client and the third client are clients of the message receiving object of the first message, and the first object identifier is the object identifier of the message receiving object in the second application.

[0140] Specifically, the first object identifier of the message receiving object is obtained by at least one of the following methods: obtaining the first object identifier of the message receiving object from the first information; obtaining the second object identifier of the message receiving object in the first application, and determining the first object identifier of the message receiving object based on the mapping relationship between the first object identifier and the second object identifier and the second object identifier of the message receiving object. That is, the first server can obtain the first information through the first client of the first application. In one possible case, the first information carries the first object identifier of the message receiving object in addition to the first message, that is, when the first message is obtained through the first client of the first application, the first object identifier of the message receiving object is also obtained at the same time; in another possible case, the first server only obtains the first message to be sent through the first client of the first application, but the first object identifier of the message receiving object is stored in the first server, that is, after the first server receives the first message sent by the first server of the first application, it determines the first object identifier of the message receiving object, and then sends the first message carrying the first object identifier of the message receiving object to the third server; in another possible case, the first server and the first client of the first application do not store the first object identifier of the message receiving object, that is, the first server and The first client of the first application does not directly obtain the first object identifier of the message receiving object, but first obtains the second object identifier of the message receiving object in the first application, and then sends the first message carrying the second object identifier of the message receiving object to the third server, so that the third server can determine the first object identifier of the message receiving object based on the mapping relationship between the first object identifier and the second object identifier and the second object identifier of the message receiving object; further, in a possible implementation method, the first server may store a mapping relationship between the first object identifier and the second object identifier. When the first server receives the first message sent by the first client of the first application, the first message carries the second object identifier of the message receiving object, that is, the first server determines the first object identifier of the message receiving object based on the second object identifier of the message receiving object and the mapping relationship between the first object identifier and the second object identifier.

[0141] It is worth noting that the first object identifier of the message receiving object in the first application and the second object identifier of the message receiving object in the second application may be the same or different, which is not limited in the embodiment of the present application.

[0142] Furthermore, in an embodiment of the present application, when the first server does not receive the first information sent by the first client of the first application, the first server may also detect the connection status of the second client of the first application, wherein the first server may detect the connection status of the second client of the first application in real time, or may detect the connection status of the second client of the first application at specific intervals, and if it is detected that the connection status of the second client of the first application is changed from the second state to the first state, the method also includes: sending a preset message to the second server via the third server, so that the second server sends the preset message to the third client based on the first object identifier of the message receiving object of the preset message. In an embodiment of the present application, the preset message may be stored in the first server. When it is detected that the connection state of the second client of the first application is changed from the second state to the first state, the first server directly sends the preset message to the third server, and then the third server sends the preset message to the second server, and the second server sends it to the third client of the second application, so that the message receiving object can view the preset message in the third client; of course, the first client may be pre-set with the preset message, the first server obtains the preset message from the first client, and then the third server sends the preset message to the second server, and the second server sends it to the third client of the second application, so that the message receiving object can view the preset message in the third client.

[0143] For example, the preset message may be "Hello, regarding your question, we have arranged customer service to follow up and look forward to your reply.".

[0144] In an embodiment of the present application, when the first server detects that the connection state of the second client of the first application changes from the second state to the first state, it sends a preset message to the third client of the second application through the third server and the second server to initiate a conversation with the message receiving object, that is, the message receiving object can have a conversation with the message sending object in the second application, or return to the first application to have a conversation with the message receiving object.

[0145] Furthermore, it should be noted that the first server and the second client of the first application can be connected via websocket, that is, the first server can obtain whether the first server and the second client of the first application are disconnected. For example, it can be used in the onclose event detector of the WebSocket object to obtain whether the first server and the second client of the first application are disconnected. In addition to this, other methods can also be used to determine whether the first server and the second client of the first application are disconnected, which is not limited in the embodiments of the present application.

[0146] The embodiment of the present application also provides a message transmission method, which can be executed by a third server, such as Figure 4 As shown, the method may include:

[0147] Step S401: Receive first information sent by a first server.

[0148] The first information is received by the first server through the first client of the first application, and the first information is sent when the first server detects that the current connection state of the second client of the first application is the first state, and the first information includes the first message to be sent, and the first state indicates that the connection between the second client and the first server is disconnected.

[0149] Step S402: Send a first message to a second server of a second application, so that the second server sends the first message to a third client of the second application based on a first object identifier of a message receiving object of the first message.

[0150] For an embodiment of the present application, after the third server sends the first message to the second server of the second application, the second server sends the first message to the third client of the second application based on the first object identifier of the message receiving object of the first message, so that the message receiving object can view the first message in the third client.

[0151] The first server and the second server exchange information through the third server; the second client and the third client are clients of the message receiving object of the first message, and the first object identifier is the object identifier of the message receiving object in the second application.

[0152] For example, the second server may be an instant application server, the second application may be an instant application, that is, the third client is a client of the instant application, the application corresponding to the third server is a mini-program application in the instant application, that is, the third server is a mini-program server, and the first message is a customer service message. After the instant application client receives the first message, the message recipient can view the customer service message in the instant application client. Figure 5a As shown in FIG. 1 , the instant messaging list in the instant application client displays the mini program customer service message box. The message recipient clicks on the mini program customer service message box to enter the mini program customer service message interface to view the interface containing the customer service message. Figure 5b As shown, further, after clicking on the customer service message, you can enter the conversation interface with the message sender, you can directly view the specific content of the customer service message, and you can also interact with the message sender in the conversation interface. Figure 5c shown.

[0153] Further, in the embodiment of the present application, the first message received by the third client of the second application may also carry the object identifier of the message sending object, and may also carry the first application identifier. That is to say, after receiving the first message, the third client of the second application may display the content of the received first message and the object identifier and the first application identifier of the message sending object that sent the first message in the third client;

[0154] For example, Figure 5c As shown in FIG. 1 , the message receiving object can view the content of the first message, that is, “Hello, regarding the issue you inquired about, we have arranged for customer service to follow up and look forward to your reply.” The object identifier of the message sending object is as follows: Figure 5c The customer service avatar shown in , the first application identifier can be Figure 5c The “XXX’s shop” shown in the figure.

[0155] Furthermore, the second server may be an instant application server, and the second application may be an instant application, that is, the third client is a client of the instant application. Since the channel between the instant application server and the client of the instant application is relatively mature, that is, the message reach rate is high, that is, the third server sends the first message to the third client of the second application through the second server, which can improve the message reach rate. Furthermore, if the third server is subordinate to the second server, that is, the channel between the third server and the second server is also relatively mature, that is, the third server sends the first message to the third client of the second application through the second server, which can further improve the message reach rate.

[0156] In the above embodiment, the message sent by the first server is received by the third server through the first client of the first application, and then the first information is sent to the second server so that the third client of the second application can receive the first message; in addition, the message sent by the third server to the second server can also be a fixed message, which is only for initiating a session with the message receiving object.

[0157] In another possible implementation of the embodiment of the present application, the method further includes: any one of step Sa (not shown in the figure) and step Sb (not shown in the figure), wherein:

[0158] Step Sa, receiving the preset message sent by the first server, and sending the preset message to the second server of the second application, so that the second server sends the preset message to the third client of the second application based on the first object identifier of the message receiving object of the preset message.

[0159] The preset message is sent when the first server detects that the connection state of the second client is changed from the second state to the first state, and the second state indicates that the connection between the second client and the first server is not disconnected.

[0160] Step Sb: When receiving the connection disconnection indication message sent by the first server, send the preset message to the second server of the second application, so that the second server sends the preset message to the third client of the second application based on the first object identifier of the message receiving object of the preset message.

[0161] For the embodiments of the present application, when the first server detects that the connection state of the second client changes from the second state to the first state, that is, when it detects that the second client and the first server change from a connected state to a disconnected state, the first server can send a connection disconnection indication message to the third server to notify the third server that the second client and the first server are currently in a disconnected state, so that after receiving the connection disconnection indication message, the third server can send a preset message to the second server of the second application, so that the second server sends the preset message to the third client of the second application based on the first object identifier of the message receiving object of the preset message.

[0162] The connection disconnection indication message is used to indicate that the second client is disconnected from the first server.

[0163] It should be noted that the connection disconnection indication message received by the third server carries the first object identifier of the message receiving object, that is, the third server can obtain the first object identifier of the message receiving object from the connection disconnection indication message, so that the preset message carrying the first object identifier of the message receiving object is sent to the second server of the second application, so that the second service sends the preset message to the third client based on the first object identifier of the message receiving object; in another possible case, the connection disconnection indication message received by the third server carries the second object identifier of the message receiving object, the third server obtains the second object identifier of the message receiving object therefrom, and determines the first object identifier of the message receiving object based on the mapping relationship between the first object identifier and the second object identifier, so as to send the preset message carrying the first object identifier of the message receiving object to the second server of the second application, so that the second server sends the preset message to the third client of the second application based on the first object identifier of the message receiving object.

[0164] In the above embodiments, it can be known that the third server can send the first information or the preset message to the second server of the second application. Since the preset message is a pre-set message, the security system is higher. In order to ensure the security and experience of the message recipient, the third server may need to meet the preset conditions before sending the first information to the second server of the second application.

[0165] Specifically, sending the first information to the second server of the second application in step S402 may specifically include: if a preset condition is met, sending the first information to the second server of the second application.

[0166] The preset conditions include: detecting authorization information of the message receiving object through the second client, or satisfying at least one of the preset requirements;

[0167] The authorization information is used to authorize receiving a message from the first application through the second client.

[0168] For an embodiment of the present application, in one possible scenario, if the authorization information of the message receiving object is detected by the third server, the third server sends the first message to the second server of the second application based on the first object identifier, and then the second server of the second application sends the first message to the third client of the second application; in another possible scenario, if the first message meets the preset requirements, the third server sends the first message to the second server of the second application based on the first object identifier, and then the second server of the second application sends the first message to the third client of the second application; in another possible scenario, if the three servers detect the authorization information of the message receiving object and the first message meets the preset requirements, the third server sends the first message to the second server of the second application based on the first object identifier, and then the second server of the second application sends the first message to the third client of the second application.

[0169] Specifically, the authorization information is used to authorize the reception of messages from the first application through the third client of the second application. That is, when the message receiving object can pre-authorize the reception of messages from the first application through the third client of the second application, it can also send an authorization request message to the third client of the second application through the second server before sending the message corresponding to the first application to the third client of the second application through the second server. After receiving the confirmation message for the authorization request message returned by the third client of the second application, it is equivalent to receiving the authorization information.

[0170] Furthermore, the preset requirement may be a requirement formulated by a third server, or a requirement sent by the second server of the second application to the third server; for example, when the first server passes through the third server for the first time and transmits a message to the third client of the second application through the second server, only a fixed message may be sent, for example, the fixed message may be "Hello, we have arranged customer service to follow up on your question and look forward to your reply.", wherein the fixed message is the preset message described in the above embodiment, and may also be other fixed messages; when the first server passes through the third server for a non-first time and transmits a message to the third client of the second application through the second server, the content of the message must meet the preset requirement, which is a requirement set in advance by the third server for the first application, and may also be a requirement sent by the second server of the second application to the third server, that is, different first servers need to meet the above requirements when transmitting messages to the second server of the second application through the third server, for example, the message content cannot contain certain sensitive words, etc.

[0171] Furthermore, if the preset requirement is a requirement set by a third server, then the preset requirement is that the message management object is uploaded to the third server. If the preset requirement is sent by the second server to the third server, then the preset requirement can be that the message management object is uploaded to the second server and sent by the second server to the third server. This is not limited in the embodiments of the present application.

[0172] Further, when the preset condition includes that the first message satisfies the preset condition, but if the first message does not meet the preset requirement, the method further includes: any one of step Sc (not shown in the figure) and step Sd (not shown in the figure), wherein:

[0173] Step Sc, adjusting the first message according to preset requirements, and sending the first adjusted message to the second server based on the first object identifier of the message receiving object of the first message.

[0174] In an embodiment of the present application, when the third server detects that the first message does not meet the preset requirements, the third server can adjust the first message according to the preset requirements (including at least one of format adjustment or content adjustment) to obtain a first adjusted message, and then directly send the first adjusted message to the second server of the second application, so that the second server of the second application sends the first adjusted message to the third client of the second application; for example, when the first server transmits a message to the third client of the second application through the third server via the second server for the first time, if the first message is not the fixed message, the fixed message can be used as the first adjusted message and sent to the third client of the second application via the second server of the second application.

[0175] Furthermore, after adjusting the first message, the third server may return the first adjusted message to the first server, and may also return the reason for the revision to the first server.

[0176] It should be noted that when the first server receives the first adjusted message or at least one of the revision reasons, it may return the received message to the first client of the first application, or it may not return it, which is not limited in the embodiments of the present application.

[0177] Step Sd: sending the prompt information to the first server, and based on the first object identifier of the message receiving object of the first message, sending the second adjusted message re-received from the first server to the second server.

[0178] The second adjusted message is obtained after the first server makes an adjustment according to the prompt information, and the prompt information is used to prompt the first server to adjust the first message.

[0179] For the embodiments of the present application, when the third server detects that the first message does not meet the preset requirements, the prompt message can be passed to the first server, and the first server sends the prompt message to the first client of the first application, so that the message sending object adjusts the first message to obtain a second adjusted message, and then passes the second adjusted message to the third server through the first server, and then passes it to the third client of the second application by the second server of the second application; alternatively, after receiving the prompt message, the first server does not pass it to the first client of the first application, but directly adjusts the first message by the first server, and then sends the adjusted message to the third server, so that the third server sends it to the third client of the second application via the second server of the second application.

[0180] Through the above embodiment, the preset message, the first message or the adjusted message is sent to the third client of the second application via the second server of the second application. The message receiving object can view these messages in the third client and can reply to these messages.

[0181] In the embodiment of the present application, the method may further include: when a reply message sent by the third client is received through the second server, sending the reply message to the first server, so that the first server sends the reply message to the first client.

[0182] The reply message is a reply message to the first message. In the embodiment of the present application, the message receiving object can directly reply to the first message in the third client of the second application, and then the second server of the second application obtains the reply message of the message receiving object to the first message from the third client of the second application, and sends it to the third server, so that the third server sends it to the first client of the first application via the first server.

[0183] Specifically, the third server stores a mapping relationship between the object identifier and the URL of the first application. After obtaining the first object identifier carried in the reply message, the second client of the first terminal determines the URL of the first application corresponding to the first object identifier based on the mapping relationship, and then calls back to the first server based on the determined URL of the first application, so that the first server can deliver a reply message of the first message to the first client of the first application.

[0184] Continuing with the above example, the mini program background of the first terminal stores the mapping relationship between the merchant ID and the merchant URL. After obtaining the merchant ID carried in the reply message, the mini program background of the first terminal determines the URL corresponding to the merchant ID, and then calls back to the merchant's background.

[0185] In an embodiment of the present application, after receiving a reply message sent by the third client of the second application through the second server, the third server sends the reply message to the first client of the first application through the first server, so that the message sending object can view the reply message in the first client of the first application, wherein the message sending object does not perceive the change in the message path, which is the same as the perception of directly sending and receiving messages with the second client of the first application through the first server, so as to enhance the experience of the message sending object. Specifically, the mapping relationship is obtained in the following manner: in response to the URL configuration operation of the message management object, the URL configuration page is displayed; through the URL configuration page, the mapping relationship between the first object identifier configured by the message management object and the URL of the first application is obtained, and the mapping relationship is stored.

[0186] For the embodiment of the present application, the message management object can be the message management object corresponding to the first application, or the message management object corresponding to the second application. In the embodiment of the present application, the message management object can directly configure the mapping relationship between the first object identifier and the URL of the first application in the third server, and store the mapping relationship.

[0187] If the message management object is the message management object corresponding to the first application, the third server can respond to the URL configuration operation sent by the first server to display the URL configuration page through the first server, and then the message management object configures the mapping relationship between the first object identifier and the URL of the first application in the configuration page, and the third server can receive the mapping relationship through the first server and store it; of course, the third server can also directly respond to the URL configuration operation of the message management object and display the URL configuration page; obtain the mapping relationship between the first object identifier configured by the message management object and the URL of the first application through the URL configuration page, and store the mapping relationship;

[0188] If the message management object is the message management object corresponding to the second application, in addition to directly configuring it in the third server, it can also respond to the URL configuration operation sent by the second server to display the URL configuration page through the second server, and then the message management object configures the mapping relationship between the first object identifier and the URL of the first application in the configuration page. The third server can receive the mapping relationship through the second server and store it.

[0189] Furthermore, in the above embodiment, after viewing the first message from the third client of the second application, the message receiving object can directly reply to the first message in the third client of the second application. Of course, the message receiving object can also return to the first application and reply to the first message in the first client of the first application. That is, at this time, the second client of the first application and the first server are changed from disconnected to connected. In other words, the message receiving object enters a reply message to the first message in the second client of the first application and sends it directly to the first client of the first application through the first server. Continuing with the above example, the message receiving object can click on Figure 5c You can return to the first application by clicking "XXX's Shop" shown in 5c, or you can return to the first application by clicking the customer service avatar of the message sending object shown in 5c.

[0190] However, in some cases, although the message receiving object triggers the opening of the second client of the first application, that is, the second client of the first application re-establishes the connection with the first server, in some cases, the message receiving object may close the second client of the first application again, that is, the second client of the first application is disconnected from the first server again. At this time, if the message sending object needs to send a message to the message receiving object, then in order to maintain the integrity of the context, when sending the message again, the third server needs to re-establish the connection between the second client of the first application and the first server. After the reconnection, before the disconnection again, the session message between the first client of the first application and the second client of the first application is sent to the third client of the second application through the second server of the second application.

[0191] In another possible implementation manner of the embodiment of the present application, the method may further include: receiving second information and a session message sent by the first server; and sending the second message and the session message to a third client of the second application through the second server.

[0192] Among them, the second information includes a second message to be sent, the second information is sent by the first server when the current connection state of the second client is changed from the first state to the second state and then changed back to the first state, and the session message is a session message between the second client and the first client after the connection state of the second client is changed from the first state to the second state and before it is changed back to the first state.

[0193] In an embodiment of the present application, after receiving the second information and the session message, the third server may directly send the session message first and then send the second message, or may send the session message and the second message together to the second server of the second application, so that the second server can send them to the third client of the second application. This is not limited in the embodiment of the present application.

[0194] Further, in the time period after the second client of the second application is reconnected to the first server and before it is disconnected again, after receiving the session message between the second client and the first client, the first server stores the session message and sends it to the third server in real time, so that the third server stores the session message; or, in the time period after the second client of the second application is reconnected to the first server and before it is disconnected again, after receiving the session message between the second client and the first client, the first server stores the session message and sends the session message to the third server when it is detected that the first client of the first application is disconnected from the first server again, or, when it is detected that the first client of the first application is disconnected from the first server again and the second message sent by the first client of the first application is received, the first server sends the session message to the third server.

[0195] In order to better understand and illustrate the practical value of the solution provided by the embodiments of the present application, the optional implementation methods of the present application are described below in conjunction with specific scenario embodiments.

[0196] Scenario 1:

[0197] Object 1 enters a message in the customer service conversation interface of merchant 1 to inquire about the product, but leaves the interface of merchant 1 before the customer service staff of merchant 1 replies. That is, even if the customer service staff of merchant 1 replies in the customer service conversation interface, object 1 cannot receive the reply message. At this time, in order to allow object 1 to still receive the reply message of the customer service staff of merchant 1, after the customer service staff of merchant 1 replies, the merchant backend transmits the reply message of the customer service staff to the mini program backend, and the mini program backend then sends the reply message of the customer service staff to the instant messaging backend, and the instant messaging backend transmits the reply message of the customer service staff to the instant messaging application client of the terminal of object 1, so that object 1 can view the reply message of the customer service staff in the conversation interface of the instant messaging application of his terminal; object 1 can also reply directly in the instant messaging conversation interface, and the reply message of object 1 can be transmitted to the mini program backend through the instant messaging backend, and then the URL of merchant 1 is called back, the reply message of object 1 is transmitted to the merchant backend, and the reply message of object 1 is displayed in the corresponding customer service interface;

[0198] In addition to replying directly in the mini program as in the above embodiment, object 1 can also return to the customer service interface of merchant 1 and continue the conversation with the customer service staff of merchant 1 in this interface.

[0199] Scenario 2:

[0200] Subject 1 browses the product display interface of Merchant 1 and does not have a conversation with the customer service staff of Merchant 1. If Subject 1 exits the relevant interface of Merchant 1, the customer service staff of Merchant 1 enters a message in the conversation interface to ask Subject 1 whether there are any product issues that need to be consulted. The message is also passed from the merchant backend of Merchant 1 to the mini program backend through a call interface, and then sent to the instant messaging backend by the mini program backend. The subsequent operations are the same as the steps in Scenario 1 and will not be repeated in detail.

[0201] Based on the same principle as the message transmission method provided in the embodiment of the present application, the embodiment of the present application also provides a message transmission device, which can be implemented as a first server of a first application, such as Figure 6 As shown, the device 60 may include: a first receiving module 61, a determining module 62 and a first sending module 63, wherein:

[0202] The first receiving module 61 is configured to receive first information sent by a first client of a first application.

[0203] The first information includes a first message to be sent.

[0204] The determination module 62 is used to determine the current connection status of the second client of the first application.

[0205] The current connection state is a first state or a second state, the first state indicates that the connection between the second client and the first server is disconnected, and the second state indicates that the connection between the second client and the first server is not disconnected.

[0206] The first sending module 63 is used to send the first information to the second server of the second application through the third server when the current connection state is the first state, so that the second server sends the first message to the third client of the second application based on the first object identifier of the message receiving object of the first message.

[0207] The first server and the second server exchange information through the third server.

[0208] The second client and the third client are clients of the message receiving object of the first message, and the first object identifier is the object identifier of the message receiving object in the second application.

[0209] In another possible implementation of the embodiment of the present application, when the connection state of the second client of the first application changes from the second state to the first state, the device 60 further includes:

[0210] The second sending module is used to send the preset message to the second server through the third server, so that the second server sends the preset message to the third client based on the first object identifier of the message receiving object of the preset message.

[0211] Another possible implementation method of the embodiment of the present application is:

[0212] The first object identifier of the message receiving object is obtained by at least one of the following methods:

[0213] Acquire a first object identifier of a message receiving object from the first information;

[0214] The second object identifier of the message receiving object in the first application is obtained, and the first object identifier of the message receiving object is determined based on a mapping relationship between the first object identifier and the second object identifier and the second object identifier of the message receiving object.

[0215] An embodiment of the present application provides a message transmission device. In the embodiment of the present application, after the first server of the first application receives the first information including the first message to be sent by the first client of the first application, if the second client of the first application and the first server are disconnected at this time, that is, the message receiving object leaves the first application at this time, then the first information is sent to the second server of the second application through the third server, so that the second server sends the first message to the third client of the second application based on the identification information of the message receiving object in the second application, so that the message receiving object can view the first message from the third client of the second application, thereby avoiding the situation where the message receiving object cannot receive the message sent by the first client of the first application after the second client of the first application is disconnected from the server of the first application. For example, the message sending object is the merchant customer service, that is, the first client of the first application is the first client corresponding to the merchant customer service, and the message receiving object is the consulting object, that is, the second client of the first application and the third client of the second application are the clients corresponding to the consulting object. In this way, it is also possible to avoid the situation where the consulting object cannot receive the merchant customer service message after leaving the merchant application, thereby improving the service quality of the merchant while improving the consultant experience.

[0216] The embodiment of the present application also provides another message transmission device, which can be implemented as a third server. The first server of the first application interacts with the second server of the second application through the third server. Figure 7 As shown, the message transmission device 70 may include: a second receiving module 71 and a third sending module 72, wherein:

[0217] The second receiving module 71 is used to receive the first information sent by the first server.

[0218] The first information is received by the first server through the first client of the first application, and the first information is sent when the first server detects that the current connection state of the second client of the first application is the first state, and the first information includes the first message to be sent, and the first state indicates that the connection between the second client and the first server is disconnected.

[0219] The third sending module 72 is used to send the first message to the second server of the second application, so that the second server sends the first message to the third client of the second application based on the first object identifier of the message receiving object of the first message.

[0220] The first server and the second server exchange information through the third server.

[0221] The second client and the third client are clients of the message receiving object of the first message, and the first object identifier is the object identifier of the message receiving object in the second application.

[0222] In another possible implementation manner of the embodiment of the present application, the device 70 further includes a first preset message processing module or a second preset message processing module, wherein:

[0223] A first preset message processing module is used to receive a preset message sent by the first server, and send the preset message to a second server of a second application, so that the second server sends the preset message to a third client of the second application based on a first object identifier of a message receiving object of the preset message, wherein the preset message is sent when the first server detects that the connection state of the second client changes from the second state to the first state, and the second state indicates that the connection between the second client and the first server is not disconnected;

[0224] The second preset message processing module is used to send the preset message to the second server of the second application when receiving the connection disconnection indication message sent by the first server, so that the second server can send the preset message to the third client of the second application based on the first object identifier of the message receiving object of the preset message, and the connection disconnection indication message is used to indicate that the second client is disconnected from the first server.

[0225] In another possible implementation of the embodiment of the present application, when the third sending module 72 sends the first information to the second server of the second application, it is specifically used to:

[0226] When a preset condition is met, sending the first information to the second server of the second application;

[0227] The preset conditions include: detecting authorization information of the message receiving object through the second client, or satisfying at least one of the preset requirements;

[0228] The authorization information is used to authorize receiving a message from the first application through the second client.

[0229] In another possible implementation manner of the embodiment of the present application, the preset condition includes that the first message satisfies the preset condition;

[0230] When the first message does not meet the preset requirement, the device 70 further includes: a fourth sending module or a fifth sending module, wherein:

[0231] a fourth sending module, configured to adjust the first message according to a preset requirement, and send the first adjusted message to the second server based on the first object identifier of the message receiving object of the first message;

[0232] The fifth sending module is used to send the prompt information to the first server, and based on the first object identifier of the message receiving object of the first message, send the second adjusted message re-received from the first server to the second server, the second adjusted message is obtained by the first server after adjustment according to the prompt information, and the prompt information is used to prompt the first server to adjust the first message.

[0233] In another possible implementation manner of the embodiment of the present application, the device 70 further includes: a sixth sending module, wherein:

[0234] The sixth sending module is used to send a reply message to the first server when a reply message sent by the third client is received through the second server, so that the first server sends the reply message to the first client, and the reply message is a reply message to the first message.

[0235] In another possible implementation manner of the embodiment of the present application, the reply message carries a first object identifier of the message sending object;

[0236] The sixth sending module is specifically used to:

[0237] Determine the URL of the first application corresponding to the first object identifier based on a mapping relationship between the object identifier and the uniform resource locator URL of the first application, and the first object identifier;

[0238] Based on the URL of the first application, a reply message is sent to the first server.

[0239] In another possible implementation of the embodiment of the present application, the mapping relationship is obtained by:

[0240] In response to the URL configuration operation of the message management object, displaying the URL configuration page;

[0241] Through the URL configuration page, obtain the mapping relationship between the first object identifier configured by the message management object and the URL of the first application, and store the mapping relationship.

[0242] In another possible implementation manner of the embodiment of the present application, the device 70 further includes: a third receiving module and a seventh sending module, wherein:

[0243] a third receiving module, configured to receive second information and a session message sent by the first server, wherein the second information includes a second message to be sent, the second information is sent by the first server when the current connection state of the second client changes from the first state to the second state and then changes back to the first state, and the session message is a session message between the second client and the first client after the connection state of the second client changes from the first state to the second state and before it changes back to the first state;

[0244] The seventh sending module is used to send the second message and the session message to the third client of the second application through the second server.

[0245] An embodiment of the present application provides a message transmission device. In the embodiment of the present application, after the first server of the first application receives the first information including the first message to be sent by the first client of the first application, if the second client of the first application and the first server are disconnected at this time, that is, the message receiving object leaves the first application at this time, then the first information is sent to the second server of the second application through the third server, so that the second server sends the first message to the third client of the second application based on the identification information of the message receiving object in the second application, so that the message receiving object can view the first message from the third client of the second application, thereby avoiding the situation where the message receiving object cannot receive the message sent by the first client of the first application after the second client of the first application is disconnected from the server of the first application. For example, the message sending object is the merchant customer service, that is, the first client of the first application is the first client corresponding to the merchant customer service, and the message receiving object is the consulting object, that is, the second client of the first application and the third client of the second application are the clients corresponding to the consulting object. In this way, it is also possible to avoid the situation where the consulting object cannot receive the merchant customer service message after leaving the merchant application, thereby improving the service quality of the merchant while improving the consultant experience.

[0246] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0247] A server is also provided in an embodiment of the present application, and the server includes at least one processor, and the processor is configured to execute the steps of the method provided in any optional embodiment of the present application. Optionally, the server may also include a transceiver and / or a memory coupled to the processor, and a computer program is stored in the memory. When the processor runs the computer program, it can implement the solution provided in any optional embodiment of the present application.

[0248] Figure 8 A schematic diagram of the structure of a server applicable to the embodiment of the present application is shown. Figure 8As shown, the server can be a first server or a third server. For example, the server can be used to implement the method provided in any embodiment of the present application. Specifically, if the server device is a first server, it is used to execute the method provided by the first server in any embodiment of the present application; if the server device is a third server, it is used to execute the method provided by the third server in any embodiment of the present application.

[0249] like Figure 8 As shown in FIG. 8 , the server 800 may mainly include at least one processor 801 ( Figure 8 ), memory 802, communication module 803 and input / output interface 804 and other components. Optionally, the components can be connected and communicated through a bus 805. It should be noted that Figure 8 The structure of the terminal device 800 shown is merely illustrative and does not constitute a limitation on the server to which the method provided in the embodiment of the present application is applicable.

[0250] Among them, the memory 802 can be used to store operating systems and applications, etc. The application may include a computer program that implements the method shown in the embodiment of the present application when called by the processor 801, and may also include a program for implementing other functions or services. The memory 802 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and computer programs, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0251] The processor 801 is connected to the memory 802 via the bus 805, and implements the corresponding functions by calling the application program stored in the memory 802. Among them, the processor 801 can be a CPU (Central Processing Unit), a general processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof, which can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor 801 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, etc.

[0252] The server 800 can be connected to the network through a communication module 803 (which may include but is not limited to components such as a network interface) to communicate with other devices (such as a user terminal or a server, etc.) through the network to achieve data interaction, such as sending data to other devices or receiving data from other devices. Among them, the communication module 803 may include a wired network interface and / or a wireless network interface, etc., that is, the communication module may include at least one of a wired communication module or a wireless communication module.

[0253] The server 800 can be connected to the required input / output devices, such as a keyboard, a display device, etc., through the input / output interface 804. The terminal device 80 itself can have a display device, and can also be connected to other display devices through the interface 804. Optionally, a storage device, such as a hard disk, can also be connected through the interface 804, so that data in the server 800 can be stored in the storage device, or data in the storage device can be read, and the data in the storage device can also be stored in the memory 802. It can be understood that the input / output interface 804 can be a wired interface or a wireless interface. Depending on the actual application scenario, the device connected to the input / output interface 804 can be a component of the server 800, or it can be an external device connected to the server 800 when needed.

[0254] The bus 805 for connecting the components may include a path to transmit information between the above components. The bus 805 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. According to different functions, the bus 805 may be divided into an address bus, a data bus, a control bus, etc.

[0255] Optionally, for the solution provided in the embodiments of the present application, the memory 802 can be used to store a computer program for executing the solution of the present application, and run by the processor 801. When the processor 801 runs the computer program, the actions of the method or device provided in the embodiments of the present application are implemented.

[0256] Based on the same principle as the method provided in the embodiment of the present application, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the corresponding content of the aforementioned method embodiment can be implemented. In an embodiment of the present application, after the first server of the first application receives the first information including the first message to be sent by the first client of the first application, if the second client of the first application and the first server are disconnected at this time, that is, the message receiving object leaves the first application at this time, then the first information is sent to the second server of the second application through the third server, so that the second server sends the first message to the third client of the second application based on the identification information of the message receiving object in the second application, so that the message receiving object can view the first message from the third client of the second application, thereby avoiding the situation where the message receiving object cannot receive the message sent by the first client of the first application after the second client of the first application is disconnected from the server of the first application. For example, the message sending object is the merchant customer service, that is, the first client of the first application is the first client corresponding to the merchant customer service, and the message receiving object is the consulting object, that is, the second client of the first application and the third client of the second application are the clients corresponding to the consulting object. In this way, the situation where the consulting object cannot receive the merchant customer service message after leaving the merchant application can be avoided, thereby improving the service quality of the merchant while improving the consultant experience.

[0257] The embodiment of the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the corresponding content of the aforementioned method embodiment can be implemented. In the embodiment of the present application, after the first server of the first application receives the first information including the first message to be sent from the first client of the first application, if the connection between the second client of the first application and the first server is disconnected at this time, that is, the message receiving object leaves the first application at this time, then the first information is sent to the second server of the second application through the third server, so that the second server sends the first message to the third client of the second application based on the identification information of the message receiving object in the second application, so that the message receiving object can view the first message from the third client of the second application, thereby avoiding the situation that the message receiving object cannot receive the message sent by the first client of the first application after the second client of the first application is disconnected from the server of the first application, for example, the message sending object is the merchant customer service, that is, the first client of the first application is the first client corresponding to the merchant customer service, and the message receiving object is the consulting object, that is, the second client of the first application and the third client of the second application are the clients corresponding to the consulting object, and this method can also avoid the situation that the consulting object cannot receive the merchant customer service message after leaving the merchant application, thereby improving the service quality of the merchant while improving the consultant experience.

[0258] It should be noted that the terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchangeable where appropriate, so that the embodiments of the application described herein can be implemented in an order other than that shown or described in the drawings.

[0259] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.

[0260] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A message transmission method, characterized in that: The method is executed by a first server of a first application, and includes: Receiving first information sent by a first client of a first application, wherein the first information includes a first message to be sent; Determine a current connection state of a second client of the first application, where the current connection state is a first state or a second state, where the first state indicates that the connection between the second client and the first server is disconnected, and the second state indicates that the connection between the second client and the first server is not disconnected; When the current connection state is the first state, the first information is sent to the second server of the second application through the third server, so that the second server sends the first message to the third client of the second application based on the first object identifier of the message receiving object of the first message, and the first server and the second server exchange information through the third server; The second client and the third client are clients of a message receiving object of the first message, and the first object identifier is an object identifier of the message receiving object in the second application.

2. The method according to claim 1, characterized in that: If the connection state of the second client of the first application changes from the second state to the first state, the method further includes: The preset message is sent to the second server through the third server, so that the second server sends the preset message to the third client based on the first object identifier of the message receiving object of the preset message.

3. The method according to claim 1, characterized in that The first object identifier of the message receiving object is obtained by at least one of the following methods: Acquire a first object identifier of the message receiving object from the first information; The second object identifier of the message receiving object in the first application is obtained, and the first object identifier of the message receiving object is determined based on a mapping relationship between the first object identifier and the second object identifier and the second object identifier of the message receiving object.

4. A message transmission method, characterized in that: The method is performed by a third server and includes: receiving first information sent by a first server, where the first information is received by the first server through a first client of a first application, and the first information is sent when the first server detects that a current connection state of a second client of the first application is a first state, and the first information includes a first message to be sent, and the first state indicates that the second client is disconnected from the first server; Sending the first message to a second server of a second application, so that the second server sends the first message to a third client of the second application based on a first object identifier of a message receiving object of the first message, and the first server and the second server exchange information through the third server; The second client and the third client are clients of a message receiving object of the first message, and the first object identifier is an object identifier of the message receiving object in the second application.

5. The method according to claim 4, characterized in that The method further comprises any of the following: receiving a preset message sent by the first server, and sending the preset message to a second server of the second application, so that the second server sends the preset message to a third client of the second application based on a first object identifier of a message receiving object of the preset message, wherein the preset message is sent when the first server detects that the connection state of the second client changes from a second state to a first state, and the second state indicates that the connection between the second client and the first server is not disconnected; When a connection disconnection indication message sent by the first server is received, a preset message is sent to the second server of the second application, so that the second server sends the preset message to the third client of the second application based on the first object identifier of the message receiving object of the preset message, and the connection disconnection indication message is used to indicate that the second client is disconnected from the first server.

6. The method according to claim 4, characterized in that The sending the first information to the second server of the second application includes: If the preset condition is met, sending the first information to the second server of the second application; The preset condition includes: detecting the authorization information of the message receiving object through the second client, or satisfying at least one of the preset requirements; The authorization information is used to authorize receiving a message from the first application through the second client.

7. The method according to claim 6, characterized in that The preset condition includes that the first message satisfies the preset condition; If the first message does not meet the preset requirement, the method further includes any of the following: Adjust the first message according to the preset requirement, and send the first adjusted information to the second server based on the first object identifier of the message receiving object of the first message; A prompt message is sent to the first server, and based on the first object identifier of the message receiving object of the first message, a second adjusted message re-received from the first server is sent to the second server, where the second adjusted message is obtained by the first server after adjustment according to the prompt message, and the prompt message is used to prompt the first server to adjust the first message.

8. The method according to claim 4, characterized in that The method further comprises: When the reply message sent by the third client is received through the second server, the reply message is sent to the first server, so that the first server sends the reply message to the first client, and the reply message is a reply message to the first message.

9. The method according to claim 8, characterized in that The reply message carries the first object identifier of the object to which the message is sent; The sending the reply message to the first server includes: Determine the URL of the first application corresponding to the first object identifier based on a mapping relationship between the object identifier and the uniform resource locator URL of the first application and the first object identifier; Based on the URL of the first application, the reply message is sent to the first server.

10. The method according to claim 9, characterized in that The mapping relationship is obtained in the following way: In response to the URL configuration operation of the message management object, displaying the URL configuration page; The mapping relationship between the first object identifier configured in the message management object and the URL of the first application is obtained through the URL configuration page, and the mapping relationship is stored.

11. The method according to claim 4, characterized in that The method further comprises: receiving second information and a session message sent by the first server, wherein the second information includes a second message to be sent, the second information is sent by the first server when the current connection state of the second client changes from the first state to the second state and then changes back to the first state, and the session message is a session message between the second client and the first client after the connection state of the second client changes from the first state to the second state and before it changes back to the first state; The second message and the session message are sent to a third client of the second application through the second server.

12. A message transmission device, characterized in that: include: A first receiving module, configured to receive first information sent by a first client of a first application, wherein the first information includes a first message to be sent; a determination module, configured to determine a current connection state of a second client of a first application, wherein the current connection state is a first state or a second state, wherein the first state indicates that the connection between the second client and the first server is disconnected, and the second state indicates that the connection between the second client and the first server is not disconnected; A first sending module is used to send the first information to the second server of the second application through the third server when the current connection state is the first state, so that the second server sends the first message to the third client of the second application based on the first object identifier of the message receiving object of the first message, and the first server and the second server exchange information through the third server; The second client and the third client are clients of a message receiving object of the first message, and the first object identifier is an object identifier of the message receiving object in the second application.

13. A message transmission device, characterized in that: include: a second receiving module, configured to receive first information sent by a first server, the first information being received by the first server through a first client of a first application, and the first information being sent when the first server detects that a current connection state of a second client of the first application is in a first state, the first information including a first message to be sent, and the first state indicating that a connection between the second client and the first server is disconnected; A third sending module is used to send the first message to the second server of the second application, so that the second server sends the first message to the third client of the second application based on the first object identifier of the message receiving object of the first message, and the first server and the second server exchange information through the third server; The second client and the third client are clients of a message receiving object of the first message, and the first object identifier is an object identifier of the message receiving object in the second application.

14. A server, characterized in that: The first server includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor runs the computer program, the processor executes the message transmission method described in any one of claims 1 to 3, or executes the message transmission method described in any one of claims 4 to 11.

15. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the message transmission method according to any one of claims 1 to 11 is implemented.