CN107154894B - Instant messaging information processing method, device, system and storage medium - Google Patents

Instant messaging information processing method, device, system and storage medium Download PDF

Info

Publication number
CN107154894B
CN107154894B CN201710325772.6A CN201710325772A CN107154894B CN 107154894 B CN107154894 B CN 107154894B CN 201710325772 A CN201710325772 A CN 201710325772A CN 107154894 B CN107154894 B CN 107154894B
Authority
CN
China
Prior art keywords
navigation
navigation menu
data
instant messaging
operation interface
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
CN201710325772.6A
Other languages
Chinese (zh)
Other versions
CN107154894A (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 Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710325772.6A priority Critical patent/CN107154894B/en
Publication of CN107154894A publication Critical patent/CN107154894A/en
Application granted granted Critical
Publication of CN107154894B publication Critical patent/CN107154894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Abstract

The embodiment of the invention discloses a method, a device and a system for processing instant messaging information and a storage medium; the embodiment of the invention adopts the steps that in an instant communication conversation window with a target user, a navigation menu request carrying a target user identifier is sent to a server, after a navigation menu data packet returned by the server according to the target user identifier is received, a navigation operation interface is generated according to the navigation menu data packet, and the navigation operation interface is displayed in the instant communication conversation window; the scheme can greatly reduce the signaling flow between the server and the process information in the information flow, improve the operation efficiency and save the network resources.

Description

Instant messaging information processing method, device, system and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a method, a device and a system for processing instant messaging information and a storage medium.
Background
Instant Messaging (IM) is the most common communication method at present, and is a terminal service that allows two or more people to communicate text information, pictures, voice and video instantly using a network. With the development of communication technology, various instant messaging tools are also in a wide range, and most of the existing instant messaging tools are not limited to providing communication functions between users, but allow service providers such as public numbers to communicate with users.
In the prior art, because the public account is faced with a plurality of users and needs to provide corresponding services for the users, the instant messaging information sent by the server to the users is generally information in a preset format, and in order to provide self-service services for the users, the instant messaging information is generally sent in a command type link mode to provide operation interaction. For example, the server may send an operation prompt to the user, and when the user clicks a trigger instruction, the server may push a message containing the sub-content to provide the user with further operations, and so on until the user acquires the required information.
In the research and practice process of the prior art, the inventor of the present invention finds that the existing scheme easily causes excessive process messages in the message stream, the operation efficiency is low, and each time the user operates, the server needs to respond and provide corresponding feedback, and more network resources need to be consumed.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a system, and a storage medium for processing instant messaging information, which can reduce process messages in a message stream, improve operation efficiency, and save network resources.
The embodiment of the invention provides a method for processing instant messaging information, which comprises the following steps:
sending a navigation menu request to a server in an instant communication session window with a target user, wherein the navigation menu request carries a target user identifier;
receiving a navigation menu data packet returned by the server according to the target user identifier;
generating a navigation operation interface according to the navigation menu data packet;
and displaying the navigation operation interface in the instant messaging conversation window.
Correspondingly, an embodiment of the present invention further provides an apparatus for processing instant messaging information, including:
the sending unit is used for sending a navigation menu request to the server in an instant messaging conversation window of a target user, wherein the navigation menu request carries a target user identifier;
the receiving unit is used for receiving a navigation menu data packet returned by the server according to the target user identification;
the generating unit is used for generating a navigation operation interface according to the navigation menu data packet;
and the display unit is used for displaying the navigation operation interface in the instant messaging conversation window.
In addition, an embodiment of the present invention further provides a system for processing an instant messaging message, which is characterized by including a server and any one of the apparatuses for processing an instant messaging message provided in the embodiment of the present invention, wherein:
the server is used for receiving a navigation menu request which is sent by a processing device of instant messaging information and carries a target user identifier, generating a navigation menu data packet according to the navigation menu configuration information when the target user has navigation menu configuration information according to the target user identifier, and returning the navigation menu data packet to the processing device of the instant messaging information.
The embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in any one of the methods for processing instant messaging information provided by the embodiments of the present invention.
The embodiment of the invention adopts the steps that in an instant communication conversation window with a target user, a navigation menu request carrying a target user identifier is sent to a server, after a navigation menu data packet returned by the server according to the target user identifier is received, a navigation operation interface is generated according to the navigation menu data packet, and the navigation operation interface is displayed in the instant communication conversation window; because the scheme can acquire the navigation menu data packet from the server at one time and generate a corresponding navigation operation interface at local (namely, a terminal) for a user to operate, compared with the existing scheme which needs to frequently operate and interact with the server, the method can greatly reduce the signaling flow between the server and the process information in the information flow, improve the operation efficiency and save network resources.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a schematic view of a scenario of a system for processing an instant messaging message according to an embodiment of the present invention;
fig. 1b is a flowchart of a method for processing an instant messaging message according to an embodiment of the present invention;
FIG. 1c is a schematic diagram of an interface structure in the method according to the embodiment of the present invention;
fig. 2a is another flowchart of a method for processing an instant messaging message according to an embodiment of the present invention;
FIG. 2b is an exemplary diagram of a navigation menu interface in a method provided by an embodiment of the invention;
FIG. 2c is a diagram of another example of a navigation menu interface in a method provided by an embodiment of the invention;
FIG. 2d is a diagram illustrating another example of a navigation menu interface in a method provided by an embodiment of the invention;
FIG. 2e is a diagram illustrating another example of a navigation menu interface in the method according to the embodiment of the present invention;
FIG. 2f is a diagram illustrating another example of a navigation menu interface in a method provided by an embodiment of the invention;
FIG. 2g is a diagram illustrating another example of a navigation menu interface in the method according to the embodiment of the present invention;
FIG. 2h is an exemplary diagram of a navigation menu interface being triggered in the method provided by the embodiment of the present invention;
fig. 3a is a schematic structural diagram of an apparatus for processing an instant messaging message according to an embodiment of the present invention;
fig. 3b is another schematic structural diagram of an instant messaging information processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal 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 embodiment of the invention provides a method, a device and a system for processing instant messaging information and a storage medium.
The instant messaging information processing system may include any one of the instant messaging information processing apparatuses provided in the embodiments of the present invention, and the instant messaging information processing apparatus may be specifically integrated in a terminal. In addition, the instant messaging information processing system can also comprise other equipment, such as a server, for providing navigation menu data packets to the instant messaging information processing device.
For example, taking the instant messaging information processing apparatus as an example integrated in a terminal, as shown in fig. 1a, when a source user needs to perform instant messaging with a target user such as a public number, an instant messaging conversation window with a target user can be initiated at a terminal where a source user is located, i.e., a source terminal, and then, in the instant communication dialogue window, a navigation menu request carrying the target user identification is sent to the server, after the server receives the navigation menu request, determining whether the target user has navigation menu configuration information according to the target user identification, if yes, generating a navigation menu data packet according to the navigation menu configuration information, returning the navigation menu data packet to the terminal, generating a navigation operation interface by the source terminal according to the navigation menu data packet, and displaying the navigation operation interface in the instant communication session window; otherwise, if the navigation menu configuration information does not exist, the server may return prompt information indicating that the navigation menu configuration information does not exist to the terminal, or may return a navigation menu packet to the source terminal, but the content of the navigation menu packet is set to be no configuration information, and so on. The navigation menu configuration information may be configured by a target terminal (i.e., a terminal where a target user is located).
Thereafter, the source terminal may further receive instant messaging information triggered based on the navigation operation interface, and process the instant messaging information according to the navigation menu data packet, for example, obtain corresponding response data from the navigation menu data packet according to the instant messaging information, then respond to the instant messaging information in the instant messaging conversation window according to the obtained response data, and so on.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
The first embodiment,
In this embodiment, the instant messaging information processing apparatus will be described in terms of an instant messaging information processing apparatus, which may be specifically integrated in a terminal, where the terminal may be specifically a mobile phone, a tablet computer, a notebook computer, or a wearable smart device.
A processing method of instant messaging information comprises the following steps: sending a navigation menu request to a server in an instant communication session window with a target user, wherein the navigation menu request carries a target user identifier, receiving a navigation menu data packet returned by the server according to the target user identifier, generating a navigation operation interface according to the navigation menu data packet, and displaying the navigation operation interface in the instant communication session window.
As shown in fig. 1b, a specific flow of the instant messaging information processing method may be as follows:
101. and sending a navigation menu request to a server in an instant communication conversation window with a target user, wherein the navigation menu request carries information such as a target user identifier and the like.
The target user identifier refers to a user identifier of the target user, and the user identifier may include information such as a user name, an instant messaging account, a mailbox address, and/or a mobile phone number.
The target user refers to an object that the current user needs to perform instant messaging, such as a certain service provider or a certain public number, and the terminal to which the target user belongs is called a target user terminal. Meanwhile, for convenience of description, in the embodiment of the present invention, the current user is referred to as a source user, and a terminal to which the source user belongs is referred to as a source terminal, that is, the step "sending a navigation menu request to a server in an instant messaging session window with a target user" may specifically be:
and sending a navigation menu request to the server in the instant communication conversation window of the source user and the target user.
Optionally, before the step "sending a navigation menu request to the server in the instant messaging conversation window with the target user", the instant messaging conversation window may be created, that is, the processing method of the instant messaging information may further include:
and acquiring a conversation request with a target user, calling a corresponding conversation starting process according to the conversation request, and executing the conversation starting process to start an instant messaging conversation window with the target user.
Optionally, before creating the instant messaging conversation window between the source user and the target user, it may be further determined whether the instant messaging conversation window exists currently, if so, the instant messaging conversation window is directly obtained, and if not, the step of creating the instant messaging conversation window between the source user and the target user is executed, that is, the step of "obtaining a conversation request with the target user, invoking a corresponding conversation start process according to the conversation request, and executing the conversation start process to start the instant messaging conversation window with the target user" is executed.
Optionally, in order to save a signaling flow and improve processing efficiency, when it is determined that the instant messaging conversation window of the source user and the target user exists, it may be further determined whether the latest navigation menu data packet exists, and if the latest navigation menu data packet exists, step 103 may be directly executed without obtaining the navigation menu data packet from the server; otherwise, if the latest navigation menu data packet does not exist, step 102 is executed to obtain the latest navigation menu data packet.
For example, when it is determined that the navigation menu data packet exists, it may be determined whether the navigation menu data packet needs to be updated, if the navigation menu data packet does not need to be updated, it is determined that the latest navigation menu data packet exists, and if the navigation menu data packet needs to be updated, it is determined that the latest navigation menu data packet does not exist, at this time, step 102 may be executed to obtain the latest navigation menu data packet.
It should be noted that the instant messaging information of the embodiment of the present invention may include short messages, private messages, and messages transmitted between users in various instant messaging tools. And the instant messaging conversation window refers to a conversation interface where users are in instant messaging information transfer.
102. And receiving a navigation menu data packet returned by the server according to the target user identification.
The navigation menu data packet is generated by the server according to navigation menu configuration information, and the navigation menu configuration information can be configured in advance by a target user.
For example, referring to fig. 1c, the layout of the navigation operation interface to be generated is divided into a head (Header Container), a Body (Body Container), and a bottom (Footer Container), and the attributes of the data elements for generating different parts of the navigation operation interface are respectively defined as: for example, the head data element, the body data element, and the bottom data element may be set by the target user when configuring the navigation menu configuration information, so as to form the navigation menu configuration information.
The header data element refers to an element for generating a header area of the navigation operation interface, and may generally include data such as a promotional slogan and/or a brief description of the target user.
The bottom interface element refers to an element for generating a bottom area of the navigation operation interface, and for example, data such as an additional link and/or simple text may be included in general.
The main data elements refer to elements for generating a main area of the navigation operation interface, and these main data elements are generally used for providing navigation functions, and therefore, are also referred to as navigation elements.
The data structure of the navigation element may be determined according to the requirements of the actual application, for example, the data structure may include an Identification (ID) field, a Label (Label Name) field, an operation parameter (Action) field, and/or a child item (Children) field of the navigation element, where the Identification field of the navigation element is used to identify the navigation element; the label field is generally used for recording the file displayed on the interface; the operation parameter field can be used for identifying the type of the user operation response and the operation parameters required in the response; the sub-entry field is used to store an identification of the lower level element.
If the navigation menu configuration information includes a header data element, a body data element and a bottom data element, the navigation menu data packet may include the target user identifier (e.g., a public number identifier) field, a header field, a body field and a bottom field, wherein the target user identifier is used to identify the target user, the header field is used to store the header data element, the body field is used to store the body data element, and the bottom field is used to store the bottom data element.
Optionally, in order to increase the transmission speed and save bandwidth resources, the server may compress the navigation menu data packet by using a compression algorithm when generating the navigation menu data packet. Optionally, in order to improve the security of the data packet, the data packet may also be encrypted, and the specific compression algorithm and the encryption algorithm may be determined according to the requirements of the actual application, and are not described herein again.
103. And generating a navigation operation interface according to the navigation menu data packet. For example, the following may be specifically mentioned:
(1) and analyzing the navigation menu data packet to obtain analysis data.
For example, the attribute of each data element in the navigation menu data packet may be specifically acquired, and then, the corresponding data object may be determined according to the acquired attribute.
The data object is the analysis data of the embodiment of the invention. By data object, it is meant a collection of data elements of the same nature, whereas a data element refers to a data element that describes definitions, identifications, representations and allowed values with a set of attributes.
The attribute of each data element may be determined according to the field in which the data element is located, for example, if a certain data element is located in the header field of the navigation menu data packet, the attribute of the data element is the header data element; if a certain data element is located in the body field, the attribute of the data element is the body data element; similarly, if a data element is located in the bottom field, the attribute of the data element is the bottom data element, and so on.
Optionally, if the server compresses the navigation menu data packet by using a compression algorithm when generating the navigation menu data packet, at this time, the navigation menu data packet needs to be decompressed by using a corresponding decompression algorithm, and then is analyzed; that is, the step of "parsing the navigation menu data packet to obtain parsed data" may include:
decompressing the navigation menu data packet to obtain decompressed data, and determining a data object according to the decompressed data, for example, the following may be specifically used:
and acquiring the attribute of each data element in the decompressed data, and determining a corresponding data object according to the acquired attribute.
For example, see fig. 1c to define the attributes of these data elements as: taking the head data element, the body data element, and the bottom data element as examples, then at this time, it can be obtained that these data elements are classified into the head data object, the body data object, and the bottom data object, respectively, according to the attributes, and so on.
Optionally, if the server performs encryption when generating the navigation menu data packet, at this time, the server may perform decryption by using a corresponding decryption algorithm, and then perform analysis, which is not described herein again.
Optionally, because the navigation operation interface that needs to be generated may also include only a header, a body, or a bottom, or may include a header and a body, a body and a bottom, or a header and a bottom, and so on, the determined data object may also include a header data object, a body data object, or a bottom data object, or include a header data object and a body data object, or include a body data object and a bottom data object, or a header data object and a bottom data object, and so on, which may be determined specifically according to requirements of an actual application, and is not described herein again.
(2) And constructing a navigation operation interface according to the analysis data.
For example, if the data object is determined in (1), at this time, a navigation operation interface may be constructed according to the data object, for example, the following may be specifically used:
and creating a responsive operation interface element for the data object, and generating a navigation operation interface according to the operation interface element.
The operation interface element refers to an element which can respond to the data objects in the operation interface, and the representation forms of the elements can comprise windows, title bars, menus, status bars, text boxes, buttons, tool bars, list boxes, tree views, list views, combo boxes, scroll bars, labels, radio buttons and the like.
For example, taking the data object including a head data object, a body data object, and/or a bottom data object as an example, at this time, the step "create a responsive operation interface element for the data object" may specifically include:
when it is determined that the header data object exists, a responsive operation interface element is created for the header data object, and for convenience of description, these operation interface elements capable of responding to the header data object are referred to as header interface elements in the embodiment of the present invention.
When it is determined that a subject data object exists, a responsive operation interface element is created for the subject data object, and for convenience of description, these operation interface elements capable of responding to the subject data object are referred to as subject interface elements in the embodiments of the present invention.
When the existence of the bottom data object is determined, the corresponding operation interface elements are created for the bottom data object, and for convenience of description, these operation interface elements capable of responding to the bottom metadata object are referred to as bottom interface elements in the embodiment of the present invention.
Then, at this time, the step "generating a navigation operation interface according to the operation interface element" may specifically include: and generating a navigation operation interface according to the head interface element, the main body interface element and/or the bottom interface element.
104. And displaying the navigation operation interface in the instant communication conversation window.
Optionally, after the navigation operation interface is displayed, instant messaging information (such as an operation request) triggered based on the navigation operation interface may be received, and the instant messaging information is processed according to the navigation menu data packet.
For example, corresponding response data may be obtained from the navigation menu data packet according to the instant messaging information (e.g., an operation request), the instant messaging information may be responded in the instant messaging dialog window according to the obtained response data, and the like.
As can be seen from the above, in the embodiment, a navigation menu request carrying a target user identifier is sent to the server in the instant messaging session window with the target user, after a navigation menu data packet returned by the server according to the target user identifier is received, a navigation operation interface is generated according to the navigation menu data packet, and the navigation operation interface is displayed in the instant messaging session window; because the scheme can acquire the navigation menu data packet from the server at one time and generate the corresponding navigation operation interface at the local (namely the terminal) for the source user to operate, compared with the existing scheme which needs to frequently operate and interact with the server, the method can greatly reduce the signaling flow between the server and the process information in the information flow, improve the operation efficiency, save the network resources and improve the friendliness of the user operation interface.
Example II,
The method described in the first embodiment is further illustrated by way of example.
In this embodiment, the instant messaging information processing apparatus is specifically integrated in a terminal, such as a source terminal, for example.
As shown in fig. 2a, a method for processing instant messaging information may specifically include the following steps:
201. the source terminal acquires a conversation request of a source user and a target user.
Wherein the dialog request can be triggered by the source user by clicking or sliding the target user identification in the instant messenger.
For example, taking the source user as a user a, the target user as an enterprise user b, and the instant messenger as an application a as an example, at this time, the application a may be started, and the conversation request may be triggered by clicking or sliding an identifier of the enterprise user b in the address book, such as an avatar or information of an instant messenger account, or may be triggered by entering a history chat record of the enterprise user b and the user a, and so on.
202. And the source terminal calls a corresponding conversation starting process according to the conversation request and executes the conversation starting process so as to start the instant communication conversation windows of the source user and the target user.
For example, if the source user is a first user, the target user is a second enterprise user, and the instant messenger is an application a, the source terminal may invoke a session start process of the application a according to the session request, execute the session start process, start an instant messenger session window between the first user and the second enterprise user, and so on.
Optionally, before performing steps 201 and 202 (i.e., creating the instant messaging conversation window between the source user and the target user), it may be further determined whether the instant messaging conversation window currently exists, if so, the instant messaging conversation window is directly obtained, and if not, the instant messaging conversation window between the source user and the target user is created (i.e., steps 201 and 202), i.e., steps 201 and 202 are optional steps.
Optionally, in order to save a signaling flow and improve processing efficiency, when it is determined that an instant messaging conversation window between the source user and the target user exists, for example, it is determined that an instant messaging conversation window between a user a and an enterprise user b exists, it may be further determined whether a latest navigation menu data packet exists, and if the latest navigation menu data packet exists, step 206 may be directly executed without obtaining the navigation menu data packet from the server; otherwise, if the latest navigation menu data packet does not exist, step 203 is executed to obtain the latest navigation menu data packet.
For example, when it is determined that the navigation menu data packet exists, it may be determined whether the navigation menu data packet needs to be updated, if the navigation menu data packet does not need to be updated, it is determined that the latest navigation menu data packet exists, and if the navigation menu data packet needs to be updated, it is determined that the latest navigation menu data packet does not exist, at this time, step 203 may be executed to obtain the latest navigation menu data packet.
203. And the source terminal sends a navigation menu request to the server in the instant communication conversation window, wherein the navigation menu request carries information such as a target user identifier and the like.
The target user identifier refers to a user identifier of the target user, and the user identifier may include information such as a user name, an instant messaging account, a mailbox address, and/or a mobile phone number, for example, if the target user is an enterprise user b, at this time, the navigation menu may request to carry the user identifier of the enterprise user b, such as information such as an instant messaging account of the enterprise user b.
204. After receiving the navigation menu request, the server queries the navigation menu configuration of the target user according to the target user identifier, for example, it may be determined whether the target user has navigation menu configuration information, if so, step 205 is executed, otherwise, if not, the server may operate according to a preset policy.
The preset policy may be set according to a requirement of an actual application, for example, a prompt message indicating that no navigation menu configuration information exists is returned to the terminal, or a navigation menu data packet may be returned to the terminal, but the content of the navigation menu data packet is set to be no configuration information, and the like.
The navigation menu configuration information may be configured in advance by a target user, such as an enterprise user b, and for example, may specifically be as follows:
the method comprises the steps that a server receives a configuration request sent by a target user, wherein the configuration request carries a target user identifier, the server authenticates the target user according to the target user identifier, after the authentication is confirmed to be passed, the target user is allowed to configure a navigation menu to obtain navigation menu configuration information, and then the corresponding relation between the target user identifier and the navigation menu configuration information is stored.
Thus, after receiving the navigation menu request, the server may query the stored correspondence according to the target user identifier to determine whether the target user has corresponding navigation menu configuration information, and if the navigation menu configuration information corresponding to the target user identifier exists, determine that the target user has corresponding navigation menu configuration information, and then execute step 205, otherwise, if the navigation menu configuration information corresponding to the target user identifier does not exist, determine that the target user does not have corresponding navigation menu configuration information, and then perform an operation according to a preset policy, for example, return a prompt message indicating that no navigation menu configuration information exists to the terminal, or also return a navigation menu data packet without configuration information to the terminal, and so on.
205. And the server generates a navigation menu data packet according to the navigation menu configuration information and returns the navigation menu data packet to the terminal.
For example, taking the navigation menu configuration information including a header data element, a body data element, and a bottom data element as an example, referring to table one, the navigation menu data packet may include the following target user identifier (i.e., the target user identifier) field, a header field, a body field, and a bottom field, as follows:
table one:
Figure BDA0001291127990000121
the data structure of the navigation element may be determined according to requirements of an actual application, for example, the data structure may include an identification field, a tag field, an operation parameter field, and/or a child item (Children) field of the navigation element, for example, see table two specifically.
Table two:
Figure BDA0001291127990000122
optionally, in order to improve the transmission speed and save bandwidth resources, when the server generates the navigation menu data packet, the server may compress the navigation menu data packet by using a compression algorithm, that is, the step "the server generates the navigation menu data packet according to the navigation menu configuration information" may specifically be as follows:
and the server compresses the navigation menu configuration information by adopting a preset compression algorithm to generate a navigation menu data packet.
Optionally, in order to improve the security of the data packet, the server may further encrypt the data packet, that is, the step "the server generates the navigation menu data packet according to the navigation menu configuration information" may specifically be as follows:
and the server encrypts the navigation menu configuration information by adopting a preset encryption algorithm to generate a navigation menu data packet.
Optionally, the encryption may be performed while compressing, that is, the step "the server generates the navigation menu data packet according to the navigation menu configuration information" may specifically be as follows:
the server compresses the navigation menu configuration information by adopting a preset compression algorithm, and encrypts the compressed data by adopting a preset encryption algorithm to generate a navigation menu data packet.
Or, the server encrypts the navigation menu configuration information by adopting a preset encryption algorithm, and compresses the encrypted data by adopting a preset compression algorithm to generate a navigation menu data packet.
The preset compression algorithm and the encryption algorithm may be determined according to the requirements of the actual application, and are not described herein again.
206. And after receiving the navigation menu data packet, the source terminal analyzes the navigation menu data packet to obtain analysis data.
For example, the attributes of each data element in the navigation menu data packet may be specifically acquired, and then, corresponding data objects are determined according to the acquired attributes, and the data objects are used as the analysis data.
The attributes of the data elements may be preset according to the layout of the navigation operation interface, for example, taking the layout of the navigation operation interface as an example (see fig. 1c), the attributes of the data elements may be defined as: a head data element, a body data element, and a bottom data element, then at this point, the classification of these data elements into a head data object, a body data object, and a bottom data object, respectively, according to the attributes, etc. may result.
For example, the source terminal may obtain attributes of each data element in the navigation menu data packet, such as a header data element, a body data element, or a bottom data element, and then determine a corresponding data object according to the obtained attributes, for example, if the attribute of a certain data element is the header data element, it is determined as the header data object, if the attribute of a certain data element is the body data element, it is determined as the body data object, if the attribute of a certain data element is the bottom data element, it is determined as the bottom data object, and so on.
The attribute of each data element may be determined according to the field in which the data element is located, for example, if a certain data element is located in the header field of the navigation menu data packet, the attribute of the data element is the header data element; if a certain data element is located in the body field, the attribute of the data element is the body data element; similarly, if a data element is located in the bottom field, the attribute of the data element is the bottom data element, and so on.
Optionally, if the server compresses the navigation menu data packet by using a compression algorithm when generating the navigation menu data packet, at this time, the navigation menu data packet needs to be decompressed by using a corresponding decompression algorithm to obtain decompressed data, then, attributes of each data element in the decompressed data are obtained, and a corresponding data object is determined according to the obtained attributes.
Optionally, if the server encrypts the navigation menu data packet by using an encryption algorithm when generating the navigation menu data packet, at this time, the navigation menu data packet needs to be decrypted by using a corresponding decryption algorithm to obtain decrypted data, then, attributes of each data element in the decrypted data are obtained, and a corresponding data object is determined according to the obtained attributes.
Optionally, if the server generates the navigation menu data packet, namely, compresses and encrypts, at this time, the navigation menu data packet needs to be decompressed and decrypted, then the attribute of each data element is obtained from the navigation menu data packet, and the corresponding data object is determined according to the obtained attribute.
207. The source terminal constructs a navigation operation interface based on the parsed data, as determined by the data object in step 206.
For example, the source terminal may specifically create a responsive operation interface element for the data object, and then generate a navigation operation interface according to the operation interface element.
Wherein, the operation interface element refers to the element which can respond to the data objects in the operation interface, and the representation form of the element can comprise a window, a title bar, a menu, a status bar, a text box, a button, a tool bar, a list box, a tree view, a list view, a combined box, a scroll bar, a label, a radio button and/or the like.
For example, taking the data object including a head data object, a body data object, and/or a bottom data object as an example, at this time, the step "create a responsive operation interface element for the data object" may specifically include:
when determining that a header data object exists, creating a responsive header interface element for the header data object;
when the main data object is determined to exist, a responsive main interface element is established for the main data object;
when determining that a bottom data object exists, creating a responsive bottom interface element for the bottom data object;
after the operation interface elements are created, a navigation operation interface can be generated according to the created operation interface elements, such as the head interface element, the body interface element, and/or the bottom interface element, wherein the generated navigation operation interface is different according to different operation interface elements. For example, taking the enterprise user b as the "XX travel" consultation platform as an example, referring to fig. 2b, fig. 2c, fig. 2d, fig. 2e, fig. 2f, and fig. 2g, the generated navigation operation interface may specifically be as follows:
(1) and generating a navigation operation interface according to the head interface element.
As shown in fig. 2b, if only the head data object exists, the source terminal may generate the head portion of the navigation operation interface according to the head interface elements, such as a window, a title bar, a menu, a status bar, and/or a text box, such as displaying a title "XX travel welcome your light" in the interface, and a corresponding text profile "XX travel to provide premium vacation hotels and extraordinary travel reservation services for high-end new sharp travelers. The travel of the music score is attacked, the price is guaranteed, the service is more intimate! ", etc., and then the head portion of the navigation operation interface is taken as the navigation operation interface.
(2) And generating a navigation operation interface according to the head interface element and the body interface element.
As shown in fig. 2c, if only a head data object and a body data object exist, the source terminal may generate a head portion of the navigation operation interface according to the head interface element, such as a window, a title bar, a menu, a status bar, and/or a text box, such as displaying a title "XX travel welcome your light" in the interface, and a corresponding text profile "XX travel provides premium vacation hotels and extraordinary travel booking services for high-end new keen travelers. The travel of the music score is attacked, the price is guaranteed, the service is more intimate! ", etc.; and generating a main body part of the navigation operation interface according to the main body interface elements, such as a window, a title bar, a menu, a status bar, a text box, a button, a toolbar, a list box, a tree view, a list view, a combination box, a scroll bar, a label, and/or a radio button, and the like, wherein the main body part of the navigation operation interface comprises service options such as 'domestic travel competitive route', 'foreign travel competitive route', and 'hot scenic spot entrance ticket', and the navigation operation interface is obtained according to the head part and the main body part of the navigation operation interface.
(3) And generating a navigation operation interface according to the head interface element and the bottom interface element.
As shown in fig. 2d, if only the head data object and the bottom data object exist, the source terminal may generate a head portion of the navigation operation interface (see (1) and (2)) according to the head interface element, such as a window, a title bar, a menu, a status bar, and/or a text box, and generate a bottom portion of the navigation operation interface, such as service options, such as "pre-sale consultation", "after-sale service", and "question complaint", according to the bottom interface element, such as a window, a title bar, a menu, a status bar, a text box, a button, a toolbar, a list box, a tree view, a list view, a combo box, a scroll bar, a tag, and/or a radio button, and obtain the navigation operation interface according to the head portion and the bottom portion of the navigation operation interface.
(4) And generating a navigation operation interface according to the main body interface element.
As shown in fig. 2e, if only the main body data object exists, the source terminal generates a main body portion of the navigation operation interface according to the main body interface element, such as a window, a title bar, a menu, a status bar, a text box, a button, a toolbar, a list box, a tree view, a list view, a combo box, a scroll bar, a tag, and/or a radio button, and uses the main body portion of the navigation operation interface as the navigation operation interface, where the main body portion of the navigation operation interface may refer to the description in (2), and is not described herein again.
(5) And generating a navigation operation interface according to the main body interface element and the bottom interface element.
As shown in fig. 2f, if only the main data object and the bottom data object exist, the source terminal generates a main portion of the navigation operation interface according to the main interface element, such as a window, a title bar, a menu, a status bar, a text box, a button, a toolbar, a list box, a tree view, a list view, a combo box, a scroll bar, a tag, and/or a radio button; and generating a bottom part of the navigation operation interface according to the bottom interface elements, such as a window, a title bar, a menu, a status bar, a text box, a button, a toolbar, a list box, a tree view, a list view, a combo box, a scroll bar, a label, and/or a radio button, and further obtaining the navigation operation interface according to a main part and the bottom part of the navigation operation interface. The main part of the navigation operation interface may refer to the description in (2), and the bottom part may refer to the description in (3), which are not described herein again.
(6) And generating a navigation operation interface according to the head interface element, the main body interface element and the bottom interface element.
As shown in fig. 2g, if the head data object, the body data object, and the bottom data object all exist, the source terminal may generate a head portion, a body portion, and a bottom portion of the navigation operation interface according to the head interface element, the body interface element, and the bottom interface element, respectively, which may refer to the descriptions in (1) to (5), and enter to obtain the navigation operation interface according to the head portion, the body portion, and the bottom portion of the navigation operation interface.
(7) And generating a navigation operation interface according to the bottom interface element.
Similarly, if only the bottom data object exists, the source terminal may generate the bottom portion of the navigation operation interface according to the bottom interface element, and use the bottom portion as the navigation operation interface, as described in detail in the foregoing embodiment. And will not be described in detail herein.
208. And the source terminal displays the navigation operation interface in the instant communication conversation window.
For example, referring to fig. 2b, fig. 2c, fig. 2d, fig. 2e, fig. 2f and fig. 2g, the navigation operation interface may be displayed in an instant messaging conversation window between the user a and the enterprise user b (i.e., XX traveling).
Optionally, after the navigation operation interface is displayed, the operation of the user a may be accepted based on the navigation operation interface, that is, the processing method of the instant messaging information may further perform steps 208 and 209, as follows:
209. and the source terminal receives instant communication information triggered based on the navigation operation interface, such as an operation request, and processes the instant communication information, such as the operation request, according to the navigation menu data packet.
For example, taking the instant messaging information as an operation request triggered by the user in the navigation operation interface as an example, the source terminal may obtain corresponding response data from the navigation menu data packet according to the operation request, and then respond to the operation request in the instant messaging dialog window according to the obtained response data.
For example, as shown in fig. 2h, the user may click on the "national travel competitive route" service item in the navigation operation interface, so as to trigger the operation interface element where the service item is located to obtain corresponding response data from the navigation menu data packet, for example, obtain a corresponding data object, and then respond to the operation request in the instant messaging dialog window according to the data object, for example, sub-items under the "national travel competitive route" service item, such as "a national travel competitive route", "B regional winter preferential route", and "C regional self-driving travel route", may be expanded or folded.
Optionally, the sub-items may set corresponding associated information, such as a web page link, a text message, a conversation window of the instant messaging tool, and/or a telephone, etc., so that when the user clicks or slides the sub-items, access to the associated information may be triggered, such as opening the associated web page link, obtaining the associated text message, opening the conversation window of the associated instant messaging tool, and/or calling the associated telephone (e.g., a client telephone), etc., and the setting of the associated information may be specifically determined according to the requirements of the actual application.
Optionally, the sub-items may further include a plurality of hierarchical sub-items, and the sub-items may also respectively set corresponding associated information, such as a web page link, a text message, a conversation window of an instant messaging tool, and/or a telephone, which may be determined according to requirements of actual applications and will not be described herein again.
As can be seen from the above, in the embodiment, in the instant messaging conversation window between the source user and the target user, a navigation menu request carrying a target user identifier is sent to the server, after receiving a navigation menu data packet returned by the server according to the target user identifier, a navigation operation interface is generated according to the navigation menu data packet, and the navigation operation interface is displayed in the instant messaging conversation window; because the scheme can acquire the navigation menu data packet from the server at one time and generate the corresponding navigation operation interface at the local (namely the terminal) for the source user to operate, compared with the existing scheme which needs to frequently operate and interact with the server, the method can greatly reduce the dependency on the server, reduce the signaling flow between the server and the process information in the information flow, improve the operation efficiency, save the network resources and improve the friendliness of the user operation interface.
Example III,
In order to better implement the method, an embodiment of the present invention further provides an instant messaging information processing apparatus, where the instant messaging information processing apparatus may be specifically integrated in a terminal, and the terminal may be specifically a mobile phone, a tablet computer, a notebook computer, or a wearable smart device.
As shown in fig. 3a, the processing apparatus of instant messaging information may include a sending unit 301, a receiving unit 302, a generating unit 303 and a display unit 304, as follows:
(1) a transmission unit 301;
the sending unit 301 is configured to send a navigation menu request to the server in the instant messaging session window with the target user, where the navigation menu request carries information such as the target user identifier.
The target user identifier refers to a user identifier of the target user, and the user identifier may include information such as a user name, an instant messaging account, a mailbox address, and/or a mobile phone number.
Optionally, before "sending the navigation menu request to the server", the processing device of the instant messaging information may further create the instant messaging conversation window, that is, the processing device of the instant messaging information may further include a creating unit:
and the creating unit is used for acquiring a conversation request with the target user, calling a corresponding conversation starting process according to the conversation request, and executing the conversation starting process so as to start an instant communication conversation window with the target user.
Optionally, before creating the instant messaging conversation window between the source user and the target user, the creating unit may further determine whether the instant messaging conversation window exists currently, if so, trigger the sending unit 301 to directly obtain the instant messaging conversation window, and send a navigation menu request to the server in the instant messaging conversation window, and if not, execute creating the instant messaging conversation window between the source user and the target user.
Optionally, in order to save a signaling flow and improve processing efficiency, after the sending unit 301 is triggered to obtain the instant messaging conversation window, the sending unit 301 may further determine whether a latest navigation menu data packet exists, if the latest navigation menu data packet exists, the generating unit 303 may be directly triggered to generate a navigation operation interface according to the navigation menu data packet, otherwise, if the latest navigation menu data packet does not exist, a navigation menu request is sent to the server, which is described in the foregoing method embodiment and is not described herein again.
(2) A receiving unit 302;
a receiving unit 302, configured to receive a navigation menu data packet returned by the server according to the target user identifier.
The navigation menu data packet is generated by the server according to the navigation menu configuration information, and the navigation menu configuration information may be configured in advance by the target user, which may specifically refer to the foregoing method embodiment, and is not described herein again.
Optionally, in order to increase the transmission speed and save bandwidth resources, the server may compress the navigation menu data packet by using a compression algorithm when generating the navigation menu data packet. Optionally, in order to improve the security of the data packet, the data packet may also be encrypted, and the specific compression algorithm and the encryption algorithm may be determined according to the requirements of the actual application, and are not described herein again.
(3) A generation unit 303;
the generating unit 303 is configured to generate a navigation operation interface according to the navigation menu data packet.
For example, the generating unit 303 may include a parsing subunit and a building subunit, as follows:
the analysis subunit may be configured to analyze the navigation menu data packet to obtain analysis data.
The construction subunit may be configured to construct a navigation operation interface according to the analysis data.
For example, the parsing subunit may be specifically configured to acquire an attribute of each data element in the navigation menu data packet, and then determine a corresponding data object according to the acquired attribute, where the data object is parsing data in the embodiment of the present invention.
At this time, the building subunit may be specifically configured to build the navigation operation interface according to the data object.
The attribute of each data element may be determined according to the field in which the data element is located, for example, if a certain data element is located in the header field of the navigation menu data packet, the attribute of the data element is the header data element; if a certain data element is located in the body field, the attribute of the data element is the body data element; similarly, if a data element is located in the bottom field, the attribute of the data element is the bottom data element, and so on.
Optionally, if the server compresses the navigation menu data packet by using a compression algorithm when generating the navigation menu data packet, at this time, the navigation menu data packet needs to be decompressed by using a corresponding decompression algorithm, and then is analyzed; that is, the parsing subunit may be specifically configured to:
decompressing the navigation menu data packet to obtain decompressed data, and determining a data object according to the decompressed data.
For example, the parsing sub-unit may obtain attributes of each data element in the decompressed data, and then determine a corresponding data object according to the obtained attributes.
Optionally, if the server encrypts the navigation menu data packet when generating the navigation menu data packet, at this time, the parsing subunit may perform parsing after decrypting by using a corresponding decryption algorithm, which is not described herein again.
Optionally, the construction subunit may construct a navigation operation interface according to the data object in various ways, for example, as follows:
the building subunit may be specifically configured to create a responsive operation interface element for the data object, and generate a navigation operation interface according to the operation interface element.
And creating a responsive operation interface element for the data object, and generating a navigation operation interface according to the operation interface element.
The operation interface element refers to an element which can respond to the data objects in the operation interface, and the representation forms of the elements can comprise windows, title bars, menus, status bars, text boxes, buttons, tool bars, list boxes, tree views, list views, combo boxes, scroll bars, labels, radio buttons and the like.
For example, taking the example that the data object includes a header data object, a body data object, and/or a bottom data object, the building subunit may be specifically configured to:
when determining that a header data object exists, creating a responsive header interface element for the header data object;
when the main data object is determined to exist, a responsive main interface element is established for the main data object;
when determining that a bottom data object exists, creating a responsive bottom interface element for the bottom data object;
and generating a navigation operation interface according to the head interface element, the main body interface element and/or the bottom interface element.
(4) A display unit 304;
the display unit 304 is configured to display the navigation operation interface in the instant messaging conversation window.
Optionally, after the navigation operation interface is displayed, an operation triggered based on the navigation operation interface may be further received and processed, that is, as shown in fig. 3b, the processing apparatus for instant messaging information may further include a processing unit 305, as follows:
the receiving unit 302 may also be configured to receive instant messaging information triggered based on the navigation operation interface, such as an operation request;
the processing unit 305 may be configured to process the instant messaging information, such as an operation request, according to the navigation menu data packet.
For example, the processing unit 305 may be specifically configured to obtain corresponding response data from the navigation menu data packet according to the instant messaging message, respond to the instant messaging message in the instant messaging dialog window according to the obtained response data, and the like.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the instant messaging information processing apparatus of this embodiment is implemented in the instant messaging dialog window between the source user and the target user, where the sending unit 301 sends the navigation menu request carrying the target user identifier to the server, and after the receiving unit 302 receives the navigation menu data packet returned by the server according to the target user identifier, the generating unit 303 generates the navigation operation interface according to the navigation menu data packet, and the display unit 304 displays the navigation operation interface in the instant messaging dialog window; because the scheme can acquire the navigation menu data packet from the server at one time and generate the corresponding navigation operation interface at the local (namely the terminal) for the source user to operate, compared with the existing scheme which needs to frequently operate and interact with the server, the method can greatly reduce the signaling flow between the server and the process information in the information flow, improve the operation efficiency, save the network resources and improve the friendliness of the user operation interface.
Example four,
Correspondingly, the embodiment of the present invention further provides a system for processing instant messaging information, which may include any one of the processing apparatuses for instant messaging information provided in the embodiment of the present invention, for example, as follows;
the processing device of the instant messaging information is used for sending a navigation menu request to a server in an instant messaging conversation window with a target user, wherein the navigation menu request carries a target user identifier, receiving a navigation menu data packet returned by the server according to the target user identifier, generating a navigation operation interface according to the navigation menu data packet, and displaying the navigation operation interface in the instant messaging conversation window.
For example, the processing device of the instant messaging information may be specifically configured to acquire an attribute of each data element in the navigation menu data packet, determine a corresponding data object according to the acquired attribute, and construct a navigation operation interface according to the data object.
For example, the processing apparatus of the instant messaging information may be specifically configured to create an operation interface element for responding to the data object, and generate a navigation operation interface according to the operation interface element.
The operation interface element refers to an element which can respond to the data objects in the operation interface, and the representation forms of the elements can comprise windows, title bars, menus, status bars, text boxes, buttons, tool bars, list boxes, tree views, list views, combo boxes, scroll bars, labels, radio buttons and the like.
Optionally, the instant messaging information processing system may further include other devices, for example, a server, as follows:
the server can be used for receiving a navigation menu request carrying a target user identifier sent by a processing device of instant messaging information, generating a navigation menu data packet according to the navigation menu configuration information when the target user has navigation menu configuration information according to the target user identifier, and returning the navigation menu data packet to the processing device of the instant messaging information.
The specific implementation of each device can be referred to the previous embodiment, and is not described herein again.
Since the processing system of instant messaging information may include any one of the processing devices of instant messaging information provided in the embodiments of the present invention, beneficial effects that can be achieved by any one of the processing devices of instant messaging information provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
Example V,
Accordingly, an embodiment of the present invention further provides a terminal, as shown in fig. 4, the terminal may include Radio Frequency (RF) circuits 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 406, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408, and then transmitted to, for example, another terminal via the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide peripheral headset communication with the terminal.
WiFi belongs to short distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the handset. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power source 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions:
sending a navigation menu request to a server in an instant communication session window with a target user, wherein the navigation menu request carries a target user identifier, receiving a navigation menu data packet returned by the server according to the target user identifier, generating a navigation operation interface according to the navigation menu data packet, and displaying the navigation operation interface in the instant communication session window.
For example, the attribute of each data element in the navigation menu data packet may be specifically acquired, a corresponding data object is determined according to the acquired attribute, and a navigation operation interface is constructed according to the data object.
The above operations can be referred to the previous embodiments specifically, and are not described herein again.
As can be seen from the above, the terminal of this embodiment may send a navigation menu request carrying a target user identifier to the server in the instant messaging session window with the target user, generate a navigation operation interface according to the navigation menu data packet after receiving the navigation menu data packet returned by the server according to the target user identifier, and display the navigation operation interface in the instant messaging session window; because the scheme can acquire the navigation menu data packet from the server at one time and generate the corresponding navigation operation interface at the local (namely the terminal) for the source user to operate, compared with the existing scheme which needs to frequently operate and interact with the server, the method can greatly reduce the signaling flow between the server and the process information in the information flow, improve the operation efficiency, save the network resources and improve the friendliness of the user operation interface.
Example six,
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or related hardware controlled by the instructions, and the instructions may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the methods for processing an instant messaging information provided by the embodiments of the present invention. For example, the instructions may include the steps of:
sending a navigation menu request to a server in an instant communication session window with a target user, wherein the navigation menu request carries a target user identifier, receiving a navigation menu data packet returned by the server according to the target user identifier, generating a navigation operation interface according to the navigation menu data packet, and displaying the navigation operation interface in the instant communication session window.
For example, the instruction may specifically include the following steps:
obtaining the attribute of each data element in the navigation menu data packet, determining a corresponding data object according to the obtained attribute, constructing a navigation operation interface according to the data object, and the like.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any of the methods for processing instant messaging information provided by the embodiments of the present invention, the beneficial effects that can be achieved by any of the methods for processing instant messaging information provided by the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The method, the apparatus, the system and the storage medium for processing the instant messaging information provided by the embodiment of the present invention are described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for processing instant messaging information is characterized by comprising the following steps:
sending a navigation menu request to a server in an instant communication session window with a target user, wherein the navigation menu request carries a target user identifier;
receiving a navigation menu data packet returned by the server according to the target user identifier;
acquiring the attribute of each data element in the navigation menu data packet based on the navigation menu data packet;
determining a corresponding data object according to the acquired attributes, wherein the data object is a set of data elements with the same property, and the data element is a data unit which is defined, identified, represented and allowed by a group of attribute description;
constructing a navigation operation interface according to the data object;
displaying the navigation operation interface in the instant messaging conversation window;
and receiving instant communication information triggered based on the navigation operation interface, and processing the instant communication information according to the navigation menu data packet.
2. The method according to claim 1, wherein after displaying the navigation operation interface, further comprising:
receiving instant messaging information triggered based on the navigation operation interface;
and processing the instant messaging information according to the navigation menu data packet.
3. The method of claim 2, wherein the processing the instant messaging information according to the navigation menu data packet comprises:
acquiring corresponding response data from the navigation menu data packet according to the instant communication information;
and responding the instant messaging information in the instant messaging dialogue window according to the acquired response data.
4. The method of claim 1, wherein constructing a navigation operation interface from the data objects comprises:
creating responsive operation interface elements for the data objects;
and generating a navigation operation interface according to the operation interface elements.
5. The method of claim 4, wherein the data objects include a header data object, a body data object, and/or a bottom data object, and wherein creating responsive operator interface elements for the data objects comprises:
when determining that a header data object exists, creating a responsive header interface element for the header data object;
when the main data object is determined to exist, a responsive main interface element is established for the main data object;
when determining that a bottom data object exists, creating a responsive bottom interface element for the bottom data object;
the generating of the navigation operation interface according to the operation interface element comprises: and generating a navigation operation interface according to the head interface element, the main body interface element and/or the bottom interface element.
6. The method according to any one of claims 1 to 3, wherein before sending the navigation menu request to the server in the instant messaging conversation window with the target user, the method further comprises:
acquiring a dialogue request with the target user;
calling a corresponding conversation starting process according to the conversation request;
and executing the conversation starting process to start an instant communication conversation window with the target user.
7. An apparatus for processing instant messaging information, comprising:
the sending unit is used for sending a navigation menu request to the server in an instant messaging conversation window of a target user, wherein the navigation menu request carries a target user identifier;
the receiving unit is used for receiving a navigation menu data packet returned by the server according to the target user identifier and receiving instant communication information triggered based on a navigation operation interface;
the analysis subunit is used for acquiring the attribute of each data element in the navigation menu data packet based on the navigation menu data packet;
the construction subunit is used for determining a corresponding data object according to the acquired attributes and constructing a navigation operation interface according to the data object, wherein the data object is a set of data elements with the same property, and the data element is a data unit which is defined, identified, represented and allowed by a group of attribute description;
the display unit is used for displaying the navigation operation interface in the instant messaging conversation window;
and the processing unit is used for processing the instant messaging information according to the navigation menu data packet.
8. The apparatus according to claim 7, wherein the data objects comprise a header data object, a body data object, and/or a bottom data object, and wherein the construction subunit is specifically configured to:
when determining that a header data object exists, creating a responsive header interface element for the header data object;
when the main data object is determined to exist, a responsive main interface element is established for the main data object;
when determining that a bottom data object exists, creating a responsive bottom interface element for the bottom data object;
and generating a navigation operation interface according to the head interface element, the main body interface element and/or the bottom interface element.
9. A system for processing instant messaging information, comprising a server and the instant messaging information processing device of any one of claims 7 to 8;
the server is used for receiving a navigation menu request which is sent by a processing device of instant messaging information and carries a target user identifier, generating a navigation menu data packet according to the navigation menu configuration information when the target user has navigation menu configuration information according to the target user identifier, and returning the navigation menu data packet to the processing device of the instant messaging information.
10. A storage medium storing a plurality of instructions, the instructions being suitable for a processor to load so as to execute the steps in the method for processing instant messaging information according to any one of claims 1 to 6.
CN201710325772.6A 2017-05-10 2017-05-10 Instant messaging information processing method, device, system and storage medium Active CN107154894B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710325772.6A CN107154894B (en) 2017-05-10 2017-05-10 Instant messaging information processing method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710325772.6A CN107154894B (en) 2017-05-10 2017-05-10 Instant messaging information processing method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN107154894A CN107154894A (en) 2017-09-12
CN107154894B true CN107154894B (en) 2021-03-23

Family

ID=59792850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710325772.6A Active CN107154894B (en) 2017-05-10 2017-05-10 Instant messaging information processing method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN107154894B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347725B (en) * 2018-10-31 2021-11-23 广东小天才科技有限公司 Instant messaging method, intelligent device and storage medium
CN110334352B (en) * 2019-07-08 2023-07-07 腾讯科技(深圳)有限公司 Guide information display method, device, terminal and storage medium
CN110658974B (en) * 2019-08-01 2022-08-16 平安科技(深圳)有限公司 Page sliding method and device, electronic equipment and storage medium
CN110751417B (en) * 2019-10-29 2022-08-26 北京旷视机器人技术有限公司 Storage model establishing method and device, electronic equipment and storage medium
CN111949177B (en) * 2020-08-11 2022-07-12 深圳传音控股股份有限公司 Information transmission method, terminal device, and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462237A (en) * 2014-11-14 2015-03-25 华为软件技术有限公司 Method and device for displaying public information
CN104683454A (en) * 2015-02-12 2015-06-03 腾讯科技(深圳)有限公司 Data interaction method and device
CN104717284A (en) * 2015-02-13 2015-06-17 腾讯科技(深圳)有限公司 Menu management method, device and system
CN106406844A (en) * 2015-08-03 2017-02-15 腾讯科技(深圳)有限公司 A method and a device for realizing a communication interaction platform official account menu

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10692020B2 (en) * 2011-04-29 2020-06-23 Crestron Electronics, Inc. Real-time automatic meeting room reservation based on the number of actual participants

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462237A (en) * 2014-11-14 2015-03-25 华为软件技术有限公司 Method and device for displaying public information
CN104683454A (en) * 2015-02-12 2015-06-03 腾讯科技(深圳)有限公司 Data interaction method and device
CN104717284A (en) * 2015-02-13 2015-06-17 腾讯科技(深圳)有限公司 Menu management method, device and system
CN106406844A (en) * 2015-08-03 2017-02-15 腾讯科技(深圳)有限公司 A method and a device for realizing a communication interaction platform official account menu

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《购物商城微信公众号交互设计》;小涵;《http://www.woshipm.com/pd/227311.html》;20151030;全文 *

Also Published As

Publication number Publication date
CN107154894A (en) 2017-09-12

Similar Documents

Publication Publication Date Title
CN107690078B (en) Bullet screen information display method, bullet screen information providing method and bullet screen information providing equipment
CN107154894B (en) Instant messaging information processing method, device, system and storage medium
WO2017133547A1 (en) Information processing method and device
CN107040609B (en) Network request processing method and device
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
WO2018157721A1 (en) Method for acquiring and providing information, device, system and storage medium
CN107657045B (en) Information collection method, mobile terminal and computer readable storage medium
US10084729B2 (en) Apparatuses and methods for web page sharing
CN106303070B (en) notification message prompting method and device and mobile terminal
CN111178012A (en) Form rendering method, device and equipment and storage medium
WO2018196588A1 (en) Information sharing method, apparatus and system
WO2014206143A1 (en) Method, apparatus and device for displaying number of unread messages
US20180020252A1 (en) Information display method, channel management platform, and terminal
WO2015085951A1 (en) Terminal, server, system and method for inviting friend to watch video
US9961177B2 (en) Method and device for adding contact information
WO2014176805A1 (en) Method, apparatus, and system for business processing
WO2019233316A1 (en) Data processing method and device, mobile terminal, and storage medium
WO2014194688A1 (en) Webpage processing method and terminal device
WO2014206037A1 (en) Apparatuses and methods for web page sharing
WO2015003636A1 (en) Method and device for interception of page elements
WO2015010466A1 (en) Information display method and apparatus, and mobile terminal
WO2015032284A1 (en) Method, terminal device, and system for instant messaging
CN110555171A (en) Information processing method, device, storage medium and system
CN105631059B (en) Data processing method, data processing device and data processing system
CN105095161B (en) Method and device for displaying rich text information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant