CN114816600A - Session message display method, device, terminal and storage medium - Google Patents

Session message display method, device, terminal and storage medium Download PDF

Info

Publication number
CN114816600A
CN114816600A CN202110112440.6A CN202110112440A CN114816600A CN 114816600 A CN114816600 A CN 114816600A CN 202110112440 A CN202110112440 A CN 202110112440A CN 114816600 A CN114816600 A CN 114816600A
Authority
CN
China
Prior art keywords
session
link address
page content
message
target
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.)
Granted
Application number
CN202110112440.6A
Other languages
Chinese (zh)
Other versions
CN114816600B (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110112440.6A priority Critical patent/CN114816600B/en
Publication of CN114816600A publication Critical patent/CN114816600A/en
Application granted granted Critical
Publication of CN114816600B publication Critical patent/CN114816600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a method, a device, a terminal and a storage medium for displaying a session message, and belongs to the technical field of computers. The method comprises the following steps: receiving a session message issuing instruction, wherein the session message issuing instruction carries a target session identifier and a session message, and the session message at least comprises a link address; acquiring an account number in the target session and an access condition corresponding to the link address; responding to the fact that all the account numbers in the target session meet the access condition, analyzing the link address to obtain page content corresponding to the link address; and displaying the session message and the page content in a message display area corresponding to the session message in a session interface corresponding to the target session. The session message display mode provided by the method enables the user to directly view the page content without clicking the link, simplifies the user operation, avoids the user without permission from viewing the page content, and ensures the security of the page content.

Description

Session message display method, device, terminal and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for displaying a session message.
Background
With the rapid development of computer technology and the wide popularization of instant messaging applications, the interaction demands of users are gradually increased, and communication through instant messaging applications has become a common way for users.
In the related art, a session message issued in an instant messaging application may include a link address, when a terminal that acquires the session message displays the session message, the displayed session message may include the link address, and when an operation that a user clicks the link address is detected, the terminal jumps to a page corresponding to the link address. But only the link address is displayed to the user, and the amount of information displayed is small.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a terminal and a storage medium for displaying a session message, which increase the amount of information displayed and simplify user operations.
According to an aspect of the embodiments of the present disclosure, there is provided a conversation message display method, the method including:
receiving a session message issuing instruction, wherein the session message issuing instruction carries a target session identifier and a session message, the target session identifier represents a target session for issuing the session message, and the session message at least comprises a link address;
acquiring an account number in the target session and an access condition corresponding to the link address, wherein the access condition represents a condition which is met by the account number accessing the link address;
responding to the fact that all the account numbers in the target session meet the access condition, analyzing the link address to obtain page content corresponding to the link address;
and displaying the session message and the page content in a message display area corresponding to the session message in a session interface corresponding to the target session.
According to the method provided by the embodiment of the disclosure, when the session message issued in the session interface includes the link address, the received session message can be displayed, the link address can be analyzed, the page content corresponding to the analyzed link address is displayed, the information content is increased, the user can directly view the page content without clicking the link, and the user operation is simplified. And when the account numbers in the target session all meet the access conditions, the link address is analyzed, so that the user without permission can be prevented from seeing the page content, and the safety of the page content is ensured.
In some embodiments, the page content includes page content belonging to an interactive type, and the displaying the session message and the page content in a message display area corresponding to the session message in a session interface corresponding to the target session includes:
displaying the session message and an interaction control associated with the page content belonging to the interactive type in the message display area, wherein the interaction control is used for triggering and displaying the page content associated with the interaction control;
and responding to the triggering operation of the interaction control, and displaying the page content associated with the interaction control in the message display area.
In the embodiment of the disclosure, the interactive control associated with the page content can be directly displayed, so that the user can directly interact with the interactive control without jumping to the page corresponding to the link address, thereby further simplifying the user operation and improving the display efficiency.
In some embodiments, the displaying, in response to the triggering operation of the interaction control, page content associated with the interaction control in the message display area includes:
the interactive type comprises an audio type, the page content comprises audio content, and the audio content is played while the session interface is displayed in response to the triggering operation of an interactive control associated with the audio content; or,
the interactive type comprises a video type, the page content comprises video content, and the video content is played while the session interface is displayed in response to the triggering operation of an interactive control associated with the video content; or,
the interactive type comprises a link type, the page content comprises other link addresses different from the link addresses, and in response to the triggering operation of the interactive controls associated with the other link addresses, the page corresponding to the other link addresses is displayed while the session interface is displayed.
In the embodiment of the disclosure, the interactive controls corresponding to different interactive types can be triggered to display the page content associated with the interactive controls, so that the method and the device are suitable for various interactive situations and have applicability.
In some embodiments, the analyzing the link address to obtain the page content corresponding to the link address in response to the account numbers in the target session all satisfying the access condition includes:
and responding to the condition that all the accounts in the target session have the authority of accessing the link address, and analyzing the link address to obtain the page content.
In the embodiment of the disclosure, the link address is analyzed only when all the accounts in the target session have the authority to access the link address, so that users without the authority can be prevented from seeing the page content, and the security of the page content is ensured.
In some embodiments, the analyzing the link address to obtain the page content in response to the accounts in the target session all having the right to access the link address includes:
if the account numbers in the target session are all reference account numbers, analyzing the link address to obtain the page content, wherein the reference account numbers are account numbers with the authority of accessing the link address; or,
and if the account numbers in the target session belong to the reference group, analyzing the link address to obtain the page content, wherein the account numbers belonging to the reference group have the authority of accessing the link address.
In the embodiment of the disclosure, whether the account in the target session has the authority to access the link address is determined according to whether the account in the target session is a reference account or not, or whether the account belongs to a reference group, and the link address is analyzed under the condition that all the accounts in the target session have the authority, so that a user without the authority can be prevented from seeing the page content, and the security of the page content is ensured.
In some embodiments, the analyzing the link address to obtain the page content corresponding to the link address in response to the account numbers in the target session all satisfying the access condition includes:
if the account numbers in the target session all meet the access condition and the link address has an associated analysis identifier, analyzing the link address to obtain the page content, wherein the analysis identifier represents that the link address is allowed to be analyzed.
In the embodiment of the disclosure, in order to ensure the security of the web content corresponding to the link address, some link addresses cannot be directly analyzed, so that when the account number in the target session meets the access condition, it is also required to determine whether the link address is an analyzable link address, and analyze the link address allowed to be analyzed, thereby further improving the security of the web content.
In some embodiments, the analyzing the link address in response to that all the accounts in the target session satisfy the access condition, to obtain the page content corresponding to the link address, includes:
responding to that all the accounts in the target session meet the access condition, and acquiring analysis protocol information, wherein the analysis protocol information comprises a plurality of target fields, and the target fields represent fields where the page contents allowed to be analyzed in the page contents corresponding to the link address are located;
and according to the target fields, extracting the page content corresponding to each target field from the page content corresponding to the link address.
In the embodiment of the disclosure, some page contents corresponding to the link address may not be useful to the user, if the contents of the users are analyzed, the contents to be analyzed are too much, and the analysis efficiency is low, and the page contents corresponding to the target field can be obtained by analyzing the link address according to the target field, so that the required contents are analyzed, and the analysis efficiency is improved.
In some embodiments, the parsing protocol information further includes display positions corresponding to the target fields, and the displaying the session message and the page content in a message display area corresponding to the session message in a session interface corresponding to the target session includes:
displaying the conversation message in a first display sub-area of the message display areas;
and displaying the page content corresponding to each target field in a second display sub-area in the message display area according to the display position corresponding to each target field.
In the embodiment of the disclosure, the session message and the page content are displayed separately, so that the user can conveniently view the original session message. And the page content of each target field is displayed according to the display position, so that the display of the page content is clearer and clearer, and the user can quickly find the content to be viewed from the page content conveniently.
In some embodiments, the displaying, in the second display sub-area in the message display area, the page content corresponding to each target field according to the display position corresponding to each target field includes:
if the size of the page content corresponding to any target field is larger than the size of the display position corresponding to any target field, filtering the page content corresponding to any target field, wherein the size of the filtered page content does not exceed the size of the display position;
and displaying the filtered page content at the display position.
In the embodiment of the disclosure, the excessive page content is filtered, and the page content is ensured to be displayed at the display position corresponding to each target field, so that the phenomenon that the displayed content of the conversation message is too long and the user views other conversation messages is influenced is avoided.
In some embodiments, the page content includes an image, and the conversation message display method further includes:
displaying the image in the message display area if the size of the image is smaller than a reference size; or,
and if the size of the image is not smaller than the reference size, reducing the image, and displaying the reduced image in the message display area.
In the embodiment of the disclosure, the situation that the complete image is difficult to display when the image size is too large is avoided by adjusting the size of the image, so that the user can be ensured to see the complete image.
In some embodiments, the including a plurality of link addresses in the session message, and the displaying the session message and the page content in a message display area corresponding to the session message in a session interface corresponding to the target session includes:
displaying the conversation message and an expansion control in the message display area;
and responding to the triggering operation of the expansion control, and displaying the page content corresponding to the plurality of link addresses.
In the embodiment of the disclosure, because the page contents corresponding to the plurality of link addresses are more, if the page contents are directly displayed in the message display area, the displayed contents are too much, and it is inconvenient for the user to view other messages in the session interface.
According to still another aspect of the embodiments of the present disclosure, there is provided a conversation message display apparatus, the apparatus including:
the device comprises an instruction receiving unit, a processing unit and a processing unit, wherein the instruction receiving unit is configured to execute a session message issuing instruction, the session message issuing instruction carries a target session identifier and a session message, the target session identifier represents a target session for issuing the session message, and the session message at least comprises a link address;
a condition obtaining unit, configured to perform obtaining of an account in the target session and an access condition corresponding to the link address, where the access condition represents a condition that the account accessing the link address should meet;
the link analysis unit is configured to execute analysis on the link address to obtain page content corresponding to the link address in response to the fact that all the accounts in the target session meet the access condition;
and the display unit is configured to display the session message and the page content in a message display area corresponding to the session message in a session interface corresponding to the target session.
In some embodiments, the page content includes page content belonging to an interactive type, and the display unit includes:
a control display subunit configured to execute, in the message display area, displaying the session message and an interaction control associated with the page content belonging to the interactive type, where the interaction control is used to trigger display of the page content associated with the interaction control;
and the content display subunit is configured to execute a triggering operation responding to the interaction control and display the page content associated with the interaction control in the message display area.
In some embodiments, the content display subunit is configured to perform:
the interactive type comprises an audio type, the page content comprises audio content, and the audio content is played while the session interface is displayed in response to the triggering operation of an interactive control associated with the audio content; or,
the interactive type comprises a video type, the page content comprises video content, and the video content is played while the session interface is displayed in response to the triggering operation of an interactive control associated with the video content; or,
the interactive type comprises a link type, the page content comprises other link addresses different from the link addresses, and the page corresponding to the other link addresses is displayed while the session interface is displayed in response to the triggering operation of the interactive controls associated with the other link addresses.
In some embodiments, the link parsing unit is configured to perform, in response to that all the accounts in the target session have the right to access the link address, parsing the link address to obtain the page content.
In some embodiments, the link parsing unit is configured to perform:
if the account numbers in the target session are all reference account numbers, analyzing the link address to obtain the page content, wherein the reference account numbers are account numbers with the authority of accessing the link address; or,
and if the account numbers in the target session belong to the reference group, analyzing the link address to obtain the page content, wherein the account numbers belonging to the reference group have the authority of accessing the link address.
In some embodiments, the link parsing unit is configured to parse the link address to obtain the page content if all the accounts in the target session satisfy the access condition and the link address has an associated parsing identifier, where the parsing identifier represents that the link address is allowed to be parsed.
In some embodiments, the link parsing unit is configured to perform:
responding to that all the accounts in the target session meet the access condition, and acquiring analysis protocol information, wherein the analysis protocol information comprises a plurality of target fields, and the target fields represent fields where the page contents allowed to be analyzed in the page contents corresponding to the link address are located;
and according to the target fields, extracting the page content corresponding to each target field from the page content corresponding to the link address.
In some embodiments, the parsing protocol information further includes display positions corresponding to the target fields, and the display unit includes:
a message display subunit configured to perform displaying the conversation message in a first display sub-area of the message display areas;
and the content display subunit is configured to display the page content corresponding to each target field according to the display position corresponding to each target field in a second display sub-area in the message display area.
In some embodiments, the content display subunit is configured to perform:
if the size of the page content corresponding to any target field is larger than the size of the display position corresponding to any target field, filtering the page content corresponding to any target field, wherein the size of the filtered page content does not exceed the size of the display position;
and displaying the filtered page content at the display position.
In some embodiments, the page content includes an image, the display unit is configured to perform:
displaying the image in the message display area if the size of the image is smaller than a reference size; or,
and if the size of the image is not smaller than the reference size, reducing the image, and displaying the reduced image in the message display area.
In some embodiments, the session message includes a plurality of link addresses therein, and the display unit is configured to perform:
displaying the conversation message and an expansion control in the message display area;
and responding to the triggering operation of the expansion control, and displaying the page content corresponding to the plurality of link addresses.
According to still another aspect of the embodiments of the present disclosure, there is provided a terminal, including:
one or more processors;
a memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the conversation message display method of the above aspect.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having instructions stored thereon, which, when executed by a processor of a terminal, enable the terminal to perform the conversation message display method according to the above aspect.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer program product comprising a computer program executed by a processor to implement the conversation message display method of the above aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram illustrating one implementation environment in accordance with an example embodiment.
Fig. 2 is a flowchart illustrating a conversation message display method according to an example embodiment.
Fig. 3 is a flow chart illustrating another conversation message display method in accordance with an exemplary embodiment.
FIG. 4 is a diagram illustrating a conversation interface in accordance with an exemplary embodiment.
FIG. 5 is a diagram illustrating another conversation interface, according to an example embodiment.
FIG. 6 is a diagram illustrating another conversation interface, according to an example embodiment.
FIG. 7 is a diagram illustrating another conversation interface, according to an example embodiment.
Fig. 8 is a block diagram illustrating a conversation message display apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating another conversation message display apparatus according to an example embodiment.
Fig. 10 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment.
FIG. 11 is a block diagram illustrating the structure of a server in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the description of the above-described figures are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) referred to in the present disclosure is information authorized by the user or sufficiently authorized by each party.
As used in this disclosure, the terms "at least one," "a plurality," "each," "any," at least one includes one, two, or more than two, and a plurality includes two or more than two, each referring to each of the corresponding plurality, and any referring to any one of the plurality. For example, the plurality of object fields includes 3 object fields, each of which refers to each of the 3 object fields, and any one of the 3 object fields refers to any one of the 3 object fields, which may be the first one, the second one, or the third one.
FIG. 1 is a schematic illustration of an implementation environment provided in accordance with an example embodiment, the implementation environment comprising: a plurality of terminals 101 (fig. 1 takes two terminals as an example) and a server 102, wherein the plurality of terminals 101 are all connected with the server 102 through a network, and can interact with the server 102 through the network connection.
The terminal 101 may be various types of terminals such as a portable terminal, a pocket terminal, a handheld terminal, and the like, such as a mobile phone, a computer, a tablet computer, and the like. The server 102 may be a server, a server cluster composed of several servers, or a cloud computing service center.
In some embodiments, a target application is installed in the plurality of terminals 101, and the terminals 101 can implement data transmission, information interaction, and the like through the target application, and the server 102 provides a service for the target application. In some embodiments, the target application is a target application in the operating system of the terminal 101 or a target application provided by a third party. For example, the target application is an instant messaging application having a function of transmitting an instant message or a timing message, and the instant messaging applications on the plurality of terminals 101 perform transmission of the message through the server 102.
The method provided by the embodiment of the disclosure can be applied to a session message display scene. For example, the target session includes an account a, an account B, and an account C, the three accounts belong to users who are employees of a financial department in the same company, the account a issues a piece of session information including a link address in the target session, the page content corresponding to the link address is some financial data, and the financial data belongs to privacy of the company and cannot be revealed to others, so the link address only allows the employees of the financial department to access the page content. After the account A issues the session message, the terminal verifies that the three accounts in the target session are all accounts of employees of the financial department, considers that the users corresponding to the three accounts all have the authority to view financial data, and when the session message is displayed, the link address is analyzed, and the session message and the financial data are directly displayed in a session interface.
Fig. 2 is a flowchart illustrating a session message display method according to an exemplary embodiment, referring to fig. 2, the method is applied to a terminal and includes the following steps:
201. receiving a session message issuing instruction, wherein the session message issuing instruction carries a target session identifier and a session message, the target session identifier represents a target session for issuing the session message, and the session message at least comprises a link address.
202. And acquiring an account number in the target session and an access condition corresponding to the link address, wherein the access condition represents a condition which the account number accessing the link address should meet.
203. And in response to that all the account numbers in the target session meet the access conditions, analyzing the link address to obtain the page content corresponding to the link address.
204. And displaying the conversation message and the page content in a message display area corresponding to the conversation message in a conversation interface corresponding to the target conversation.
According to the method provided by the embodiment of the disclosure, when the session message issued in the session interface includes the link address, the received session message can be displayed, the link address can be analyzed, the page content corresponding to the analyzed link address is displayed, the information content is increased, the user can directly view the page content without clicking the link, and the user operation is simplified. And when the account numbers in the target session all meet the access conditions, the link address is analyzed, so that the user without permission can be prevented from seeing the page content, and the safety of the page content is ensured.
In some embodiments, the page content includes page content belonging to an interactive type, and the displaying of the session message and the page content in a message display area corresponding to the session message in a session interface corresponding to the target session includes:
displaying a session message and an interactive control associated with page content belonging to an interactive type in a message display area, wherein the interactive control is used for triggering and displaying the page content associated with the interactive control;
and displaying the page content associated with the interaction control in the message display area in response to the triggering operation of the interaction control.
In some embodiments, in response to a triggering operation on the interaction control, displaying page content associated with the interaction control in the message display area, including:
the interactive type comprises an audio type, the page content comprises audio content, and the audio content is played while the session interface is displayed in response to the triggering operation of an interactive control associated with the audio content; or,
the interactive type comprises a video type, the page content comprises video content, and the video content is played while a session interface is displayed in response to the triggering operation of an interactive control associated with the video content; or,
the interactive type comprises a link type, the page content comprises other link addresses different from the link addresses, and in response to the triggering operation of the interactive controls associated with the other link addresses, the page corresponding to the other link addresses is displayed while the session interface is displayed.
In some embodiments, in response to that all accounts in the target session satisfy the access condition, parsing the link address to obtain page content corresponding to the link address includes:
and responding to the condition that all the account numbers in the target session have the authority of accessing the link address, and analyzing the link address to obtain the page content.
In some embodiments, in response to that all accounts in the target session have a right to access the link address, parsing the link address to obtain page content includes:
if the account numbers in the target session are all reference account numbers, analyzing the link address to obtain page content, wherein the reference account numbers are account numbers with the authority of accessing the link address; or,
and if the account numbers in the target session belong to the reference group, analyzing the link address to obtain page content, wherein the account numbers belonging to the reference group have the authority of accessing the link address.
In some embodiments, in response to that all the accounts in the target session satisfy the access condition, parsing the link address to obtain page content corresponding to the link address includes:
if the account numbers in the target session all meet the access conditions and the link address has the associated analysis identifier, analyzing the link address to obtain page content, wherein the analysis identifier represents that the link address is allowed to be analyzed.
In some embodiments, in response to that all the accounts in the target session satisfy the access condition, parsing the link address to obtain page content corresponding to the link address includes:
responding to the fact that all the account numbers in the target session meet the access conditions, and obtaining analysis protocol information, wherein the analysis protocol information comprises a plurality of target fields, and the target fields represent fields where the page contents which are allowed to be analyzed in the page contents corresponding to the link addresses are located;
and according to the plurality of target fields, extracting the page content corresponding to each target field from the page content corresponding to the link address.
In some embodiments, the parsing protocol information further includes display positions corresponding to a plurality of target fields, and in a message display area corresponding to a session message in a session interface corresponding to a target session, the displaying of the session message and the page content includes:
displaying the conversation message in a first display sub-area in the message display area;
and displaying the page content corresponding to each target field in a second display sub-area in the message display area according to the display position corresponding to each target field.
In some embodiments, displaying, in a second display sub-area in the message display area, the page content corresponding to each target field according to the display position corresponding to each target field includes:
if the size of the page content corresponding to any target field is larger than the size of the display position corresponding to any target field, filtering the page content corresponding to any target field, wherein the size of the filtered page content does not exceed the size of the display position;
displaying the filtered page content at the display location.
In some embodiments, the page content includes an image, and the conversation message display method further includes:
if the size of the image is smaller than the reference size, displaying the image in the message display area; or,
if the size of the image is not smaller than the reference size, the image is reduced, and the reduced image is displayed in the message display area.
In some embodiments, the session message includes a plurality of link addresses, and the displaying of the session message and the page content in the message display area corresponding to the session message in the session interface corresponding to the target session includes:
displaying the conversation message and the expansion control in the message display area;
and responding to the triggering operation of the expansion control, and displaying the page content corresponding to the plurality of link addresses.
Fig. 3 is a flowchart illustrating another session message display method according to an exemplary embodiment, referring to fig. 3, the method is applied to a terminal and includes the following steps:
301. and the terminal receives a session message issuing instruction.
In the embodiment of the present disclosure, a session refers to a message group composed of accounts, where the session includes at least two accounts, and a session message issued by any account in the session can be received by other accounts in the session. And one account of the at least two accounts is an account which the terminal currently logs in. For example, a session is composed of an account a, an account B, and an account C, and when the account a issues a session message in the session, the account B and the account C can both receive the session message. Each session has a session identity which characterizes the session in which the user issues session messages, so that different sessions can be distinguished by means of the session identity. For example, the session identifier is a session name, a session ID, or the like.
For example, a session includes two accounts, a correspondence relationship is established between the two accounts and a session identifier to indicate that the two accounts belong to the session indicated by the session identifier, and the session can be regarded as a private chat session formed by the two accounts. Or, one session includes at least three accounts, and a correspondence relationship is established between the at least two accounts and a session identifier to indicate that the at least three accounts belong to the session indicated by the session identifier, and the session can be regarded as a group consisting of the at least three accounts.
Each conversation has a corresponding conversation entrance, and if the triggering operation is performed on the conversation entrance, a conversation interface corresponding to the conversation entrance can be displayed, and the conversation interface is used for displaying the conversation messages sent in the conversation.
In some embodiments, a session is a session in a target application of a terminal, and when a plurality of accounts in the session are logged in based on the target application, if one of the accounts issues a session message in the session, the terminal logged in the account sends the session message to target applications of other terminals through the target application, where the other terminals are terminals logged in other accounts in the session. The other terminal can then display the session message in the target application.
In some embodiments, the target application has a corresponding server for storing each session that has been created and the account number in each session. In addition, the server is also used for providing a service of message forwarding for the target application according to the stored session and the account number in the session. For example, when one account in a session issues a session message, the session message is first sent to the server through the target application, and after determining other accounts in the session corresponding to the session message, the server forwards the session message to the terminal that logs in the other accounts. The account is used for distinguishing different users, and after the user registers information in a server corresponding to the target application, one account can be acquired. The server can then distinguish between different users by account number.
The embodiment of the present disclosure takes a target session as an example, where the target session is any session that has been created.
The session message issuing instruction carries a target session identifier and a session message, the target session identifier represents a target session for issuing the session message, the session message at least comprises a link address, and the link address is a link address corresponding to any page.
In some embodiments, a text message or an image is also included in the conversation message. The text message includes text, symbols, expressions and other contents. The text message is used for describing a link address or describing other contents, and the content of the text message is not limited by the embodiment of the disclosure.
In some embodiments, the terminal that receives the session message issuing instruction may be a terminal that is logged in by any account in the target session, that is, the terminal may refer to a sending terminal of the session message, or may refer to a receiving terminal of the session message. Under the condition that the current terminal is a sending terminal, a user inputs a session message to be issued in a message editing area in a session interface corresponding to a target session, and the terminal responds to issuing operation of the session message and receives a session message issuing instruction; or, when the current terminal is the receiving terminal, the sending terminal sends a session message issuing instruction to the server based on the logged account, and after determining other accounts in the target session corresponding to the target session identifier, the server forwards the session message issuing instruction to terminals logging in other accounts, that is, the server forwards the session message issuing instruction to the receiving terminal, and the receiving terminal receives the session message issuing instruction sent by the server.
In some embodiments, the session message included in the session message issuance instruction may also be a message issued by another account forwarded by a certain account. Messages issued by other accounts may be issued in the current target session or in other sessions.
302. And the terminal acquires the account number in the target session and the access condition corresponding to the link address.
In the embodiment of the disclosure, the terminal needs to determine whether the account in the target session meets the access condition corresponding to the link address, and the link address is analyzed only when the access condition is met, so that the security of the page content corresponding to the link address is ensured. Therefore, the account number and the access condition in the target session need to be acquired first.
The access condition represents a condition which should be met by the account accessing the link address.
In some embodiments, the access condition corresponding to the link address indicates that an account accessing the link address should have an access right, and the account satisfying the access condition is that the account should have the right to access the link address. Further, the access condition includes that all the accounts in the target session are reference accounts, and the reference accounts are accounts having a right to access the link address, that is, preset accounts capable of accessing the link address. For example, if the content corresponding to the link address is internal data of a certain company, and the internal data is data that can be viewed by employees of the company, the account corresponding to the employees of the company is set as the reference account corresponding to the link address, so that the employees of the company can access the page content corresponding to the link address, and other users cannot access the page content.
Or the access condition includes that all the accounts in the target session belong to a reference group, and the accounts belonging to the reference group have the authority of accessing the link address, that is, the reference group is a group to which the preset account capable of accessing the link address belongs. For example, if the content corresponding to the link address is internal data of a certain company, the account corresponding to the employee in the company is added to the reference group, and the reference group only includes the account corresponding to the employee in the company, so as to ensure that the employee of the company can access the page content corresponding to the link address, but other users cannot access the page content.
In the embodiment of the disclosure, whether the account in the target session has the authority to access the link address is determined according to whether the account is a reference account or belongs to a reference group, and the link address is analyzed under the condition that all the accounts in the target session have the authority, so that users without the authority can be prevented from seeing the page content, and the security of the page content is ensured.
In some embodiments, the access condition may be set by a sending terminal issuing the session message, that is, a user inputs a link address in a message editing area, after the sending terminal detects that the user inputs the link address, an account setting interface is displayed, the account setting interface includes a selectable account, the user selects an account with access right, the account selected by the user is a reference account, and the sending terminal sends the reference account to the server while issuing the session message instruction; or each account has a group to which the account belongs, so the account setting interface comprises at least one group as a selectable group, the user selects a reference group with access right, and the sending terminal sends the reference group to the server while issuing the session message instruction.
In some embodiments, the access condition corresponding to the link address is set by a creator of the link address, in this case, the service party to which the link address belongs establishes an association relationship with the target application, so that the terminal can directly obtain the access condition corresponding to the link address from the service party after receiving the session message issuing instruction. For example, if the link address is a link address corresponding to a certain web page, the access condition is stored in a web server corresponding to the web page, the terminal sends the message issuing instruction to the server after receiving the message issuing instruction, and the server sends an access condition acquisition request to the corresponding web server according to the link address included in the message issuing instruction to acquire the access condition corresponding to the link address, and then sends the access condition to the sending terminal and the receiving terminal of the session message.
In some embodiments, an authority level is set for each account, each link address is provided with the lowest level of an accessible account, and the access condition is that the authority level of the account needs to meet the authority level corresponding to the link address, or the access authority of the account to the link address can be set in other manners.
In the embodiment of the present disclosure, after acquiring an account and an access condition in a target session, a terminal determines whether the account in the target session meets the access condition, if yes, analyzes a link address, and executes step 303, and if not, does not analyze the link address, directly displays a session message in a session message display area, and does not execute step 303 to step 305.
It should be noted that, for different link addresses, the access conditions may be the same or different, or the link addresses allowed to be accessed by different account numbers may be the same or different.
303. And the terminal responds that the account number in the target session meets the access condition, and analyzes the link address to obtain the page content corresponding to the link address.
The page content comprises content in a page corresponding to the link address. For example, the page content includes page content of an interactive type, a page title, a page description, page details, and the like.
In some embodiments, in response to that all accounts in the target session have the authority to access the link address, the terminal analyzes the link address to obtain the page content corresponding to the link address, so that the link address is analyzed only when all the accounts have the access authority, users without the authority are prevented from seeing the page content, and the security of the page content is ensured.
In some embodiments, the terminal determines whether it has the right to access the link address according to whether the account in the target session is a reference account or belongs to a reference group. If the account numbers in the target session are all reference account numbers or all belong to reference groups, the account numbers in the target session all have the authority of accessing the link address, namely if the account numbers in the target session are all reference account numbers, the terminal analyzes the link address to obtain page content; or if the account numbers in the target session all belong to the reference group, the terminal analyzes the link address to obtain the page content.
In some embodiments, the terminal, in response to that all accounts in the target session satisfy the access condition, acquires analysis protocol information, where the analysis protocol information includes a plurality of target fields, and the target fields represent fields in which the page content allowed to be analyzed is located in the page content corresponding to the link address; and the terminal extracts the page content corresponding to each target field from the page content corresponding to the link address according to the plurality of target fields. Some page contents corresponding to the link address may be useless for users, if the contents of the users are analyzed, the contents needing to be analyzed are too much, and the analysis efficiency is low.
The target field comprises fields such as an icon (favicon) of a website corresponding to the link address, a website name (website _ name), a page title (title), a page description (description), page details (cable), an image (pic), an operation control (embedded) embedded in the page and the like.
In some embodiments, since the link address is that of the business party, the business party refers to other applications different from the current target application. Therefore, for different service parties, the target fields for analyzing the link address may also be different, and in this request, when the link address is analyzed, the analysis protocol information corresponding to the service party needs to be determined first, and the link address is analyzed according to the determined analysis protocol information.
In the embodiment of the present disclosure, only the page content corresponding to the target field included in the resolution protocol information can be resolved, and if the page corresponding to the link address also includes the page content corresponding to other fields, the page content cannot be resolved.
In some embodiments, the parsing protocol information is editable, i.e., some target fields can be customized and parsed. For example, a table field is added in the resolution protocol information, that is, if a table is included in the page corresponding to the link address, the table can be resolved.
In some embodiments, if all the accounts in the target session satisfy the access condition and the link address has an associated resolution identifier, the terminal resolves the link address to obtain the page content. In order to ensure the security of the web content corresponding to the link address, some link addresses cannot be directly analyzed, so that when the account number in the target session meets the access condition, it is also required to determine whether the link address is an resolvable link address, and the link address is resolved only when the link address is resolvable, thereby further improving the security of the web content.
Wherein the resolving identification representation allows resolving the link address. For example, the resolving identifier is true, the terminal obtains the resolving identifier associated with the link address, and if the true is obtained, the link address can be resolved by representing the link address.
In some embodiments, the link address also has an associated non-resolving identification that characterizes that the link address is not allowed to be resolved. For example, the non-resolution identifier is false, the terminal acquires the non-resolution identifier associated with the link address, and if true is acquired, the link address is characterized to be not resolvable.
In some embodiments, a resolution protocol interface corresponding to the link address is called, and the link address is resolved according to the resolution protocol information. The parsing protocol Interface is an API (Application Programming Interface) or other interfaces.
304. And the terminal displays the session message and an interactive control related to the page content which belongs to the interactive type in a message display area corresponding to the session message in a session interface corresponding to the target session.
In the embodiment of the disclosure, when the page content is displayed, the display modes of the page content are not completely the same according to different types corresponding to the page content. For the page content of the interactive type, the terminal generates an interactive control according to the page content of the interactive type, the interactive control is firstly displayed, the interactive control is used for triggering and displaying the page content related to the interactive control, and the page content of the interactive type is then displayed after a subsequent user triggers the interactive control. And for other types of page contents, the page contents are directly displayed. For example, if the page content includes page content of an interactive type and a page description, an interactive control corresponding to the page description and the page content of the interactive type is displayed.
In some embodiments, a corresponding interactive control is generated according to the interactable type. For example, if the interactive type is an audio type, an audio playing control is generated; and if the interactive type is a video type, generating a video playing control.
In some embodiments, when the generated interaction control is displayed, a failure may be generated, if the interaction control is generated unsuccessfully, a click retry control is displayed at a position where the interaction control is displayed, the user clicks the click retry control, and the terminal regenerates the interaction control in response to the click operation of the user. For example, referring to the schematic diagram of the conversation interface shown in fig. 4, in the conversation message display area, the position of the interaction control should be displayed, and "please click retry" is displayed due to the failure of the generation of the interaction control.
In addition, in some embodiments, the terminal divides the message display area into a first display sub-area and a second display sub-area. And displaying the conversation message in the first display subarea, and displaying the page content corresponding to the link address in the second display subarea. The first display sub-area is located above the second display sub-area, or the first display sub-area is located below the second display sub-area.
In some embodiments, the first display sub-region and the second display sub-region are separated by a separation line to distinguish the conversation messages from the page content.
Further, under the condition that the resolution protocol information also comprises display positions corresponding to a plurality of target fields, in the second display subarea, the page content corresponding to each target field is displayed according to the display position corresponding to each target field. The display position includes the display sequence of the page contents corresponding to the target fields, the size of the area where the page contents corresponding to each target field can be displayed, or the maximum line number displayed in the message display area by the page contents corresponding to each target field. For example, the page name is displayed first, then the page description is displayed, then the page details are displayed, and finally the interactive control is displayed, wherein the page name displays at most one line, the page description displays at most two lines, and the page details display at most five lines.
The mode of separately displaying the conversation message and the page content is convenient for the user to view the original conversation message. And the page content of each target field is displayed according to the display position, so that the display of the page content is clearer and clearer, and the user can quickly find the content to be viewed from the page content conveniently.
In some embodiments, if the size of the page content corresponding to any target field is larger than the size of the display position corresponding to any target field, filtering the page content corresponding to any target field, wherein the size of the filtered page content does not exceed the size of the display position; displaying the filtered page content at the display location. The display mode filters excessive page contents and ensures that the page contents are displayed at the display position corresponding to each target field, thereby avoiding that the display contents of the conversation message are too long and influence the user to view other conversation messages.
For example, for a website name, the corresponding display position is one line, if the length of the website name exceeds one line, only one line is displayed, and the content after one line is filtered; for the page details, if the corresponding display position is five lines, if the page details do not exceed five lines, the page is directly displayed, and the next displayed page content will start to be displayed at the next line.
For example, referring to the schematic diagram of the session interface shown in fig. 5, the display position of the set page details may not exceed four rows, and when the page details in the session interface are displayed, only four rows are displayed due to excessive content, and finally "…" is used for display in the fourth row.
In addition, in some embodiments, in the case where the page content includes an image, since the size of the image in the page content is fixed, the link address is analyzed, an image of a certain size can be obtained, and if the size of the image is too large, it is difficult to display the entire image in the message display area. Therefore, if the size of the image is smaller than the reference size, the image is displayed in the message display area; or if the size of the image is not smaller than the reference size, the image is reduced, the reduced image is displayed in the message display area, and the situation that the image is too large in size and difficult to display a complete image in a conversation interface is avoided by adjusting the size of the image, so that a user can see the complete image is ensured. Wherein the reference size is any size, for example the reference size is the minimum size of the message display area.
In some embodiments, when the image is reduced, the width of the reduced image needs to be smaller than the reference width and the height of the reduced image needs to be smaller than the reference height, considering the reference width and the reference height corresponding to the message display area.
In some embodiments, if the page corresponding to the link address includes a plurality of images, the link address is analyzed to obtain any one of the plurality of images, other images are filtered, and the terminal displays the analyzed image when displaying. For example, the first image of the plurality of images is obtained by analyzing the order in which the images are displayed on the page.
In some embodiments, after the user triggers the image displayed in the session interface, the enlarged image is displayed on the upper layer of the session interface, that is, the display mode of the image obtained through analysis is the same as the display mode of the image in the session message.
See, for example, the schematic diagram of the conversation interface shown in FIG. 6. The session interface comprises a website name, a page title, a page description, page details, and interactive controls corresponding to the image and audio types. The link address in the session message is a link address of a page for introducing games, the name of the website is 'game website', the title of the page is 'XX game', the description of the page is 'game introduction', the details of the page are 'detailed description of game playing', a game screenshot and a game video playing control are provided, and a user can click on the game video playing control to view game videos.
305. And the terminal responds to the triggering operation of the interaction control and displays the page content associated with the interaction control in the message display area.
In the embodiment of the disclosure, the terminal responds to the triggering operation of the interactive control corresponding to different interactive types, and can display the page content corresponding to the interactive types. Wherein the interactive type comprises at least one of:
the first method comprises the following steps: the interactable types include audio types and the page content includes audio content. And the terminal responds to the triggering operation of the interactive control associated with the audio content and plays the audio content while displaying the conversation interface. In some embodiments, the terminal plays the audio content based on the current target application, or jumps to the audio playing application, playing the audio content based on the audio playing application.
And the second method comprises the following steps: the interactable types include video types and the page content includes video content. And the terminal responds to the triggering operation of the interactive control associated with the video content and plays the video content while displaying the session interface. Similarly, the terminal plays the video content based on the current target application, or jumps to the video playing application and plays the video content based on the video playing application.
And the third is that: the interactable type includes a link type, and the page content includes other link addresses different from the link address. And the terminal responds to the trigger operation of the interactive control associated with the other link address, and displays the page corresponding to the other link address while displaying the session interface. That is, the terminal displays the page corresponding to the other link address in response to the user's trigger operation on the other link address, and similarly, the terminal displays the page corresponding to the other link address based on the current target application, or jumps to the other application, and displays the page corresponding to the other link address based on the other application.
The trigger operation comprises click operation, double-click operation, long-press operation, sliding operation and the like.
It should be noted that the embodiment of the present disclosure includes interaction controls corresponding to different interactive types, where the interaction controls are all operation objects of a user, and the user needs to execute an operation to trigger the interaction controls. The triggering operations for the interactive controls corresponding to different interactive types may be the same or different, and correspondingly, the operations that the user needs to execute when triggering the interactive controls may be the same or different. For example, the triggering operation on the interactive control corresponding to the video type and the interactive control corresponding to the audio type is a click operation, and the triggering operation on the interactive control corresponding to the link type is a long-time press operation.
In the embodiment of the disclosure, the interactive control associated with the page content can be directly displayed, so that the user can directly interact with the interactive control without jumping to the page corresponding to the link address, thereby further simplifying the user operation and improving the display efficiency. And moreover, the interactive controls corresponding to different interactive types can be triggered to display the page content associated with the interactive controls, so that the method is suitable for various interactive conditions and has applicability.
In addition, the above embodiment is only described by taking an example that the session message includes one link address, in another embodiment, the session message may include a plurality of link addresses, and the resolution manner of each link address is the same as that shown in the above embodiment. In some embodiments, when displaying page contents corresponding to a plurality of link addresses, the terminal displays a session message and an expansion control in a message display area; responding to the triggering operation of the expansion control, and displaying page contents corresponding to the plurality of link addresses; after the user views the page content, if the expansion control is triggered again, the page content is no longer displayed. When the page content corresponding to the plurality of link addresses is displayed, the page content corresponding to the first link address in the session message can be displayed first, and then the page content corresponding to the next link address is displayed, that is, the page content is displayed according to the sequence of the link addresses in the session message. And the page contents corresponding to the plurality of link addresses can be separated by adopting a separation line for distinguishing or displayed in a card form, and one page content corresponding to one link address is displayed in each card.
See, for example, the schematic diagram of the conversation interface shown in FIG. 7. The session message comprises a link address 1 and a link address 2, the session message is displayed in a first display subarea, an expansion control click expansion page content is displayed in a second display subarea, the terminal responds to the trigger operation of a user on the click expansion page content, page contents corresponding to the link address 1 and the link address 2 are respectively displayed, and the page contents corresponding to the two link addresses are separated by adopting a separation line.
The display mode of the expansion control is set, the page content corresponding to the plurality of link addresses is not directly displayed, the user determines whether to display the page content, and the page content is expanded if the user needs to view the page content, so that the flexibility of displaying the page content is improved.
It should be noted that, in the embodiment of the present disclosure, the link address is only analyzed by the terminal as an example, in another embodiment, the link address may also be analyzed by the server, that is, the sending terminal sends a session message issuing instruction to the server, after receiving the session message issuing instruction, the server obtains an account in the target session and an access condition corresponding to the link address, and in response to that the account in the target session all satisfies the access condition, the link address is analyzed to obtain a page content corresponding to the link address, and the obtained page content and the session message are sent to the terminal logging in the account in the target session, and the terminal displays the session message and the page content in the message display area.
According to the method provided by the embodiment of the disclosure, when the session message issued in the session interface includes the link address, the received session message can be displayed, the link address can be analyzed, the page content corresponding to the analyzed link address is displayed, the information content is increased, the user can directly view the page content without clicking the link, and the user operation is simplified. And when the account numbers in the target session all meet the access conditions, the link address is analyzed, so that the user without permission can be prevented from seeing the page content, and the safety of the page content is ensured.
And moreover, the interactive control associated with the page content can be directly displayed, so that the user can directly interact with the interactive control without jumping to the page corresponding to the link address, the user operation is further simplified, and the display efficiency is improved.
Fig. 8 is a block diagram illustrating a conversation message display apparatus according to an exemplary embodiment. Referring to fig. 8, the apparatus includes:
an instruction receiving unit 801 configured to execute receiving of a session message issuing instruction, where the session message issuing instruction carries a target session identifier and a session message, the target session identifier represents a target session for issuing the session message, and the session message at least includes a link address;
a condition obtaining unit 802, configured to perform obtaining an account in the target session and an access condition corresponding to the link address, where the access condition represents a condition that the account accessing the link address should meet;
the link analysis unit 803 is configured to perform analysis on the link address to obtain page content corresponding to the link address in response to that all the accounts in the target session meet the access condition;
and the display unit 804 is configured to display the conversation message and the page content in a message display area corresponding to the conversation message in the conversation interface corresponding to the target conversation.
According to the device provided by the embodiment of the disclosure, when the session message issued in the session interface includes the link address, the received session message can be displayed, the link address can be analyzed, the page content corresponding to the analyzed link address is displayed, the information content is increased, the user can directly check the page content without clicking the link, and the user operation is simplified. And when the account numbers in the target session all meet the access conditions, the link address is analyzed, so that the user without permission can be prevented from seeing the page content, and the safety of the page content is ensured.
In some embodiments, the page content includes page content belonging to an interactive type, and referring to fig. 9, the display unit 804 includes:
a control display subunit 8041, configured to execute, in the message display area, displaying the conversation message and an interaction control associated with the page content belonging to the interactive type, where the interaction control is used to trigger display of the page content associated with the interaction control;
and a content display subunit 8042 configured to execute, in response to the triggering operation on the interaction control, displaying, in the message display area, page content associated with the interaction control.
In some embodiments, referring to fig. 9, the content display subunit 8042, configured to perform:
the interactive type comprises an audio type, the page content comprises audio content, and the audio content is played while the session interface is displayed in response to the triggering operation of an interactive control associated with the audio content; or,
the interactive type comprises a video type, the page content comprises video content, and the video content is played while a session interface is displayed in response to the triggering operation of an interactive control associated with the video content; or,
the interactive type comprises a link type, the page content comprises other link addresses different from the link addresses, and in response to the triggering operation of the interactive controls associated with the other link addresses, the page corresponding to the other link addresses is displayed while the session interface is displayed.
In some embodiments, the link parsing unit 803 is configured to perform parsing on the link address to obtain the page content in response to the accounts in the target session all having the right to access the link address.
In some embodiments, the link parsing unit 803 is configured to perform:
if the account numbers in the target session are all reference account numbers, analyzing the link address to obtain page content, wherein the reference account numbers are account numbers with the authority of accessing the link address; or,
and if the account numbers in the target session belong to the reference group, analyzing the link address to obtain page content, wherein the account numbers belonging to the reference group have the authority of accessing the link address.
In some embodiments, the link parsing unit 803 is configured to perform, if all the accounts in the target session satisfy the access condition and the link address has an associated parsing identifier, parsing the link address to obtain the page content, where the parsing identifier represents that the link address is allowed to be parsed.
In some embodiments, the link parsing unit 803 is configured to perform:
responding to the fact that all accounts in the target session meet the access conditions, and obtaining analysis protocol information, wherein the analysis protocol information comprises a plurality of target fields, and the target fields represent fields where the page content allowed to be analyzed is located in the page content corresponding to the link addresses;
and according to the plurality of target fields, extracting the page content corresponding to each target field from the page content corresponding to the link address.
In some embodiments, the parsing protocol information further includes display positions corresponding to a plurality of target fields, see the display unit 804 in fig. 9, including:
a message display subunit 8043 configured to execute displaying the conversation message in a first display sub-area in the message display area;
and a content display subunit 8042, configured to execute, in a second display sub-area in the message display area, displaying, according to the display position corresponding to each target field, the page content corresponding to each target field.
In some embodiments, referring to fig. 9, the content display subunit 8042, configured to perform:
if the size of the page content corresponding to any target field is larger than the size of the display position corresponding to any target field, filtering the page content corresponding to any target field, wherein the size of the filtered page content does not exceed the size of the display position;
displaying the filtered page content at the display location.
In some embodiments, the page content comprises an image, the display unit 804 is configured to perform:
if the size of the image is smaller than the reference size, displaying the image in the message display area; or,
if the size of the image is not smaller than the reference size, the image is reduced, and the reduced image is displayed in the message display area.
In some embodiments, the session message includes a plurality of link addresses, and the display unit 804 is configured to perform:
displaying the conversation message and the expansion control in the message display area;
and responding to the triggering operation of the expansion control, and displaying the page content corresponding to the plurality of link addresses.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
In an exemplary embodiment, an electronic device is provided that includes one or more processors, and a memory to store instructions executable by the one or more processors; wherein the one or more processors are configured to perform the conversation message display method in the above-described embodiments.
In one possible implementation, the electronic device is provided as a terminal. Fig. 10 is a block diagram illustrating a structure of a terminal 1000 according to an exemplary embodiment. The terminal 1000 can be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1000 can also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or the like by other names.
Terminal 1000 can include: a processor 1001 and a memory 1002.
Processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1001 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 1001 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. Memory 1002 can also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1002 is used to store at least one program code for execution by the processor 1001 to implement the conversation message display method provided by the method embodiments in the present disclosure.
In some embodiments, terminal 1000 can also optionally include: a peripheral interface 1003 and at least one peripheral. The processor 1001, memory 1002 and peripheral interface 1003 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, display screen 1005, camera assembly 1006, audio circuitry 1007, positioning assembly 1008, and power supply 1009.
Peripheral interface 1003 may be used to connect at least one peripheral associated with I/O (Input/Output) to processor 1001 and memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral interface 1003 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 1004 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1004 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1004 may also include NFC (Near Field Communication) related circuits, which are not limited by this disclosure.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to capture touch signals on or over the surface of the display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. At this point, the display screen 1005 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display screen 1005 can be one, disposed on a front panel of terminal 1000; in other embodiments, display 1005 can be at least two, respectively disposed on different surfaces of terminal 1000 or in a folded design; in other embodiments, display 1005 can be a flexible display disposed on a curved surface or a folded surface of terminal 1000. Even more, the display screen 1005 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1005 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 1006 is used to capture images or video. Optionally, the camera assembly 1006 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1006 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1007 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1001 for processing or inputting the electric signals to the radio frequency circuit 1004 for realizing voice communication. For stereo sound collection or noise reduction purposes, multiple microphones can be provided, each at a different location of terminal 1000. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1007 may also include a headphone jack.
A Location component 1008 is employed to locate a current geographic Location of terminal 1000 for purposes of navigation or LBS (Location Based Service). The Positioning component 1008 may be a Positioning component based on a Global Positioning System (GPS) in the united states, a beidou System in china, a greiner Positioning System in russia, or a galileo Positioning System in the european union.
Power supply 1009 is used to supply power to various components in terminal 1000. The power source 1009 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 1009 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1000 can also include one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyro sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
Acceleration sensor 1011 can detect acceleration magnitudes on three coordinate axes of a coordinate system established with terminal 1000. For example, the acceleration sensor 1011 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1001 may control the display screen 1005 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect a body direction and a rotation angle of the terminal 1000, and the gyro sensor 1012 and the acceleration sensor 1011 may cooperate to acquire a 3D motion of the user on the terminal 1000. The processor 1001 may implement the following functions according to the data collected by the gyro sensor 1012: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization while shooting, game control, and inertial navigation.
Pressure sensor 1013 can be disposed on a side frame of terminal 1000 and/or underneath display screen 1005. When pressure sensor 1013 is disposed on a side frame of terminal 1000, a user's grip signal on terminal 1000 can be detected, and processor 1001 performs left-right hand recognition or shortcut operation according to the grip signal collected by pressure sensor 1013. When the pressure sensor 1013 is disposed at a lower layer of the display screen 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1005. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1014 is used to collect a fingerprint of the user, and the processor 1001 identifies the user according to the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying, and changing settings, etc. Fingerprint sensor 1014 may be disposed on a front, back, or side of terminal 1000. When a physical key or vendor Logo is provided on terminal 1000, fingerprint sensor 1014 can be integrated with the physical key or vendor Logo.
The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is turned down. In another embodiment, the processor 1001 may also dynamically adjust the shooting parameters of the camera assembly 1006 according to the intensity of the ambient light collected by the optical sensor 1015.
Proximity sensor 1016, also known as a distance sensor, is disposed on a front panel of terminal 1000. Proximity sensor 1016 is used to gather the distance between the user and the front face of terminal 1000. In one embodiment, when proximity sensor 1016 detects that the distance between the user and the front surface of terminal 1000 is gradually reduced, processor 1001 controls display screen 1005 to switch from a bright screen state to a dark screen state; when proximity sensor 1016 detects that the distance between the user and the front of terminal 1000 is gradually increased, display screen 1005 is controlled by processor 1001 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in FIG. 10 is not intended to be limiting and that terminal 1000 can include more or fewer components than shown, or some components can be combined, or a different arrangement of components can be employed.
In another possible implementation, the electronic device is provided as a server. Fig. 11 is a block diagram illustrating a server according to an exemplary embodiment, where the server 1100 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1101 and one or more memories 1102, where the memory 1102 stores at least one program code, and the at least one program code is loaded and executed by the processors 1101 to implement the methods provided by the above method embodiments. Certainly, the server may further have a wired or wireless network interface, a keyboard, an input/output interface, and other components to facilitate input and output, and the server may further include other components for implementing functions of the device, which are not described herein again.
In an exemplary embodiment, there is also provided a computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the steps performed by a terminal or a server in the above-described conversation message display method. Alternatively, the computer-readable storage medium may be a ROM (Read Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product including a computer program executed by a processor to implement the above-described conversation message display method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A conversation message display method, characterized in that the conversation message display method comprises:
receiving a session message issuing instruction, wherein the session message issuing instruction carries a target session identifier and a session message, the target session identifier represents a target session for issuing the session message, and the session message at least comprises a link address;
acquiring an account number in the target session and an access condition corresponding to the link address, wherein the access condition represents a condition which is met by the account number accessing the link address;
responding to the fact that all the account numbers in the target session meet the access condition, analyzing the link address to obtain page content corresponding to the link address;
and displaying the session message and the page content in a message display area corresponding to the session message in a session interface corresponding to the target session.
2. The method according to claim 1, wherein the page content includes page content belonging to an interactive type, and the displaying the session message and the page content in a message display area corresponding to the session message in a session interface corresponding to the target session includes:
displaying the session message and an interaction control associated with the page content belonging to the interactive type in the message display area, wherein the interaction control is used for triggering and displaying the page content associated with the interaction control;
and responding to the triggering operation of the interaction control, and displaying the page content associated with the interaction control in the message display area.
3. The conversation message display method according to claim 2, wherein the displaying the page content associated with the interaction control in the message display area in response to the triggering operation of the interaction control comprises:
the interactive type comprises an audio type, the page content comprises audio content, and the audio content is played while the session interface is displayed in response to the triggering operation of an interactive control associated with the audio content; or,
the interactive type comprises a video type, the page content comprises video content, and the video content is played while the session interface is displayed in response to the triggering operation of an interactive control associated with the video content; or,
the interactive type comprises a link type, the page content comprises other link addresses different from the link addresses, and the page corresponding to the other link addresses is displayed while the session interface is displayed in response to the triggering operation of the interactive controls associated with the other link addresses.
4. The method for displaying the session message according to claim 1, wherein the analyzing the link address to obtain the page content corresponding to the link address in response to the fact that all the accounts in the target session satisfy the access condition includes:
and responding to the condition that all the accounts in the target session have the authority of accessing the link address, and analyzing the link address to obtain the page content.
5. The method for displaying session messages according to claim 4, wherein the step of resolving the link address to obtain the page content in response to the fact that all the accounts in the target session have the right to access the link address comprises:
if the account numbers in the target session are all reference account numbers, analyzing the link address to obtain the page content, wherein the reference account numbers are account numbers with the authority of accessing the link address; or,
and if the account numbers in the target session belong to the reference group, analyzing the link address to obtain the page content, wherein the account numbers belonging to the reference group have the authority of accessing the link address.
6. The method for displaying the session message according to claim 1, wherein the analyzing the link address to obtain the page content corresponding to the link address in response to the fact that all the accounts in the target session satisfy the access condition includes:
if the account numbers in the target session all meet the access condition and the link address has an associated analysis identifier, analyzing the link address to obtain the page content, wherein the analysis identifier represents that the link address is allowed to be analyzed.
7. A conversation message display apparatus, characterized in that the conversation message display apparatus comprises:
the device comprises an instruction receiving unit, a processing unit and a processing unit, wherein the instruction receiving unit is configured to execute a session message issuing instruction, the session message issuing instruction carries a target session identifier and a session message, the target session identifier represents a target session for issuing the session message, and the session message at least comprises a link address;
a condition obtaining unit, configured to perform obtaining of an account in the target session and an access condition corresponding to the link address, where the access condition represents a condition that the account accessing the link address should meet;
the link analysis unit is configured to execute analysis on the link address to obtain page content corresponding to the link address in response to the fact that all the accounts in the target session meet the access condition;
and the display unit is configured to display the session message and the page content in a message display area corresponding to the session message in a session interface corresponding to the target session.
8. A terminal, characterized in that the terminal comprises:
one or more processors;
a memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the conversation message display method of any one of claims 1 to 6.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of a terminal, enable the terminal to perform the conversation message display method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the method of displaying conversation messages in accordance with any one of claims 1 to 6.
CN202110112440.6A 2021-01-27 2021-01-27 Session message display method, device, terminal and storage medium Active CN114816600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110112440.6A CN114816600B (en) 2021-01-27 2021-01-27 Session message display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110112440.6A CN114816600B (en) 2021-01-27 2021-01-27 Session message display method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114816600A true CN114816600A (en) 2022-07-29
CN114816600B CN114816600B (en) 2023-12-19

Family

ID=82524848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110112440.6A Active CN114816600B (en) 2021-01-27 2021-01-27 Session message display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114816600B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580590A (en) * 2022-09-30 2023-01-06 北京百度网讯科技有限公司 Message processing method, device, equipment and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098234A (en) * 2010-12-15 2011-06-15 百度在线网络技术(北京)有限公司 Method and device for providing target content based on hyperlink in instant communication message
CN103684977A (en) * 2012-09-12 2014-03-26 阿里巴巴集团控股有限公司 Information transmission method and device and information display method and device
CN105577518A (en) * 2015-12-17 2016-05-11 掌赢信息科技(上海)有限公司 Method and electronic device for displaying website corresponding information in instant messaging
CN105871690A (en) * 2016-03-31 2016-08-17 阿里巴巴集团控股有限公司 Instant messaging realization method and device
CN106789551A (en) * 2016-11-14 2017-05-31 北京小米移动软件有限公司 Conversation message methods of exhibiting and device
US20170187758A1 (en) * 2010-06-15 2017-06-29 Dennis A. Denker Establishing communication links using routing protocols
US20200036667A1 (en) * 2018-07-30 2020-01-30 Slack Technologies, Inc. Method, apparatus, and computer program product for categorizing multiple group-based communication messages
CN111680328A (en) * 2020-07-09 2020-09-18 腾讯科技(深圳)有限公司 Data processing method and device, server and computer readable storage medium
CN112187622A (en) * 2020-09-27 2021-01-05 北京金山云网络技术有限公司 Instant message display method and device and server
CN112231690A (en) * 2020-10-26 2021-01-15 腾讯科技(深圳)有限公司 Authority management method and related device
CN112258241A (en) * 2020-10-30 2021-01-22 北京达佳互联信息技术有限公司 Page display method, device, terminal and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170187758A1 (en) * 2010-06-15 2017-06-29 Dennis A. Denker Establishing communication links using routing protocols
CN102098234A (en) * 2010-12-15 2011-06-15 百度在线网络技术(北京)有限公司 Method and device for providing target content based on hyperlink in instant communication message
CN103684977A (en) * 2012-09-12 2014-03-26 阿里巴巴集团控股有限公司 Information transmission method and device and information display method and device
CN105577518A (en) * 2015-12-17 2016-05-11 掌赢信息科技(上海)有限公司 Method and electronic device for displaying website corresponding information in instant messaging
CN105871690A (en) * 2016-03-31 2016-08-17 阿里巴巴集团控股有限公司 Instant messaging realization method and device
CN106789551A (en) * 2016-11-14 2017-05-31 北京小米移动软件有限公司 Conversation message methods of exhibiting and device
US20200036667A1 (en) * 2018-07-30 2020-01-30 Slack Technologies, Inc. Method, apparatus, and computer program product for categorizing multiple group-based communication messages
CN111680328A (en) * 2020-07-09 2020-09-18 腾讯科技(深圳)有限公司 Data processing method and device, server and computer readable storage medium
CN112187622A (en) * 2020-09-27 2021-01-05 北京金山云网络技术有限公司 Instant message display method and device and server
CN112231690A (en) * 2020-10-26 2021-01-15 腾讯科技(深圳)有限公司 Authority management method and related device
CN112258241A (en) * 2020-10-30 2021-01-22 北京达佳互联信息技术有限公司 Page display method, device, terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580590A (en) * 2022-09-30 2023-01-06 北京百度网讯科技有限公司 Message processing method, device, equipment and medium

Also Published As

Publication number Publication date
CN114816600B (en) 2023-12-19

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110278464B (en) Method and device for displaying list
CN108874496B (en) Application management method, device, terminal, server and storage medium
CN113098755B (en) Group chat creating method, device, terminal and storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN112751679B (en) Instant messaging message processing method, terminal and server
CN112764608B (en) Message processing method, device, equipment and storage medium
CN113204298A (en) Method and device for displaying release progress, electronic equipment and storage medium
CN113157172A (en) Barrage information display method, transmission method, device, terminal and storage medium
CN112764607A (en) Timing message processing method, device, terminal and storage medium
CN112163406A (en) Interactive message display method and device, computer equipment and storage medium
CN110032417A (en) Session entry mask method, apparatus, equipment and storage medium
CN111770354B (en) Information interaction method, device, terminal and storage medium
CN111083039A (en) Message unread mark processing method and device, storage medium and terminal
CN110851823A (en) Data access method, device, terminal and storage medium
CN113485596A (en) Virtual model processing method and device, electronic equipment and storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN113190302A (en) Information display method and device, electronic equipment and storage medium
CN114816600B (en) Session message display method, device, terminal and storage medium
CN111291287A (en) Multimedia file uploading method and device and computer equipment
CN110825465A (en) Log data processing method and device, electronic equipment and storage medium
CN114143280B (en) Session display method and device, electronic equipment and storage medium
CN113051494A (en) Information display method and device, electronic equipment and storage medium
CN113204724A (en) Method and device for creating interactive information, electronic equipment and storage medium
CN115134316A (en) Topic display method, device, terminal and storage medium

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