Message processing method and device, computer device and storage medium

By identifying and parsing the type identifier of password messages and generating various custom content methods, the problem of the limited password message parsing function in existing technologies is solved, and rich parsing effects are achieved.

CN114417201BActive Publication Date: 2026-04-07GUANGZHOU BOGUAN TELECOMM TECH LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-06
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In existing technologies, the parsing function of password messages is limited and cannot effectively and richly convert them into custom content in the form of hyperlinks.

Method used

By obtaining the type identifier of the target password message, the corresponding parsing mode is identified, and custom content with hyperlinks is generated according to different modes, including full display, specified collapsed display, and custom collapsed display, thus enriching the parsing function.

Benefits of technology

It enables diversified parsing of password messages, and can generate various custom content based on different types of identifiers, thereby improving the richness of the parsing function and the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114417201B_ABST
    Figure CN114417201B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a message processing method and device, computer equipment and a storage medium. The method comprises: obtaining a target password message, the target password message comprising a type identifier; identifying the type identifier in the target password message, determining a target parsing mode corresponding to the type identifier; parsing the target password message according to the target parsing mode, generating password identification content and custom content with a hyperlink corresponding to the target parsing mode, the hyperlink being used to jump to a page corresponding to the target password message; displaying the parsed message in a graphical user interface, wherein the password identification content is used to identify that the parsed message belongs to a password message. Different hyperlink content can be generated according to different parsing modes, so that the parsing function for password messages is more abundant.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, specifically to a message processing method, apparatus, computer device, and storage medium. Background Technology

[0002] In a chat scenario between users, they often send password messages. These password messages can indicate promotional activities such as Mid-Autumn Festival or National Day discounts. For example, in a live stream, viewers can send password messages in the chat's public screen. After receiving the password message, the terminal usually parses it. However, the parsing function for password messages can only convert the content into hyperlinks, making its parsing capabilities relatively limited. Summary of the Invention

[0003] This application provides a message processing method, apparatus, computer device, and storage medium, which can enrich the parsing function for password messages.

[0004] This application provides a message processing method, including:

[0005] Obtain the target password message, wherein the target password message includes a type identifier;

[0006] Identify the type identifier in the target password message and determine the target parsing mode corresponding to the type identifier;

[0007] The target password message is parsed according to the target parsing pattern, and password identifier content and custom content with hyperlinks corresponding to the target parsing pattern are generated. The hyperlinks are used to jump to the page corresponding to the target password message.

[0008] The password identifier content and the custom content are used as parsed messages and displayed in a graphical user interface. The password identifier content is used to identify that the parsed message is a password message.

[0009] Accordingly, embodiments of this application also provide a message processing apparatus, including:

[0010] An acquisition unit is used to acquire a target password message, wherein the target password message includes a type identifier;

[0011] A determining unit is configured to identify the type identifier in the target password message and determine the target parsing mode corresponding to the type identifier;

[0012] The parsing unit is used to parse the target password message according to the target parsing pattern, generate password identifier content and custom content with hyperlinks corresponding to the target parsing pattern, and the hyperlinks are used to jump to the page corresponding to the target password message;

[0013] The display unit is used to display the parsed message in a graphical user interface, using the password identifier content and the custom content as parsed messages, wherein the password identifier content is used to identify that the parsed message belongs to a password message.

[0014] Optionally, the target parsing mode is a full display mode, which is used to identify that the target password message is used as custom content of the parsed message. The parsing unit is further used for:

[0015] The target password message is parsed according to the full display mode to generate the password identifier content;

[0016] The obtained target password message is used as the custom content with the hyperlink.

[0017] Optionally, the target parsing mode is a specified folded display mode, which is used to identify that after the target password message is folded, specified alternative information is used as the custom content of the parsed message. The parsing unit is further used for:

[0018] The target password message is parsed according to the specified folding display mode to generate the password identifier content;

[0019] Determine the specified alternative information corresponding to the specified folded display mode;

[0020] The specified alternative information is used as the custom content with the hyperlink.

[0021] Optionally, the target parsing mode is a custom folded display mode. This custom folded display mode is used to identify that after folding the target password message, custom alternative information is used as the custom content of the parsed message. The parsing mode is also used for:

[0022] The target password message is parsed according to the custom folding display mode to generate the password identifier content;

[0023] Obtain the custom replacement information corresponding to the target password message;

[0024] The custom alternative information is used as the custom content with the hyperlink.

[0025] Optionally, the acquisition unit is further configured to:

[0026] Get pending messages;

[0027] If a target string satisfying the preset standard string format is identified in the message to be processed, the message to be processed is determined to be the target password message based on the target string, wherein the standard string format is the format corresponding to the string describing the information of the target password message.

[0028] Optionally, the display unit is further configured to:

[0029] In response to a touch operation on the parsed message, obtain the activity information corresponding to the target password message indicated by the hyperlink;

[0030] Send a first redirect request to the server that provides the activity information, redirecting the user to the target webpage corresponding to the activity information;

[0031] Upon receiving the consent feedback information for the first redirect request, the graphical user interface is redirected to the target webpage.

[0032] Optionally, the display unit is further configured to:

[0033] If the target webpage changes based on the sending source of the first redirect request, the sending source and the application scenario that generated the sending source are added to the first redirect request to form an updated redirect request. The sending source includes the parsed message being subjected to a touch operation, and the application scenario includes a graphical user interface that displays the parsed message.

[0034] Send the updated redirect request to the server that provides the activity information, so that the server can determine the updated webpage corresponding to the parsed message based on the updated redirect request;

[0035] Upon receiving feedback indicating agreement to the updated redirect request, the graphical user interface is redirected to the updated webpage.

[0036] Optionally, the display unit is further configured to:

[0037] If the display duration of the parsed message in the graphical user interface exceeds a preset duration, obtain the activity information corresponding to the target password message indicated by the hyperlink;

[0038] Send a second redirect request to the server that provides the activity information, redirecting the user to the target webpage corresponding to the activity information;

[0039] Upon receiving the consent feedback information for the second redirect request, the redirect confirmation information is displayed on the graphical user interface;

[0040] In response to the consent confirmation operation for the redirection confirmation information, the graphical user interface is redirected to the target webpage.

[0041] Similarly, embodiments of this application also provide a computer device, including:

[0042] Memory, used to store computer programs;

[0043] A processor for performing any of the steps of the message processing method.

[0044] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of any one of the message processing methods.

[0045] This application provides a message processing method, apparatus, computer device, and storage medium. It can determine the corresponding parsing mode based on the different types of identifiers included in the password message, and then parse the password message according to different parsing modes. It can not only convert the password message into custom content with hyperlinks, but also generate different custom content according to different parsing modes, making the parsing function for password messages richer. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings required in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is a system schematic diagram of the message processing device provided in the embodiments of this application;

[0048] Figure 2 This is a flowchart illustrating the message processing method provided in an embodiment of this application;

[0049] Figure 3 This is another flowchart illustrating the message processing method provided in the embodiments of this application;

[0050] Figure 4 This is a schematic diagram of the structure of the message processing device provided in the embodiments of this application;

[0051] Figure 5 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation

[0052] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0053] This application provides a message processing method, apparatus, computer device, and storage medium. Specifically, the message processing method of this application can be executed by a computer device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network services, and big data and artificial intelligence platforms.

[0054] The message processing method described in this embodiment can be applied to information interaction scenarios, such as live streaming interaction scenarios, chatbot interaction scenarios, short video browsing scenarios, etc. When the message processing method runs on a terminal, a user can send a target password message in the live streaming room, enabling the terminal to obtain the target password message, parse it, and display the parsed message on the graphical user interface of the live streaming room. The terminal can store a live streaming application and use it to present the scene in the live streaming screen. The terminal device is used to interact with the user through the graphical user interface, for example, by downloading, installing, and running a live streaming application on the terminal device. The terminal device can provide the graphical user interface to the user in various ways, such as rendering it on the terminal device's display screen, or presenting the graphical user interface through holographic projection. For example, the terminal device can include a touch screen and a processor. The touch screen is used to present the graphical user interface and receive operation commands generated by the user acting on the graphical user interface. The graphical user interface includes the live streaming screen and the game screen. The processor is used to run the live streaming application and the game, generate the graphical user interface, respond to operation commands, and control the display of the graphical user interface on the touch screen.

[0055] For example, when this message processing method runs on a server, it can be used for cloud live streaming. Cloud live streaming refers to a live streaming method based on cloud computing. In the cloud live streaming operating mode, the main body running the live streaming application and the main body presenting the live stream are separated. The storage and execution of the message processing method are completed on the cloud live streaming server. The presentation of the live stream is completed on the cloud live streaming client. The cloud live streaming client is mainly used for receiving and sending live streaming data and presenting the live stream. For example, the cloud live streaming client can be a display device with data transmission capabilities close to the user, such as a mobile terminal, television, computer, PDA, personal digital assistant, etc. However, the terminal device for processing live streaming data is the cloud live streaming server in the cloud. During live streaming, the user operates the cloud live streaming client to send operation commands to the cloud live streaming server. The cloud live streaming server runs the live streaming program according to the operation commands, encodes and compresses the live stream data, returns it to the cloud live streaming client through the network, and finally, the cloud live streaming client decodes and outputs the live stream.

[0056] Please see Figure 1 , Figure 1 This is a system schematic diagram of a message processing apparatus provided in an embodiment of this application. The system may include at least one terminal and at least one server. The user's terminal can connect to the server through different networks, such as wireless networks or wired networks. The wireless network may be a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. The terminal is used to obtain a target password message to be displayed, the target password message including a type identifier; identify the type identifier in the target password message, determine the target parsing mode corresponding to the type identifier; parse the target password message according to the target parsing mode, generate password identifier content and custom content with hyperlinks corresponding to the target parsing mode, the hyperlinks are used to jump to the activity page corresponding to the target password message; and display the parsed message as the parsed message in a graphical user interface using the password identifier content and the custom content.

[0057] When the terminal determines that the target parsing mode is a custom folded display mode, it sends a message retrieval request to the server for the custom alternative information corresponding to the target password message. The server then determines the custom alternative information corresponding to the target password message based on the message retrieval request and sends the custom alternative information corresponding to the target password message to the terminal.

[0058] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.

[0059] This application provides a message processing method that can be executed by a terminal's processor, such as... Figure 2As shown, the specific flow of this message processing method mainly includes steps 201 to 204, which are explained in detail below:

[0060] Step 201: Obtain the target password message, which includes a type identifier.

[0061] In some embodiments of this application, the target password message is communication agreement information for entering a system or application displaying corresponding activity information. It can be abbreviated information of the corresponding activity information, with one target password message corresponding to one type of activity information. The method of generating the target password message based on the corresponding activity information is unrestricted and can be flexibly set according to actual conditions. For example, the specific relevant activity information can be encrypted to obtain the corresponding target password message (wherein, the encryption algorithm for encrypting the relevant activity information can be randomly selected), or a string of a preset length can be randomly set as the target password message corresponding to the relevant activity information. Furthermore, the length, specific character format, and other attribute information of the target password message are also unrestricted and can be flexibly set according to actual conditions.

[0062] In this embodiment, the type identifier is an identifier that distinguishes the parsing modes of different password messages. One type identifier uniquely corresponds to one parsing mode of a password message, and the type identifier reflects the parsing mode corresponding to the target password message. The length and specific form of the type identifier are not limited here. For example, the type identifier can be represented by a function (e.g., ParserType.Link, ParserType.Fold_Link, etc.), and different functions correspond to different parsing modes.

[0063] In this embodiment, a user can send a target password message in a chat scenario, enabling the terminal to obtain the target password message. For example, when a user is watching a live stream, they can chat in the public chat of the live stream. The user watching the live stream can enter a target password message in the input controls of the live stream, and after clicking the send button in the live stream, the terminal can obtain the target password message sent by the user. As another example, when a user is chatting with a friend in a chat application, the user can also enter a target password message in the input box of the chat application, and after clicking the send button in the chat application, the terminal can obtain the target password message sent by the user.

[0064] In this embodiment of the application, in order to promote relevant activity information, the operator can send a target password message to the terminal so that the terminal can obtain the target password message. For example, when a user opens the shopping application software on the terminal, the software operator will send a password message corresponding to the shopping festival discount activity information to the terminal in order to promote the shopping festival discount activity information.

[0065] In this embodiment, when the terminal obtains a message to be processed, it needs to verify the message to be processed to determine whether the message to be processed is a target password message. If it is, the target password message is parsed to proceed to the next step. This avoids invalid parsing of messages that are not password messages, which would waste parsing resources and time. It also avoids parsing messages that are not password messages according to the parsing mode of password messages, and further avoids generating parsing errors such as garbled characters. This prevents parsing errors from misleading users or adversely affecting the operation of the terminal.

[0066] Specifically, after step 201 "obtain the target password message to be displayed" above, the method for verifying the target password message can be: obtain the message to be processed; if a target string that meets the standard string format is identified in the message to be processed based on the preset standard string format, the message to be processed is determined to be the target password message based on the target string, wherein the standard string format is the format corresponding to the string describing the information of the target password message.

[0067] In this embodiment, the preset standard string format is the representation format of a portion of the strings in a password message. This preset standard string format serves as the basis for determining whether a message is a password message. Based on the preset standard string format, a target string satisfying the standard string format is identified in the message to be processed. The message to be processed is determined to be a target password message based on the target string, thus completing the verification of the message to be judged. Further, the type identifier of the message to be judged is identified, and then the message to be judged is parsed. If no target string satisfying the preset standard string format is found in the message to be judged, it can be considered that the message to be judged is not a password message, the verification of the message to be judged is completed, the message to be judged is ignored, and the message to be judged is not parsed.

[0068] In one embodiment of this application, the preset standard string format is not limited. It can be that the message to be judged must have specific characters, the length of the message to be judged meets a preset value, or the message to be judged must have a specific type of characters, etc.

[0069] Step 202: Identify the type identifier in the target password message and determine the target parsing mode corresponding to the type identifier.

[0070] In this embodiment, the terminal can sequentially identify the characters included in the target password message and determine whether the character is a type identifier, thereby identifying the type identifier in the target password message. Since one type identifier corresponds to one password message parsing mode, the corresponding target parsing mode can be determined based on the identified type identifier. For example, if the identified type identifier is ParserType.Link, the target parsing mode corresponding to this type identifier can be determined to be the full display mode. The full display mode is used to identify that the target password message is used as custom content in the parsed message, and the terminal parses the target password message according to the full display mode. If the identified type identifier is ParserType.Fold_Link, the target parsing mode corresponding to this type identifier can be determined to be either the specified folded display mode or the custom folded display mode. The specified folded display mode is used to identify that the target password message is folded and then specified alternative information is used as the custom content in the parsed message. The custom folded display mode is used to identify that the target password message is folded and then custom alternative information is used as the custom content in the parsed message.

[0071] Step 203: Parse the target password message according to the target parsing pattern, and generate password identifier content and custom content with hyperlinks corresponding to the target parsing pattern. The hyperlinks are used to jump to the page corresponding to the target password message.

[0072] In this embodiment of the application, after the target parsing mode of the target password message is determined, the target password message can be parsed to generate password identification content. The password identification content is used to identify that the parsed message is a password message. That is, the password identification content can show the user that the parsed message is a password message. In order to achieve this purpose, the password identification content can be text indicating that it is a password message, an icon representing a password message, etc. For example, the password identification content can be "This is a password message".

[0073] In this embodiment, the custom content with hyperlinks generated after parsing the target password message can vary depending on the target parsing mode. The custom content with hyperlinks is generated based on the target password message and represents the connection between the parsed message and the target webpage containing related activity information. The custom content can be related to the content of the target webpage containing the relevant activity information corresponding to the target password message (e.g., the custom content can be a brief introduction to the target webpage content, identification information representing the target webpage content, etc.), or it can be any pre-set information used as the content corresponding to the hyperlinks after parsing the target password message. Furthermore, to indicate to the user that the custom content with hyperlinks is in hyperlink form, it can include an icon representing the hyperlink.

[0074] In this embodiment, the order of the custom content with hyperlinks and the password identifier content is not limited. The custom content with hyperlinks can be before the password identifier content, or after the password identifier content, or the password identifier content and the custom content with hyperlinks can overlap.

[0075] In this embodiment of the application, if the target parsing mode is the full display mode, the full display mode is used to identify the target password message as the custom content of the parsed message. The step 203 above, "parsing the target password message according to the target parsing mode and generating password identifier content and custom content with hyperlinks corresponding to the target parsing mode", can be: parsing the target password message according to the full display mode and generating password identifier content; using the obtained target password message as custom content with hyperlinks.

[0076] In this embodiment of the application, if the target parsing mode is the full display mode, the terminal directly treats the obtained target password message as custom content with hyperlinks.

[0077] In this embodiment, if the type identifier is ParserType.Fold_Link, it indicates that the terminal needs to fold the acquired target password message and use the alternative information of the target password message as custom content with hyperlinks. In order to determine whether the alternative information of the target password message is custom information that is different from other password messages or specified alternative information that is the same as other password messages, the terminal can confirm with the server whether the target password message has custom information. If the target password message does not have custom information, the target parsing mode of the target password message is determined to be the specified folded display mode. If the target password message has custom alternative information, the target parsing mode of the target password message is determined to be the custom folded display mode.

[0078] In this embodiment of the application, if the target parsing mode is a specified folded display mode, the specified folded display mode is used to identify that after the target password message is folded, the specified alternative information is used as the custom content of the parsed message. The step 203 above, "parsing the target password message according to the target parsing mode and generating password identifier content and custom content with hyperlinks corresponding to the target parsing mode", can be: parsing the target password message according to the specified folded display mode and generating password identifier content; determining the specified alternative information corresponding to the specified folded display mode; and using the specified alternative information as custom content with hyperlinks.

[0079] In this embodiment of the application, the specified alternative information refers to the fact that all target password messages have the same specified alternative information as custom content after being parsed by the specified folding display mode. The specific form and content of the specified alternative information are not limited and can be flexibly set according to the actual situation. For example, the specified alternative information can be Chinese characters, web addresses and / or icons related to the password.

[0080] In this embodiment of the application, if the target parsing mode is a custom folded display mode, the custom folded display mode is used to identify that after the target password message is folded, custom alternative information is used as the custom content of the parsed message. The step 203 above, "parsing the target password message according to the target parsing mode and generating password identifier content and custom content with hyperlinks corresponding to the target parsing mode", can be: parsing the target password message according to the custom folded display mode and generating password identifier content; obtaining the custom alternative information corresponding to the target password message; and using the custom alternative information as custom content with hyperlinks.

[0081] In this embodiment, the custom alternative information can be information set by technicians for different password messages based on the different activity information indicated by different password messages. The custom alternative information can be different for each password message, or the custom alternative information can be the same for password messages indicating the same type of activity. For example, if the target password message indicates activity information related to National Day, the custom alternative information can be information related to National Day, allowing the user to determine what activity the password message specifies based on the custom content with hyperlinks, and thus decide whether to perform a touch operation on the parsed message.

[0082] Step 204: Use the password identifier content and custom content as parsed messages and display the parsed messages in the graphical user interface. The password identifier content is used to identify that the parsed messages belong to password messages.

[0083] In this embodiment of the application, after step 204, "using the password identifier content and custom content as parsed messages and displaying the parsed messages in the graphical user interface," the user can perform touch operations such as clicking on the parsed messages displayed in the graphical user interface to further understand the relevant activity information indicated by the parsed messages. Specifically, in response to the touch operation on the parsed messages, the user obtains the activity information corresponding to the target password message indicated by the hyperlink; sends a first redirect request to the server providing the activity information to redirect to the target webpage corresponding to the activity information; receives the consent feedback information for the first redirect request, and redirects the graphical user interface to the target webpage.

[0084] In this embodiment, the server providing relevant activity information receives a first redirect request that is not generated by the touch-parsed message. For example, when a user clicks a control indicating relevant activity information in another application, a first redirect request to the target webpage is also sent to the server. In this case, since the relevant activity information provided to the user who received the touch-parsed message may be different from the relevant activity information provided to users in other application scenarios, it is necessary to send the server the source of the first redirect request, which is the touch operation performed on the target password message. At the same time, after users in different application scenarios (live streaming rooms, chat software, etc.) perform touch operations on the target password message, the server provides different relevant activity information to users in different application scenarios. Therefore, it is necessary to send the application scenario that generated the sending source to the server so that the server can determine the updated webpage to provide to the user who performed the touch operation on the target password information.

[0085] Specifically, after the above step "sending a first redirect request to the server providing the activity information to redirect to the target webpage corresponding to the activity information", the process may include: if the source of the target webpage changes based on the first redirect request, adding the source and the application scenario that generated the source to the first redirect request to form an updated redirect request, wherein the source includes the parsed message being subjected to a touch operation, and the application scenario includes a graphical user interface displaying the parsed message; sending the updated redirect request to the server providing the activity information so that the server determines the updated webpage corresponding to the parsed message based on the updated redirect request; receiving the consent feedback information for the updated redirect request, and redirecting the graphical user interface to the updated webpage.

[0086] In this embodiment, the terminal can not only redirect the graphical user interface to the target webpage after the user performs a touch operation on the target password message, but also automatically redirect from the graphical user interface to the target webpage. Specifically, after step 204, "using the password identifier content and custom content as parsed messages and displaying the parsed messages in the graphical user interface," the terminal can further include:

[0087] If the displayed duration of the parsed message in the graphical user interface exceeds the preset duration, obtain the activity information corresponding to the target password message indicated by the hyperlink;

[0088] Send a second redirect request to the server that provides the activity information, redirecting the user to the target webpage corresponding to the activity information;

[0089] Upon receiving feedback of consent for the second redirect request, a redirect confirmation message is displayed in the graphical user interface;

[0090] In response to the consent confirmation action for the redirect confirmation information, the graphical user interface is redirected to the target webpage.

[0091] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.

[0092] The message processing method provided in this application can determine the corresponding parsing mode based on the different types of identifiers included in the password message, and then parse the password message according to different parsing modes. It can not only convert the password message into custom content with hyperlinks, but also generate different custom content according to different parsing modes, making the parsing function for password messages richer.

[0093] Please see Figure 3 , Figure 3 Another flowchart illustrating the message processing method provided in this application embodiment. The specific flow of this method can be as follows:

[0094] Step 301: Obtain messages to be processed.

[0095] For example, when a user is watching a live stream, they can chat in the public chat. Viewers can also enter messages in the input controls within the live stream. After clicking the send button, the terminal can retrieve the message. The target password message includes a type identifier.

[0096] Step 302: Verify that the obtained message to be processed belongs to the target password message.

[0097] For example, if a target string that meets the standard string format is identified in the message to be processed based on a preset standard string format, then the target password message can be considered as a target password message.

[0098] Step 303: Identify the type identifier in the target password message and determine the target parsing mode corresponding to the type identifier.

[0099] For example, if the identified type identifier is ParserType.Link, then the target parsing mode corresponding to this type identifier can be determined to be the full display mode, and the terminal parses the target password message according to the full display mode. If the identified type identifier is ParserType.Fold_Link, then the target parsing mode corresponding to this type identifier can be determined to be either the specified folded display mode or a custom folded display mode.

[0100] Step 304: If the target parsing mode is full display mode, parse the target password message according to the full display mode, and generate password identifier content and custom content with hyperlinks corresponding to the full display mode.

[0101] For example, the target password message is parsed according to the full display mode to generate password identifier content; the obtained target password message is then used as custom content with hyperlinks.

[0102] Step 305: If the target parsing mode is the specified folded display mode, parse the target password message according to the specified folded display mode, and generate password identifier content and custom content with hyperlinks corresponding to the specified folded display mode.

[0103] For example, the target password message is parsed according to the specified collapsible display mode to determine the specified alternative information corresponding to the specified collapsible display mode; the specified alternative information is used as custom content with hyperlinks; and password identifier content is generated.

[0104] Step 306: If the target parsing mode is a custom folded display mode, parse the target password message according to the custom folded display mode, and generate password identifier content and custom content with hyperlinks corresponding to the custom folded display mode.

[0105] For example, the target password message is parsed according to the custom collapse display mode to obtain the custom alternative information corresponding to the target password message; the custom alternative information is used as custom content with hyperlinks; and password identifier content is generated.

[0106] Step 307: Use the password identifier and custom content as parsed messages and display the parsed messages in the graphical user interface.

[0107] Step 308: The user performs a touch operation on the parsed message, which will redirect the graphical user interface to the target webpage containing the activity information corresponding to the target password message.

[0108] For example, in response to a touch operation on the parsed message, the system obtains the activity information corresponding to the target password message indicated by the hyperlink; sends a first redirect request to the server providing the activity information to redirect to the target webpage corresponding to the activity information; and upon receiving consent feedback information for the first redirect request, redirects the graphical user interface to the target webpage.

[0109] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.

[0110] The message processing method provided in this application can determine the corresponding parsing mode based on the different types of identifiers included in the password message, and then parse the password message according to different parsing modes. It can not only convert the password message into custom content with hyperlinks, but also generate different custom content according to different parsing modes, making the parsing function for password messages richer.

[0111] To facilitate better implementation of the message processing method of this application embodiment, this application embodiment also provides a message processing apparatus. This message processing apparatus can be integrated into a terminal device, which may include devices such as smartphones, laptops, tablets, and personal computers. Please refer to... Figure 4 , Figure 4 This is a schematic diagram of the message processing device provided in an embodiment of this application. The message processing device may include an acquisition unit 401, a determination unit 402, a parsing unit 403, and a display unit 404. Furthermore, the message processing device may also include functional modules, such as a message verification submodule, a message parsing submodule, and a message jumper module. The message verification submodule verifies whether the message to be processed received by the terminal is a target password message. The message parsing submodule parses the target password message according to the target parsing mode corresponding to the target password message. The message jumper module jumps from the graphical user interface to the target webpage corresponding to the target password message based on the parsed message. Different functional submodules can be encapsulated into an SDK (Software Development Kit) using JavaScript. When different functions are needed, the API interfaces of the SDKs of different functional modules can be called to implement the corresponding functions.

[0112] The acquisition unit 401 is used to acquire the target password message, which includes a type identifier.

[0113] The determining unit 402 is used to identify the type identifier in the target password message and determine the target parsing mode corresponding to the type identifier.

[0114] Parsing unit 403 is used to parse the target password message according to the target parsing pattern, generate password identifier content and custom content with hyperlinks corresponding to the target parsing pattern, and the hyperlinks are used to jump to the page corresponding to the target password message.

[0115] Display unit 404 is used to display the parsed message, which is a password identifier and a custom message, on a graphical user interface. The password identifier is used to identify that the parsed message is a password message.

[0116] Optionally, the target parsing mode is the full display mode. The full display mode is used to identify custom content where the target password message is treated as parsed message. The parsing unit 403 is also used for:

[0117] Parse the target password message based on the full display mode and generate password identifier content;

[0118] The retrieved target password message is displayed as custom content with a hyperlink.

[0119] Optionally, the target parsing mode is a specified folded display mode. The specified folded display mode is used to identify that after the target password message is folded, specified alternative information is used as the custom content of the parsed message. The parsing unit 403 is also used for:

[0120] Parse the target password message according to the specified folding display mode and generate password identification content;

[0121] Determine the specified alternative information corresponding to the specified collapse display mode;

[0122] Specify alternative information as custom content with hyperlinks.

[0123] Optionally, the target parsing mode is a custom folded display mode. The custom folded display mode is used to indicate that after the target password message is folded, custom alternative information is used as the custom content of the parsed message. The parsing unit 403 is also used for:

[0124] Parse the target password message based on the custom folding display mode and generate password identifier content;

[0125] Retrieve custom replacement information corresponding to the target password message;

[0126] Use custom alternative information as custom content with hyperlinks.

[0127] Optionally, the acquisition unit 401 is also used for:

[0128] Get pending messages;

[0129] If a target string that meets the standard string format is identified in the message to be processed based on the preset standard string format, the message to be processed is determined to be a target password message based on the target string. The standard string format is the format corresponding to the string that describes the information of the target password message.

[0130] Optionally, the display unit 404 is also used for:

[0131] In response to a touch operation on the parsed message, obtain the activity information corresponding to the target password message indicated by the hyperlink;

[0132] Send a first redirect request to the server that provides the event information, redirecting the user to the target webpage corresponding to the event information;

[0133] Upon receiving feedback of consent for the first redirect request, the graphical user interface is redirected to the target webpage.

[0134] Optionally, the display unit 404 is also used for:

[0135] If the source of the target webpage changes based on the first redirect request, the source of the sender and the application scenario that generated the source of the sender are added to the first redirect request to form an updated redirect request. The source of the sender includes the parsed message being executed by touch operation, and the application scenario includes the graphical user interface that displays the parsed message.

[0136] Send an update redirect request to the server that provides activity information, so that the server can determine the updated webpage corresponding to the parsed message based on the update redirect request;

[0137] Upon receiving feedback confirming agreement to the request for a redirect after the update, the graphical user interface will redirect to the updated webpage.

[0138] Optionally, the display unit 404 is also used for:

[0139] If the displayed duration of the parsed message in the graphical user interface exceeds the preset duration, obtain the activity information corresponding to the target password message indicated by the hyperlink;

[0140] Send a second redirect request to the server that provides the activity information, redirecting the user to the target webpage corresponding to the activity information;

[0141] Upon receiving feedback of consent for the second redirect request, a redirect confirmation message is displayed in the graphical user interface;

[0142] In response to the consent confirmation action for the redirect confirmation information, the graphical user interface is redirected to the target webpage.

[0143] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.

[0144] The message processing apparatus provided in this application embodiment acquires a target password message, which includes a type identifier, through an acquisition unit 401. Then, a determination unit 402 identifies the type identifier in the target password message and determines the target parsing mode corresponding to the type identifier. Next, a parsing unit 403 parses the target password message according to the target parsing mode, generating password identifier content and custom content with hyperlinks corresponding to the target parsing mode. Finally, a display unit 404 displays the password identifier content and custom content as parsed messages on a graphical user interface. This not only converts password messages into custom content with hyperlinks but also generates different custom content based on different parsing modes, enriching the password message parsing functionality.

[0145] Accordingly, this application also provides a computer device, which can be a terminal, such as a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer, personal digital assistant, etc. Figure 5 As shown, Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 500 includes a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, and a computer program stored on the memory 502 and executable on the processor. The processor 501 and the memory 502 are electrically connected. Those skilled in the art will understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0146] The processor 501 is the control center of the computer device 500. It connects various parts of the computer device 500 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, it performs various functions of the computer device 500 and processes data, thereby monitoring the computer device 500 as a whole.

[0147] In this embodiment, the processor 501 in the computer device 500 loads the instructions corresponding to the processes of one or more applications into the memory 502 according to the following steps, and the processor 501 runs the applications stored in the memory 502 to achieve various functions:

[0148] Retrieve the target password message, which includes a type identifier;

[0149] Identify the type identifier in the target password message and determine the target parsing mode corresponding to the type identifier;

[0150] The target password message is parsed according to the target parsing pattern, and password identifier content and custom content with hyperlinks corresponding to the target parsing pattern are generated. The hyperlinks are used to jump to the page corresponding to the target password message.

[0151] The password identifier and custom content are used as parsed messages and displayed in the graphical user interface. The password identifier is used to identify that the parsed message is a password message.

[0152] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0153] Optional, such as Figure 5As shown, the computer device 500 also includes: a touch screen display 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506, and a power supply 507. The processor 501 is electrically connected to the touch screen display 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506, and the power supply 507. Those skilled in the art will understand that... Figure 5 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0154] The touch display screen 503 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 503 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the computer device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as the user's finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 501. It can also receive and execute commands from the processor 501. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 501 to determine the type of touch event. Subsequently, the processor 501 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 503 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 503 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 503 can also be used as part of the input unit 506 to achieve input functions.

[0155] The radio frequency circuit 504 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other computer devices, and to transmit and receive signals with network devices or other computer devices.

[0156] Audio circuitry 505 can be used to provide an audio interface between a user and a computer device via a speaker and a microphone. Audio circuitry 505 converts received audio data into electrical signals, transmits them to the speaker, and the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 505, converted back into audio data, and output to processor 501 for processing. The audio data is then transmitted via radio frequency circuitry 504 to, for example, another computer device, or output to memory 502 for further processing. Audio circuitry 505 may also include an earphone jack to facilitate communication between peripheral headphones and the computer device.

[0157] The input unit 506 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0158] Power supply 507 is used to supply power to various components of computer device 500. Optionally, power supply 507 can be logically connected to processor 501 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 507 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0159] although Figure 5 As not shown in the diagram, the computer device 500 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

[0160] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0161] As can be seen from the above, the computer device provided in this embodiment can determine the corresponding parsing mode according to the different types of identifiers included in the password message, and then parse the password message according to different parsing modes. It can not only convert the password message into custom content with hyperlinks, but also generate different custom content according to different parsing modes, making the parsing function for password messages richer.

[0162] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0163] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute steps in any of the message processing methods provided in embodiments of this application. For example, the computer program can execute the following steps:

[0164] Retrieve the target password message, which includes a type identifier;

[0165] Identify the type identifier in the target password message and determine the target parsing mode corresponding to the type identifier;

[0166] The target password message is parsed according to the target parsing pattern, and password identifier content and custom content with hyperlinks corresponding to the target parsing pattern are generated. The hyperlinks are used to jump to the page corresponding to the target password message.

[0167] The password identifier and custom content are used as parsed messages and displayed in the graphical user interface. The password identifier is used to identify that the parsed message is a password message.

[0168] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0169] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0170] Since the computer program stored in the storage medium can execute the steps in any of the message processing methods provided in the embodiments of this application, the beneficial effects that any of the message processing methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0171] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0172] The foregoing has provided a detailed description of a message processing method, apparatus, computer device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of the present invention. Those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A message processing method, characterized in that, include: Obtain the target password message, which includes a type identifier and is generated based on the corresponding activity information; Identify the type identifier in the target password message, determine the target parsing mode corresponding to the type identifier, the target parsing mode includes one of a full display mode, a specified folded display mode, and a custom folded display mode, the full display mode is used to identify that the target password message is used as custom content of the parsed message, the specified folded display mode is used to identify that the target password message is folded and specified alternative information is used as custom content of the parsed message, and the custom folded display mode is used to identify that the target password message is folded and custom alternative information is used as custom content of the parsed message; The target password message is parsed according to the target parsing pattern, and password identifier content and custom content with hyperlinks corresponding to the target parsing pattern are generated. The hyperlinks are used to jump to the page corresponding to the target password message. The password identifier content and the custom content are used as parsed messages, and the parsed messages are displayed in a graphical user interface, wherein the password identifier content is used to identify that the parsed messages are password messages; In response to a touch operation on the parsed message, obtain the activity information corresponding to the target password message indicated by the hyperlink; Send a first redirect request to the server that provides the activity information, redirecting the user to the target webpage corresponding to the activity information; Upon receiving the consent feedback information for the first redirect request, the graphical user interface is redirected to the target webpage.

2. The method according to claim 1, characterized in that, When the target parsing mode is the full display mode, the step of parsing the target password message according to the target parsing mode and generating password identifier content and custom content with hyperlinks corresponding to the target parsing mode includes: The target password message is parsed according to the full display mode to generate the password identifier content; The obtained target password message is used as the custom content with the hyperlink.

3. The method according to claim 1, characterized in that, When the target parsing mode is the specified folded display mode, the step of parsing the target password message according to the target parsing mode and generating password identifier content and custom content with hyperlinks corresponding to the target parsing mode includes: The target password message is parsed according to the specified folding display mode to generate the password identifier content; Determine the specified alternative information corresponding to the specified folded display mode; The specified alternative information is used as the custom content with the hyperlink.

4. The method according to claim 1, characterized in that, When the target parsing mode is the custom folded display mode, the step of parsing the target password message according to the target parsing mode and generating password identifier content and custom content with hyperlinks corresponding to the target parsing mode includes: The target password message is parsed according to the custom folding display mode to generate the password identifier content; Obtain the custom replacement information corresponding to the target password message; The custom alternative information is used as the custom content with the hyperlink.

5. The method according to claim 1, characterized in that, Before obtaining the target password message, the process also includes: Get pending messages; If a target string satisfying the preset standard string format is identified in the message to be processed, the message to be processed is determined to be the target password message based on the target string, wherein the standard string format is the format corresponding to the string describing the information of the target password message.

6. The method according to claim 1, characterized in that, After sending a first redirect request to the server providing the activity information to redirect to the target webpage corresponding to the activity information, the method further includes: If the target webpage changes based on the sending source of the first redirect request, the sending source and the application scenario that generated the sending source are added to the first redirect request to form an updated redirect request. The sending source includes the parsed message being subjected to a touch operation, and the application scenario includes a graphical user interface that displays the parsed message. Send the updated redirect request to the server that provides the activity information, so that the server can determine the updated webpage corresponding to the parsed message based on the updated redirect request; Upon receiving feedback indicating agreement to the updated redirect request, the graphical user interface is redirected to the updated webpage.

7. The method according to claim 1, characterized in that, After the step of parsing the password identifier content and the custom content as a parsed message and displaying the parsed message in the graphical user interface, it further includes: If the display duration of the parsed message in the graphical user interface exceeds a preset duration, obtain the activity information corresponding to the target password message indicated by the hyperlink; Send a second redirect request to the server that provides the activity information, redirecting the user to the target webpage corresponding to the activity information; Upon receiving the consent feedback information for the second redirect request, the redirect confirmation information is displayed on the graphical user interface; In response to the consent confirmation operation for the redirection confirmation information, the graphical user interface is redirected to the target webpage.

8. A message processing device, characterized in that, include: An acquisition unit is used to acquire a target password message, wherein the target password message includes a type identifier and is generated based on corresponding activity information; A determining unit is configured to identify the type identifier in the target password message and determine the target parsing mode corresponding to the type identifier. The target parsing mode includes one of a full display mode, a specified folded display mode, and a custom folded display mode. The full display mode is used to identify that the target password message is used as custom content of the parsed message. The specified folded display mode is used to identify that the target password message is folded and specified alternative information is used as the custom content of the parsed message. The custom folded display mode is used to identify that the target password message is folded and custom alternative information is used as the custom content of the parsed message. The parsing unit is used to parse the target password message according to the target parsing pattern, generate password identifier content and custom content with hyperlinks corresponding to the target parsing pattern, and the hyperlinks are used to jump to the page corresponding to the target password message; The display unit is configured to use the password identifier content and the custom content as parsed messages, and display the parsed messages in a graphical user interface, wherein the password identifier content is used to identify that the parsed messages belong to password messages; in response to a touch operation on the parsed messages, obtain activity information corresponding to the target password message indicated by the hyperlink; send a first redirect request to the server providing the activity information to redirect to the target webpage corresponding to the activity information; and upon receiving consent feedback information for the first redirect request, redirect the graphical user interface to the target webpage.

9. A computer device, characterized in that, include: Memory, used to store computer programs; A processor for implementing the steps of the message processing method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the message processing method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • A method and apparatus for providing relevant sublinks in search results.

    CN102298616A