Movatterモバイル変換


[0]ホーム

URL:


CN106302103B - Information processing method and system and application server - Google Patents

Information processing method and system and application server
Download PDF

Info

Publication number
CN106302103B
CN106302103BCN201510367185.4ACN201510367185ACN106302103BCN 106302103 BCN106302103 BCN 106302103BCN 201510367185 ACN201510367185 ACN 201510367185ACN 106302103 BCN106302103 BCN 106302103B
Authority
CN
China
Prior art keywords
information
template
application server
user terminal
structured
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510367185.4A
Other languages
Chinese (zh)
Other versions
CN106302103A (en
Inventor
刘刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co LtdfiledCriticalTencent Technology Shenzhen Co Ltd
Priority to CN201510367185.4ApriorityCriticalpatent/CN106302103B/en
Publication of CN106302103ApublicationCriticalpatent/CN106302103A/en
Application grantedgrantedCritical
Publication of CN106302103BpublicationCriticalpatent/CN106302103B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The embodiment of the invention discloses an information processing method, a system and an application server thereof, wherein the method comprises the following steps: the application server acquires an information sending request which is sent by the service terminal based on the instant messaging application and carries information data to be packaged; the application server searches and acquires 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 structural information and outputs the structural information in an interface form. By adopting the invention, the information display effect and the processing efficiency can be ensured, and the flexibility of information processing is improved.

Description

Information processing method and system and application server
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an information processing method, a system thereof, and an application server.
Background
With the continuous development and improvement of internet technology, people can utilize user terminals such as mobile phones and tablet computers to communicate among users through instant messaging application.
Now, with the B2C (business server to user) mode, the business server can use the business terminal to push the business information to the user terminal through the instant messaging application, and the user terminal concerned about the business can receive and display the business information. However, with the increase of service forms, the requirement for the style of service information is higher and higher, because the current service information belongs to unstructured information, when a new information style of service information is created, the service information cannot be compatibly displayed by a user terminal installed with an old version of instant messaging application, which often shows that the display form of the service information is changed, part of the content of the service information cannot be read, and the like, which affects the display effect of the service information.
Disclosure of Invention
The embodiment of the invention provides an information processing method, an information processing system and an application server, which can ensure the display effect and the processing efficiency of information and improve the flexibility of information processing.
A first aspect of an embodiment of the present invention provides an information processing method, which may include:
the application server acquires an information sending request which is sent by the service terminal based on the instant messaging application and carries information data to be packaged;
the application server searches and acquires 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 structural information and outputs the structural information in an interface form.
A second aspect of an embodiment of the present invention provides an information processing method, which may include:
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.
A third aspect of an embodiment of the present invention provides an application server, which may include:
the request acquisition unit is used for acquiring an information transmission request which is sent by the service terminal based on the instant messaging application and carries information data to be packaged;
the template acquisition unit is used for searching and acquiring an information template according to the information sending request;
the information generating unit is used for packaging the information data by adopting the information template to generate structured information;
and the information sending unit is used for sending the structured information to a user terminal so that the user terminal outputs the structured information in an interface form.
A fourth aspect of an embodiment of the present invention provides an information processing system, which may include: the system comprises a service terminal, an application server and a user terminal; wherein,
the service terminal is used for sending an information sending request carrying information data to be packaged to the application server based on instant messaging application;
the application server is used for acquiring the information sending request;
the application server is also used for searching and acquiring an information template according to the information sending request;
the application server is further used for packaging the information data by adopting the information template to generate structured information;
the application server is also used for sending the structured information to the user terminal;
and the user terminal is used for receiving the structured information and outputting the structured information 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. 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.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an information processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an information processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another information processing method provided by the embodiment of the invention;
FIG. 4 is a flow chart illustrating a further information processing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an application server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another application server provided in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of an information generating unit according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another application server provided in the embodiment of the present invention;
fig. 9 is a schematic structural diagram of an information processing system according to an embodiment of the present invention.
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.

Claims (18)

CN201510367185.4A2015-06-292015-06-29Information processing method and system and application serverActiveCN106302103B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510367185.4ACN106302103B (en)2015-06-292015-06-29Information processing method and system and application server

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510367185.4ACN106302103B (en)2015-06-292015-06-29Information processing method and system and application server

Publications (2)

Publication NumberPublication Date
CN106302103A CN106302103A (en)2017-01-04
CN106302103Btrue CN106302103B (en)2020-09-15

Family

ID=57651066

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510367185.4AActiveCN106302103B (en)2015-06-292015-06-29Information processing method and system and application server

Country Status (1)

CountryLink
CN (1)CN106302103B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108667710B (en)*2017-03-282022-03-11腾讯科技(深圳)有限公司Information processing method and device
CN107291850A (en)*2017-06-062017-10-24贵阳朗玛信息技术股份有限公司Video data structure method and device
CN107302597B (en)*2017-08-172020-06-16北京星选科技有限公司Message file pushing method and device
CN108769229B (en)*2018-06-062021-07-16平安科技(深圳)有限公司Information customization sending method and device, computer equipment and storage medium
CN111988400B (en)*2020-08-202023-08-22广州探途网络技术有限公司Access processing method, application server and electronic equipment
CN112202905B (en)*2020-10-092023-02-17杭州安恒信息技术股份有限公司 An information storage method, device, device, and computer-readable storage medium
CN112306324B (en)*2020-10-302023-02-03北京嘀嘀无限科技发展有限公司Information processing method, apparatus, device and medium
CN112307367A (en)*2020-11-252021-02-02微医云(杭州)控股有限公司Push message display method and device, electronic equipment and storage medium
CN114281451A (en)*2021-12-102022-04-05西安万像电子科技有限公司Method and device for self-adapting screens with different resolutions by application interface and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102169500A (en)*2011-04-192011-08-31北京神州数码思特奇信息技术股份有限公司Dynamic service flow display device
CN104378282A (en)*2013-12-252015-02-25腾讯科技(深圳)有限公司Information sending method and information forwarding method, device and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8615487B2 (en)*2004-01-232013-12-24Garrison GomezSystem and method to store and retrieve identifier associated information content
CN101316147B (en)*2008-07-022010-04-07深圳华为通信技术有限公司Apparatus and method for presenting multimedia contents on terminal
CN103514159B (en)*2012-06-142018-07-13阿里巴巴集团控股有限公司A kind of method, system and the device of processing form templat
CN103684977B (en)*2012-09-122017-04-05阿里巴巴集团控股有限公司Method for sending information and device, method for information display and device
CN104580179B (en)*2014-12-272016-11-23腾讯科技(深圳)有限公司A kind of message treatment method, device and server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102169500A (en)*2011-04-192011-08-31北京神州数码思特奇信息技术股份有限公司Dynamic service flow display device
CN104378282A (en)*2013-12-252015-02-25腾讯科技(深圳)有限公司Information sending method and information forwarding method, device and system

Also Published As

Publication numberPublication date
CN106302103A (en)2017-01-04

Similar Documents

PublicationPublication DateTitle
CN106302103B (en)Information processing method and system and application server
CN107835178B (en)Multi-protocol service communication method and device and electronic equipment
CN105718540B (en)Data loading method and device
CN112579118B (en)Method, device, system, medium and equipment for updating configuration information of micro-service
CN108958826B (en)Method and device for dynamically configuring application installation package
CN105718313A (en)Application operation method and device
US20170249934A1 (en)Electronic device and method for operating the same
CN112507005B (en)Method and device for processing message
CN106549989B (en)Data transmission method and system, user terminal and application server
CN109981719A (en)Information processing method and its system, computer system and computer readable medium
CN110391938A (en) Method and apparatus for deploying services
CN109522131A (en)Resource allocation method, device and equipment
CN112714148A (en)Interface configuration method, device, equipment and medium
EP3091712B1 (en)Smart device for realizing multiple-device collaboration and working method for multiple-device collaboration
CN112988872B (en)Interface document management method and device, storage medium and electronic equipment
CN103440295A (en)Method for uploading multimedia files and electronic terminal
CN109062906B (en)Translation method and device for program language resources
CN107465601B (en)Push information processing method and device
CN113542335A (en)Information sharing method and device, electronic equipment and storage medium
CN101964742B (en)Method, system and device for using network open ability
CN103561113A (en)Web Service interface generating method and device
CN113918245A (en) A data calling method, apparatus, device and computer-readable storage medium
CN113992641A (en)Data processing method, device, equipment and storage medium
CN109669720A (en)Chain type Asynchronous Request processing method, device and electronic equipment based on Promise
CN114090134A (en)Data interaction method and device, storage medium and electronic equipment

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp