Message processing method, device, equipment and medium
By generating and displaying the cards corresponding to the links in the instant messaging application, the problem of users needing to click on a large number of links to learn about the content is solved, improving the user experience and optimizing the processing burden.
Patent Information
- Application Number
- CN202211214037.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2042-09-30
AI Technical Summary
In instant messaging applications, users need to click on a large number of links to know the link content, especially when there are too many messages, which leads to poor user experience.
By determining whether the linked domain name is in the specified list on the server, if so, a card protocol matching the link is generated, and a message modification request is sent to the client, and the modification target message is a target card containing the page content corresponding to the link.
It realizes that without clicking on the link, users can intuitively view the link content, improve the user experience, and reduce the processing burden on the server and client.
Smart Images

Figure CN115580590B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence, specifically to the field of instant messaging technology, and in particular to message processing methods, devices, equipment and media. Background Art
[0002] For corporate employees, they may need to face a large amount of information and things every day, and the work content is diverse and complex. When faced with such diverse and complex work content, corporate employees often receive messages containing links in instant messaging applications. Since these links may carry work content or work arrangements, corporate employees need to click on the links to view the specific link content if they want to know the link content. However, when the number of messages is large, users need to click on a large number of links to know the link content. Summary of the invention
[0003] The present disclosure provides a message processing method, a message processing method, an apparatus, a device, a medium and a vehicle.
[0004] According to one aspect of the present disclosure, a message processing method is provided, which is applied to a server, and includes:
[0005] Obtaining a target message sent by the first client to the second client;
[0006] In the case where the target message carries a link, determining whether the domain name of the link is in a specified list, wherein the specified list includes at least one registered domain name;
[0007] In the case where the domain name of the link is in the designated list, generating a card protocol matching the link according to the domain name of the link;
[0008] A message modification request carrying the card protocol is sent to the first client and / or the second client, wherein the message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0009] According to another aspect of the present disclosure, a message processing method is provided, which is applied to a second client and includes:
[0010] Receiving, through the server, a target message sent by the first client;
[0011] receiving a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name;
[0012] In response to the message modification request, the target message in the target session between the first client and the second client is modified based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0013] According to another aspect of the present disclosure, a message processing method is provided, which is applied to a first client and includes:
[0014] Sending a target message to the second client through the server;
[0015] receiving a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name;
[0016] In response to the message modification request, the target message in the target session between the first client and the second client is modified based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0017] According to another aspect of the present disclosure, a message processing device is provided, which is applied to a server, including:
[0018] An acquisition module, used to acquire a target message sent by the first client to the second client;
[0019] a determination module, configured to determine, when the target message carries a link, whether the domain name of the link is in a specified list, wherein the specified list includes at least one registered domain name;
[0020] A generating module, configured to generate a card protocol matching the link according to the domain name of the link when the domain name of the link is in the specified list;
[0021] A sending module is used to send a message modification request carrying the card protocol to the first client and / or the second client, wherein the message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, and the modified target message includes a target card containing the page content corresponding to the link.
[0022] According to another aspect of the present disclosure, a message processing device is provided, which is applied to a second client and includes:
[0023] A receiving module, used for receiving a target message sent by a first client through a server;
[0024] The receiving module is further used to receive a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name;
[0025] A modification module is used to modify the target message in the target session between the first client and the second client based on the card protocol in response to the message modification request to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0026] According to another aspect of the present disclosure, a message processing device is provided, which is applied to a first client and includes:
[0027] A sending module, used for sending a target message to a second client through a server;
[0028] a receiving module, configured to receive a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name;
[0029] A modification module is used to modify the target message in the target session between the first client and the second client based on the card protocol in response to the message modification request to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0030] According to another aspect of the present disclosure, there is provided an electronic device, including:
[0031] at least one processor; and
[0032] a memory communicatively connected to the at least one processor; wherein,
[0033] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the message processing method proposed in the above-mentioned first aspect of the present disclosure, or execute the message processing method proposed in the above-mentioned second aspect of the present disclosure, or execute the message processing method proposed in the above-mentioned third aspect of the present disclosure.
[0034] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium of computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the message processing method proposed in the above-mentioned first aspect of the present disclosure, or execute the message processing method proposed in the above-mentioned other aspect of the present disclosure, or execute the message processing method proposed in the above-mentioned still further aspect of the present disclosure.
[0035] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the message processing method proposed in the above-mentioned first aspect of the present disclosure, or implements the message processing method proposed in the above-mentioned another aspect of the present disclosure, or executes the message processing method proposed in the above-mentioned yet another aspect of the present disclosure.
[0036] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0038] Figure 1 A flowchart of a message processing method provided in Embodiment 1 of the present disclosure;
[0039] Figure 2 A schematic diagram of a modified target message provided by an embodiment of the present disclosure;
[0040] Figure 3 A flowchart of a message processing method provided in Embodiment 2 of the present disclosure;
[0041] Figure 4 A flowchart of a message processing method provided in Embodiment 3 of the present disclosure;
[0042] Figure 5 A flowchart of a message processing method provided in Embodiment 4 of the present disclosure;
[0043] Figure 6 A flowchart of a message processing method provided in Embodiment 5 of the present disclosure;
[0044] Figure 7 A flowchart of a message processing method provided in Embodiment 6 of the present disclosure;
[0045] Figure 8 A flowchart of a message processing method provided in Embodiment 7 of the present disclosure;
[0046] Fig. 9 A flowchart of a message processing method provided in Embodiment 8 of the present disclosure;
[0047] Fig.10 A flowchart of a message processing method provided by Embodiment 9 of the present disclosure;
[0048] Fig.11 A schematic diagram of the process of generating a target card provided in an embodiment of the present disclosure;
[0049] Fig.12 A schematic diagram of the structure of a message processing device provided in Embodiment 10 of the present disclosure;
[0050] Fig.13 A schematic diagram of the structure of a message processing device provided in Embodiment 11 of the present disclosure;
[0051] Fig.14 A schematic diagram of the structure of a message processing device provided in Embodiment 12 of the present disclosure;
[0052] Fig.15 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0053] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0054] The following describes the message processing method, message processing method, apparatus, device, medium and vehicle of the embodiments of the present disclosure with reference to the accompanying drawings.
[0055] Figure 1 A flowchart of a message processing method provided in Embodiment 1 of the present disclosure.
[0056] The message processing method in the embodiment of the present disclosure can be applied to the server.
[0057] like Figure 1 As shown, the message processing method may include the following steps:
[0058] Step 101: Acquire a target message sent by a first client to a second client.
[0059] In an example embodiment, the first client refers to a client that sends a target message, and the second client refers to a client that receives the target message. The first client can send the target message to the second client through the server.
[0060] The client refers to a software program that runs on an electronic device and provides services to users.
[0061] The target message may also be called an instant message (IM for short).
[0062] Among them, the electronic device can be any device with computing capabilities, such as a personal computer, a mobile terminal, etc. The mobile terminal can be, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and other hardware devices with various operating systems, touch screens and / or display screens.
[0063] In an example embodiment, the server may obtain a target message sent by the first client to the second client.
[0064] Step 102: When the target message carries a link, determine whether the domain name of the link is in a specified list.
[0065] The specified list includes at least one registered domain name, and each registered domain name is used to indicate that a card needs to be generated for a link of the corresponding domain name.
[0066] In an example embodiment, the server may parse the target message to determine whether the target message carries a link. If the target message does not carry a link, subsequent steps may not be performed, that is, only the target message may be displayed in the target session between the first client and the second client.
[0067] In the case where the target message carries a link, the link can be parsed to determine the domain name corresponding to the link and to determine whether the domain name of the link is in the specified list. If the domain name of the link is not in the specified list, it indicates that there is no need to generate a target card based on the link. In this case, there is no need to perform subsequent steps, that is, only the target message can be displayed in the target session between the first client and the second client; and if the domain name of the link is in the specified list, it indicates that a target card needs to be generated based on the link. In this case, the subsequent steps can be continued.
[0068] In other words, it is not necessary to generate a card carrying the corresponding link content (i.e., the page content corresponding to the link) for every message carrying a link. Instead, it is only necessary to generate a card carrying the corresponding link content for messages containing links whose domain names are in the specified list, so as to meet actual business needs and reduce the processing burden of the server and client.
[0069] Step 103: if the linked domain name is in the specified list, generate a card protocol matching the link according to the linked domain name.
[0070] In an exemplary embodiment, when the domain name of the link is in a specified list, a card protocol matching the link may be generated according to the domain name of the link.
[0071] Step 104, sending a message modification request carrying a card protocol to the first client and / or the second client, wherein the message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0072] In an example embodiment, the server may send a message modification request carrying a card protocol to the first client and / or the second client. Accordingly, after receiving the message modification request, the first client and / or the second client may respond to the message modification request and modify the target message based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card, and the target card contains page content corresponding to the link.
[0073] For example, the target card may display the title, text information, pictures, videos, audio, etc. of the page content corresponding to the link.
[0074] As an example, the modified target message may be as follows: Figure 2 As shown, Figure 2 The middle area 21 displays the link, and the area 22 displays the target card. The target card displays the title of the page content corresponding to the link, as shown in area 221, and the target card also displays the text information of the page content corresponding to the link, as shown in area 222.
[0075] It should be noted that the above only takes the example of the target card including a title and text, but the present disclosure is not limited to this. In actual application, the target card can also display pictures, videos, audio and other information. For example, when the link type is a video, the target card can display a title and a video. For another example, when the link type is a text type (such as a rich text type), the target card can display a title, text and / or picture, and so on.
[0076] It should also be noted that the text information displayed on the target card can be all the text information in the page content, or, based on the summary extraction technology, the page content can be summarized and only the extracted summary can be displayed on the target card so that users can quickly know the link content.
[0077] It should also be noted that some controllable controls may also be displayed on the target card, such as preview controls, edit controls, view controls, favorite controls, etc., and the present disclosure does not impose any restrictions on this.
[0078] For example, when the target card needs to display a large number of words of text information, since the display area of the target card is limited, the user can view all card contents by clicking the preview control or the view control.
[0079] The message processing method of the disclosed embodiment determines whether the domain name of the link is in a specified list when the target message sent by the first client to the second client carries a link. If so, a card protocol matching the link is generated according to the domain name of the link, and a message modification request carrying the card protocol is sent to the first client and / or the second client, wherein the message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, and the modified target message includes a target card containing the page content corresponding to the link. In this way, the page content corresponding to the link can be displayed in the form of a card in the session, so that the user can intuitively view the link content without clicking the link, thereby improving the user experience.
[0080] It should be noted that in the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information are all carried out with the user's consent, and are in compliance with relevant laws and regulations and do not violate public order and good morals.
[0081] In order to clearly explain how the card protocol matching the link is generated according to the domain name of the link in the above embodiment of the present disclosure, the present disclosure also proposes a message processing method.
[0082] Figure 3 A flowchart of the message processing method provided in the second embodiment of the present disclosure.
[0083] like Figure 3 As shown, the message processing method may include the following steps:
[0084] Step 301: Obtain a target message sent by a first client to a second client.
[0085] Step 302: In the case where the target message carries a link, determine whether the domain name of the link is in a specified list, wherein the specified list contains at least one registered domain name.
[0086] For explanations of steps 301 to 302 , reference may be made to the relevant descriptions in any embodiment of the present disclosure, and will not be repeated here.
[0087] Step 303: when the linked domain name is in the specified list, obtain the card template identifier and the card information to be rendered that matches the linked domain name.
[0088] The card information refers to the information that needs to be rendered on the target card. For example, the card information may include the card title (such as pending review, pending processing, etc.), pictures, controls, and other information.
[0089] In an exemplary embodiment, when the linked domain name is in a specified list, a card template identifier and card information to be rendered that matches the linked domain name may be obtained.
[0090] In a possible implementation of the exemplary embodiment, the card information associated with the card template identifier and the card to be rendered may be obtained through an interface (referred to as a target interface in this disclosure) that matches the linked domain name.
[0091] As an example, you can query the target interface that matches the linked domain name, send a card information acquisition request message to the target interface, and receive a card information acquisition response message returned by the target interface, where the card information acquisition response message includes a card template identifier and card information.
[0092] That is, each domain name has a corresponding callback interface, and the server can call the callback interface to obtain the card template identifier and card information that matches the corresponding domain name.
[0093] Therefore, it is possible to effectively obtain the card template identifier and card information used to generate the target card by calling the interface, so as to improve the effectiveness of card generation.
[0094] Step 304: parse the link to obtain the page content.
[0095] In an example embodiment, the server may parse the link to obtain the page content corresponding to the link.
[0096] Step 305: Generate a card protocol based on the card template identifier, card information and page content.
[0097] In an example embodiment, the server may generate a card protocol according to the card template identifier, the card information and the page content. For example, the card protocol may carry the card template identifier, the card information and the page content.
[0098] Step 306: Send a message modification request carrying the card protocol to the first client and / or the second client.
[0099] The message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card, and the target card contains or displays page content corresponding to the link.
[0100] For explanation of step 306, reference may be made to the relevant description in any embodiment of the present disclosure, and will not be repeated here.
[0101] In any of the exemplary embodiments, after receiving a message modification request, the first client and / or the second client may respond to the message modification request, obtain a target card template that matches the card template identifier based on the card template identifier in the card protocol, and fill in the target card template based on the card information and page content in the card protocol to obtain a target card.
[0102] For example, assuming that the card information includes title, text and picture, the title in the page content corresponding to the link can be filled in the title of the target card template, the summary of the text information in the page content corresponding to the link can be extracted and filled in the text of the target card template, and the picture in the page corresponding to the link can be extracted and filled in the picture of the target card template.
[0103] Thus, the first client and / or the second client can encapsulate and render the target card and the link to obtain the modified target message. In other words, the link and the target card can be aggregated and displayed to obtain the modified target message.
[0104] The message processing method of the disclosed embodiment can effectively generate a card protocol based on the card template identifier matched by the linked domain name and the card information to be rendered, as well as the page content corresponding to the link, thereby improving the effectiveness of card generation.
[0105] In order to clearly illustrate any of the above embodiments of the present disclosure, the present disclosure also proposes a message processing method.
[0106] Figure 4 A flowchart of the message processing method provided in Embodiment 3 of the present disclosure.
[0107] like Figure 4 As shown, the message processing method may include the following steps:
[0108] Step 401: Acquire a target message sent by a first client to a second client.
[0109] Step 402: In the case where the target message carries a link, determine whether the domain name of the link is in a specified list, wherein the specified list contains at least one registered domain name.
[0110] Step 403: when the linked domain name is in the specified list, obtain the card template identifier and the card information to be rendered that matches the linked domain name.
[0111] Step 404: parse the link to obtain the page content.
[0112] For explanations of steps 401 to 404 , reference may be made to the relevant descriptions in any embodiment of the present disclosure, and will not be repeated here.
[0113] Step 405: Acquire first identification information of the first client and second identification information of the target session.
[0114] In an example embodiment, the first identification information of the first client is used to identify a user who logs in to the first client. For example, the first identification information may be a user nickname, an avatar, or the like.
[0115] In an example embodiment, the second identification information of the target session is used to identify the target session. For example, the second identification information may be a session ID, a session name, or the like.
[0116] In an example embodiment, the server may obtain first identification information of the first client and second identification information of the target session.
[0117] Step 406: Generate first personalized information according to the first identification information and / or the second identification information.
[0118] In an example embodiment, the server may generate the first personalized information according to the first identification information and / or the second identification information. For example, the first personalized information may carry the first identification information and / or the second identification information.
[0119] Step 407: Generate a card agreement based on the card template identifier, card information, page content and first personalized information.
[0120] In an example embodiment, the server may generate a card protocol according to the card template identifier, card information, page content and the first personalized information. For example, the card protocol may carry the card template identifier, card information, page content and the first personalized information.
[0121] Step 408: Send a message modification request carrying the card protocol to the first client.
[0122] The message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a personalized modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0123] In an example embodiment, the server may send a message modification request carrying a card protocol to the first client. Accordingly, after receiving the message modification request, the first client may modify the target message in the target conversation between the first client and the second client in response to the message modification request to obtain a personalized modified target message.
[0124] As an example, the first client may fill in the target card template based on the card information, page content and first personalized information in the card protocol to obtain the target card, thereby encapsulating and rendering the target card and the link to obtain a modified target message.
[0125] It can be understood that the first personalized information in the card protocol in the message modification request sent to the first client is generated based on the identification information of the first client and / or the identification information of the target session between the first client and the second client. The target card generated by the first client has personalized elements different from those of other clients, which can meet the personalized needs of different users and improve the user experience.
[0126] The message processing method of the disclosed embodiment can achieve different card effects generated and displayed by different clients for the same link, so as to meet the personalized needs of different users and improve the user experience.
[0127] In order to clearly illustrate any of the above embodiments of the present disclosure, the present disclosure also proposes a message processing method.
[0128] Figure 5 A flowchart of the message processing method provided in Embodiment 4 of the present disclosure.
[0129] like Figure 5 As shown, the message processing method may include the following steps:
[0130] Step 501: Acquire a target message sent by a first client to a second client.
[0131] Step 502: In the case where the target message carries a link, determine whether the domain name of the link is in a specified list, wherein the specified list contains at least one registered domain name.
[0132] Step 503: when the linked domain name is in the specified list, obtain the card template identifier and the card information to be rendered that matches the linked domain name.
[0133] Step 504: parse the link to obtain the page content.
[0134] For explanations of steps 501 to 504 , reference may be made to the relevant descriptions in any embodiment of the present disclosure and will not be repeated here.
[0135] Step 505: Acquire the third identification information of the second client and the second identification information of the target session.
[0136] In an exemplary embodiment, the third identification information of the second client is used to identify a user who logs into the second client. For example, the third identification information may be a user nickname, an avatar, or the like.
[0137] In an example embodiment, the second identification information of the target session is used to identify the target session. For example, the second identification information may be a session ID, a session name, or the like.
[0138] In an example embodiment, the server may obtain the third identification information of the second client and the second identification information of the target session.
[0139] Step 506: Generate second personalized information according to the third identification information and / or the second identification information.
[0140] In an example embodiment, the server may generate the second personalized information according to the third identification information and / or the second identification information. For example, the second personalized information may carry the third identification information and / or the second identification information.
[0141] Step 507: Generate a card agreement based on the card template identifier, card information, page content and second personalized information.
[0142] In an example embodiment, the server may generate a card protocol according to the card template identifier, card information, page content, and the second personalized information. For example, the card protocol may carry the card template identifier, card information, page content, and the second personalized information.
[0143] Step 508, sending a message modification request carrying a card protocol to the second client, wherein the message modification request is used to modify the target message in the target conversation between the first client and the second client based on the card protocol to obtain a personalized modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0144] In an example embodiment, the server may send a message modification request carrying a card protocol to the second client. Accordingly, after receiving the message modification request, the second client may modify the target message in the target session between the second client and the first client in response to the message modification request to obtain a personalized modified target message.
[0145] As an example, the second client may fill in the target card template based on the card information, page content and second personalized information in the card protocol to obtain the target card, thereby encapsulating and rendering the target card and the link to obtain a modified target message.
[0146] It can be understood that the second personalized information in the card protocol in the message modification request sent to the second client is generated based on the identification information of the second client and / or the identification information of the target session between the second client and the first client. The target card generated by the second client has personalized elements different from those of other clients, which can meet the personalized needs of different users and improve the user experience.
[0147] It should be noted that, in actual application, a message modification request can also be sent to the first client and the second client at the same time, wherein the card information in the message modification request sent to the first client is generated based on the card template identifier, card information, page content and the first personalized information, and the card information in the message modification request sent to the second client is generated based on the card template identifier, card information, page content and the second personalized information.
[0148] The message processing method of the disclosed embodiment can achieve different card effects generated and displayed by different clients for the same link, so as to meet the personalized needs of different users and improve the user experience.
[0149] In order to clearly illustrate any of the above embodiments, the present disclosure also proposes a message processing method.
[0150] Figure 6 This is a flowchart of the message processing method provided in Embodiment 5 of the present disclosure.
[0151] like Figure 6 As shown, the message processing method may include the following steps:
[0152] Step 601: Acquire a target message sent by a first client to a second client.
[0153] Step 602: In the case where the target message carries a link, determine whether the domain name of the link is in a specified list, wherein the specified list contains at least one registered domain name.
[0154] Step 603: if the linked domain name is in the specified list, generate a card protocol matching the link according to the linked domain name.
[0155] Step 604: Send a message modification request carrying the card protocol to the first client and / or the second client.
[0156] The message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0157] For explanations of steps 601 to 604 , reference may be made to the relevant descriptions in any embodiment of the present disclosure and will not be repeated here.
[0158] Step 605: Receive the edited target card sent by the first target client.
[0159] The first target client is the client that receives the message modification request among the first client and the second client, and the edited target card is obtained after the first target client edits the target card in response to a triggering operation on an editing control on the target card.
[0160] In an example embodiment, after receiving a message modification request, the first target client can respond to the message modification request and modify the target message in the target session based on the card protocol to obtain a modified target message. The user on the first target client side can determine whether to modify the target card in the modified target message according to his own needs. If the user wants to modify the target card (such as modifying the title, description information, etc.), the user can trigger the edit control on the target card. Accordingly, the first target client can edit the target card in response to the triggering operation of the edit control on the target card to obtain the edited target card.
[0161] In an exemplary embodiment, the first target client may also send the edited target card to the server.
[0162] Step 606: Send the edited target card to the second target client.
[0163] The second target client is a client other than the first target client among the first client and the second client.
[0164] In an exemplary embodiment, after receiving the edited target card, the server may send the edited target card to the second target client.
[0165] As a possible implementation, when the target card is updated, the modified target message also changes accordingly. The first target client can also send the updated target message to the second target client through the server, wherein the updated target message includes the edited target card.
[0166] Correspondingly, after receiving the updated target message, the second target client may display the updated target message in the target session, or may use the updated target message to replace the modified target message in the target session.
[0167] The message processing method of the embodiment of the present disclosure can realize multiple users sharing the same card, that is, realizing the circulation of the same card, by modifying the card in one of the first client and the second client and then sharing the modified card to the other client.
[0168] The above are various embodiments corresponding to the message processing method executed by the server. The present disclosure also proposes a message processing method executed by the client.
[0169] Figure 7 This is a flowchart of the message processing method provided in Embodiment 6 of the present disclosure.
[0170] The message processing method of this exemplary embodiment may be applied to a second client, that is, a client that receives a target message.
[0171] like Figure 7 As shown, the message processing method may include the following steps:
[0172] Step 701: Receive a target message sent by a first client through a server.
[0173] In an example embodiment, the first client may send a target message to the second client through the server, and correspondingly, the second client may receive the target message sent by the first client through the server.
[0174] Step 702, receiving a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list.
[0175] The specified list contains at least one registered domain name.
[0176] In an example embodiment, the server may also parse the target message to determine whether the target message carries a link. If the target message does not carry a link, subsequent steps may not be performed, that is, only the target message may be displayed in the target session between the first client and the second client.
[0177] In the case where the target message carries a link, the link can be parsed to determine the domain name corresponding to the link and to determine whether the domain name of the link is in the specified list. If the domain name of the link is not in the specified list, it indicates that there is no need to generate a target card based on the link. In this case, there is no need to perform subsequent steps, that is, only the target message is displayed in the target session between the first client and the second client; and in the case where the domain name of the link is in the specified list, it indicates that a card needs to be generated based on the link. In this case, a card protocol matching the link can be generated based on the domain name of the link, and a message modification request carrying the card protocol is sent to the second client.
[0178] Correspondingly, the second client can receive the message modification request sent by the server.
[0179] Step 703, in response to the message modification request, modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0180] In an example embodiment, the second client may modify the target message based on the card protocol in response to the message modification request to obtain a modified target message, wherein the modified target message includes a target card containing page content corresponding to the link.
[0181] It should be noted that the explanations of the card protocol and the modified target message in any of the aforementioned embodiments are also applicable to this embodiment and will not be repeated here.
[0182] The message processing method of the disclosed embodiment receives a target message sent by a first client through a server; receives a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name; in response to the message modification request, the target message in the target session between the first client and the second client is modified based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link. Thus, it is possible to display the page content corresponding to the link in the form of a card in the session, so that the user can intuitively view the link content without clicking the link, thereby improving the user experience.
[0183] In order to clearly explain how the target message in the target session between the first client and the second client is modified based on the card protocol in the above embodiment to obtain a modified target message, the present disclosure further proposes a message processing method.
[0184] Figure 8 This is a flowchart of the message processing method provided in Embodiment 7 of the present disclosure.
[0185] like Figure 8 As shown, the message processing method may include the following steps:
[0186] Step 801: Receive a target message sent by a first client through a server.
[0187] Step 802, receiving a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list.
[0188] The specified list contains at least one registered domain name.
[0189] For explanations of steps 801 to 802, reference may be made to the relevant descriptions in any embodiment of the present disclosure and will not be repeated here.
[0190] Step 803: In response to the message modification request, based on the card template identifier in the card protocol, obtain a target card template that matches the card template identifier.
[0191] In an example embodiment, the card protocol can be that the server obtains the card template identifier and the card information to be rendered that matches the linked domain name, and parses the link to obtain the page content corresponding to the link, which is generated based on the card template identifier, card information and page content.
[0192] In an example embodiment, the second client may obtain a target card template matching the card template identifier based on the card template identifier in the card protocol in response to the message modification request.
[0193] As an example, the second client may pre-store the correspondence between different card template identifiers and card templates, so that the second client may query the correspondence according to the card template identifier in the card protocol to obtain a target card template matching the card template identifier.
[0194] As another example, in order to save storage resources of the client, the server may pre-store the correspondence between different card template identifiers and card templates, so that the second client may obtain the target card template matching the card template identifier in the card protocol from the server.
[0195] Step 804, based on the card information and page content in the card protocol, fill the target card template to obtain the target card.
[0196] In an example embodiment, the second client can fill the target card template based on the card information in the card protocol and the page content corresponding to the link to obtain the target card. The specific execution process can be referred to the explanation of step 306 in the above embodiment, which will not be repeated here.
[0197] In any embodiment of the present disclosure, the card protocol may also carry personalized information, wherein the personalized information may be generated by the server according to the identification information of the second client and / or the identification information of the target session. Accordingly, the second client may fill in the target card template based on the card information, page content and personalized information in the card protocol to obtain the target card.
[0198] In this way, for the same link, different clients can generate and display different card effects, which can meet the personalized needs of different users and improve the user experience.
[0199] Step 805 , encapsulate and render the target card and the link to obtain a modified target message, wherein the modified target message includes the target card containing the page content corresponding to the link.
[0200] In an example embodiment, the second client may encapsulate and render the target card and the link to obtain a modified target message. In other words, the second client may aggregate and display the link and the target card to obtain a modified target message.
[0201] The message processing method of the disclosed embodiment obtains a target card template matching the card template identifier based on the card template identifier in the card protocol in response to a message modification request; fills the target card template based on the card information and page content in the card protocol to obtain a target card; encapsulates and renders the target card and the link to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link. Thus, it is possible to effectively generate a target card containing the page content corresponding to the link based on the card protocol, so that a modified target message can be generated based on the target card and the link to improve the effectiveness of message generation.
[0202] In order to clearly illustrate any of the above embodiments, the present disclosure also proposes a message processing method.
[0203] Fig. 9 A flowchart of the message processing method provided in Embodiment 8 of the present disclosure.
[0204] like Fig. 9 As shown, the message processing method may include the following steps:
[0205] Step 901: Receive a target message sent by a first client through a server.
[0206] Step 902, receiving a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list.
[0207] The specified list contains at least one registered domain name.
[0208] Step 903, in response to the message modification request, modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0209] For explanations of steps 901 to 903, reference may be made to the relevant descriptions in any embodiment of the present disclosure, and will not be repeated here.
[0210] Step 904: In response to the triggering operation of the edit control on the target card, it is determined according to the identification information of the second client whether the second client has the permission to edit the target card.
[0211] In an example embodiment, the editing permission of the target card can be determined based on the attribute information of the page content corresponding to the link. For example, if the attribute information indicates that all users or some users can modify the page content, then all users or some users may have the permission to edit the target card. For another example, if the attribute information indicates that all users cannot modify the page content, then all users do not have the permission to edit the target card.
[0212] In an example embodiment, a user on the second client side can determine whether it is necessary to modify the target card in the modified target message according to his or her own needs. If the user wants to modify the target card (such as modifying the title, description information, etc.), the user can trigger the editing control on the target card. Accordingly, when the second client detects that the user has triggered the triggering operation of the editing control on the target card, it can first determine whether the second client has the authority to edit the target card based on the identification information of the second client.
[0213] Step 905: If the second client has the authority, edit the target card to obtain an edited target card.
[0214] In an exemplary embodiment, when the second client has the authority to edit the target card, the target card can be edited according to the editing operation to obtain an edited target card.
[0215] It should be noted that, in actual application, when the second client detects that the user has triggered the trigger operation of the edit control on the target card, the target card can also be edited directly according to the edit operation to obtain the edited target card, and the present disclosure does not impose any restrictions on this.
[0216] Step 906: Send the edited target card to the first client via the server.
[0217] In an exemplary embodiment, the second client may also send the edited target card to the first client through the server.
[0218] As a possible implementation method, when the target card is updated, the modified target message also changes accordingly. The second client can also send the updated target message to the first client through the server, wherein the updated target message includes the edited target card.
[0219] Correspondingly, after receiving the updated target message, the first client may display the updated target message in the target session, or may use the updated target message to replace the modified target message in the target session.
[0220] The message processing method of the embodiment of the present disclosure can realize that multiple users share the same card, that is, realize the circulation of the same card, by modifying the card on the second client and then sharing the modified card to the first client.
[0221] The above are various embodiments corresponding to the message processing method executed by the server and the second client. The present disclosure also proposes a message processing method executed by the first client.
[0222] Fig.10 A flowchart of the message processing method provided in Embodiment 9 of the present disclosure.
[0223] The message processing method of this exemplary embodiment may be applied to a first client, that is, a client that sends a target message.
[0224] like Fig.10 As shown, the message processing method may include the following steps:
[0225] Step 1001: Send a target message to a second client via a server.
[0226] In an example embodiment, the first client may send a target message to the second client through the server.
[0227] Step 1002, receiving a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list.
[0228] The specified list contains at least one registered domain name.
[0229] It should be noted that the execution process of step 1002 is similar to the execution process of step 702, and will not be repeated here.
[0230] Step 1003, in response to the message modification request, modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0231] It should be noted that the process of the first client modifying the target message based on the card protocol is similar to the implementation principle of the process of the second client modifying the target message based on the card protocol, which will not be described in detail here.
[0232] The message processing method of the disclosed embodiment sends a target message to the second client through the server; receives a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name; in response to the message modification request, the target message in the target session between the first client and the second client is modified based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link. In this way, it is possible to display the page content corresponding to the link in the form of a card in the session, so that the user can intuitively view the link content without clicking the link, thereby improving the user experience.
[0233] In any embodiment of the present disclosure, in order to facilitate users to quickly preview link content and help users view link content efficiently and conveniently, a card can be generated according to the link content and the card and link can be aggregated and displayed.
[0234] For example, the business party can access the link domain name that needs to be identified through open documents. When the link is sent to the session of the instant messaging application, the message analysis service on the server side can identify whether the domain name of the link is a registered domain name. If so, the link is sent to the work card service on the server side. The work card service obtains the card information to be rendered corresponding to the link from the callback interface of the business party through the work card service, and then sends the card information to the client, so that the client can identify the link as a work card (referred to as the target card in this disclosure).
[0235] As an example, the target card generation process can be as follows Fig.11 Specifically, the target card can be generated according to the following steps:
[0236] In the first step, the business party can create a card template through the developer platform and register the domain name to be identified through the link registration platform.
[0237] In the second step, the user can send the link of the registered domain name through the message session in the client corresponding to the instant messaging application.
[0238] In the third step, after the link is sent successfully, the message analysis service on the server side can analyze the link to determine whether the linked domain name is a registered domain name. If so, a link request is sent to the work card service on the server side.
[0239] In the fourth step, after receiving the link request, the work card service forwards the request carrying the link URL (Uniform Resource Locator) to the business party who registered the link domain name through the gateway platform.
[0240] In the fifth step, after receiving the above request, the business party can return the template ID obtained in advance and the card information that actually needs to be rendered (such as the card title, various controllable controls, etc.) to the work card service through the callback interface.
[0241] In the sixth step, after receiving the information returned by the business party, the work card service can build a card agreement based on the information returned by the business party and return the card agreement to the message analysis service.
[0242] In the seventh step, after receiving the card protocol returned by the working card service, the message analysis service may send a message modification request and a message modification protocol or a message modification request to the client based on the card protocol.
[0243] In the eighth step, after receiving the message modification request or the message modification protocol, the client can modify the original link content (i.e., the page content corresponding to the link) into the card content. For example, based on the card protocol, it can render and generate a target card, and display a message containing the link and the target card in the session (referred to as the modified target message in this disclosure).
[0244] in, Fig.11 The tcp here refers to the Transmission Control Protocol (Transmission Control Protocol).
[0245] As an example, the modified target message may be as follows: Figure 2 As shown, Figure 2 The middle area 21 displays the link, and the area 22 displays the target card. The target card displays the title in the link, as shown in area 221, and the target card also displays the text information in the link, as shown in area 222.
[0246] In summary, generating target cards based on link content can help users quickly obtain useful information from the link. Aggregating links and target cards for display can make information transmission more efficient and improve user work efficiency. In addition, target cards also have the ability to circulate and personalize.
[0247] Personalization means that by storing user-dimensional card information, the cards generated based on the same link can have different effects on different clients.
[0248] Circulation means: the ability to share card information among multiple users by storing common or public card information.
[0249] With the above Figures 1 to 6 Corresponding to the message processing method provided in the embodiment, the present disclosure also provides a message processing device. Figures 1 to 6 The message processing method provided in the embodiment corresponds to the embodiment, so the implementation of the message processing method is also applicable to the message processing device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
[0250] Fig.12 This is a structural diagram of the message processing device provided in the tenth embodiment of the present disclosure.
[0251] like Fig.12 As shown, the message processing device 1200 can be applied to a server, and includes: an acquisition module 1201 , a determination module 1202 , a generation module 1203 and a sending module 1204 .
[0252] The acquisition module 1201 is used to acquire a target message sent by the first client to the second client.
[0253] The determination module 1202 is used to determine whether the domain name of the link is in a specified list when the target message carries a link, wherein the specified list contains at least one registered domain name.
[0254] The generating module 1203 is used to generate a card protocol matching the link according to the linked domain name when the linked domain name is in the specified list.
[0255] Sending module 1204 is used to send a message modification request carrying a card protocol to the first client and / or the second client, wherein the message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, and the modified target message includes a target card containing the page content corresponding to the link.
[0256] In a possible implementation of the embodiment of the present disclosure, generation module 1203 is used to: when the linked domain name is in a specified list, obtain a card template identifier and card information to be rendered that matches the linked domain name; parse the link to obtain page content; and generate a card protocol based on the card template identifier, card information and page content.
[0257] In a possible implementation of the embodiment of the present disclosure, generation module 1203 is used to: determine a target interface that matches the linked domain name; send a card information acquisition request message to the target interface; receive a card information acquisition response message returned by the target interface, wherein the card information acquisition response message includes a card template identifier and card information.
[0258] In a possible implementation of the embodiment of the present disclosure, the generation module 1203 is used to: obtain the first identification information of the first client and the second identification information of the target session; generate first personalized information based on the first identification information and / or the second identification information; generate a card protocol based on the card template identification, card information, page content and the first personalized information.
[0259] In a possible implementation of the embodiment of the present disclosure, the sending module 1204 is used to: send a message modification request carrying a card protocol to the first client; wherein the message modification request is used to modify the target message in the target session based on the card protocol to obtain a personalized modified target message.
[0260] In a possible implementation of the embodiment of the present disclosure, generation module 1203 is used to: obtain third identification information of the second client and second identification information of the target session; generate second personalized information based on the third identification information and / or the second identification information; generate a card protocol based on the card template identification, card information, page content and the second personalized information.
[0261] In a possible implementation of the embodiment of the present disclosure, the sending module 1204 is used to: send a message modification request carrying a card protocol to the second client; wherein the message modification request is used to modify the target message in the target session based on the card protocol to obtain a personalized modified target message.
[0262] In a possible implementation of the embodiment of the present disclosure, the target card includes an editing control, and the message processing device 1200 may further include:
[0263] A receiving module is used to receive an edited target card sent by a first target client, wherein the first target client is a client that receives a message modification request between the first client and the second client, and the edited target card is obtained by editing the target card in response to a triggering operation on an editing control on the target card.
[0264] The sending module 1204 is further configured to send the edited target card to a second target client, wherein the second target client is a client other than the first target client among the first client and the second client.
[0265] The message processing device of the disclosed embodiment determines whether the domain name of the link is in a specified list when the target message sent by the first client to the second client carries a link. If so, a card protocol matching the link is generated according to the domain name of the link, and a message modification request carrying the card protocol is sent to the first client and / or the second client, wherein the message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, and the modified target message includes a target card containing the page content corresponding to the link. In this way, the page content corresponding to the link can be displayed in the form of a card in the session, so that the user can intuitively view the link content without clicking the link, thereby improving the user experience.
[0266] With the above Figures 7 to 9 Corresponding to the message processing method provided in the embodiment, the present disclosure also provides a message processing device. Figures 7 to 9The message processing method provided in the embodiment corresponds to the embodiment, so the implementation of the message processing method is also applicable to the message processing device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
[0267] Fig.13 This is a structural diagram of the message processing device provided in Example 11 of the present disclosure.
[0268] like Fig.13 As shown, the message processing device 1300 can be applied to a second client, and includes: a receiving module 1301 and a modifying module 1302 .
[0269] The receiving module 1301 is used to receive a target message sent by the first client through the server.
[0270] The receiving module 1301 is also used to receive a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated based on the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name.
[0271] The modification module 1302 is used to modify the target message in the target session between the first client and the second client based on the card protocol in response to the message modification request to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0272] In a possible implementation of the embodiment of the present disclosure, the modification module 1302 is used to: respond to a message modification request, based on the card template identifier in the card protocol, obtain a target card template that matches the card template identifier; fill the target card template based on the card information and page content in the card protocol to obtain the target card; encapsulate and render the target card and link to obtain a modified target message.
[0273] In a possible implementation of the embodiment of the present disclosure, the modification module 1302 is used to fill in the target card template based on the card information, page content and personalized information in the card protocol to obtain the target card; wherein the personalized information is generated based on the identification information of the second client and / or the identification information of the target session.
[0274] In a possible implementation of the embodiment of the present disclosure, the target card includes an editing control, and the message processing device 1300 may further include:
[0275] The determination module is used to determine whether the second client has the authority to edit the target card in response to the triggering operation of the editing control on the target card and according to the identification information of the second client.
[0276] The editing module is used to edit the target card to obtain the edited target card when the second client has the authority.
[0277] The sending module is used to send the edited target card to the first client through the server.
[0278] The message processing device of the disclosed embodiment receives a target message sent by a first client through a server; receives a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name; in response to the message modification request, the target message in the target session between the first client and the second client is modified based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link. In this way, it is possible to display the page content corresponding to the link in the form of a card in the session, so that the user can intuitively view the link content without clicking the link, thereby improving the user experience.
[0279] With the above Fig.10 Corresponding to the message processing method provided in the embodiment, the present disclosure also provides a message processing device. Fig.10 The message processing method provided in the embodiment corresponds to the embodiment, so the implementation of the message processing method is also applicable to the message processing device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
[0280] Fig.14 This is a structural diagram of the message processing device provided in the twelfth embodiment of the present disclosure.
[0281] like Fig.14 As shown, the message processing device 1400 can be applied to a first client, and includes: a sending module 1401 , a receiving module 1402 and a modifying module 1403 .
[0282] The sending module 1401 is used to send a target message to the second client through the server.
[0283] The receiving module 1402 is used to receive a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated based on the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name.
[0284] The modification module 1403 is used to modify the target message in the target session between the first client and the second client based on the card protocol in response to the message modification request to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link.
[0285] The message processing device of the disclosed embodiment sends a target message to the second client through the server; receives a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name; in response to the message modification request, the target message in the target session between the first client and the second client is modified based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link. Thus, it is possible to display the page content corresponding to the link in the form of a card in the session, so that the user can intuitively view the link content without clicking the link, thereby improving the user experience.
[0286] In order to implement the above embodiments, the present disclosure also provides an electronic device, which may include at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the message processing method proposed in any of the above embodiments of the present disclosure.
[0287] In order to implement the above embodiments, the present disclosure further provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the message processing method proposed in any of the above embodiments of the present disclosure.
[0288] In order to implement the above embodiments, the present disclosure further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the message processing method proposed in any of the above embodiments of the present disclosure.
[0289] In order to implement the above embodiments, the present disclosure also provides an autonomous driving vehicle, wherein the autonomous driving vehicle includes the electronic device proposed in any of the above embodiments of the present disclosure.
[0290] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0291] Fig.15A schematic block diagram of an example electronic device that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0292] like Fig.15 As shown, the electronic device 1500 includes a computing unit 1501, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 1502 or a computer program loaded from a storage unit 1508 to a RAM (Random Access Memory) 1503. In the RAM 1503, various programs and data required for the operation of the electronic device 1500 can also be stored. The computing unit 1501, the ROM 1502, and the RAM 1503 are connected to each other via a bus 1504. An I / O (Input / Output) interface 1505 is also connected to the bus 1504.
[0293] Multiple components in the electronic device 1500 are connected to the I / O interface 1505, including: an input unit 1506, such as a keyboard, a mouse, etc.; an output unit 1507, such as various types of displays, speakers, etc.; a storage unit 1508, such as a disk, an optical disk, etc.; and a communication unit 1509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1509 allows the electronic device 1500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0294] The computing unit 1501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1501 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 1501 performs the various methods and processes described above, such as the above-mentioned message processing method. For example, in some embodiments, the above-mentioned message processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1508. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1500 via the ROM 1502 and / or the communication unit 1509. When the computer program is loaded into the RAM 1503 and executed by the computing unit 1501, one or more steps of the message processing method described above may be performed. Alternatively, in other embodiments, the computing unit 1501 may be configured to execute the above-mentioned message processing method in any other appropriate manner (for example, by means of firmware).
[0295] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0296] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0297] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0298] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0299] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0300] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services (Virtual Private Server). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0301] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0302] Cloud computing refers to a technology system that uses network access to elastically scalable shared physical or virtual resource pools. Resources can include servers, operating systems, networks, software, applications, and storage devices, and can be deployed and managed in an on-demand, self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for technical applications such as artificial intelligence and blockchain, as well as model training.
[0303] According to the technical solution of the embodiment of the present disclosure, when the target message sent by the first client to the second client carries a link, it is determined whether the domain name of the link is in the specified list. If so, a card protocol matching the link is generated according to the domain name of the link, and a message modification request carrying the card protocol is sent to the first client and / or the second client, wherein the message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, and the modified target message includes a target card containing the page content corresponding to the link. In this way, the page content corresponding to the link can be displayed in the form of a card in the session, so that the user can intuitively view the link content without clicking the link, thereby improving the user experience.
[0304] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions proposed in this disclosure can be achieved, and this document does not limit this.
[0305] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A message processing method, applied to a server, comprising: Obtaining a target message sent by the first client to the second client; In the case where the target message carries a link, determining whether the domain name of the link is in a specified list, wherein the specified list includes at least one registered domain name; In the case where the domain name of the link is in the specified list, obtaining a card template identifier and card information to be rendered that matches the domain name of the link; Parsing the link to obtain page content; Acquire first identification information of the first client and second identification information of the target session, wherein the first identification information is used to identify a user who logs in to the first client; Generate first personalized information according to the first identification information and / or the second identification information; generating a card agreement according to the card template identifier, the card information, the page content and the first personalized information; and / or, Acquire third identification information of the second client and second identification information of the target session, wherein the third identification information is used to identify a user who logs in to the second client; Generate second personalized information according to the third identification information and / or the second identification information; generating the card agreement according to the card template identifier, the card information, the page content and the second personalized information; Sending a message modification request carrying the card protocol to the first client and / or the second client, wherein the message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link, wherein for the same link, the effects of the target cards generated and displayed by different clients are different; The target card includes an editing control, and the method further includes: Receiving an edited target card sent by a first target client; wherein the first target client is a client among the first client and the second client that receives the message modification request, and the edited target card is obtained by editing the target card in response to a triggering operation on an editing control on the target card; The edited target card is sent to a second target client, wherein the second target client is a client between the first client and the second client except the first target client.
2. The method according to claim 1, wherein: The obtaining of the card template identifier and the card information to be rendered that matches the linked domain name includes: Determining a target interface that matches the domain name of the link; Sending a card information acquisition request message to the target interface; A card information acquisition response message returned by the target interface is received, wherein the card information acquisition response message includes the card template identifier and the card information to be rendered.
3. The method according to claim 1, wherein: The sending of the message modification request carrying the card protocol to the first client and / or the second client includes: Sending a message modification request carrying the card protocol to the first client; The message modification request is used to modify the target message in the target session based on the card protocol to obtain the personalized modified target message.
4. The method according to claim 1, wherein: The sending of the message modification request carrying the card protocol to the first client and / or the second client includes: Sending a message modification request carrying the card protocol to the second client; The message modification request is used to modify the target message in the target session based on the card protocol to obtain the personalized modified target message.
5. A message processing method, applied to a second client, comprising: Receiving, through the server, a target message sent by the first client; receiving a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name; In response to the message modification request, based on the card template identifier in the card protocol, acquiring a target card template matching the card template identifier; Filling the target card template based on the card information, page content and personalized information in the card protocol to obtain a target card; The personalized information is generated according to the identification information of the second client and / or the identification information of the target session, the identification information of the second client is used to identify the user who logs in to the second client, and for the same link, the target cards generated and displayed by different clients have different effects; Encapsulating and rendering the target card and the link to obtain a modified target message; The target card includes an editing control, and the method further includes: In response to a triggering operation on an edit control on the target card, determining, according to identification information of the second client, whether the second client has permission to edit the target card; In a case where the second client has the authority, editing the target card to obtain an edited target card; The edited target card is sent to the first client through the server.
6. A message processing method, applied to a first client, comprising: Sending a target message to the second client through the server; receiving a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name; In response to the message modification request, based on the card template identifier in the card protocol, acquiring a target card template matching the card template identifier; Filling the target card template based on the card information, page content and personalized information in the card protocol to obtain a target card; The personalized information is generated according to the identification information of the first client and / or the identification information of the target session, the identification information of the first client is used to identify the user who logs in to the first client, and for the same link, the target cards generated and displayed by different clients have different effects; Encapsulating and rendering the target card and the link to obtain a modified target message; Receiving, through the server, an updated target message sent by the second client, wherein the updated target message includes an edited target card, and the edited target card is obtained after the second client edits the target card in response to a triggering operation on an editing control on the target card; The updated target message is displayed in the target conversation, or the modified target message is replaced by the updated target message.
7. A message processing device, applied to a server, comprising: An acquisition module, used to acquire a target message sent by the first client to the second client; a determination module, configured to determine, when the target message carries a link, whether the domain name of the link is in a specified list, wherein the specified list includes at least one registered domain name; A generating module, configured to generate a card protocol matching the link according to the domain name of the link when the domain name of the link is in the specified list; a sending module, configured to send a message modification request carrying the card protocol to the first client and / or the second client, wherein the message modification request is used to modify the target message in the target session between the first client and the second client based on the card protocol to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link, wherein for the same link, the effects of the target cards generated and displayed by different clients are different; The generating module is used for: In the case where the domain name of the link is in the specified list, obtaining a card template identifier and card information to be rendered that matches the domain name of the link; Parsing the link to obtain page content; Acquire first identification information of the first client and second identification information of the target session, wherein the first identification information is used to identify a user who logs in to the first client; Generate first personalized information according to the first identification information and / or the second identification information; generating a card agreement according to the card template identifier, the card information, the page content and the first personalized information; and / or, Acquire third identification information of the second client and second identification information of the target session, wherein the third identification information is used to identify a user who logs in to the second client; Generate second personalized information according to the third identification information and / or the second identification information; generating the card agreement according to the card template identifier, the card information, the page content and the second personalized information; The target card includes an editing control, and the device further includes: A receiving module, configured to receive an edited target card sent by a first target client; wherein the first target client is a client among the first client and the second client that receives the message modification request, and the edited target card is obtained by editing the target card in response to a triggering operation on an editing control on the target card; The sending module is further used to send the edited target card to a second target client, wherein the second target client is a client between the first client and the second client except the first target client.
8. The device according to claim 7, wherein: The generating module is used for: Determining a target interface that matches the domain name of the link; Sending a card information acquisition request message to the target interface; A card information acquisition response message returned by the target interface is received, wherein the card information acquisition response message includes the card template identifier and the card information to be rendered.
9. The device according to claim 7, wherein: The sending module is used for: Sending a message modification request carrying the card protocol to the first client; The message modification request is used to modify the target message in the target session based on the card protocol to obtain the personalized modified target message.
10. The device according to claim 7, wherein: The sending module is used for: Sending a message modification request carrying the card protocol to the second client; The message modification request is used to modify the target message in the target session based on the card protocol to obtain the personalized modified target message.
11. A message processing device, applied to a second client, comprising: A receiving module, used for receiving a target message sent by a first client through a server; The receiving module is further used to receive a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name; a modification module, configured to modify the target message in the target session between the first client and the second client based on the card protocol in response to the message modification request, so as to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link; The modification module is used to: In response to the message modification request, based on the card template identifier in the card protocol, acquiring a target card template matching the card template identifier; Filling the target card template based on the card information in the card protocol, the page content and the personalized information to obtain the target card; The personalized information is generated according to the identification information of the second client and / or the identification information of the target session, the identification information of the second client is used to identify the user who logs in to the second client, and for the same link, the target cards generated and displayed by different clients have different effects; Encapsulating and rendering the target card and the link to obtain a modified target message; The target card includes an editing control, and the device further includes: a determination module, configured to determine, in response to a triggering operation on an edit control on the target card, whether the second client has permission to edit the target card according to identification information of the second client; an editing module, configured to edit the target card to obtain an edited target card if the second client has the authority; A sending module is used to send the edited target card to the first client through the server.
12. A message processing device, applied to a first client, comprising: A sending module, used for sending a target message to a second client through a server; a receiving module, configured to receive a message modification request sent by the server; wherein the message modification request carries a card protocol, and the card protocol is generated according to the domain name of the link when the target message carries a link and the domain name of the link is in a specified list; the specified list contains at least one registered domain name; a modification module, configured to modify the target message in the target session between the first client and the second client based on the card protocol in response to the message modification request, so as to obtain a modified target message, wherein the modified target message includes a target card containing the page content corresponding to the link; The modification module is used to: In response to the message modification request, based on the card template identifier in the card protocol, acquiring a target card template matching the card template identifier; Filling the target card template based on the card information, page content and personalized information in the card protocol to obtain a target card; The personalized information is generated according to the identification information of the first client and / or the identification information of the target session, the identification information of the first client is used to identify the user who logs in to the first client, and for the same link, the target cards generated and displayed by different clients have different effects; Encapsulating and rendering the target card and the link to obtain a modified target message; The device is also used for: Receiving, through the server, an updated target message sent by the second client, wherein the updated target message includes an edited target card, and the edited target card is obtained after the second client edits the target card in response to a triggering operation on an editing control on the target card; The updated target message is displayed in the target conversation, or the modified target message is replaced by the updated target message.
13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method of any one of claims 1 to 4, or execute the method of claim 5, or execute the method of claim 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 4, or to execute the method according to claim 5, or to execute the method according to claim 6.
15. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 4, or implements the steps of the method according to claim 5, or implements the steps of the method according to claim 6.
Citation Information
Patent Citations
Session message display method and device, terminal and storage medium
CN114816600A