Message processing method and device

By configuring and sending rendering protocol information on the server side, the problem of manually writing code when the message notification type changes is solved, personalized configuration of message notifications and efficiency improvement are achieved, and labor costs are reduced.

CN115442325BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211010929.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-23
Publication Date
2024-09-20
Estimated Expiration
2042-08-23

AI Technical Summary

Technical Problem

In the existing technology, whenever there is a new message notification type, corresponding code logic needs to be manually written to achieve customized development, resulting in high labor costs.

Method used

By receiving the client's message request on the server, it obtains the message configuration information and content information corresponding to the message type, configures the rendering protocol information that conforms to the preset multi-segment message body structure, and sends it to the client. Information rendering displays message notifications and implements universal message notification style configuration.

Benefits of technology

Personalized configuration of new message notifications can be achieved without manual coding, saving labor costs, improving message processing efficiency, increasing message recognition, and providing a better user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442325B
    Figure CN115442325B
Patent Text Reader

Abstract

The present disclosure is about a message processing method and device, and relates to the field of information processing technology, wherein the method includes: a server receives a message request from a client, and the message request carries a message type; obtains message configuration information and message content information corresponding to the message type; and then configures rendering protocol information that conforms to a preset message body structure according to the message configuration information and the message content information, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies the display style of each part of the message content information; and then sends the rendering protocol information to the client, and the rendering protocol information is used to render and display the message notification. By applying the technical solution of the present disclosure, the style can be personalized in different message notifications according to the protocol specification, and the launch of new message notifications can be realized without developing code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information processing technology, and in particular to a message processing method and device. Background Art

[0002] Messages often serve as notifications and interactive reminders. In different scenarios, the styles of message notifications may differ. For example, different message notifications may differ in color, display location, bold, and other styles.

[0003] In the related art, the style of message notifications requires personalized development to support. This means that whenever a new message notification type is created, the corresponding code logic needs to be manually written to implement customized development in order to achieve personalized message notification styles, such as fonts, line breaks, etc. This will result in manual code writing for each business demand adjustment, resulting in high labor costs. Summary of the invention

[0004] The present disclosure provides a message processing method and device to at least solve the technical problem in the related art that whenever there is a new message notification type, it is necessary to manually write corresponding code logic to implement customized development, which will result in high labor costs. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a message processing method is provided, which is applied to a server side for execution, and includes:

[0006] Receive a message request from a client, wherein the message request carries a message type;

[0007] Obtaining message configuration information and message content information corresponding to the message type;

[0008] According to the message configuration information and the message content information, configuring rendering protocol information that conforms to a preset message body structure, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies a display style of each part of the message content information;

[0009] The rendering protocol information is sent to the client, where the rendering protocol information is used for rendering and displaying message notifications.

[0010] According to a second aspect of an embodiment of the present disclosure, another message processing method is provided, which is applied to a client side for execution, and includes:

[0011] Sending a message request to a server, wherein the message request carries a message type, so that the server configures rendering protocol information that conforms to a preset message body structure according to message configuration information and message content information corresponding to the message type, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies the display style of each part of the message content information;

[0012] Receive the rendering protocol information returned by the server;

[0013] Render and display message notification according to the rendering protocol information.

[0014] According to a third aspect of an embodiment of the present disclosure, a message processing device is provided, which is applied to a server side, including:

[0015] A receiving unit, configured to execute receiving a message request from a client, wherein the message request carries a message type;

[0016] An acquiring unit, configured to acquire message configuration information and message content information corresponding to the message type;

[0017] a configuration unit configured to configure rendering protocol information that conforms to a preset message body structure according to the message configuration information and the message content information, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies a display style of each part of the message content information;

[0018] The sending unit is configured to send the rendering protocol information to the client, where the rendering protocol information is used for rendering and displaying message notification.

[0019] According to a fourth aspect of an embodiment of the present disclosure, another message processing device is provided, which is applied to a client side, including:

[0020] A sending unit is configured to execute a message request to send a message to a server, wherein the message request carries a message type, so that the server configures rendering protocol information that conforms to a preset message body structure according to message configuration information and message content information corresponding to the message type, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies a display style of each part of the message content information;

[0021] A receiving unit, configured to receive the rendering protocol information returned by the server;

[0022] The display unit is configured to render and display the message notification according to the rendering protocol information.

[0023] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor and a memory for storing instructions executable by the processor;

[0024] Among them, the processor is configured to execute the instructions to implement the message processing method described in the first aspect above.

[0025] According to a sixth aspect of an embodiment of the present disclosure, another electronic device is provided, comprising: a processor and a memory for storing instructions executable by the processor;

[0026] Among them, the processor is configured to execute the instructions to implement the message processing method described in the second aspect above.

[0027] According to a seventh aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the message processing method described in the first aspect above.

[0028] According to an eighth aspect of an embodiment of the present disclosure, another computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the message processing method described in the second aspect above.

[0029] According to a ninth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the message processing method as described in the first aspect above is implemented.

[0030] According to a tenth aspect of an embodiment of the present disclosure, another computer program product is provided, including a computer program, and when the computer program is executed by a processor, the message processing method described in the second aspect above is implemented.

[0031] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0032] Compared with the current way that the style of message notifications needs personalized development to support, the present disclosure does not need to manually write the corresponding code logic to realize customized development whenever there is a new message notification type. Through a standardized rendering protocol, a configuration scheme of a general message notification style is realized, which can effectively save labor costs. Specifically, the server receives a message request from the client, and the message request carries a message type; according to the message configuration information and message content information corresponding to the message type, the rendering protocol information that conforms to the preset message body structure is configured, wherein the preset message body structure can be a multi-segment message body structure, and each segment specifies the display style of each part of the message content information; then the rendering protocol information is sent to the client, and the rendering protocol information can be used for the client to render and display the message notification, thereby realizing the rendering and display of each part of the content with its own corresponding display style. By applying the technical solution of the present disclosure, the style can be personalized in different message notifications according to the protocol specification, and the new message notification can be launched without developing code. It is easy to realize personalized configuration display styles of multiple different message types, increase the recognition of various messages, improve message processing efficiency, and provide users with a better consumer experience.

[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0035] Figure 1 The figure is a flowchart of a message processing method according to an exemplary embodiment.

[0036] Figure 2 This is a diagram showing an example of a display effect of a message notification style according to an exemplary embodiment.

[0037] Figure 3 The figure is a flowchart of another message processing method according to an exemplary embodiment.

[0038] Figure 4 It is a schematic diagram showing an example of system interaction according to an exemplary embodiment.

[0039] Figure 5 The figure is a flowchart of another message processing method according to an exemplary embodiment.

[0040] Figure 6 The invention is a block diagram of a message processing device according to an exemplary embodiment.

[0041] Figure 7 It is a block diagram of another message processing device according to an exemplary embodiment.

[0042] Figure 8 It is a structural diagram of a message processing system according to an exemplary embodiment.

[0043] Fig. 9 It is a block diagram of an electronic device according to an exemplary embodiment.

[0044] Fig.10 is a block diagram of another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0045] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0047] In order to at least solve the technical problem that whenever there is a new message notification type in the related art, it is necessary to manually write the corresponding code logic to implement customized development, which will result in high labor costs. This embodiment provides a message processing method, such as Figure 1 As shown, it can be applied to the server side for execution. The method includes the following steps:

[0048] Step 101: The server receives a message request from the client.

[0049] The message request may be specifically an HTTP request, which may carry a message type, that is, the type of message requested by the client, which may be related to specific business content. For example, the type of message that the client requests to obtain the number of likes on a user's comments / posted videos; or the type of message that the client requests to obtain the number of new fans of a user; or the type of message that the client requests to obtain the number of new views of a video posted by a user; or the type of message that the client requests to obtain the number of new records of visits to the user's homepage, etc.

[0050] Step 102: The server obtains message configuration information and message content information corresponding to the message type.

[0051] The message configuration information may include configuration information of the display style of the message notification, such as configuration information of font, line break, bold, etc. In this embodiment, different message types may have their own corresponding message configuration information, and may be saved in the configuration center. These message configuration information may be configured in advance according to actual needs, and may be updated and adjusted according to business needs.

[0052] The message content information corresponding to the message type can be provided in advance by the business party and saved in the database. For example, the server receives a message request sent by the client, and obtains the message content information corresponding to the message type from the database according to the type of message requested by the client carried in the message request, and can obtain the message configuration information corresponding to the message type from the configuration center.

[0053] Step 103: The server configures rendering protocol information that conforms to a preset message body structure according to the message configuration information and message content information corresponding to the message type.

[0054] Among them, the preset message body structure can be a multi-segment message body structure, and each segment specifies the display style of each part of the message content information. For this embodiment, the protocol specifications of the server and the client can be pre-set, which can be specifically a protocol specification of a multi-segment message body structure, so that the rendering protocol information that conforms to the preset message body structure can be automatically configured in segments according to the protocol specification and the message configuration information and message content information corresponding to the message type (that is, a normative protocol is configured), so that each segment in the rendering protocol information specifies the display style of each part of the message content information.

[0055] Through this general configuration capability (i.e. the ability to automatically configure the rendering protocol according to the general protocol specification), you can combine attributes to achieve the effect of personalized notification style, without code development, reducing labor costs. The configurable style of message notifications can be realized, and each message can customize the notification font, bold, line break and other display styles. And if the current attributes do not meet the requirements, you can also add new attributes according to the general protocol specification, that is, configure more display styles for message notifications, and then have scalable capabilities.

[0056] Step 104: The server sends rendering protocol information to the client.

[0057] The rendering protocol information may include the message text to be rendered, and the display style corresponding to the message text. The rendering protocol information can be used to render and display message notifications, that is, the server informs the client through the rendering protocol information how to render and display the message notifications it requests. The client can render and display the message notifications with corresponding display styles for each part of the content according to the rendering protocol information.

[0058] For example, for a message "Zhang San, Li Si and 7 others liked your comment", the first paragraph of the rendering protocol information specifies that the display style of "Zhang San, Li Si" is Kaiti font with bold font, the second paragraph specifies that the display style of "and 7 others" is Songti font with non-bold font, and the third paragraph specifies that the display style of "liked your comment" is Fangsong font with non-bold font and line break. The client renders according to the rendering protocol information to display the corresponding message notification, such as Figure 2 The following is an example of the display effect of the message notification style.

[0059] Compared with the current method where personalized development is required to support the style of message notifications, this embodiment does not require manual writing of corresponding code logic to implement customized development whenever a new message notification type is created. A standardized rendering protocol is used to implement a configuration scheme for general message notification styles, which can effectively save labor costs. By applying the technical solution of this embodiment, styles can be personalized in different message notifications according to the protocol specifications, and new message notifications can be launched without code development. It is easy to implement personalized configuration display styles for multiple different message types, which increases the recognition of various messages, improves message processing efficiency, and can provide users with a better consumer experience.

[0060] Further, as a refinement and extension of the above embodiment, in order to fully illustrate the specific implementation process of the method of this embodiment, this embodiment provides the following Figure 3 The specific method shown includes:

[0061] Step 201: The server receives a message request from the client.

[0062] Step 202: The server obtains message configuration information and message content information corresponding to the message type carried in the message request.

[0063] For example, Figure 4As shown, the message content information corresponding to different message types (such as interactive messages of different interactive types) can be provided to the server in advance by the business party and stored in the message database. The server receives the message request (request message data) sent by the client, and obtains the message content information corresponding to the message type from the message database according to the type of message requested by the client carried in the message request, and can pull the message configuration information corresponding to the message type from the configuration center through the rendering data service, so that the corresponding rendering protocol can be obtained in the subsequent configuration.

[0064] The client's message request may also carry user information of the client user, such as the user's ID and other information. In this embodiment, in order to implement the configuration of the personalized message notification style for the user, optionally, step 202 may specifically include: obtaining message configuration information corresponding to the message type and the user information (such as information related to the display style of the message notification configured by the user himself) and message content information. In this way, the personalized message notification display of the user can be performed according to the personalized message configuration information and message content information of the user, thereby improving the user's experience.

[0065] Step 203: The server obtains each part of the message content information.

[0066] The server can obtain the corresponding parts of the message content information according to the general protocol specification (see the protocol specification described in step 103), that is, the content corresponding to each section of the protocol specification in the message content information. Exemplarily, the general protocol specification can be a three-section protocol specification, wherein the first section can be a text showing the source user of the interaction, the second section can be a text showing the number of interactions, and the third section can be a personalized text showing the interaction type. According to the protocol specification of the three-section message body structure, the corresponding three parts of the message content information can be obtained.

[0067] Step 204: The server obtains display style configuration information corresponding to each part of the content from the message configuration information.

[0068] The display style may at least include: font, and / or line break, and / or bold, and / or color, and / or font size, and / or display position, etc. The display style configuration information may be the relevant configuration information of these display styles.

[0069] Step 205: The server configures rendering protocol information that conforms to a preset message body structure according to each part of the message content information and the display style configuration information corresponding to each part of the content.

[0070] Optionally, step 205 may specifically include: configuring the display copy of each part of the message content information in sections, and the display style corresponding to each display copy, so as to generate rendering protocol information that conforms to the preset message body structure. Exemplarily, configuring the display copy of each part of the message content information in sections may specifically include: configuring the display copy of each part of the message content information in three sections, wherein the first section may be a copy showing the source user of the interaction, the second section may be a copy showing the number of interactions, and the third section may be a personalized copy showing the type of interaction.

[0071] In this embodiment, the display style corresponding to each paragraph of the copy content can be configured according to the general protocol specification (see the protocol specification described in step 103) according to actual needs, such as using a three-stage method of configuring the copy style, sequentially configuring the display style corresponding to the copy showing the source user of the interaction in the first paragraph; and configuring the display style corresponding to the copy showing the number of interactions in the second paragraph; and configuring the display style corresponding to the personalized copy corresponding to the interaction type in the third paragraph, etc. Through this three-stage method of configuring the copy style, the personalized style display of each interactive reminder is realized, and the display style of different messages can be flexibly added, which greatly improves the development efficiency, reduces the development labor cost, and empowers the message sender.

[0072] Step 206: The server sends the rendering protocol information to the client.

[0073] Furthermore, the client renders and displays the message notification according to the rendering protocol information.

[0074] This embodiment provides a general configuration method for message notification styles through a normative rendering protocol standard. The style can be personalized in different message notifications according to the protocol specification, and new message notifications can be launched without code development, which reduces labor costs. In addition, the protocol can be an extensible protocol that supports conventional attributes such as fonts, line breaks, and colors. If you want to extend the attributes in the future, you can configure them according to the protocol specification. It is extensible, simple and convenient, and reduces the maintenance cost required for business demand adjustment.

[0075] The above embodiment is a message processing process described on the server side. Further, in order to fully illustrate the implementation of this embodiment, this embodiment also provides another message processing method, which can be applied to the client side of the user terminal. Figure 5 As shown, the method includes:

[0076] Step 301: The client sends a message request to the server.

[0077] The message request may carry a message type, and further, the server configures rendering protocol information that conforms to the preset message body structure according to the message configuration information and message content information corresponding to the message type. The preset message body structure may be a multi-segment message body structure, and each segment specifies the display style of each part of the message content information. For the specific configuration process of the rendering protocol information, please refer to Figure 1 and Figure 3 The description of the examples shown in is not repeated here.

[0078] This embodiment can combine attributes to achieve the effect of personalized notification style through general configuration capabilities (i.e., the ability to automatically configure the rendering protocol according to general protocol specifications), without code development, reducing labor costs. Configurable styles of message notifications can be realized, and each message can customize the display style of notification fonts, bold, line breaks, etc. And if the current attributes do not meet the requirements, new attributes can be added according to the general protocol specifications, that is, more display styles can be configured for message notifications, thereby having scalable capabilities.

[0079] Step 302: The client receives rendering protocol information returned by the server according to the message request.

[0080] Step 303: The client renders and displays the message notification according to the rendering protocol information.

[0081] The rendering protocol information may include the message text to be rendered, and the display style corresponding to the message text, etc. The client can render and display each part of the content with its corresponding display style according to the rendering protocol information.

[0082] For example, for a message "Wang Wu, Zhao Liu and 9 others visited your homepage", the first description type in the rendering protocol information is text type, the text content is "Wang Wu, Zhao Liu", and the display style of the text content is specified as bold font; the second description type is text type, the text content is "and 9 others", and the display style of the text content is specified as bold font; the third description type is text type, the text content is "visited your homepage", and the display style of the text content is specified as non-bold font. The client renders according to the rendering protocol information to display the corresponding message notification.

[0083] Compared with the current method where personalized development is required to support the style of message notifications, this embodiment does not require manual writing of corresponding code logic to achieve customized development whenever a new message notification type is available. Through a standardized protocol, a configuration scheme for a general message notification style is implemented, which can effectively save labor costs. By applying the technical solution of this embodiment, personalized configuration styles can be configured in different message notifications according to the protocol specifications, and new message notifications can be launched without developing code. It is easy to realize personalized configuration display styles for multiple different message types, which increases the recognition of various messages, improves message processing efficiency, and can provide users with a better consumer experience.

[0084] Further, as a refinement and extension of the specific implementation of the above embodiment, optionally, step 303 may specifically include: rendering and displaying message notifications with corresponding display styles for each part of the content, wherein the display style at least includes: font, and / or line break, and / or bold, and / or color, and / or font size, and / or display position, etc. Then, message notifications of different styles may be displayed according to actual needs to meet different business needs.

[0085] Optionally, the message request may also carry user information of the client user, such as the user's ID, etc., so that the server configures the rendering protocol information according to the message configuration information and message content information corresponding to the message type and the user information. This allows the server to display personalized message notifications based on the personalized message configuration information and message content information of the user, thereby improving the user's experience.

[0086] In order to further illustrate the specific implementation process of the above embodiment, the following application scenarios are given, which are not limited thereto:

[0087] In social short video apps, messages often serve as notifications and interactive reminders. In different scenarios, the format of messages will be somewhat different. Depending on the characteristics of the type, such as different notifications or interactions, there will be differences in color, display position, bolding, and other styles. These style distinctions can provide users with more efficient processing efficiency, quickly distinguish different types of notification interactions, such as quickly distinguishing likes or comments, and improving the social experience. Therefore, a configuration capability that can display different styles in different interaction types is required to flexibly implement the capability configuration between types and styles.

[0088] In the related art, the style of message notifications is specially supported, that is, each notification is an independent set of code logic. Whenever a new message is sent, if you want some customized styles, you need personalized development to support it. Then, this technical solution in the related art is a special processing logic, that is, every time there is a new type of message notification, customized development is required to achieve personalized notification styles, such as fonts, line breaks, etc. Every time the business needs are adjusted, the code needs to be modified, the labor cost is high, and each time it is necessary to communicate and discuss with the business party, the communication cost is also relatively high.

[0089] Therefore, in order to solve the problem of flexibly displaying different types of interactions in different styles, a capability configuration scheme between text and special effects is designed and implemented based on the method of this embodiment. The protocol specifications of the server and the client can be pre-set, specifically a protocol specification of a three-segment message body structure, where each segment specifies the display style of each part of the message content information. For example, the first segment can correspond to the text displaying the source user of the interaction; the second segment can correspond to the text displaying the number of interactions; and the third segment can correspond to the display of personalized text corresponding to the interaction type.

[0090] In this way, when the server receives the message request from the client, it can automatically configure the rendering protocol information that conforms to the preset message body structure in sections according to the protocol specification and the message configuration information and message content information corresponding to the message type in the message request (that is, configure a normative protocol), so that each section in the rendering protocol information specifies the display style of each part of the message content information, such as the style of font, and / or line break, and / or bold, and / or color, and / or font size, and / or display position, etc. Then send the rendering protocol information to the client. The client renders according to the rendering protocol information to display the message notification with each part of the content having its corresponding display style.

[0091] This embodiment can easily realize personalized configuration display styles of multiple different message types through the ability configuration method of displaying different styles in different message types, increase the recognition of various messages, improve message processing efficiency, and provide users with a better consumption experience. At the same time, it also reduces the labor cost of personalized configuration, ensures the improvement of quality and efficiency, and enables all message senders to quickly iterate the personalized needs of their respective messages and improve their respective reach efficiency. The number of meetings and discussions with the business side is reduced, and the communication cost is effectively reduced.

[0092] Further, as Figure 1 and Figure 3 The specific implementation of the method shown in the embodiment provides a message processing device that can be applied to the server side, such as Figure 6As shown, the device includes: a receiving unit 41, an acquiring unit 42, a configuring unit 43, and a sending unit 44.

[0093] A receiving unit 41 is configured to receive a message request from a client, wherein the message request carries a message type;

[0094] An acquiring unit 42 is configured to acquire message configuration information and message content information corresponding to the message type;

[0095] The configuration unit 43 is configured to configure rendering protocol information that conforms to a preset message body structure according to the message configuration information and the message content information, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies a display style of each part of the message content information;

[0096] The sending unit 44 is configured to send the rendering protocol information to the client, where the rendering protocol information is used for rendering the display message notification.

[0097] In a specific application scenario, the configuration unit 43 is specifically configured to execute the acquisition of each part of the message content information; acquire the display style configuration information corresponding to each part of the content from the message configuration information; and configure the rendering protocol information according to each part of the message content information and the display style configuration information corresponding to each part of the content.

[0098] In a specific application scenario, the configuration unit 43 is further configured to configure the display copy of each part of the message content information in a segmented manner, and the display style corresponding to each of the display copy, so as to generate the rendering protocol information.

[0099] In a specific application scenario, the configuration unit 43 is further configured to execute the display copy of each part of the message content information in three sections, wherein the first section is the copy for displaying the source user of the interaction, the second section is the copy for displaying the number of interactions, and the third section is the personalized copy corresponding to the interaction type.

[0100] In a specific application scenario, the message request also carries the user information of the client user; accordingly, the acquisition unit 42 is specifically configured to execute acquisition of message configuration information and message content information corresponding to the message type and the user information.

[0101] In a specific application scenario, optionally, the display style includes at least: font, and / or line break, and / or bold, and / or color, and / or font size, and / or display position style.

[0102] It should be noted that for other corresponding descriptions of the functional units involved in the message processing device applicable to the server side provided in this embodiment, please refer to Figure 1 and Figure 3 The corresponding description of the method in will not be repeated here.

[0103] Further, as Figure 5 The specific implementation of the method shown in the embodiment provides a message processing device that can be applied to the client side, such as Figure 7 As shown, the device includes: a sending unit 51, a receiving unit 52, and a display unit 53.

[0104] The sending unit 51 is configured to execute sending a message request to the server, wherein the message request carries a message type, so that the server configures rendering protocol information that conforms to a preset message body structure according to message configuration information and message content information corresponding to the message type, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies a display style of each part of the message content information;

[0105] A receiving unit 52 is configured to receive the rendering protocol information returned by the server;

[0106] The display unit 53 is configured to render and display the message notification according to the rendering protocol information.

[0107] In a specific application scenario, the display unit 53 is specifically configured to perform rendering and display of message notifications in which each part of the content has its own corresponding display style, wherein the display style includes at least: font, and / or line break, and / or bold, and / or color, and / or font size, and / or display position style.

[0108] In a specific application scenario, optionally, the message request also carries user information of the client user, so that the server configures the rendering protocol information according to the message configuration information and message content information corresponding to the message type and the user information.

[0109] It should be noted that for other corresponding descriptions of the functional units involved in the message processing device applicable to the client side provided in this embodiment, please refer to Figure 5 The corresponding description of the method in will not be repeated here.

[0110] Based on the above content, further, this embodiment also provides a message processing system, such as Figure 8 As shown, the system includes a server device 61 and a client device 62; the server device 61 can be specifically configured on the cloud side.

[0111] The server device 61 can be used to perform the following steps: Figure 1 and Figure 2 The method shown in the figure, the client device 62 can be used to perform the following Figure 3 The method shown.

[0112] The client device 62 may be configured to send a message request to the server device 61 , wherein the message request carries a message type.

[0113] The server device 61 can be configured to receive a message request from a client device 62, wherein the message request carries a message type; obtain message configuration information and message content information corresponding to the message type; configure rendering protocol information that conforms to a preset message body structure according to the message configuration information and the message content information, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies a display style for each part of the message content information; and then send the rendering protocol information to the client device 62, wherein the rendering protocol information is used to render and display the message notification.

[0114] The client device 62 may also be configured to receive the rendering protocol information returned by the server device 61 ; and render and display the message notification according to the rendering protocol information.

[0115] By applying the technical solution of this embodiment, the style can be personalized in different message notifications according to the protocol specification, and the new message notification can be launched without developing code. It is easy to realize personalized configuration display styles of multiple different message types, increase the recognition of various messages, improve message processing efficiency, and provide users with a better consumption experience.

[0116] Fig. 9 is a block diagram of an electronic device shown in this embodiment. For example, the electronic device may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0117] Reference Fig. 9 The electronic device may include one or more of the following components: a processing component 71, a memory 72, a power component 73, a multimedia component 74, an audio component 75, an input / output (I / O) interface 76, a sensor component 77, and a communication component 78.

[0118] The processing component 71 generally controls the overall operation of the electronic device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 71 may include one or more processors 710 to execute instructions to complete all or part of the steps of the information platform selection method described in any embodiment. In addition, the processing component 71 may include one or more modules to facilitate the interaction between the processing component 71 and other components. For example, the processing component 71 may include a multimedia module to facilitate the interaction between the multimedia component 74 and the processing component 71.

[0119] The memory 72 is configured to store various types of data to support the operation of the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc. The memory 72 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0120] The power supply assembly 73 provides power to various components of the electronic device. The power supply assembly 3 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device.

[0121] The multimedia component 74 includes a screen that provides an output interface between the electronic device and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 74 includes a front camera and / or a rear camera. When the electronic device is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0122] The audio component 75 is configured to output and / or input audio signals. For example, the audio component 75 includes a microphone (MIC), and when the electronic device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 72 or sent via the communication component 78. In some embodiments, the audio component 75 also includes a speaker for outputting audio signals.

[0123] I / O interface 76 provides an interface between processing component 71 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0124] The sensor assembly 77 includes one or more sensors for providing various aspects of status assessment for the electronic device. For example, the sensor assembly 77 can detect the on / off state of the electronic device, the relative positioning of components, such as the display and keypad of the electronic device, and the sensor assembly 77 can also detect the position change of the electronic device or a component of the electronic device, the presence or absence of user contact with the electronic device, the orientation or acceleration / deceleration of the electronic device and the temperature change of the electronic device. The sensor assembly 77 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 77 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 77 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0125] The communication component 78 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 78 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 78 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0126] In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the following operations: Figure 5 The method shown.

[0127] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 72 including instructions, which can be executed by a processor 710 of an electronic device to perform the following steps: Figure 5 For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0128] In an exemplary embodiment, a computer program product is also provided, the computer program product includes a readable program code, the readable program code can be executed by the processor 710 of the above electronic device to complete the following steps: Figure 5 Optionally, the program code may be stored in a computer-readable storage medium of an electronic device, and the computer-readable storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0129] Fig.10 FIG. 2 is a block diagram of another electronic device shown in this embodiment. For example, the electronic device can be provided as a server.

[0130] Reference Fig.10 The electronic device includes a processing component 81, which further includes one or more processors, and a memory resource represented by a memory 82 for storing instructions executable by the processing component 81, such as an application. The application stored in the memory 82 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 81 is configured to execute instructions to perform such as Figure 1 and Figure 3 The method shown.

[0131] The electronic device may further include a power supply component 83 configured to perform power management of the electronic device, a wired or wireless network interface 84 configured to connect the electronic device to a network, and an input / output (I / O) interface 85. The electronic device may operate based on an operating system stored in the memory 82, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM or the like.

[0132] In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the following operations: Figure 1 and Figure 3 The method shown.

[0133] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 82 including instructions, which can be executed by a processing component 81 of an electronic device to perform the following steps: Figure 1 and Figure 3 The method shown.

[0134] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0135] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A message processing method, characterized in that: Applied to the server side for execution, the method includes: Receive a message request from a client, wherein the message request carries a message type; Obtaining message configuration information and message content information corresponding to the message type; According to the message configuration information and the message content information, configuring rendering protocol information that conforms to a preset message body structure, including: configuring display texts of each part of the message content information in a segmented manner, and display styles corresponding to each of the display texts, so as to generate the rendering protocol information, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies the display style of each part of the message content information; The rendering protocol information is sent to the client, where the rendering protocol information is used for rendering and displaying message notifications.

2. The method according to claim 1, characterized in that The configuring rendering protocol information that conforms to a preset message body structure according to the message configuration information and the message content information includes: Obtaining each part of the message content information; Acquire, from the message configuration information, display style configuration information corresponding to each of the parts of the content; The rendering protocol information is configured according to each part of the message content information and the display style configuration information corresponding to each part of the content.

3. The method according to claim 1, characterized in that The segmented configuration of the display copy of each part of the message content information includes: The display copy of each part of the message content information is configured in three sections, wherein the first section is the copy showing the source user of the interaction, the second section is the copy showing the number of interactions, and the third section is the personalized copy showing the interaction type.

4. The method according to claim 1, characterized in that: The message request also carries the user information of the client user; The acquiring of message configuration information and message content information corresponding to the message type includes: Message configuration information and message content information corresponding to the message type and the user information are acquired.

5. The method according to any one of claims 1 to 4, characterized in that The display style at least includes: font, and / or line break, and / or bold, and / or color, and / or font size, and / or display position style.

6. A message processing method, characterized in that: Applied to the client side for execution, the method includes: Sending a message request to a server, wherein the message request carries a message type, so that the server configures rendering protocol information that conforms to a preset message body structure according to message configuration information and message content information corresponding to the message type, including: configuring display texts of each part of the message content information in a segmented manner, and display styles corresponding to each of the display texts, so as to generate the rendering protocol information, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies a display style of each part of the message content information; Receive the rendering protocol information returned by the server; Render and display message notification according to the rendering protocol information.

7. The method according to claim 6, characterized in that The rendering and displaying message notification according to the rendering protocol information includes: Rendering and displaying each part of the content with its own corresponding display style of message notification, wherein the display style at least includes: font, and / or line break, and / or bold, and / or color, and / or font size, and / or display position style.

8. The method according to claim 6, characterized in that The message request also carries the user information of the client user, so that the server configures the rendering protocol information according to the message configuration information and message content information corresponding to the message type and the user information.

9. A message processing device, characterized in that: Applied to the server side, the device includes: A receiving unit, configured to execute receiving a message request from a client, wherein the message request carries a message type; An acquiring unit, configured to acquire message configuration information and message content information corresponding to the message type; A configuration unit is configured to configure rendering protocol information that conforms to a preset message body structure according to the message configuration information and the message content information, including: configuring display texts of each part of the message content information in a segmented manner, and display styles corresponding to each of the display texts, so as to generate the rendering protocol information, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies the display style of each part of the message content information; The sending unit is configured to send the rendering protocol information to the client, where the rendering protocol information is used for rendering and displaying message notification.

10. A message processing device, characterized in that: Applied to the client side, the device includes: A sending unit is configured to execute a message request to send a message to a server, wherein the message request carries a message type, so that the server configures rendering protocol information that conforms to a preset message body structure according to message configuration information and message content information corresponding to the message type, including: configuring display texts of each part of the message content information in a segmented manner, and display styles corresponding to each of the display texts, so as to generate the rendering protocol information, wherein the preset message body structure is a multi-segment message body structure, and each segment specifies the display style of each part of the message content information; A receiving unit, configured to receive the rendering protocol information returned by the server; The display unit is configured to render and display the message notification according to the rendering protocol information.

11. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the message processing method according to any one of claims 1 to 5, or the message processing method according to any one of claims 6 to 8.

12. A computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the message processing method as described in any one of claims 1 to 5, or the message processing method as described in any one of claims 6 to 8.