Message forwarding method and device, computer equipment and storage medium

By converting message formats and generating credentials on the server, the problem of restricted message formats in the existing technology is solved, and more flexible and efficient message forwarding is achieved, suitable for multiple platforms.

CN119835243APending Publication Date: 2025-04-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311332041.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

In the prior art, due to the limited message format supported by the client SDK during cross-application communication, the message forwarding function cannot be flexibly added, resulting in limited message forwarding function and not flexible enough.

Method used

By converting the message format on the server, generating credentials, and feeding the credentials back to the client, the client obtains the conversion message from the server based on the credentials and forwards it.

Benefits of technology

It reduces the use of terminal computing resources, improves the flexibility and adaptability of message forwarding, supports multiple platforms and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835243A_ABST
    Figure CN119835243A_ABST
Patent Text Reader

Abstract

The invention relates to a message forwarding method and device, computer equipment and a storage medium. The method comprises the following steps: in response to a cross-application forwarding request triggered in a first application, determining a first message to be forwarded; determining message related information according to the first message; sending the message-related information to a server through the first application to indicate the server to perform format conversion based on the message-related information to obtain a conversion message, and generating a voucher; the first application receives a voucher fed back by the server, and transmits the voucher to a second application; and obtaining the conversion message from the server according to the voucher through the second application, determining a second message according to the conversion message, and forwarding the second message to a receiver of the second application. By adopting the method, the forwarding adaptability of different types of session messages can be improved, and the method is more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a message forwarding method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of computer technology, more and more communication applications have emerged, and users can choose the communication application that suits them for socializing. When users use communication applications, in actual interaction scenarios, there may be a need to send messages to friends in another communication application through an account in one communication application, that is, the need for cross-application communication.

[0003] In the related technology, when it comes to cross-application communication, it is usually implemented through the client's SDK (Software Development Kit). For example, client A converts the message content into the message format specified by the SDK, and then forwards the message to client B through the SDK. Client B then resends the received message as a session message.

[0004] However, the current message forwarding method is mainly implemented through the client SDK. The client forwards messages and needs to adapt to the message format supported by the SDK. The SDK supports limited message formats and cannot flexibly add new message types, which greatly limits the message forwarding function and makes it inflexible. Summary of the invention

[0005] Based on this, it is necessary to provide a message forwarding method, apparatus, computer device, computer-readable storage medium and computer program product to address the above technical issues.

[0006] On the one hand, the present application provides a message forwarding method, comprising:

[0007] In response to a cross-application forwarding request triggered in the first application, determining a first message to be forwarded;

[0008] determining message related information according to the first message;

[0009] Sending the message-related information to the server through the first application to instruct the server to perform format conversion based on the message-related information to obtain a converted message and generate a credential;

[0010] The first application receives the credentials fed back by the server, and transmits the credentials to the second application;

[0011] The second application obtains the converted message from the server according to the credential, determines the second message according to the converted message, and forwards the second message to a receiver of the second application.

[0012] On the other hand, the present application also provides a message forwarding method, the method comprising:

[0013] Receive message-related information sent by a first application; the message-related information is determined according to a first message of the first application to be forwarded;

[0014] Performing format conversion based on the message-related information to obtain a converted message, and generating a voucher;

[0015] The credential is fed back to the first application; the fed-back credential is used to be passed to the second application, and the second application is instructed to obtain the conversion message from the server according to the credential, so as to determine the second message according to the conversion message, and forward the second message to the recipient belonging to the second application.

[0016] On the other hand, the present application also provides a message forwarding device, the device comprising:

[0017] A determination module, configured to determine a first message to be forwarded in response to a cross-application forwarding request triggered in a first application, and determine message-related information according to the first message;

[0018] A sending module, used to send the message related information to the server through the first application, so as to instruct the server to perform format conversion based on the message related information to obtain a converted message, and generate a credential;

[0019] A receiving module, configured to receive, by the first application, the credentials fed back by the server;

[0020] A transfer module, used for transferring the credential to a second application;

[0021] an acquisition module, configured to acquire the conversion message from the server according to the credential through the second application, and determine a second message according to the conversion message;

[0022] A forwarding module is used to forward the second message to a receiver of the second application.

[0023] On the other hand, the present application also provides a message forwarding device, the device comprising:

[0024] A receiving module, configured to receive message-related information sent by a first application; the message-related information is determined according to a first message of the first application to be forwarded;

[0025] A conversion module, used to convert the format of the message based on the relevant information to obtain a converted message and generate a voucher;

[0026] A feedback module is used to feed back the credential to the first application; the fed-back credential is used to pass it to the second application, and instruct the second application to obtain the conversion message from the server according to the credential, so as to determine the second message according to the conversion message, and forward the second message to the recipient belonging to the second application.

[0027] On the other hand, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0028] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0029] On the other hand, the present application also provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0030] In the above-mentioned message forwarding method, device, computer equipment, storage medium and computer program product, the first application determines the message-related information according to the first message to be forwarded, and sends the message-related information to the server, and the server performs format conversion based on the received message-related information to obtain a converted message and generate a voucher. The server feeds back the voucher to the first application so that the first application can pass the voucher to the second application. Accordingly, the second application can obtain the converted message from the server according to the voucher to obtain the second message, and send the second message to the recipient belonging to the second application. It can be seen that in this application, only a small amount of data (i.e., message-related information) needs to be transmitted to the server, and the server performs format conversion, which can avoid the terminal from doing a large amount of format conversion logic, greatly reducing the terminal computing resources. And because the message conversion is done on the server, the supported message format is also more flexible, and the application on the terminal does not need to adapt separately for any newly forwarded message format, which improves the forwarding adaptability of different types of session messages and makes message forwarding more flexible. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 An application environment diagram of a message forwarding method in an embodiment;

[0033] Figure 2 A schematic diagram of a flow chart of a message forwarding method in an embodiment;

[0034] Figure 3 A schematic diagram of an operation interface for forwarding media content across applications in one embodiment;

[0035] FIG4(A) is a schematic diagram of an interface for selecting a first message from a conversation message in another embodiment;

[0036] FIG4(B) is a schematic diagram of an operation interface for forwarding a first message across applications in one embodiment;

[0037] Figure 5 A prompt interface for confirming sending after selecting a target session in an embodiment;

[0038] Figure 6 A conversation interface in which a recipient displays a second message after receiving the second message in an embodiment;

[0039] Figure 7 is an interactive sequence diagram of a message forwarding method in one embodiment;

[0040] Figure 8 A schematic diagram of a flow chart of a message forwarding method in another embodiment;

[0041] Fig. 9 is an interaction sequence diagram of a message forwarding method in yet another embodiment;

[0042] Fig.10 A schematic diagram of a flow chart of a message forwarding method in yet another embodiment;

[0043] Fig.11 is a timing diagram of a message forwarding method in yet another embodiment;

[0044] Fig.12 is a structural block diagram of a message forwarding device in an embodiment;

[0045] Fig.13 is a structural block diagram of a message forwarding device in another embodiment;

[0046] Fig.14 is an internal structure diagram of a computer device in one embodiment;

[0047] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0049] Before describing in detail the message forwarding method provided by the present application, the related technology is first introduced: In the related technology, when it comes to cross-application communication, it is usually implemented through the client's SDK. For example, client A converts the message content into the message format specified by the SDK, and then forwards the message to client B through the SDK. Client B then resends the received message as a session message.

[0050] Although this method can realize cross-application message forwarding, it still has some shortcomings, such as:

[0051] 1. The SDK in the related technology only supports single message forwarding. Each forwarding will start the person selection page of client B. If there are multiple messages to be forwarded, a person selection operation needs to be performed each time a message is forwarded. Therefore, the current SDK forwarding solution cannot support the demand of forwarding multiple messages at one time.

[0052] 2. The message forwarded by client A needs to adapt to the message format supported by the SDK. However, the message format supported by the SDK is limited and it is not possible to flexibly add new message types, such as adding video number messages.

[0053] 3. The platforms on which the client runs may be different. In order to realize the function of forwarding messages across applications, different platforms need to implement their own forwarding logic, which is time-consuming and labor-intensive to develop.

[0054] The message forwarding method provided in the present application transfers messages by the server, supports transmitting multiple messages at one time, and converts the message format by the server. The message format support is more flexible and also supports multiple platforms, ensuring the logical consistency of each platform and avoiding the need for each platform to redevelop the forwarding logic.

[0055] The message forwarding method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The first application 1021 and the second application 1022 are running on the terminal. The server 104 includes a first server 1041 and a second server 1042. The first data storage system can store data that the first server 1041 needs to process. The first data storage system can be integrated on the first server 1041, or it can be placed on the cloud or other network servers. The second data storage system can store data that the second server 1042 needs to process. The second data storage system can be integrated on the second server 1042, or it can be placed on the cloud or other network servers.

[0056] In the present application, in response to the cross-application forwarding request triggered in the first application 1021, the first application 1021 determines the first message to be forwarded, determines the message-related information according to the first message, and the first application 1021 sends the message-related information to the first server 1041. The first server 1041 performs format conversion based on the message-related information to obtain a converted message, generates a credential, and feeds the credential back to the first application 1021, and transmits the credential and the converted message to the second server 1042. The first application 1021 receives the credential and passes it to the second application 1022. The second application 1022 obtains the converted message from the second server 1042 according to the credential, determines the second message according to the converted message, and forwards the second message to the recipient of the second application 1022.

[0057] Among them, the terminal 102 includes but is not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, portable wearable devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The first server 1041 and the second server 1042 can be independent physical servers, or they can be server clusters or distributed systems composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected through wired or wireless communication, and this application does not limit this.

[0058] In an exemplary embodiment, Figure 2 As shown, a message forwarding method is provided, which is applied to Figure 1 The terminal in is taken as an example to illustrate, including the following steps 202 to 210. Among them:

[0059] Step 202: In response to a cross-application forwarding request triggered in a first application, determine a first message to be forwarded.

[0060] Among them, the cross-application forwarding request is a request for forwarding a message in one application to a contact in another application. The message can be a session message or a service message of a service embedded in the application. Among them, the session message is the data generated when different user accounts communicate, and can be a text message, picture message, voice message or video message; the service message is the media content provided by the service, such as the provided video, image, article or audio.

[0061] A first application and a second application are running on the terminal, wherein the first application and the second application can be social applications or multimedia applications with communication functions, such as instant messaging applications, organizational communication applications, etc., and multimedia applications such as video playback applications, live broadcast applications, etc. can provide multimedia content. It should be noted that the first application and the second application are different applications. In this application, the first application can be considered as a sending end, and the second application can be considered as a receiving end, wherein the account used to receive the second message in the second application can be considered as a receiving party.

[0062] Specifically, a first application is running on the terminal, and the terminal can display media content through the first application, or conduct a conversation through the first application. When a cross-application forwarding request is detected in the first application, a first message that triggers the cross-application forwarding request is determined, and the first message is a message to be forwarded to the second application. It can be understood that the first message can include one message or more than one message, and the embodiment of the present application is not limited to this.

[0063] In some embodiments, the terminal can display media content through a first application. When displaying the media content, a first preset operation for the media content is detected, the media content is used as a first message to be forwarded, and a cross-application forwarding request is generated. The first preset operation for the media content can specifically be a trigger operation occurring on a cross-application forwarding control. The trigger operation can specifically be a click operation, a sliding operation, a voice operation, or a key operation, etc., which is not limited in the embodiments of the present application.

[0064] For example, please refer to Figure 3 , Figure 3 FIG. 1 is a schematic diagram of an operation interface for forwarding media content across applications in an embodiment. Figure 3 As shown, the operation interface includes a content display area 31 and an operation area 32. The content display area 31 displays a video, and the operation area 32 can display multiple function controls, such as a cross-application forwarding control 321 of "share to second application friends". When the user clicks the cross-application forwarding control 321, it can be considered that a cross-application forwarding request is initiated.

[0065] In some embodiments, the terminal may display a session interface through a first application, in which at least one session message is displayed. When the terminal detects a second preset operation for at least one displayed session message, the at least one session message is used as a first message to be forwarded, and a cross-application forwarding request is generated. The second preset operation for the at least one session message may specifically be a trigger operation occurring on a cross-application forwarding control. The trigger operation may specifically be a click operation, a slide operation, a voice operation, or a key operation, etc., which is not limited in the embodiments of the present application.

[0066] For example, please refer to Figure 4A and Figure 4B , Figure 4A A schematic diagram of an interface for selecting a first message from a conversation message in an embodiment; Figure 4B FIG. 1 is a schematic diagram of an operation interface for forwarding a first message across applications in an embodiment. Figure 4A As shown, when the terminal detects a selection operation on the displayed session message, a pop-up window may be displayed. Figure 4A The operation window 41 shown in the figure may display at least one forwarding form selection control, such as a forwarding control 411 for each item and a combined forwarding control 412. In addition, the operation window 41 may also display a cancel control 413 for canceling the forwarding. When the user clicks any forwarding form selection control, it is considered that the currently desired target forwarding form is selected, and the terminal will jump to Figure 4B .like Figure 4B As shown, the interface displays a history session bar of the first application for entering the history session of the first application, and the interface also provides a cross-application forwarding control 42. When the user clicks the cross-application forwarding control 42, a cross-application forwarding request is initiated.

[0067] Step 204: Determine message-related information according to the first message.

[0068] Among them, the message-related information is information related to the message to be forwarded, for example, the message-related information may specifically include at least one of the text content of the message, the message identifier (i.e., the message ID), and the attachment attribute information of the attachments carried by the message. The message identifier is used to uniquely identify the message, and can be specifically represented by a string of letters, characters, or numbers; the attachment can specifically be media data such as pictures, videos, audio, documents, files, etc., and the attachment attribute information is information used to describe the characteristics of the attachment, such as the network link address, size, dimensions or quantity of the attachment, such as the width and height of the picture, the network link address of the video, etc.

[0069] In some embodiments, if the first message is a plain text message, the message-related information may specifically be the message identifier and text content; if the first message is a plain attachment message, the message-related information may specifically be the message identifier and attachment attribute information; if the first message includes a text message and an attachment message, the message-related information may specifically be the message identifier, text content, and attachment attribute information.

[0070] In an exemplary embodiment, determining message-related information based on a first message includes: obtaining text content of the first message; determining a message identifier of the first message, and determining attachment attribute information of an attachment in the first message; and using the text content, message identifier, and attachment attribute information as message-related information.

[0071] Specifically, the first application can obtain the text content of the first message, determine the message identifier of the message included in the first message, and determine the attachment attribute information of the attachment included in the first message, and then use the text content, message identifier and attachment attribute information as message related information.

[0072] It can be understood that if the first message is a plurality of messages, the message identifier is the message identifier of each message in the plurality of messages, and if the first message includes a plurality of attachments, the attachment attribute information is the attachment attribute information corresponding to each attachment.

[0073] In some embodiments, the message-related information may also include an application identifier of the application to which the recipient to be forwarded belongs, so that after receiving the message-related information, the server can convert the message content in the message-related information into a message format that matches the recipient according to the application identifier.

[0074] In the above embodiment, message forwarding can be achieved by simply uploading lightweight message-related information to the server, which occupies fewer network resources, has a fast upload speed, and can also improve message forwarding efficiency.

[0075] Step 206: Send the message-related information to the server through the first application to instruct the server to perform format conversion based on the message-related information to obtain a converted message and generate a credential.

[0076] Specifically, the terminal can send the message-related information to the server through the first application. After receiving the message-related information, the server performs format conversion to obtain a converted message. In addition, the server will randomly generate a credential, which is used to uniquely identify the forwarding process and can be represented by a token. The server feeds the credential back to the first application.

[0077] It should be noted that the present application does not limit the timing of the server's format conversion steps and credential generation steps. The format conversion can be performed first and the credential can be randomly generated after the format conversion is completed. The credential can be generated first and then the format conversion can be performed. The format conversion steps and credential generation steps can also be performed simultaneously through multiple processes.

[0078] Optionally, the server may first perform format conversion to obtain a converted message, and then randomly generate a credential after the format conversion is completed, so as to ensure that the second application can subsequently obtain the converted message through the credential.

[0079] In some embodiments, the terminal may compress the message-related information to obtain binary data, and then send it to the server to reduce the amount of transmission and improve the message sending. The specific compression method used is, for example, the protobuf (short for Protocol Buffers, which is a lightweight and efficient structured data storage format) compression method. Of course, the terminal may also use other compression methods, which are not limited in the embodiments of the present application.

[0080] In some embodiments, the server performs format conversion based on the message-related information, specifically, converting the format of the message content in the message-related information into a format compatible with the second application to obtain a converted message. For example, more specifically, the message field name of the message content may be converted to adapt to the second application.

[0081] In some embodiments, when a cross-application forwarding request is triggered in the first application, the first message is forwarded to the preset second application by default. Accordingly, when the server performs format conversion based on the message-related information, it automatically converts the format of the message content into a format corresponding to the second application.

[0082] For example, when the first application is an instant messaging application and the second application is an organization communication application, the server will convert the format of the message content of the first message of the instant messaging application into a format compatible with the organization communication application. Similarly, when the first application is an organization communication application and the second application is an instant messaging application, the server will convert the format of the message content of the first message of the organization communication application into a format compatible with the instant messaging application.

[0083] In some embodiments, the first application supports forwarding messages to multiple applications. Then, when the first application initiates a cross-application forwarding request, it can determine the second application from multiple applications based on the user's specified operation, and send the application identifier of the second application to the server. Based on this, the server can convert the format of the message content in the message-related information into the message format indicated by the application identifier. Among them, the application identifier is used to uniquely identify an application, and can specifically be an application name or an application serial number, etc.

[0084] Step 208: The first application receives the credentials fed back by the server and transmits the credentials to the second application.

[0085] Specifically, the first application receives the credentials fed back by the server, and transmits the credentials to the second application running locally in a cross-process manner.

[0086] In some embodiments, passing the credentials to the second application includes: passing the credentials from the first application to a forwarding toolkit; and passing the credentials from the forwarding toolkit to the second application running locally.

[0087] The forwarding toolkit specifically refers to a forwarding SDK, which can be a toolkit provided by the second application to the first application, or a toolkit provided by a third-party service. The first application can pre-access the forwarding SDK, so that during the message forwarding process, the credentials can be passed to the second application running locally through the forwarding SDK.

[0088] In the above embodiment, the credential transfer is achieved by forwarding the SDK. On the one hand, the first application and the second application are connected, providing the ability to transfer data across processes between the first application and the second application. On the other hand, by transmitting the credential through the SDK, there is almost no need to transfer new data in different formats, which can improve the practicality of the forwarding SDK and reduce the frequency of upgrading to adapt to new data formats.

[0089] In some embodiments, the first application receives the credentials fed back by the server and stores the credentials in a local shared space. When data changes in the shared space, the terminal can prompt the second application to access the shared space so that the second application can obtain the credentials from the shared space. The shared space can be a storage space that the user pre-authorizes in the terminal for the first application and the second application to use together. In this way, the effective transfer of credentials can be achieved.

[0090] It should be noted that before the second application actively communicates with the server through the currently logged-in user account (that is, the second account mentioned later), the server does not know which specific account is the second account in the message forwarding process. Therefore, in this application, the first application passes the credential to the second application, so that the second application can pull the converted message in the message forwarding process from the server based on the credential.

[0091] Step 210, obtaining a conversion message from the server according to the credential through the second application, determining a second message according to the conversion message, and forwarding the second message to a receiver of the second application.

[0092] Specifically, after obtaining the credential, the second application can pull the converted message from the server according to the credential, and then obtain the second message according to the converted message, and forward the second message to the recipient of the second application.

[0093] In some embodiments, after obtaining the credential, the second application may initiate a message pull request to the server, and the message pull request carries the credential. After receiving the message pull request, the server searches for a conversion message associated with the credential and feeds the conversion message back to the second application.

[0094] Furthermore, the second application can determine the second message according to the converted message, and forward the second message to the recipient of the second application. In the case where the first message does not include an attachment, the converted message can be a complete message, so the second application can directly send the converted message as the second message to the recipient; when the first message includes an attachment, the second application can first obtain the attachment, then combine the attachment with the converted message to obtain the second message, and send the second message to the recipient.

[0095] In some embodiments, when the first message includes an attachment, the first application can upload the attachment to the network, and the second application can download the related attachment from the network. In other embodiments, the first application can also transmit the attachment to the second application through a local service so that the second application can forward it.

[0096] In some embodiments, before sending the second message to the recipient, the second application may first display a contact page, obtain a target contact selected by the user in the contact page, and then forward the second message to the target contact.

[0097] In some embodiments, before sending the second message to the recipient, the second application may first call up a session selection page of the second application, displaying session entries of multiple historical sessions on the session selection page; in response to a selection operation on a session entry, the historical session corresponding to the session entry selected by the selection operation is used as the target session. In response to the operation of confirming the sending, the second message is forwarded to the session members in the target session through the second application.

[0098] In some embodiments, a new session control is displayed in the session selection page displayed by the second application. If the recipient is not in the historical session displayed on the session selection page, the contact page can be called up by triggering the new session control, and then the target contact selected by the user in the contact page can be obtained to forward the second message to the target contact.

[0099] Please refer to Figure 5 , Figure 5This is a prompt interface for confirming sending after selecting a target session in an embodiment. A prompt window 51 is displayed in the prompt interface, and prompt information is displayed in the prompt window 51. The prompt information includes contact information of the target contact, target forwarding method (such as forwarding one by one), and statistical information of the second message (such as a total of 1 message). Please continue to refer to Figure 6 , Figure 6 In one embodiment, the recipient displays a conversation interface of the second message after receiving the second message.

[0100] For example, please refer to Figure 7 , Figure 7 The interactive sequence diagram of the message forwarding method in one embodiment. The sending end (i.e., the first application mentioned in the above embodiment) packages the message-related information and sends it to the server; after receiving the message-related information, the server converts the message format into the message format of the receiving end (i.e., the second application mentioned in the above embodiment), and returns a token (also known as a credential) to the sending end; after receiving the token, the sending end sends the token to the receiving end through the forwarding SDK; after receiving the token, the receiving end uses the token to obtain the corresponding message from the server and forwards it.

[0101] In the above-mentioned message forwarding method, the first application determines the message-related information according to the first message to be forwarded, and sends the message-related information to the server. The server performs format conversion based on the received message forwarding information to obtain the converted message and generates a voucher. The server feeds back the voucher to the first application so that the first application can pass the voucher to the second application. Accordingly, the second application can obtain the converted message from the server according to the voucher to obtain the second message, and send the second message to the recipient belonging to the second application. It can be seen that in this application, only a small amount of data (i.e., message-related information) needs to be transmitted to the server, and the server performs the format conversion, which can avoid the terminal from doing a lot of format conversion logic, greatly reducing the terminal computing resources. And because the message conversion is done on the server, the supported message format is also more flexible. For any newly forwarded message format, the application on the terminal does not need to be adapted separately, which improves the forwarding adaptability of different types of session messages and makes message forwarding more flexible.

[0102] In actual application scenarios, the first message to be forwarded across applications sometimes does not carry attachments (such as plain text messages), and sometimes carries attachments. For messages without attachments, the message forwarding can be achieved by format conversion on the server side using the implementation method described above; and for messages with attachments, when forwarding, the related technology often uploads the attachments to the network through the first application, and the second application then downloads the related attachments from the network to achieve the forwarding of the attachments. Obviously, this will increase the traffic consumption during the forwarding waiting time, and if the network conditions are not good, the forwarding failure rate is also relatively high.

[0103] Based on this, please refer to Figure 8 The present application provides a message forwarding method for a scenario with attachments, the method specifically comprising the following steps:

[0104] Step 802: In response to a cross-application forwarding request triggered in a first application, determine a first message to be forwarded.

[0105] Step 804, determine message-related information based on the first message, and send the message-related information to the server through the first application to instruct the server to perform format conversion based on the message-related information to obtain a converted message and generate a credential.

[0106] Step 806: determine the attachment carried in the first message, and generate a local link address corresponding to the attachment by the first application.

[0107] Among them, attachment refers to message attachment, which can be media data such as pictures, videos, audios, documents, or files carried in the message. Specifically, if the attachment in the first message is stored locally in the terminal, the first application can determine the attachment in the first message to be forwarded, and then generate a local link address corresponding to the attachment through local file sharing technology. In other words, if the first application as the sender stores the attachment locally in the terminal, then the second application as the receiver does not need to download the attachment from the server, but can directly obtain the attachment from the sender locally.

[0108] In some embodiments, an operating system, such as an Android operating system, may be run on the terminal. The terminal may generate a shared local link address through a file sharing service running in the operating system, and the local link address points to the attachment stored in the terminal. The file sharing service may be, for example, a FileProvider service.

[0109] Step 808: The first application receives the credentials fed back by the server.

[0110] Step 810, passing the credentials and the local link address to the second application.

[0111] Specifically, the first application can pass the credential and the local link address to the second application in a cross-process manner. In some embodiments, the first application passes the credential and the local link address to the forwarding toolkit, and the forwarding toolkit passes the credential and the local link address to the second application running locally.

[0112] In some embodiments, the first application may generate a data packet based on the local link address, and pass the credentials and the data to the second application. Alternatively, the first application may send the credentials and the data packet to a forwarding toolkit, which passes the credentials and the data packet to the second application running locally.

[0113] In some embodiments, the first application may associate the local link address corresponding to the attachment with the message identifier corresponding to the attachment to obtain a data packet, and pass the data packet to the second application through the first application. Optionally, the first application may send the data packet to a forwarding toolkit, and the forwarding toolkit passes the data packet to the second application running locally.

[0114] For example, the first application generates a shared local link address based on FileProvider for the attachment in the first message to be forwarded, and maps the local link address with the message identifier corresponding to the attachment it points to, and stores it in a json (a lightweight data exchange format) string. Then, after the first application obtains the forwarding token from the server, it forwards the json string including the local link address and the token to the second application.

[0115] Step 812, the second application obtains the converted message from the server according to the credential, and the second application obtains the attachment according to the local link address, and combines the attachment with the converted message to obtain a second message, and forwards the second message to the recipient of the second application.

[0116] Specifically, after obtaining the credential, the second application can pull the converted message from the server according to the credential. At the same time, the second application can also obtain the attachment according to the local link address, thereby combining the attachment with the converted message to obtain the second message, and send the second message to the recipient.

[0117] In some embodiments, before sending the second message to the recipient, the second application may first display a contact page, obtain a target contact selected by the user in the contact page, and then forward the second message to the target contact.

[0118] In some embodiments, combining the attachment with the converted message to obtain the second message specifically includes: determining a message identifier associated with the local link address from which the attachment originates, and combining the attachment with the converted message to obtain the second message according to the associated message identifier.

[0119] Specifically, after the second application obtains the attachment, it can locate the position of the message indicated by the message identifier from the converted message according to the message identifier associated with the local link address from which the attachment originated, and insert the attachment into the position to obtain the second message.

[0120] In this way, by associating and mapping the message identifier with the local link address, it is convenient to locate the message with the attachment, so that the attachment can be accurately and quickly combined into the correct message to obtain the second message.

[0121] In some embodiments, after the second application obtains the converted message from the server through a token, it parses the corresponding local link address from the received data (such as a json string) through the message identifier corresponding to the attachment, reads the attachment and combines it with the converted message to obtain a second message.

[0122] For example, please refer to Fig. 9 , Fig. 9 FIG. 4 is an interactive sequence diagram of a message forwarding method in another embodiment. Fig. 9 As shown, the sending end (i.e., the first application mentioned in the above embodiment) generates a shared local link address url (Uniform Resource Locator) for the attachment corresponding to the first message based on FileProvider, and maps the shared url to the message id in a json string. The sending end packages the message-related information and sends it to the server. After receiving the message-related information, the server converts the message format into the message format of the receiving end (i.e., the second application mentioned in the above embodiment), and returns a forwarding token to the sending end. After obtaining the forwarding token from the server, the sending end forwards the json string containing the url of the local attachment together with the token to the receiving end. The receiving end obtains the forwarded message from the server through the token, parses the corresponding local attachment url from the received json string through the message id, reads the attachment, and combines the attachment with the forwarded message before sending.

[0123] In the above embodiment, local message attachments are transmitted in a client cross-process manner, thereby avoiding repeated uploading and downloading of attachments, reducing traffic consumption, and improving the success rate of message forwarding.

[0124] In some embodiments, the server includes a first server corresponding to the first application, and a second server corresponding to the second application; sending message-related information to the server through the first application includes: the first application sends the message-related information to the first server to instruct the first server to perform format conversion based on the message-related information to obtain a converted message, generate a credential, and feed the credential back to the first application, and transmit the credential and the converted message to the second server; obtaining the converted message from the server according to the credential through the second application, including: obtaining the converted message from the second server according to the credential through the second application.

[0125] Specifically, after the first application determines the message-related information according to the first message, the message-related information is sent to the first server corresponding to the first application through the first application, and the first server performs format conversion based on the message-related information to obtain a converted message and generates a credential. Further, the first server feeds the credential back to the first application, and transmits the credential and the converted message to the second server.

[0126] The first application passes the received credential to the second application, so the second application can initiate a request to the second server with the credential. When the second server verifies that the credential is valid, it can feed back a conversion message associated with the credential to the second application. Then the second application determines the second message based on the conversion message and forwards the second message to the recipient of the second application.

[0127] In the above embodiment, the message forwarding from the first application to the second application can be achieved through data interaction between the background server of the first application and the background server of the second application.

[0128] In some embodiments, the message-related information includes an application identifier of the application corresponding to the recipient, instructing the first server to perform format conversion based on the message-related information to obtain a converted message, including: instructing the first server to obtain the application identifier in the message-related information, and converting the format of the message content in the message-related information into the message format indicated by the application identifier to obtain a converted message.

[0129] Among them, the application identifier is used to uniquely identify an application, and can specifically be the application name of the application, or the ID of the application, etc., which is not limited in the embodiments of the present application.

[0130] It can be understood that when the first application and the second application can forward messages to each other by default, and only the messages can be forwarded to each other, then the message-related information may not carry the application identifier. After the first server receives the message-related information, it can directly convert the message content into the message format of the second application.

[0131] In some other scenarios, the first application can realize message exchange between multiple second applications. In this case, the message-related information may include a specified application identifier, which is used to instruct the first server to convert the format of the message content in the message-related information into the message format indicated by the application identifier to obtain a converted message.

[0132] In the above embodiment, when initiating a cross-application forwarding request, the application identifier is also sent to the first server, so that the first server can know the application corresponding to the receiving end, and then convert the format of the message content in the message-related information into the message format indicated by the application identifier to realize subsequent message forwarding.

[0133] In some embodiments, the first message is multiple messages, and forwarding the second message to the recipient of the second application includes: determining the target forwarding form; the target forwarding form includes any one of merge forwarding and forwarding one by one; and the second application forwards the second message to the recipient of the second application according to the forwarding form.

[0134] Specifically, before forwarding the second message to the recipient, the second application may first determine the target forwarding form, and then the second application forwards the second message to the recipient of the second application according to the target forwarding form.

[0135] It should be noted that the step of determining the target forwarding form can be specifically executed by the first application after selecting the first message to be forwarded, or can be executed before calling up the contact page of the second application, and the embodiment of the present application is not limited to this.

[0136] In some embodiments, please refer to Figure 4A When the user long presses the message card in the first application, he can select multiple messages, and after selecting the good message, click the forward button to pop up the following Figure 4A The operation window 41 shown may display at least one forwarding form selection control, such as a forwarding control 411 for each item and a combined forwarding control 412. When the user clicks any forwarding form selection control, the currently desired target forwarding form is considered to be selected.

[0137] In other embodiments, when a user triggers a cross-application forwarding request through the first application, a pop-up window may be displayed through the first application or the second application, and at least one forwarding form selection control may be displayed in the pop-up window, such as a forwarding control for each message and a combined forwarding control. When the user clicks any forwarding form selection control, the desired target forwarding form may be considered selected. The user may then be redirected to the contact page of the second application to select a target contact of the recipient.

[0138] In the above embodiment, the sending modes of combined forwarding and message-by-message forwarding are provided for the user to choose. The user can select the desired forwarding mode, thereby improving the portability and applicability of message forwarding.

[0139] In some embodiments, before forwarding the second message to the recipient of the second application, the method further includes a target session selection step, which includes: calling up a session selection page of the second application; and in response to a selection operation in the session selection page, determining a target session selected by the selection operation. Forwarding the second message to the recipient of the second application includes: in response to a confirmation operation, forwarding the second message to a session member in the target session through the second application.

[0140] Specifically, the terminal can call up the session selection page of the second account currently logged in to the second application, and display multiple historical sessions in the session selection page. It should be noted that, when the second account logged in to the second application theoretically belongs to the same user as the first account currently logged in to the first application. The user can send the message to be forwarded to the contact of the second account through the second account currently logged in to the second application by logging in to the first account of the first application.

[0141] Further, the second application determines the target session selected by the selection operation in response to the selection operation in the session selection page. In response to the confirmation sending operation, the second application forwards the second message to the session members of the target session.

[0142] In some cases, if the recipient that the user wants to share with is not in the session selection page, the contact page of the second application can be called up by triggering the new session control in the session selection page, so that the user can select the target contact as the recipient in the contact page.

[0143] In the above embodiment, the message to be forwarded can be sent to the target contact of the second application through contact selection, thereby realizing the function of cross-application forwarding.

[0144] In an exemplary embodiment, Fig.10 As shown, a message forwarding method is provided, which is applied to Figure 1 The server in the example is used for explanation. It can be understood that the method can also be applied to the first server in the server. The method includes the following steps:

[0145] Step 1002, receiving message-related information sent by a first application; the message-related information is determined according to a first message of the first application to be forwarded.

[0146] Specifically, the server may receive information related to a message sent by the first application, for example, the first server receives information related to a message sent by the first application.

[0147] For the process of generating the message-related information, please refer to the aforementioned description of steps 202 to 204.

[0148] Step 1004, performing format conversion based on the message related information to obtain a converted message, and generating a voucher.

[0149] Specifically, after receiving the message-related information, the server performs format conversion to obtain a converted message. In addition, the server will randomly generate a credential and feed the credential back to the first application. The credential can be represented by a token.

[0150] In some embodiments, the first server in the service end performs format conversion after receiving the message related information to obtain a converted message. In addition, the first server will randomly generate a credential and feed the credential back to the first application. The credential can be represented by a token. The first server sends the converted message and the credential to the second server.

[0151] It should be noted that the present application does not limit the timing of the server's format conversion steps and credential generation steps. The format conversion can be performed first and then the credential is randomly generated after the format conversion is completed. The credential can be generated first and then the format conversion can be performed. The format conversion steps and credential generation steps can also be performed simultaneously through multiple processes.

[0152] In some embodiments, the server performs format conversion based on the message-related information, specifically, converting the format of the message content in the message-related information into a format compatible with the second application to obtain a converted message. For example, more specifically, the message field name of the message content may be converted to adapt to the second application.

[0153] In some embodiments, format conversion is performed based on message-related information to obtain a converted message, including: obtaining an application identifier in the message-related information; converting the format of the message content in the message-related information into a message format indicated by the application identifier to obtain a converted message.

[0154] In some scenarios, a first application can implement message exchange with multiple second applications. In this case, the message-related information may include a specified application identifier, which is used to instruct the first server to convert the format of the message content in the message-related information into the message format indicated by the application identifier to obtain a converted message.

[0155] In the above embodiment, when initiating a cross-application forwarding request, the application identifier is also sent to the first server, so that the first server can know the application corresponding to the receiving end, and then convert the format of the message content in the message-related information into the message format indicated by the application identifier to realize subsequent message forwarding.

[0156] Step 1006, feed back the credentials to the first application; the fed-back credentials are used to pass to the second application, and instruct the second application to obtain a conversion message from the server according to the credentials, to determine the second message according to the conversion message, and forward the second message to the recipient belonging to the second application.

[0157] Specifically, the server feeds back the credentials to the first application, the first application passes the credentials to the second application, and instructs the second application to obtain a conversion message from the server according to the credentials, to determine the second message according to the conversion message, and forward the second message to the recipient belonging to the second application.

[0158] In some embodiments, the second application obtains a converted message from the second server according to the credential, determines a second message according to the converted message, and forwards the second message to a recipient belonging to the second application.

[0159] Regarding the transfer of credentials and the contents of the related steps performed by the second application based on the credentials, please refer to the description of the aforementioned embodiment.

[0160] In the above-mentioned message forwarding method, the first application determines the message-related information according to the first message to be forwarded, and sends the message-related information to the server. The server performs format conversion based on the received message forwarding information to obtain a converted message and generates a voucher. The server feeds back the voucher to the first application so that the first application can pass the voucher to the second application. Accordingly, the second application can obtain the converted message from the server according to the voucher to obtain the second message, and send the second message to the recipient belonging to the second application. It can be seen that in this application, only a small amount of data (i.e., message-related information) needs to be transmitted to the server, and the server performs the format conversion, which can avoid the terminal from performing a large amount of message format conversion logic, greatly reducing the terminal computing resources. And because the message conversion is done on the server, the supported message formats are also more flexible. For any newly forwarded message format, the application on the terminal does not need to be adapted separately, which improves the forwarding adaptability of different types of session messages.

[0161] In a specific embodiment, please refer to Fig.11 , Fig.11 is a timing diagram of a message forwarding method in an embodiment, such as Fig.11 As shown, the message forwarding method includes the following steps:

[0162] A cross-application forwarding request is triggered in the first application, and the first application determines the first message to be forwarded and the target forwarding form. The first application determines message-related information based on the first message, and sends the message-related information to the first server. The first application generates a local link address corresponding to the attachment in the first message, associates the local link address corresponding to the attachment, and the message identifier corresponding to the attachment, and obtains a data packet.

[0163] The first server obtains the application identifier in the message related information, converts the format of the message content in the message related information into the message format indicated by the application identifier, and obtains the converted message. The first server generates a credential, feeds the credential back to the first application, and transmits the credential and the converted message to the second server.

[0164] The first application receives the credentials fed back by the first server, and passes the credentials and the data packet to the forwarding toolkit, which then forwards the credentials and the data packet to the second application running locally.

[0165] The second application obtains the converted message from the server according to the credential, obtains the attachment according to the local link address in the data packet, and combines the attachment with the converted message to obtain a second message according to the message identifier associated with the local link address from which the attachment originates.

[0166] The second application calls up the contact page, responds to a selection operation in the contact page, determines a target contact selected by the selection operation, and forwards the second message to the target contact in a target forwarding form.

[0167] The present application provides an innovative cross-application message forwarding system, which realizes efficient and secure message conversion in different applications by adopting a new forwarding protocol and interaction mode. The present application supports the forwarding and combined forwarding of multiple messages one by one to meet the needs of different users; the cross-platform compatibility is strong, because the format conversion operation is performed by the server, it can support mainstream operating system platforms such as iOS (a mobile operating system), Android (a mobile operating system), Windows (an operating system), and macOS (an operating system), and the application deployed on the terminal does not need to develop its own forwarding logic, saving a lot of resources; in addition, the message conversion is realized by the server in the present application, and the supported message format is more flexible, and the new message format does not need to be adapted separately by the client, and it supports various client platforms at the same time, and the compatibility with new and old versions is also better, which greatly improves the scenario applicability of message forwarding; the attachment message forwarding of some scenarios is optimized to share it locally, avoiding the operation of uploading and downloading, reducing the time and traffic consumed by message forwarding, improving the forwarding speed, and reducing the forwarding failure rate. Through the cross-application message forwarding method provided by the present application, users can realize the conversion of various forms of messages in different applications and scenarios, improve work efficiency, and meet diverse communication needs.

[0168] The following is a detailed description of the message forwarding method of the present application, taking an actual application scenario as an example:

[0169] It can be understood that the first message can specifically be a service message. In this case, taking the first application as an organization communication application and the second application as an instant messaging application as an example, the terminal can provide media content through the service application embedded in the organization communication application. A cross-application forwarding control is displayed on the media content provision page. When the user clicks the cross-application forwarding control, it can be considered that a cross-application forwarding request has been initiated, and the user can choose to share it with friends in the instant messaging application. When the user clicks to share with friends in the instant messaging application, it will jump to the session selection page of the instant messaging application to select the target session to be shared. When the user selects a specific target session, the service message can be forwarded to the session members of the target session in the instant messaging application.

[0170] In some cases, if the recipient that the user wants to share with is not in the session selection page, the contact page of the instant messaging application can be called up by triggering the new session control in the session selection page, so that the user can select the target contact as the recipient in the contact page.

[0171] In other scenarios, the first message may also be a conversation message. In this case, still taking the first application as an organization communication application and the second application as an instant messaging application as an example, the terminal may display a conversation interface through the organization communication application. When the terminal detects a selection operation on the displayed conversation message, an operation window may pop up, and at least one forwarding form selection control may be displayed in the operation window, such as a forwarding control for each message and a combined forwarding control. When the user clicks forwarding for each message or a combined forwarding control, the user enters the conversation selection interface of the organization communication application, which provides a cross-application forwarding control. When the user clicks the cross-application forwarding control, the user will be redirected to the conversation selection page of the instant messaging application. After selecting the target conversation to be forwarded, the message will be forwarded to the conversation members of the target conversation in the instant messaging application one by one or in a combined manner.

[0172] Similarly, in some cases, if the recipient that the user wants to share with is not in the session selection page, the contact page of the instant messaging application can be called up by triggering the new session control in the session selection page, so that the user can select the target contact as the recipient in the contact page.

[0173] It should be noted that the above scenario embodiments are described using the example of the first application being an organization communication application and the second application being an instant messaging application. In actual use, the first application may be an instant messaging application and the second application may be an organization communication application. In other scenarios, the first application and the second application are not limited to organization communication applications and instant messaging applications. For example, any of the applications may also be a media playback application or an email application, etc. This application embodiment does not limit this.

[0174] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0175] Based on the same inventive concept, the embodiment of the present application also provides a message forwarding device for implementing the message forwarding method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more message forwarding device embodiments provided below can refer to the limitations on the message forwarding method above, and will not be repeated here.

[0176] In an exemplary embodiment, Fig.12 As shown, a message forwarding device 1200 is provided, comprising: a determination module 1201, a sending module 1202, a receiving module 1203, a transmission module 1204, an acquisition module 1205 and a forwarding module 1206, wherein:

[0177] The determination module 1201 is configured to determine a first message to be forwarded in response to a cross-application forwarding request triggered in the first application, and determine message-related information according to the first message.

[0178] The sending module 1202 is used to send the message related information to the server through the first application to instruct the server to perform format conversion based on the message related information to obtain a converted message and generate a credential.

[0179] The receiving module 1203 is configured to receive, by the first application, the credentials fed back by the server.

[0180] The transfer module 1204 is used to transfer the credential to the second application.

[0181] The acquisition module 1205 is used to acquire the conversion message from the server according to the credential through the second application, and determine the second message according to the conversion message.

[0182] The forwarding module 1206 is configured to forward the second message to a receiver of the second application.

[0183] In some embodiments, the determination module is also used to: determine the attachment carried in the first message, and generate a local link address corresponding to the attachment by the first application; the transmission module is also used to transmit the local link address to the second application through the first application; the acquisition module is also used to obtain the attachment according to the local link address by the second application, and combine the attachment with the converted message to obtain the second message.

[0184] In some embodiments, the determination module is also used to associate the local link address corresponding to the attachment and the message identifier corresponding to the attachment to obtain a data packet; the delivery module is also used to deliver the data packet to the second application through the first application; the acquisition module is also used to determine the message identifier associated with the local link address from which the attachment originated, and combine the attachment with the converted message according to the associated message identifier to obtain a second message.

[0185] In some embodiments, the determination module is also used to obtain the text content of the first message; determine the message identifier of the first message, determine the attachment attribute information of the attachment in the first message; and use the text content, message identifier and attachment attribute information as message related information.

[0186] In some embodiments, the server includes a first server corresponding to the first application, and a second server corresponding to the second application; a sending module, specifically used for the first application to send message-related information to the first server, to instruct the first server to perform format conversion based on the message-related information to obtain a converted message, generate a credential, and feed the credential back to the first application, and transmit the credential and the converted message to the second server; an acquisition module, specifically used to obtain the converted message from the second server according to the credential through the second application.

[0187] In some embodiments, the message-related information includes an application identifier of the application corresponding to the recipient. The sending module is also used to instruct the first server to obtain the application identifier in the message-related information, and convert the format of the message content in the message-related information into the message format indicated by the application identifier to obtain a converted message.

[0188] In some embodiments, the transfer module is specifically configured to transfer the credentials from the first application to the forwarding toolkit; and transfer the credentials from the forwarding toolkit to the second application running locally.

[0189] In some embodiments, the first message is multiple messages, and the forwarding module is specifically used to determine the target forwarding form; the forwarding form includes any one of merge forwarding and forwarding one by one; the second application forwards the second message to the recipient of the second application according to the target forwarding form.

[0190] In some embodiments, the device also includes a selection module, which is used to call up a session selection page of a second application; in response to a selection operation in the session selection page, determine the target session selected by the selection operation; and a forwarding module, which is specifically used to forward the second message to the session members in the target session through the second application in response to a confirmation sending operation.

[0191] In an exemplary embodiment, Fig.13 As shown, a message forwarding device 1300 is provided, including: a receiving module 1301, a conversion module 1302, and a feedback module 1303, wherein:

[0192] The receiving module 1301 is used to receive message related information sent by a first application; the message related information is determined according to the first message of the first application to be forwarded;

[0193] The conversion module 1302 is used to convert the format of the message based on the relevant information of the message to obtain a converted message and generate a voucher;

[0194] Feedback module 1303 is used to feed back the credentials to the first application; the fed-back credentials are used to pass to the second application, and instruct the second application to obtain a conversion message from the server according to the credentials, to determine the second message according to the conversion message, and forward the second message to the recipient belonging to the second application.

[0195] In some embodiments, the conversion module is specifically used to obtain the application identifier in the message-related information; convert the format of the message content in the message-related information into the message format indicated by the application identifier to obtain a converted message.

[0196] Each module in the above message forwarding device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0197] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.14As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store messages. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a message forwarding method is implemented.

[0198] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.15 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a message forwarding method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0199] Those skilled in the art will understand that Fig.14 or Fig.15The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0200] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0201] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0202] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0203] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0204] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0205] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0206] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A message forwarding method, characterized in that: The method comprises: In response to a cross-application forwarding request triggered in the first application, determining a first message to be forwarded; determining message related information according to the first message; Sending the message-related information to the server through the first application to instruct the server to perform format conversion based on the message-related information to obtain a converted message and generate a credential; The first application receives the credentials fed back by the server, and transmits the credentials to the second application; The second application obtains the converted message from the server according to the credential, determines the second message according to the converted message, and forwards the second message to a receiver of the second application.

2. The method according to claim 1, characterized in that The method further comprises: Determine an attachment carried in the first message, and generate, by the first application, a local link address corresponding to the attachment; passing the local link address to a second application via the first application; The determining the second message according to the converted message comprises: The second application obtains the attachment according to the local link address, and combines the attachment with the converted message to obtain a second message.

3. The method according to claim 2, characterized in that The method further comprises: Associating the local link address corresponding to the attachment and the message identifier corresponding to the attachment to obtain a data packet; The transferring the local link address to the second application through the first application includes: passing the data packet to a second application via the first application; The step of combining the attachment with the converted message to obtain a second message includes: A message identifier associated with the local link address from which the attachment originates is determined, and the attachment is combined with the converted message according to the associated message identifier to obtain a second message.

4. The method according to claim 1, characterized in that: The determining message-related information according to the first message includes: Obtaining text content of the first message; Determine a message identifier of the first message, and determine attachment attribute information of the attachment in the first message; The text content, the message identifier and the attachment attribute information are used as message related information.

5. The method according to claim 1, characterized in that The server includes a first server corresponding to the first application and a second server corresponding to the second application; The sending the message-related information to the server through the first application includes: The first application sends the message-related information to the first server to instruct the first server to perform format conversion based on the message-related information to obtain a converted message, generate a credential, feed the credential back to the first application, and transmit the credential and the converted message to the second server; The obtaining the conversion message from the server according to the credential by the second application includes: The converted message is obtained from the second server according to the credential by the second application.

6. The method according to claim 5, characterized in that The message related information includes an application identifier of an application corresponding to the recipient, and the instructing the first server to perform format conversion based on the message related information to obtain a converted message includes: The first server is instructed to obtain the application identifier in the message related information, and convert the format of the message content in the message related information into the message format indicated by the application identifier to obtain a converted message.

7. The method according to claim 1, characterized in that The delivering the credential to the second application comprises: The first application transmits the credential to a forwarding toolkit; The credentials are passed by the forwarding toolkit to a second application running locally.

8. The method according to claim 1, characterized in that The first message is a plurality of messages, and the forwarding of the second message to a receiver of the second application includes: Determine a target forwarding form; the forwarding form includes any one of merge forwarding and forwarding one by one; The second application forwards the second message to a receiver of the second application according to the target forwarding form.

9. The method according to any one of claims 1 to 8, characterized in that Before forwarding the second message to the recipient of the second application, the method further includes: Invoke a session selection page of the second application; In response to a selection operation in the session selection page, determining a target session selected by the selection operation; The forwarding the second message to a receiver of the second application includes: In response to the operation of confirming the sending, the second message is forwarded to session members in the target session through the second application.

10. A message forwarding method, characterized in that: The method comprises: Receive message-related information sent by a first application; the message-related information is determined according to a first message of the first application to be forwarded; Performing format conversion based on the message-related information to obtain a converted message, and generating a voucher; The credential is fed back to the first application; the fed-back credential is used to be passed to the second application, and the second application is instructed to obtain the conversion message from the server according to the credential, so as to determine the second message according to the conversion message, and forward the second message to the recipient belonging to the second application.

11. The method according to claim 10, characterized in that The converting the format based on the message related information to obtain the converted message includes: Obtaining the application identifier in the message related information; The format of the message content in the message related information is converted into the message format indicated by the application identifier to obtain a converted message.

12. A message forwarding device, characterized in that: The device comprises: A determination module, configured to determine a first message to be forwarded in response to a cross-application forwarding request triggered in a first application, and determine message-related information according to the first message; A sending module, used to send the message related information to the server through the first application, so as to instruct the server to perform format conversion based on the message related information to obtain a converted message, and generate a credential; A receiving module, configured to receive, by the first application, the credentials fed back by the server; A transfer module, used for transferring the credential to a second application; an acquisition module, configured to acquire the conversion message from the server according to the credential through the second application, and determine a second message according to the conversion message; A forwarding module is used to forward the second message to a receiver of the second application.

13. A message forwarding device, characterized in that: The device comprises: A receiving module, configured to receive message-related information sent by a first application; the message-related information is determined according to a first message of the first application to be forwarded; A conversion module, used to convert the format of the message based on the relevant information to obtain a converted message and generate a voucher; A feedback module is used to feed back the credential to the first application; the fed-back credential is used to pass it to the second application, and instruct the second application to obtain the conversion message from the server according to the credential, so as to determine the second message according to the conversion message, and forward the second message to the recipient belonging to the second application.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.