Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious 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.
The information processing method provided by the embodiment of the invention can be applied to the scene of B2C information transmission based on instant messaging application, such as: an application server obtains an information sending request which is sent by a service terminal based on instant messaging application and carries information data to be packaged, the application server searches and obtains an information template according to the information sending request, the application server adopts the information template to package the information data to generate structured information, the application server sends the structured information to a user terminal, and the user terminal receives the structured information and outputs the structured information in an interface form; it should be noted that the information processing method provided by the embodiment of the present invention may also be applied to a scenario of information transmission based on C2C (user-to-user) and C2B (user-to-business server) of an instant messaging application. Through the customization mode of adopting the structured information template, need not to carry out frequent data change and version upgrade to application server and user terminal, can carry out complete show to the information, guaranteed the bandwagon effect and the treatment effeciency of information, promoted information processing's flexibility.
The application server related to the embodiment of the invention can be background communication server equipment with functions of providing instant communication service and the like between users and between a merchant server and the users; the service terminal and the user terminal may include: the tablet computer, the smart phone, the notebook computer, the palm computer, the personal computer, the Mobile Internet Device (MID), and the like have terminal devices for performing instant messaging, and it can be understood that, in the scenario of B2C, the service terminal is a terminal used by a merchant server for pushing service information to the user terminal, the user terminal may be a terminal used by a user person, in the scenario of C2C, the service terminal may specifically be a terminal used by a sender user person, the user terminal is a terminal used by a receiver user person, and in the scenario of C2B, the service terminal may specifically be a terminal used by a user person, and the user terminal is a terminal used by a merchant server.
An information processing method according to an embodiment of the present invention will be described in detail below with reference to fig. 1 to 4.
As shown in fig. 1, a flow chart of an information processing method is provided for an embodiment of the present invention. As shown in fig. 1, the embodiment of the present invention describes a specific flow of an information processing method from an application server side and a user terminal side, and the method may include the following steps S101 to S105.
S101, an application server acquires an information sending request which is sent by a service terminal based on instant messaging application and carries information data to be packaged;
specifically, the application server may obtain an information sending request sent by the service terminal based on the instant messaging application, where the information sending request may include information data to be encapsulated, it may be understood that a merchant server sets the information data to be encapsulated through the service terminal, the information data may include at least one data content such as a title, an abstract, a picture, an audio, a video, and a link, the service terminal sends the information sending request carrying the information data to the application server based on the instant messaging application, and the application server obtains the information sending request and obtains the information data.
S102, the application server searches and acquires an information template according to the information sending request;
specifically, the application server may search and obtain an information template according to the information sending request, and preferably, the information sending request may further include an information template identifier, for example: the application server can send all the stored information template identifications to the business terminal so as to provide a merchant server for selection, the business terminal obtains the selected information template identifications and adds the information template identifications into the information sending request for sending, the application server obtains the information template identifications and can search and obtain the information templates corresponding to the information template identifications, and the information templates can be template structure files in Extensible markup Language (XML) format.
S103, the application server adopts the information template to package the information data to generate structured information;
specifically, the application server may package the information data by using the obtained information template to generate structured information, and further, the application server may package at least one of title, abstract, picture, audio, video, and link in the information data according to the description of the template structure file, and generate a structured message after the application server packages the data content, and preferably, the structured message is described in XML binary data.
S104, the application server sends the structured information to a user terminal;
specifically, the application server may send the structured message to a user terminal associated with the service terminal, and it can be understood that a user account used when the user terminal logs in the instant messaging application may be associated and bound with a service account used by the service terminal in advance, and the application server may obtain the associated user account according to the association and binding relationship of the service account and push the structured message to the user terminal corresponding to the user account.
S105, the user terminal receives the structural information and outputs the structural information in an interface form;
specifically, the user terminal receives the structured information pushed by the application server and may parse the structured information, and preferably, the structured information may be parsed according to the above-mentioned structured framework to obtain a template structure and data content in the structured information, it may be understood that the template structure and the data content are both XML binary data, the user terminal may convert the template structure and the data content into an entity interface object and output and display the interface object in an interface form, further, a user holding the user terminal may perform a click operation on the interface object, and the user terminal may respond to a click event corresponding to the click operation by combining the template structure and the data content, for example: calling a link corresponding to the currently clicked image, and jumping to an external browser page; open external applications, etc.
In the embodiment of the invention, the application server acquires the information data sent by the service terminal based on the instant messaging application, the acquired information template is adopted to package the information data to generate the structured information, and the structured information is pushed to the user terminal to be displayed in an interface form, so that the process of processing the information data in the structured form is realized. Through the customization mode of adopting the structured information template, need not to carry out frequent data change and version upgrade to application server and user terminal, can carry out complete show to the information, guaranteed the bandwagon effect and the treatment effeciency of information, promoted information processing's flexibility.
Referring to fig. 2, a flow chart of an information processing method according to an embodiment of the invention is provided. As shown in fig. 2, the embodiment of the present invention describes a specific flow of an information processing method collectively from a service terminal side, an application server side, and a user terminal side, and the method may include the following steps S201 to S210.
S201, a service terminal sends an information template set according to a service scene and a template specification to an application server;
s202, the application server obtains an information template and distributes an information template identifier to the information template;
s203, the application server stores the information template identification and the information template and informs a user terminal to update the information template;
specifically, the information template may be a template structure file in an XML format, the information template may be a template stored in the application server in advance, and may also be set by a merchant server at the service terminal side, the service terminal may obtain an information template set according to a service scene and a template specification, and send the information template to the application server, the application server obtains the information template sent by the service terminal, and assigns an information template identifier to the information template, the information template identifier may be an information template serial number (ID), the application server may store the information template identifier and the information template correspondingly, and may notify a user terminal to update the information template.
It should be noted that the description of the template structure indicated by the template structure file may include a root node and a node attribute corresponding to the root node, where the root node includes a source node, an item node, and child nodes of the item node, where the item node and the layout attribute together describe a layout manner of the child nodes of the item node, and the information template is displayed through the layout manner.
The addition of the information template can be a new addition of a layout mode, or a new addition of some nodes or sub-nodes based on the original layout mode, so that when the user terminal is notified to update the information template, the user terminal only needs to add corresponding nodes or sub-nodes, constant definition, response modes of corresponding interfaces and the like according to the conventional processing of XML under the existing structured framework, the framework principle does not need to be modified, frequent data change and version upgrading are not needed, and the information processing efficiency is further improved.
S204, the service terminal sends an information sending request carrying information data to be packaged to an application server based on instant messaging application;
specifically, the merchant server sets information data to be encapsulated through the service terminal, where the information data may include at least one data content of a title, an abstract, a picture, audio, a video, and a link, the service terminal sends an information sending request carrying the information data to the application server based on the instant messaging application, and the information sending request may further include an information template identifier, for example: the application server can send all the stored information template identifications to the business terminal so as to provide selection for a merchant server, and the business terminal acquires the selected information template identifications and adds the information template identifications to the information sending request for sending.
S205, the application server obtains the information sending request, and searches and obtains an information template according to the information sending request;
specifically, the application server obtains the information sending request, and obtains the information data and the information template identifier, and the application server may search for and obtain the information template corresponding to the information template identifier.
S206, the application server respectively encapsulates at least one data content of title, abstract, picture, audio, video and link in the information data according to the description of the template structure file;
s207, the application server generates structural information after packaging the data content;
specifically, the application server may respectively encapsulate at least one data content of a title, an abstract, a picture, an audio, a video and a link in the information data according to the description of the template structure file, according to the layout, a child node of the item node may be used to describe the data content, a source node is used to describe source information of the data content, and the application server generates a structured message after encapsulating the data content, preferably, the structured message is described by XML binary data.
S208, the application server sends the structured information to a user terminal;
specifically, the application server may send the structured message to a user terminal associated with the service terminal, and it can be understood that a user account used when the user terminal logs in the instant messaging application may be associated and bound with a service account used by the service terminal in advance, and the application server may obtain the associated user account according to the association and binding relationship of the service account and push the structured message to the user terminal corresponding to the user account.
S209, the user terminal analyzes the structural information to obtain a template structure and data content in the structural information;
s210, the user terminal converts the template structure and the data content into an interface object and outputs the interface object in an interface form;
specifically, the user terminal receives the structured information pushed by the application server and may parse the structured information, and preferably, the structured information may be parsed according to the above-mentioned structured framework to obtain a template structure and data content in the structured information, it may be understood that the template structure and the data content are both XML binary data, the user terminal may convert the template structure and the data content into an entity interface object and output and display the interface object in an interface form, further, a user holding the user terminal may perform a click operation on the interface object, and the user terminal may respond to a click event corresponding to the click operation by combining the template structure and the data content, for example: calling a link corresponding to the currently clicked image, and jumping to an external browser page; open external applications, etc.
In the embodiment of the invention, the application server acquires the information data sent by the service terminal based on the instant messaging application, the acquired information template is adopted to package the information data to generate the structured information, and the structured information is pushed to the user terminal to be displayed in an interface form, so that the process of processing the information data in the structured form is realized. By adopting the customization mode of the structured information template, the information can be completely displayed without frequent data change and version upgrade to the application server and the user terminal, so that the display effect and the processing efficiency of the information are ensured, and the flexibility of information processing is improved; the information template is customized based on the service scene and the template specification, so that the representation form of the information is expanded, and the type of the information template is increased; the information template is processed in a universal structural mode, so that the information template can be reused by different terminals, the resource waste of the information template is avoided, and the utilization rate of the information template is effectively improved.
Referring to fig. 3, a flow chart of another information processing method according to an embodiment of the invention is shown. As shown in fig. 3, the embodiment of the present invention sets forth a specific flow of an information processing method from the application server side, and the method may include the following steps S301 to S304.
S301, acquiring an information sending request which is sent by a service terminal based on instant messaging application and carries information data to be packaged;
specifically, the application server may obtain an information sending request sent by the service terminal based on the instant messaging application, where the information sending request may include information data to be encapsulated, it may be understood that a merchant server sets the information data to be encapsulated through the service terminal, the information data may include at least one data content such as a title, an abstract, a picture, an audio, a video, and a link, the service terminal sends the information sending request carrying the information data to the application server based on the instant messaging application, and the application server obtains the information sending request and obtains the information data.
S302, searching and acquiring an information template according to the information sending request;
specifically, the application server may search and obtain an information template according to the information sending request, and preferably, the information sending request may further include an information template identifier, for example: the application server can send all the stored information template identifications to the business terminal so as to provide selection for a merchant server, the business terminal obtains the selected information template identifications and adds the information template identifications into the information sending request for sending, the application server obtains the information template identifications, can search and obtain the information templates corresponding to the information template identifications, and the information templates can be template structure files in XML format.
S303, packaging the information data by adopting the information template to generate structured information;
specifically, the application server may package the information data by using the obtained information template to generate structured information, and further, the application server may package at least one of title, abstract, picture, audio, video, and link in the information data according to the description of the template structure file, and generate a structured message after the application server packages the data content, and preferably, the structured message is described in XML binary data.
S304, sending the structural information to a user terminal so that the user terminal outputs the structural information in an interface form;
specifically, the application server may send the structured message to a user terminal associated with the service terminal, and it can be understood that a user account used when the user terminal logs in the instant messaging application may be associated and bound with a service account used by the service terminal in advance, and the application server may obtain the associated user account according to the association and binding relationship of the service account and push the structured message to the user terminal corresponding to the user account.
The user terminal receives the structured information pushed by the application server, and may parse the structured information, and preferably, may parse the structured information according to the above-mentioned structured framework to obtain a template structure and data content in the structured information, it may be understood that the template structure and the data content are both XML binary data, the user terminal may convert the template structure and the data content into an entity interface object, and output and display the interface object in an interface form, further, a user holding the user terminal may perform a click operation on the interface object, and the user terminal may respond to a click event corresponding to the click operation by combining the template structure and the data content, for example: calling a link corresponding to the currently clicked image, and jumping to an external browser page; open external applications, etc.
In the embodiment of the invention, the application server acquires the information data sent by the service terminal based on the instant messaging application, the acquired information template is adopted to package the information data to generate the structured information, and the structured information is pushed to the user terminal to be displayed in an interface form, so that the process of processing the information data in the structured form is realized. Through the customization mode of adopting the structured information template, need not to carry out frequent data change and version upgrade to application server and user terminal, can carry out complete show to the information, guaranteed the bandwagon effect and the treatment effeciency of information, promoted information processing's flexibility.
Referring to fig. 4, a flow chart of another information processing method according to an embodiment of the invention is shown. As shown in fig. 4, the embodiment of the present invention describes a specific flow of an information processing method from an application server side, and the method may include the following steps S401 to S407.
S401, acquiring an information template set by a service terminal according to a service scene and a template specification, and distributing an information template identifier to the information template;
s402, storing the information template identification and the information template, and informing a user terminal to update the information template;
specifically, the information template may be a template structure file in an XML format, the information template may be a template stored in the application server in advance, and may also be set by a merchant server at the service terminal side, the service terminal may obtain an information template set according to a service scene and a template specification, and send the information template to the application server, the application server obtains the information template sent by the service terminal, and assigns an information template identifier to the information template, the information template identifier may be an information template ID, the application server may store the information template identifier and the information template correspondingly, and may notify a user terminal to update the information template.
It should be noted that the description of the template structure indicated by the template structure file may include a root node and a node attribute corresponding to the root node, where the root node includes a source node, an item node, and child nodes of the item node, where the item node and the layout attribute together describe a layout manner of the child nodes of the item node, and the information template is displayed through the layout manner.
The addition of the information template can be a new addition of a layout mode, or a new addition of some nodes or sub-nodes based on the original layout mode, so that when the user terminal is notified to update the information template, the user terminal only needs to add corresponding nodes or sub-nodes, constant definition, response modes of corresponding interfaces and the like according to the conventional processing of XML under the existing structured framework, the framework principle does not need to be modified, frequent data change and version upgrading are not needed, and the information processing efficiency is further improved.
S403, acquiring an information sending request which is sent by a service terminal based on instant messaging application and carries information data to be encapsulated;
specifically, the merchant server sets information data to be encapsulated through the service terminal, where the information data may include at least one data content of a title, an abstract, a picture, audio, a video, and a link, the service terminal sends an information sending request carrying the information data to the application server based on the instant messaging application, and the information sending request may further include an information template identifier, for example: the application server can send all the stored information template identifications to the business terminal so as to provide selection for a merchant server, the business terminal obtains the selected information template identifications and adds the information template identifications into the information sending request for sending, and the application server obtains the information sending request and obtains the information data and the information template identifications.
S404, searching and acquiring an information template according to the information sending request;
specifically, the application server may search for and obtain an information template corresponding to the information template identifier.
S405, respectively packaging at least one data content of title, abstract, picture, audio, video and link in the information data according to the description of the template structure file;
s406, generating structural information after the data content is packaged;
specifically, the application server may respectively encapsulate at least one data content of a title, an abstract, a picture, an audio, a video and a link in the information data according to the description of the template structure file, according to the layout, a child node of the item node may be used to describe the data content, a source node is used to describe source information of the data content, and the application server generates a structured message after encapsulating the data content, preferably, the structured message is described by XML binary data.
S407, sending the structured information to a user terminal so that the user terminal outputs the structured information in an interface form;
specifically, the application server may send the structured message to a user terminal associated with the service terminal, and it can be understood that a user account used when the user terminal logs in the instant messaging application may be associated and bound with a service account used by the service terminal in advance, and the application server may obtain the associated user account according to the association and binding relationship of the service account and push the structured message to the user terminal corresponding to the user account.
The user terminal receives the structured information pushed by the application server, and may parse the structured information, and preferably, may parse the structured information according to the above-mentioned structured framework to obtain a template structure and data content in the structured information, it may be understood that the template structure and the data content are both XML binary data, the user terminal may convert the template structure and the data content into an entity interface object, and output and display the interface object in an interface form, further, a user holding the user terminal may perform a click operation on the interface object, and the user terminal may respond to a click event corresponding to the click operation by combining the template structure and the data content, for example: calling a link corresponding to the currently clicked image, and jumping to an external browser page; open external applications, etc.
In the embodiment of the invention, the application server acquires the information data sent by the service terminal based on the instant messaging application, the acquired information template is adopted to package the information data to generate the structured information, and the structured information is pushed to the user terminal to be displayed in an interface form, so that the process of processing the information data in the structured form is realized. By adopting the customization mode of the structured information template, the information can be completely displayed without frequent data change and version upgrade to the application server and the user terminal, so that the display effect and the processing efficiency of the information are ensured, and the flexibility of information processing is improved; the information template is customized based on the service scene and the template specification, so that the representation form of the information is expanded, and the type of the information template is increased; the information template is processed in a universal structural mode, so that the information template can be reused by different terminals, the resource waste of the information template is avoided, and the utilization rate of the information template is effectively improved.
The application server provided by the embodiment of the present invention will be described in detail with reference to fig. 5 to 7. It should be noted that, the application servers shown in fig. 5-fig. 7 are used for executing the method of the embodiments shown in fig. 3 and fig. 4 of the present invention, and for convenience of description, only the portions related to the embodiments of the present invention are shown, and details of the specific technology are not disclosed, please refer to the embodiments shown in fig. 3 and fig. 4 of the present invention.
Fig. 5 is a schematic structural diagram of an application server according to an embodiment of the present invention. As shown in fig. 5, theapplication server 1 according to the embodiment of the present invention may include: arequest acquisition unit 11, atemplate acquisition unit 12, aninformation generation unit 13, and aninformation transmission unit 14.
Arequest obtaining unit 11, configured to obtain an information sending request, which is sent by a service terminal based on an instant messaging application and carries information data to be encapsulated;
in a specific implementation, therequest obtaining unit 11 may obtain an information sending request sent by a service terminal based on an instant messaging application, where the information sending request may include information data to be encapsulated, it may be understood that a merchant server sets the information data to be encapsulated through the service terminal, the information data may include at least one data content such as a title, an abstract, a picture, an audio, a video, and a link, the service terminal sends the information sending request carrying the information data to theapplication server 1 based on the instant messaging application, and therequest obtaining unit 11 obtains the information sending request and obtains the information data.
Atemplate obtaining unit 12, configured to search and obtain an information template according to the information sending request;
in a specific implementation, thetemplate obtaining unit 12 may search and obtain an information template according to the information sending request, and preferably, the information sending request may further include an information template identifier, for example: theapplication server 1 may send all the stored information template identifiers to the service terminal to provide a selection for a merchant server, the service terminal obtains the selected information template identifier, and adds the information template identifier to the information sending request to send, thetemplate obtaining unit 12 obtains the information template identifier, and may search and obtain an information template corresponding to the information template identifier, where the information template may specifically be a template structure file in an XML format.
Aninformation generating unit 13, configured to package the information data by using the information template to generate structured information;
in a specific implementation, theinformation generating unit 13 may package the information data by using the obtained information template to generate structured information, further, theinformation generating unit 13 may package at least one data content of a title, an abstract, a picture, an audio, a video, and a link in the information data according to the description of the template structure file, and theinformation generating unit 13 generates a structured message after packaging the data content, preferably, the structured message is described by XML binary data.
Aninformation sending unit 14, configured to send the structured information to a user terminal, so that the user terminal outputs the structured information in an interface form;
in a specific implementation, theinformation sending unit 14 may send the structured message to a user terminal associated with the service terminal, it may be understood that a user account used when the user terminal logs in an instant messaging application may be associated and bound with a service account used by the service terminal in advance, and theinformation sending unit 14 may obtain the associated user account according to the association and binding relationship of the service account, and push the structured message to a user terminal corresponding to the user account.
The user terminal receives the structured information pushed by theinformation sending unit 14, and may parse the structured information, and preferably, may parse the structured information according to the above-mentioned structured framework to obtain a template structure and data content in the structured information, it may be understood that the template structure and the data content are both XML binary data, the user terminal may convert the template structure and the data content into an entity interface object, and output and display the interface object in an interface form, further, a user holding the user terminal may perform a click operation on the interface object, and the user terminal may respond to a click event corresponding to the click operation by combining the template structure and the data content, for example: calling a link corresponding to the currently clicked image, and jumping to an external browser page; open external applications, etc.
In the embodiment of the invention, the application server acquires the information data sent by the service terminal based on the instant messaging application, the acquired information template is adopted to package the information data to generate the structured information, and the structured information is pushed to the user terminal to be displayed in an interface form, so that the process of processing the information data in the structured form is realized. Through the customization mode of adopting the structured information template, need not to carry out frequent data change and version upgrade to application server and user terminal, can carry out complete show to the information, guaranteed the bandwagon effect and the treatment effeciency of information, promoted information processing's flexibility.
Referring to fig. 6, a schematic structural diagram of another application server is provided for the embodiment of the present invention. As shown in fig. 6, theapplication server 1 according to the embodiment of the present invention may include: arequest acquisition unit 11, atemplate acquisition unit 12, aninformation generation unit 13, aninformation transmission unit 14, anidentification assignment unit 15, and atemplate processing unit 16.
Theidentifier allocating unit 15 is configured to acquire an information template set by the service terminal according to the service scene and the template specification, and allocate an information template identifier to the information template;
thetemplate processing unit 16 is configured to store the information template identifier and the information template, and notify the user terminal to update the information template;
in a specific implementation, the information template may specifically be a template structure file in an XML format, the information template may be a template stored in theapplication server 1 in advance, or may also be set by a merchant server at the service terminal side, the service terminal may obtain an information template set according to a service scene and a template specification, and send the information template to theapplication server 1, theidentifier allocating unit 15 obtains the information template sent by the service terminal, and allocates an information template identifier to the information template, where the information template identifier may be an information template ID, thetemplate processing unit 16 may store the information template identifier and the information template correspondingly, and may notify a user terminal to update the information template.
It should be noted that the description of the template structure indicated by the template structure file may include a root node and a node attribute corresponding to the root node, where the root node includes a source node, an item node, and child nodes of the item node, where the item node and the layout attribute together describe a layout manner of the child nodes of the item node, and the information template is displayed through the layout manner.
The addition of the information template can be a new addition of a layout mode, or a new addition of some nodes or sub-nodes based on the original layout mode, so that when the user terminal is notified to update the information template, the user terminal only needs to add corresponding nodes or sub-nodes, constant definition, response modes of corresponding interfaces and the like according to the conventional processing of XML under the existing structured framework, the framework principle does not need to be modified, frequent data change and version upgrading are not needed, and the information processing efficiency is further improved.
Arequest obtaining unit 11, configured to obtain an information sending request, which is sent by a service terminal based on an instant messaging application and carries information data to be encapsulated;
in a specific implementation, therequest obtaining unit 11 may obtain an information sending request sent by a service terminal based on an instant messaging application, where the information sending request may include information data to be encapsulated, it may be understood that a merchant server sets the information data to be encapsulated through the service terminal, the information data may include at least one data content such as a title, an abstract, a picture, an audio, a video, and a link, the service terminal sends the information sending request carrying the information data to theapplication server 1 based on the instant messaging application, and therequest obtaining unit 11 obtains the information sending request and obtains the information data.
Atemplate obtaining unit 12, configured to search and obtain an information template according to the information sending request;
in a specific implementation, thetemplate obtaining unit 12 may search and obtain an information template according to the information sending request, and preferably, the information sending request may further include an information template identifier, for example: theapplication server 1 may send all the stored information template identifiers to the service terminal to provide a selection for a merchant server, the service terminal obtains the selected information template identifier, and adds the information template identifier to the information sending request to send, thetemplate obtaining unit 12 obtains the information template identifier, and may search and obtain an information template corresponding to the information template identifier, where the information template may specifically be a template structure file in an XML format.
Aninformation generating unit 13, configured to package the information data by using the information template to generate structured information;
in a specific implementation, theinformation generating unit 13 may package the information data by using the obtained information template to generate structured information, further, theinformation generating unit 13 may package at least one data content of a title, an abstract, a picture, an audio, a video, and a link in the information data according to the description of the template structure file, and theinformation generating unit 13 generates a structured message after packaging the data content, preferably, the structured message is described by XML binary data.
Specifically, please refer to fig. 7, which provides a schematic structural diagram of an information generating unit according to an embodiment of the present invention. As shown in fig. 7, theinformation generating unit 13 may include:
acontent packaging subunit 131, configured to respectively package at least one data content of a title, an abstract, a picture, audio, video, and a link in the information data according to the description of the template structure file;
aninformation generating subunit 132, configured to generate structured information after the data content is encapsulated;
in a specific implementation, thecontent packaging subunit 131 may respectively package at least one data content of a title, an abstract, a picture, an audio, a video, and a link in the information data according to the description of the template structure file, according to the layout manner, a child node of an item node may be used to describe the data content, a source node is used to describe source information of the data content, and theinformation generating subunit 132 generates a structured message after packaging the data content, preferably, the structured message is described by XML binary data.
Aninformation sending unit 14, configured to send the structured information to a user terminal, so that the user terminal outputs the structured information in an interface form;
in a specific implementation, theinformation sending unit 14 may send the structured message to a user terminal associated with the service terminal, it may be understood that a user account used when the user terminal logs in an instant messaging application may be associated and bound with a service account used by the service terminal in advance, and theinformation sending unit 14 may obtain the associated user account according to the association and binding relationship of the service account, and push the structured message to a user terminal corresponding to the user account.
The user terminal receives the structured information pushed by theinformation sending unit 14, and may parse the structured information, and preferably, may parse the structured information according to the above-mentioned structured framework to obtain a template structure and data content in the structured information, it may be understood that the template structure and the data content are both XML binary data, the user terminal may convert the template structure and the data content into an entity interface object, and output and display the interface object in an interface form, further, a user holding the user terminal may perform a click operation on the interface object, and the user terminal may respond to a click event corresponding to the click operation by combining the template structure and the data content, for example: calling a link corresponding to the currently clicked image, and jumping to an external browser page; open external applications, etc.
In the embodiment of the invention, the application server acquires the information data sent by the service terminal based on the instant messaging application, the acquired information template is adopted to package the information data to generate the structured information, and the structured information is pushed to the user terminal to be displayed in an interface form, so that the process of processing the information data in the structured form is realized. By adopting the customization mode of the structured information template, the information can be completely displayed without frequent data change and version upgrade to the application server and the user terminal, so that the display effect and the processing efficiency of the information are ensured, and the flexibility of information processing is improved; the information template is customized based on the service scene and the template specification, so that the representation form of the information is expanded, and the type of the information template is increased; the information template is processed in a universal structural mode, so that the information template can be reused by different terminals, the resource waste of the information template is avoided, and the utilization rate of the information template is effectively improved.
Referring to fig. 8, a schematic structural diagram of another application server is provided for the embodiment of the present invention. As shown in fig. 8, theapplication server 1000 may include: at least oneprocessor 1001, such as a CPU, at least onenetwork interface 1004, auser interface 1003,memory 1005, at least onecommunication bus 1002. Wherein acommunication bus 1002 is used to enable connective communication between these components. Theuser interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and theoptional user interface 1003 may also include a standard wired interface and a standard wireless interface. Thenetwork interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). Thememory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. Thememory 1005 may optionally be at least one memory device located remotely from theprocessor 1001. As shown in fig. 8, amemory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an information processing application program.
In theapplication server 1000 shown in fig. 8, theuser interface 1003 is mainly used to provide an input interface for a user, and obtain data input by the user; thenetwork interface 1004 is mainly used for data transmission with a service terminal and a user terminal; and theprocessor 1001 may be configured to invoke the information processing application stored in thememory 1005 and specifically perform the following operations:
acquiring an information sending request which is sent by a service terminal based on instant messaging application and carries information data to be packaged;
searching and acquiring an information template according to the information sending request;
packaging the information data by adopting the information template to generate structured information;
and sending the structured information to a user terminal so that the user terminal outputs the structured information in an interface form.
In one embodiment, before executing the information sending request sent by the service terminal based on the instant messaging application, theprocessor 1001 further executes the following operations:
acquiring an information template set by a service terminal according to a service scene and a template specification, and distributing an information template identifier to the information template;
and storing the information template identification and the information template, and informing a user terminal to update the information template.
In one embodiment, the information sending request further comprises an information template identification;
when theprocessor 1001 searches and acquires the information template according to the information sending request, the following operations are specifically performed:
and searching and acquiring the information template corresponding to the information template identification.
In one embodiment, the information template is a template structure file in an XML format;
when theprocessor 1001 performs the encapsulation of the information data by using the information template to generate the structured information, specifically perform the following operations:
respectively packaging at least one data content of title, abstract, picture, audio, video and link in the information data according to the description of the template structure file;
structured information is generated after the data content is encapsulated.
In the embodiment of the invention, the application server acquires the information data sent by the service terminal based on the instant messaging application, the acquired information template is adopted to package the information data to generate the structured information, and the structured information is pushed to the user terminal to be displayed in an interface form, so that the process of processing the information data in the structured form is realized. By adopting the customization mode of the structured information template, the information can be completely displayed without frequent data change and version upgrade to the application server and the user terminal, so that the display effect and the processing efficiency of the information are ensured, and the flexibility of information processing is improved; the information template is customized based on the service scene and the template specification, so that the representation form of the information is expanded, and the type of the information template is increased; the information template is processed in a universal structural mode, so that the information template can be reused by different terminals, the resource waste of the information template is avoided, and the utilization rate of the information template is effectively improved.
Fig. 9 is a schematic structural diagram of an information processing system according to an embodiment of the present invention. As shown in fig. 9, the system may include aservice terminal 1, anapplication server 2, and a user terminal 3, where theservice terminal 1 and theapplication server 2 and the user terminal 3 and theapplication server 2 may be connected to each other through a network, where theapplication server 2 may be specifically theapplication server 1 in any one of the embodiments shown in fig. 5 to 7, or may be theapplication server 1000 in the embodiment shown in fig. 8.
Theservice terminal 1 is configured to send an information sending request carrying information data to be encapsulated to theapplication server 2 based on an instant messaging application;
theapplication server 2 is used for acquiring the information sending request;
theapplication server 2 is further configured to search and obtain an information template according to the information sending request;
theapplication server 2 is further configured to encapsulate the information data by using the information template to generate structured information;
theapplication server 2 is further configured to send the structured information to the user terminal 3;
and the user terminal 3 is configured to receive the structured information and output the structured information in an interface form.
In one embodiment, theservice terminal 1 is further configured to send an information template set according to a service scenario and a template specification to theapplication server 2;
theapplication server 2 is further configured to obtain an information template sent by theservice terminal 1, and allocate an information template identifier to the information template;
theapplication server 2 is further configured to store the information template identifier and the information template, and notify the user terminal 3 to update the information template.
In one embodiment, the information sending request further comprises an information template identification;
theapplication server 2 is configured to, when searching for and acquiring an information template according to the information sending request, specifically:
and searching and acquiring the information template corresponding to the information template identification.
In one embodiment, the information template is a template structure file in an extensible markup language (XML) format;
theapplication server 2 is specifically configured to, when the information template is used to encapsulate the information data to generate structured information:
respectively packaging at least one data content of title, abstract, picture, audio, video and link in the information data according to the description of the template structure file;
structured information is generated after the data content is encapsulated.
In an embodiment, when the user terminal 3 is configured to output the structured information in an interface form, specifically, the user terminal is configured to:
analyzing the structured information to obtain a template structure and data content in the structured information;
and converting the template structure and the data content into an interface object, and outputting the interface object in an interface form.
In the embodiment of the invention, the application server acquires the information data sent by the service terminal based on the instant messaging application, the acquired information template is adopted to package the information data to generate the structured information, and the structured information is pushed to the user terminal to be displayed in an interface form, so that the process of processing the information data in the structured form is realized. By adopting the customization mode of the structured information template, the information can be completely displayed without frequent data change and version upgrade to the application server and the user terminal, so that the display effect and the processing efficiency of the information are ensured, and the flexibility of information processing is improved; the information template is customized based on the service scene and the template specification, so that the representation form of the information is expanded, and the type of the information template is increased; the information template is processed in a universal structural mode, so that the information template can be reused by different terminals, the resource waste of the information template is avoided, and the utilization rate of the information template is effectively improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.