Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an implementation process of a short message display method applied to a client according to an embodiment of the present invention;
FIG. 2 is a first short message style display diagram in a short message display method according to an embodiment of the present invention;
fig. 3 is a second short message style display diagram in a short message display method according to an embodiment of the present invention.
As shown in fig. 1, in one aspect, the present invention provides a short message display method applied to a client, where the method includes:
step 101, receiving short message content information sent by a terminal;
102, generating card style information for configuring the short message content information according to the received short message content information;
103, sending a data downloading request to the server to indicate the server to respond to the data downloading request and feed back skin description data which is used for configuring card style information and corresponds to short message content information;
and 104, displaying the short message content information, the card style information and the skin style information corresponding to the skin description data.
In this embodiment, in step 101, the terminal is a short message sender, the terminal is generally a server of a short message merchant, and the short message content information is sent to the client through a short message operator (such as a mobile, unicom, and telecom operator), and as shown in fig. 2, the short message content information generally includes a name of the short message merchant, a merchant number, a short message text, and the like.
In step 102, after the short message content information is received, a card parsing engine carried by the android system is used for parsing the short message content information, wherein the processing mode includes syntax and semantic analysis, information extraction, text mining and the like, and then the information is processed and reconstructed to be converted into structured card style information. The card style information can be shown in fig. 2, and fig. 2 is one expression form of the card style information, and generally includes a text part (such as hotel reservation result information in fig. 2) located in the middle and used for displaying main content of the short message, and a navigation part (such as car rental service, hotel reservation and travel carrying in fig. 2) located at the bottom and used for configuring corresponding functions.
In step 103, after the card style information is generated, a data downloading request is generated in the client and sent to a database storing skin description data, and the server responds to the data downloading request and feeds back the skin description data which is used for configuring the card style information and corresponds to the short message content information.
In step 104, after the skin description data is received, the skin description data is parsed into skin style information, and then the short message content information, the card style information, and the skin style information are displayed, where the display result can be shown in fig. 3, and in fig. 3, a skin background effect is added in the text area of the card.
Therefore, corresponding skin style information is added on the basis of original card style information, different short message contents are configured with different skin styles, so that the visual sense of a user is impacted when the user views the short message, the aesthetic fatigue of the user is not reduced, and the experience of the user is improved.
In one embodiment, the skin description data includes skin description content for configuring card style information;
correspondingly, the displaying of the skin style information corresponding to the skin description data includes:
extracting and analyzing skin description contents in the skin description data to generate skin style information for configuring card style information;
and displaying the analyzed skin style information.
In this embodiment, as shown in the following table, the skin description data includes a business name, a short message card secondary category, a short message card primary category, a skin ID, and skin description contents, and each business name and short message category corresponds to one skin description content. The merchant name, the secondary category of the short message card, the primary category of the short message card and the skin ID correspond to short message content information. The skin description content is used for configuring card style information, particularly in json format, and a code module for rendering card styles is stored.
Correspondingly, the specific process of step 104 is:
corresponding skin description content can be inquired and extracted from the skin description data according to the merchant name and the short message category, and the extracted skin description content is analyzed in the client to generate skin style information configured in the card style information;
the generated skin style information is then displayed.
In an embodiment, the method further comprises:
storing the skin description data fed back by the server side into a first local database;
correspondingly, before sending a data downloading request to the server, the method further comprises the following steps;
inquiring whether corresponding skin description data exists in a first local database according to the received short message content information;
if the first local database is inquired to have corresponding skin description data, the inquired skin description data is extracted;
and if the first local database is inquired to have no corresponding skin description data, sending a data downloading request to the server.
In this embodiment, after the skin description data is fed back from the server to the client, the skin description data fed back is further stored in the associated first local database, where the first local database may exist in the client or may be in the server.
Correspondingly, before the step 102 is performed, it is determined whether the skin description data corresponding to the short message content information already exists in the first local database, and if the skin description data corresponding to the short message content information exists in the first local database, the skin description data is directly extracted from the first local database, and the server does not need to request to download data; and if the first local database is inquired that the corresponding skin description data does not exist, sending a data downloading request to the server, and storing the skin description data fed back by the server into the first local database. Through the steps, the transmission pressure of the server can be relieved, so that the server can keep high-efficiency transmission capacity.
In an implementation manner, the skin description data further includes a terminal name and short message category information;
correspondingly, according to the received short message content information, inquiring whether the corresponding skin description data exists in the first local database or not, including:
acquiring a terminal name and short message category information in short message content information;
and inquiring whether the corresponding skin description data exists in the first local database or not according to the terminal name and the short message category information.
In this embodiment, as shown in the table, the short message category information further includes a primary category of the short message card and a secondary category of the short message card. The short message card primary category is used for representing the merchant type corresponding to the short message, if the merchant type corresponding to the merchant name is 'airline ticket', the short message card secondary category is important content extracted from the short message content information, and the short message content information can be identified through the existing natural language semantic understanding.
Correspondingly, the specific process of querying whether the corresponding skin description data exists in the first local database according to the received short message content information in the above steps is as follows:
and acquiring the terminal name and the short message category information in the short message content information, and then inquiring whether corresponding skin description data exists in a first local database according to the terminal name and the short message category information.
In one implementation mode, the skin description data further comprises man-machine interaction content used for configuring card style information;
correspondingly, the displaying of the skin style information corresponding to the skin description data includes:
extracting and analyzing human-computer interaction content in the skin description data, and generating interaction style information for configuring card style information, wherein the interaction style information is used for executing corresponding functions according to external instructions;
and displaying the analyzed interactive style information.
In this embodiment, as shown in the table, the skin description data further includes human-computer interaction content corresponding to the skin description content, and the human-computer interaction content includes a code module for realizing human-computer interaction.
Correspondingly, when step 104 is executed, the method further includes:
and extracting and analyzing the man-machine interaction content from the skin description data according to the merchant name and the short message category information to generate interaction style information for configuring card style information, wherein the interaction style comprises a point touch button, a video playing interface and the like. During man-machine interaction, a client receives a point touch instruction of a user, and the client responds to the point touch quality to execute operations such as video playing, page jumping, countdown and the like. As in fig. 2, "contact hotel" is a click button, and after the user clicks the button, the client will jump to the dial interface.
Fig. 4 is a schematic view of an implementation process of a short message display method applied to a server according to an embodiment of the present invention.
As shown in fig. 4, another aspect of the present invention provides a short message display method applied to a server, where the method includes:
step 201, receiving a data downloading request which is sent by a client and is used for card style information, wherein the card style information is generated by the client according to short message content information and is used for configuring the short message content information;
step 202, responding to a data downloading request, and sending skin description data which is used for configuring card style information and corresponds to short message content information to a client;
and the skin style information corresponding to the short message content information, the card style information and the skin description data is also used for being displayed on the client.
In this embodiment, in step 201, the short message content information in the client is obtained by sending the terminal, and the short message content information generally includes a short message merchant name, a merchant number, a short message text, and the like.
The specific generation process of the card style information comprises the following steps: and analyzing the short message content information by using a card analysis engine carried by the android system, wherein the processing mode comprises syntactic semantic analysis, information extraction, text mining and the like, and then processing and reconstructing the information to convert the information into structured card style information.
In step 202, a large amount of skin description data for configuring card style information is stored in the server, and the skin description data is generated and provided by the operation platform.
After receiving the skin description data, the client analyzes the skin description data to generate skin style data configured in the card style data, and finally, short message content information, card style information and skin style information are displayed on a display screen of the client.
Therefore, the client adds corresponding skin style information on the basis of the original card style information, and different short message contents are configured with different skin styles, so that the visual sense of a user is impacted when the user views the short message, the aesthetic fatigue of the user is not reduced, and the experience of the user is improved.
In one implementation, the data downloading request includes a merchant name and short message category information corresponding to the short message content information;
correspondingly, the method for sending the skin description data which is used for configuring the card style information and corresponds to the short message content information to the client comprises the following steps:
inquiring corresponding skin description data from a second local database according to the merchant name and the short message category information;
and sending the queried skin description data to the client.
In this embodiment, the merchant name is, for example, "transportation bank", "carry", and the like in the table, and the short message category information further specifically includes a primary category of the short message card and a secondary category of the short message card, where the primary category of the short message card is a merchant type corresponding to the short message, for example, the merchant type corresponding to the merchant name "carry" is "airline ticket", and the secondary category of the short message card is important content extracted from the short message content information, and the short message content information can be obtained by identifying the short message content information through existing natural language semantic understanding.
Correspondingly, step 202 specifically includes:
and taking the merchant name and the short message category information as retrieval indexes, inquiring corresponding skin description data from a second local database, and sending the inquired skin description data to the client.
Fig. 5 is a schematic view of an implementation process of a short message display method applied to an operation platform according to an embodiment of the present invention.
Another aspect of the embodiments of the present invention provides a short message display method, which is applied to an operation platform, and the method includes:
step 301, generating skin description data corresponding to short message content information and used for configuring card style information according to a merchant name and short message category information in the short message content information, wherein the card style information is information which is generated by a client according to the short message content information and used for configuring the short message content information;
step 302, sending the generated skin description data to a server; the skin description data is also used for being sent to the client through the server, and corresponding skin style information is generated in the client.
In this embodiment, in step 301, the merchant name and the short message category information may be provided by the short message merchant, and the short message category information further specifically includes a first-class short message card and a second-class short message card, where the first-class short message card represents a merchant type corresponding to the short message, for example, the merchant type corresponding to the merchant name "carry" is an air ticket, and the second-class short message card is important content extracted from the short message content information, and can be obtained by identifying the short message content information through existing natural language semantic understanding. The card style information may be made by an operator according to a merchant name, a short message category, or a request made by a merchant, as shown in fig. 2, fig. 2 is one representation of the card style information, and generally includes a text part (such as hotel reservation result information in fig. 2) located in the middle and used for displaying main content of the short message, and a navigation part (such as car rental service, hotel reservation, and travel) located at the bottom and used for configuring corresponding functions.
In step 302, the generated skin description data is sent to the server and stored in the server. When the client requests the skin description data, the server transmits the skin description data corresponding to the request to the client, the client analyzes the skin description data and generates skin style information, and short message content information, card style information and skin style information are displayed on the client.
Therefore, corresponding skin style information is added on the basis of original card style information, different short message contents are configured with different skin styles, so that the visual sense of a user is impacted when the user views the short message, the aesthetic fatigue of the user is not reduced, and the experience of the user is improved.
FIG. 6 is a schematic structural diagram of a short message display system according to an embodiment of the present invention;
as shown in fig. 6, the system includes an operation platform, a server, and a client.
Firstly, the operator of the operation platform configures skin-related resources for some short message merchants according to the requirements of the short message merchants, then generates skin resources by using an offline skin resource generation tool, meanwhile, carries out validity check on the generated skin resources, and then sends the skin resources to a server for storage.
The server is used for receiving the network request of the client for acquiring the skin resource and sending the skin resource required by the client to the client.
The client stores the skin resources (skin description data) obtained from the server to the local, then analyzes the skin description data by using the skin analysis engine, and dynamically generates a skin pattern, and the skin pattern can be displayed on the client together with the card pattern information and the short message content information.
Fig. 7 is a schematic structural diagram of a short message display device applied to a client according to an embodiment of the present invention.
As shown in fig. 7, another aspect of the embodiments of the present invention provides a short message display device applied to a client, where the device includes:
an information receiving module 401, configured to receive short message content information sent by a terminal;
a card style generating module 402, configured to generate card style information for configuring short message content information according to the received short message content information;
a skin data obtaining module 403, configured to send a data downloading request to the server, so as to instruct the server to respond to the data downloading request and feed back skin description data, which is used for configuring card style information and corresponds to the short message content information;
and the style display module 404 is configured to display the short message content information, the card style information, and the skin style information corresponding to the skin description data.
In this embodiment, in the information receiving module 401, the terminal is a short message sending party, the terminal is generally a server of a short message business, and the short message content information is sent to the client through a short message operator (such as a mobile, unicom, and telecom operator), and as shown in fig. 2, the short message content information generally includes a name of the short message business, a business number, a short message text, and the like.
In the step of the card style generation module 402, after the short message content information is received, the short message content information is analyzed by using a card analysis engine carried by the android system, the processing modes include syntactic and semantic analysis, information extraction, text mining and the like, and then the information is processed and reconstructed to be converted into structured card style information. The card style information can be shown in fig. 2, and fig. 2 is one expression form of the card style information, and generally includes a text part (such as hotel reservation result information in fig. 2) located in the middle and used for displaying main content of the short message, and a navigation part (such as car rental service, hotel reservation and travel carrying in fig. 2) located at the bottom and used for configuring corresponding functions.
In the skin data obtaining module 403, after the card style information is generated, a data downloading request is generated in the client and sent to the database storing the skin description data, and the server responds to the data downloading request and feeds back the skin description data which is used for configuring the card style information and corresponds to the short message content information.
In the style display module 404, after the skin description data is received, the skin description data is parsed into skin style information, and then the short message content information, the card style information, and the skin style information are displayed, and the display result can be shown in fig. 3, where in fig. 3, a skin background effect is added in the text area of the card.
Therefore, corresponding skin style information is added on the basis of original card style information, different short message contents are configured with different skin styles, so that the visual sense of a user is impacted when the user views the short message, the aesthetic fatigue of the user is not reduced, and the experience of the user is improved.
Fig. 8 is a schematic structural diagram of a short message display device applied to a server according to an embodiment of the present invention.
As shown in fig. 8, another aspect of the present invention provides a short message display device applied to a server, where the device includes:
a request receiving module 501, configured to receive a data downloading request sent by a client and used for card style information, where the card style information is information that is generated by the client according to short message content information and is used for configuring the short message content information;
a request response module 502, configured to respond to a data download request, so as to send skin description data, which is used for configuring card style information and corresponds to short message content information, to a client;
and the skin style information corresponding to the short message content information, the card style information and the skin description data is also used for being displayed on the client.
In this embodiment, in the request receiving module 501, the short message content information in the client is obtained by sending the terminal, and the short message content information generally includes a short message merchant name, a merchant number, a short message text, and the like.
The specific generation process of the card style information comprises the following steps: and analyzing the short message content information by using a card analysis engine carried by the android system, wherein the processing mode comprises syntactic semantic analysis, information extraction, text mining and the like, and then processing and reconstructing the information to convert the information into structured card style information.
In the request response module 502, a large amount of skin description data for configuring card style information is stored in the server, and the skin description data is generated and provided by the operation platform.
After receiving the skin description data, the client analyzes the skin description data to generate skin style data configured in the card style data, and finally, short message content information, card style information and skin style information are displayed on a display screen of the client.
Therefore, the client adds corresponding skin style information on the basis of the original card style information, and different short message contents are configured with different skin styles, so that the visual sense of a user is impacted when the user views the short message, the aesthetic fatigue of the user is not reduced, and the experience of the user is improved.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.