CN112559890B - Display method, server, electronic device and storage medium - Google Patents

Display method, server, electronic device and storage medium Download PDF

Info

Publication number
CN112559890B
CN112559890B CN202011572312.1A CN202011572312A CN112559890B CN 112559890 B CN112559890 B CN 112559890B CN 202011572312 A CN202011572312 A CN 202011572312A CN 112559890 B CN112559890 B CN 112559890B
Authority
CN
China
Prior art keywords
comments
comment
user
post
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011572312.1A
Other languages
Chinese (zh)
Other versions
CN112559890A (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.)
Shenzhen Futu Network Technology Co Ltd
Original Assignee
Shenzhen Futu Network 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 Shenzhen Futu Network Technology Co Ltd filed Critical Shenzhen Futu Network Technology Co Ltd
Priority to CN202011572312.1A priority Critical patent/CN112559890B/en
Publication of CN112559890A publication Critical patent/CN112559890A/en
Application granted granted Critical
Publication of CN112559890B publication Critical patent/CN112559890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Landscapes

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

Abstract

The application discloses a display method, a server, an electronic device and a storage medium, wherein the method comprises the following steps: obtaining N comments, wherein N is an integer greater than 0; and if the first comment containing the sensitive information exists in the N comments, displaying other comments except the first comment in the N comments on a display interface of a first user, and displaying the N comments on a display interface of a second user, wherein the first comment is a comment posted by the second user. By implementing the embodiment of the application, personalized display can be provided for the user, so that the user experience is improved.

Description

Display method, server, electronic device and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a display method, a server, an electronic device, and a storage medium.
Background
In recent years, with the rapid development of information technology, applications that improve convenience and entertainment of life have been increasingly used. For example, people may share personal lives on applications, comment on applications, and so forth. In general, comments can be the evaluation of a certain news event or a certain product and commodity by a public, bear the attitudes, problems, suggestions and the like of the public to the certain news event or the certain product and commodity by the consumer, and have great reference value to media and product evaluation and improvement optimization. With the rapid development of information technology, users comment and interact with media news and commodity networks more and more frequently, and the number of comments is also more and more increased. However, these comments are often presented in the form of text, images, and expressions, and when they are presented, they are often presented indiscriminately for each user. The personalized display cannot be provided for the user, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a display method, a server, electronic equipment and a storage medium, which can provide personalized display for a user, so that user experience is improved.
In a first aspect, an embodiment of the present application provides a display method, including:
obtaining N comments, wherein N is an integer greater than 0;
and if the first comment containing the sensitive information exists in the N comments, displaying other comments except the first comment in the N comments on a display interface of a first user, and displaying the N comments on a display interface of a second user, wherein the first comment is a comment posted by the second user.
In a second aspect, embodiments of the present application provide a server, the server including an acquisition module and a presentation module,
the acquisition module is used for acquiring N comments, wherein N is an integer greater than 0;
the display module is used for displaying other comments except the first comment in the N comments on a display interface of a first user and displaying the N comments on a display interface of a second user if the first comment containing the sensitive information exists in the N comments, wherein the first comment is a comment posted by the second user.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are generated for execution by the processor to perform the instructions of the steps of any of the methods of the first aspect,
in a fourth aspect, embodiments of the present application provide a computer readable storage medium for storing a computer program for execution by the processor to implement the method of any one of the first aspects.
According to the technical scheme, when the comments containing the sensitive information exist in the comments, the comments are displayed on the corresponding display interfaces for the users who publish the comments of the sensitive information, and the comments except the comments containing the sensitive information are displayed on the corresponding display interfaces for other users, so that personalized display is provided for the users, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
fig. 1 is a schematic diagram of a display system according to an embodiment of the present application;
fig. 2 is a schematic diagram of a display method according to an embodiment of the present application;
fig. 3 is a schematic diagram showing comments on a display interface according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another display method according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a server according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device in a hardware running environment according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The following will describe in detail.
The terms first and second in the description and claims of the present application and in the above-described figures are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a display system provided in an embodiment of the present application. As shown in fig. 1, the display system 100 includes a server 110, user devices 120 (only one shown in fig. 1), a comment database 130, and a preset entity library 140. The server 110 may communicate with the user device 120. The server 110 may obtain, process comments, etc., without limitation.
The user device 120 may be a mobile phone, a tablet computer, a notebook computer, a palm computer, an MID, a desktop computer, or other devices, which are not limited herein.
It should be noted that, in the present application, the number of the user devices 120 may be plural, which is not limited herein.
Wherein the comment database 130 includes, without limitation, one or more comments under each of the one or more posts.
The preset entity library 140 includes one or more preset entities, which are not limited herein.
The comment database 130 or the preset entity library 140 may be a blockchain database or a database, which is not limited herein.
It will be appreciated that a blockchain is a chained data structure that links blocks of data in a time-sequential manner and that cryptographically guarantees a non-tamperable and non-counterfeitable distributed ledger. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Further, blockchain characteristics include open, consensus, decentralised, distrusted, transparent, anonymous, non-tamperable, traceable, etc. Wherein open and transparent means that anyone can participate in the blockchain network, each device can act as a node, and each node allows a complete database copy to be obtained. Nodes collectively maintain the entire blockchain through competing computations based on a set of consensus mechanisms. Any node fails and the rest of the nodes still work normally. The decentralization and the desynchronization are arbitrarily that the blockchain is formed by a plurality of nodes together into an end-to-end network, and centralized equipment and management mechanisms do not exist. The data exchange among the nodes is verified by the digital signature technology, mutual trust is not needed, and other nodes cannot be deceived as long as the data exchange is performed according to the established rules of the system. Wherein, transparent and both sides anonymously mean that the operation rule of the blockchain is public, and all data information is also public, so that each transaction is visible to all nodes. Since the nodes are de-trusted, there is no need to disclose identities between the nodes, and each participating node is anonymous. Where non-tamperable and traceable means that each and even multiple nodes modifications to the database cannot affect the databases of other nodes, this is almost impossible unless more than 51% of the nodes in the entire network can be controlled to be modified simultaneously. In the blockchain, each transaction is connected with two adjacent blocks in series by a cryptography method, so that any transaction record can be traced back.
Specifically, the blockchain can utilize a blockchain data structure to verify and store data, a distributed node consensus algorithm to generate and update data, a cryptography mode to ensure the safety of data transmission and access, and a brand new distributed infrastructure and calculation mode to program and operate the data by utilizing an intelligent contract consisting of automatic script codes. Therefore, the characteristic that the blockchain technology is not tamperable fundamentally changes the centralized credit creation mode, and the unalterability and the safety of the data are effectively improved. The intelligent contract enables all clauses to be written into a program, and the clauses can be automatically executed on the blockchain, so that when conditions for triggering the intelligent contract exist, the blockchain can be forcedly executed according to the content in the intelligent contract and is not blocked by any external force, the effectiveness and the execution force of the contract are ensured, the cost can be greatly reduced, and the efficiency can be improved. All nodes on the blockchain have the same ledger, so that the ledger recording process can be ensured to be overtly transparent. The blockchain technology can realize the direct interaction with point-to-point, public and transparent, so that the information interaction mode of high-efficiency, large-scale and centerless agents becomes a reality.
Referring to fig. 2, fig. 2 is a schematic diagram of a display method according to an embodiment of the present application. As shown in fig. 2, the method includes:
201. the server obtains N comments, wherein N is an integer greater than 0.
202. If the first comment containing the sensitive information exists in the N comments, the server displays other comments except the first comment in the N comments on a display interface of a first user, and displays the N comments on a display interface of a second user, wherein the first comment is a comment posted by the second user.
The first comment may be one or more comments, which is not limited herein.
The display interface of the first user may be a display screen of a user device of the first user, and the display interface of the second user may be a display screen of a user device of the second user.
It should be noted that the display screen includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like, without limitation.
Wherein the first comment corresponds to a User Identification (UID) of the second user.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating comments on a display interface according to an embodiment of the present application. As shown in fig. 3, 245 comments are presented on the first user's display interface and 246 comments are presented on the second user's display interface. That is, one comment containing sensitive information, which is published by the second user, is displayed more on the display interface of the second user than on the display interface of the first user.
According to the technical scheme, when the comments containing the sensitive information exist in the comments, the comments are displayed on the corresponding display interfaces for the users who publish the comments of the sensitive information, and the comments except the comments containing the sensitive information are displayed on the corresponding display interfaces for other users, so that personalized display is provided for the users, and user experience is improved.
Referring to fig. 4, fig. 4 is a schematic diagram of yet another display method according to an embodiment of the present application. As shown in fig. 4, the method includes:
401-402, which are identical to 201-202 in fig. 2, are not described in detail herein.
403. And the server calls an interface to acquire all newly added comments of the first post in a preset time period from a comment database by taking the first moment as a reference to obtain M comments, wherein the M comments are comments of K users on the first post, and M and K are integers larger than 0.
The N comments are all comments under the first post before a first moment, and the first moment is the moment when the N comments are acquired.
The interface may be, for example, an application programming interface (application programming interface, API) or a dynamic link library (dynamic link library, DLL), without limitation.
The comment database comprises one or more comments under each of one or more posts, and the first post is any one of the one or more posts.
The preset time period may be set by an administrator or configured in a configuration file of the server, which is not limited herein.
In addition, in the application, the server may further call the interface to obtain all the comments newly added in the first post from the comment database every preset time period. It may be appreciated that the server may also invoke the interface to obtain all comments newly added by one or more posts from the comment database every predetermined time period. If the server calls an interface to acquire all comments newly added by one post from a comment database every preset time period; or, the server calls the interface to acquire all comments newly added to all posts from the comment database every preset time period, which is not limited herein.
The server may, for example, call the interface to obtain all comments newly added by the first post from the comment database according to the timer. Specifically, the server checks every few seconds all comments newly added by the first post of the comment database.
For example, the server may invoke an interface to obtain all comments newly added by one or more posts from the comment database, e.g., according to a timer. Specifically, the server checks every few seconds for all comments newly added by one or more posts of the comment database.
Wherein M may be greater than or equal to K, without limitation. If M is greater than K, each of the K users may correspond to one or more of the M comments, without limitation. If M is equal to K, M comments are in one-to-one correspondence with K users, namely each user in the K users publishes one comment in the M comments.
In this application, the K users may include a first user and a second user.
404. And if the second comment containing the sensitive information exists in the M comments, the server determines the user corresponding to the second comment from the K users.
The second comment may be one or more comments, which are not limited herein.
Wherein the second comment corresponds to a User Identification (UID) of a user to which the second comment corresponds.
Optionally, the server determines a user corresponding to the second comment from the K users, including: the server acquires K user identifications corresponding to the K users one by one; and the server determines the user identification of the user corresponding to the second comment from the K user identifications according to the second comment so as to obtain the user corresponding to the second comment.
405. The server displays other comments except the first comment and the M comments in the N comments on a display interface of the user corresponding to the second comment; or displaying the N comments and the M comments on a display interface of the user corresponding to the second comment.
The display interface of the user corresponding to the second comment may be a display screen of a user device of the user corresponding to the second comment, which is not limited herein.
The server displays other comments except the first comment and the M comments in the N comments on a display interface of the user corresponding to the second comment, and the method comprises the following steps:
if the user corresponding to the second comment is different from the first user and the user corresponding to the second comment is different from the second user, the server displays other comments except the first comment and the M comments in the N comments on a display interface of the user corresponding to the second comment.
The server displays the N comments and the M comments on a display interface of the user corresponding to the second comment, and the method comprises the following steps:
and if the user corresponding to the second comment and the second user are the same user, the server displays the N comments and the M comments on a display interface of the second user.
According to the technical scheme, when the comments containing the sensitive information exist in the comments, the comments are displayed on the corresponding display interfaces for the users who publish the comments of the sensitive information, and the comments except the comments containing the sensitive information are displayed on the corresponding display interfaces for other users, so that personalized display is provided for the users, and user experience is improved. Meanwhile, all newly added comments of a certain post in the comment database in a preset time period are obtained to detect whether comments containing sensitive information exist in all newly added comments, so that the problem of overload caused by whether comments containing sensitive information exist in all comments of a large number of posts detected in real time in the existing scheme is avoided, and the efficiency of detecting comments containing sensitive information is improved.
Optionally, the first user is one user of the K users except for the user corresponding to the second comment, the display interface of the first user further includes a first page table, at least one page number in the first page table is determined according to the number of comments that can be displayed at most by the display interface of the first user and all the comments of the first post in the comment database, and the method further includes:
if a page number selection operation for a first page number in the first page table is detected on the display interface of the first user, the server acquires a current page number on the display interface of the first user, determines whether the first page number is larger than a second page number, wherein the second page number is the largest page number in the second page table, and at least one page number in the second page table is determined according to the number of comments which can be displayed most on the display interface of the first user, and the number of other comments except the first comment in the N comments and the number of other comments except the second comment in the M comments;
if the first page number is larger than the second page number, the server displays comments corresponding to the second page number on a display interface of the first user;
If the first page number is smaller than or equal to the second page number, the server acquires the identification of the first comment in the current page number and the user behavior of the first user; and displaying the corresponding comment on a display interface of the first user according to the identification of the first comment in the current page number and the user behavior of the first user.
The page number selecting operation may be, for example, a single click, a double click, a touch, or the like, which is not limited herein.
Wherein the user action of the first user may include page forward or page backward.
Illustratively, the first page code table may include 1, 2, and 3; the second page code table may include 1 and 2. I.e. the largest page number in the first page table is 3 and the largest page number in the second page table is 2. Assuming that the first page number is 3, that is, the first page number is greater than the largest page number in the second code table, the server may display the comment corresponding to the largest page number in the second code table on the display interface of the first user, that is, the server may return the comment of the last page. Assume that the first page number is 2, i.e., the first page number is equal to the largest page number in the second code table. At this time, if the number of the comments that can be displayed on the display interface of the first user at most is 10, and the number of the comments other than the first comment in the n comments and the number of the comments other than the second comment in the M comments are 18, the identification of the first comment in the current page number is the same as the identification of the first comment in the second page table 2, and when the user behavior of the first user is page forward, the comment displayed on the display interface of the first user is the comment corresponding to the 1 in the second page table. That is, the server acquires 10 comments onward based on the identification of the first comment in the current page number. When the identification of the first comment in the current page number is the same as the identification of the first comment in the second page code table 1 and the user behavior of the first user is page backward, the comment displayed on the display interface of the first user is the comment corresponding to the comment in the second page code table 2. That is, the server acquires 10 comments later based on the identification of the first comment in the current page number.
According to the technical scheme, the interface after page skipping is normally displayed when at least one page number in the first page table and at least one page number in the second page table included in the display interface of the first user are different, and the problem of error display or repeated display is avoided.
Optionally, the method further comprises:
the server calls the interface, and all comments published by the first user are obtained from the comment database to obtain J comments, wherein the J comments are comments of the first user on at least one second post;
the server determines a third post in the at least one second post according to the J comments, wherein the third post is determined according to the number of entities contained in the J comments;
the server pushes fifth posts in the at least one fourth posts to the first user according to the relevance between the third posts and the at least one fourth posts, wherein the at least one fourth posts are posts which are not reviewed by the first user.
The interface and comment database may refer to the above related descriptions, which are not repeated herein.
Wherein, at least one second post may include the first post, or not include the first post, and in this application, no limitation is made. It is to be appreciated that each of the at least one second post may correspond to one or more of the J comments, without limitation.
According to the technical scheme, the posts are determined based on the number of entities contained in each comment in all comments posted by the user, and the posts corresponding to the user recommendation are recommended according to the correlation between the posts and other posts not commented by the user, so that personalized recommendation is realized, and user experience is improved.
Optionally, the server determines, according to the J comments, a third post of the at least one second post, including:
if a third comment containing sensitive information exists in the J comments, the server detects whether entities exist in other comments except the third comment in the J comments according to a preset entity library when the other comments except the third comment in the J comments are texts;
if yes, the server determines the number of entities contained in each comment in the other comments except the third comment in the J comments;
the server determines the number of entities contained in the comment of each post according to the number of entities contained in each comment;
the server determines the third posts according to the number of entities contained in the comments of each post in the at least one post, wherein the number of entities contained in the comments of the third posts is higher than the number of entities contained in the comments of other posts except the third posts in the at least one second post.
The third comment may be one or more comments, which is not limited herein.
The preset entity library includes one or more preset entities, which are not limited herein.
Illustratively, the preset entity library may include a rate of return for hold, long-term hold, and the like.
According to a preset entity library, detecting whether entities exist in other comments except the third comment in the J comments includes: acquiring one or more preset entities from the preset entity library; and detecting whether the entity identical to one or more preset entities exists in other comments except the third comment in the J comments.
According to the technical scheme, the posts corresponding to the comments with the largest number of entities are determined based on the number of the entities contained in each comment in all comments published by the user, so that the user requirements are determined better, and the posts meeting the requirements can be recommended to the user.
Optionally, the server pushes a fifth post in the at least one fourth post to the first user according to the relevance of the third post to the at least one fourth post, including:
the server obtains the entity number contained in the comment of each fourth post in the at least one fourth post;
The server determines the comment with the maximum entity number contained in the comment of each fourth post according to the entity number contained in the comment of each fourth post so as to obtain a fourth comment corresponding to each fourth post;
the server determines a fifth post with highest similarity according to the similarity between the entity contained in the fourth comment corresponding to each fourth post and the entity contained in the fifth comment, wherein the fifth comment is the comment with the largest entity number in the comments posted by the first user in the third post;
the server pushes the fifth post to the first user.
The server obtains the number of entities included in the comment of each fourth post in the at least one fourth post, and still determines the number of entities included in the comment of each fourth post in the at least one fourth post according to a preset entity library, which is specifically referred to the process of detecting whether there are entities in comments other than the third comment in the J comments, and will not be described herein.
The server may determine, for example, a similarity between an entity included in the fourth comment corresponding to each fourth post and an entity included in the fifth comment according to the euclidean distance.
According to the technical scheme, the posts with the highest similarity are recommended to the user based on the similarity between the entities, so that the posts meeting the requirements of the user are recommended better.
Referring to fig. 5, fig. 5 is a schematic diagram of a server according to an embodiment of the present application. As shown in fig. 5, the server 500 includes an acquisition module 501 and a presentation module 502, wherein,
the obtaining module 501 is configured to obtain N comments, where N is an integer greater than 0;
the display module 502 is configured to display, if a first comment including sensitive information exists in the N comments, other comments except the first comment in the N comments on a display interface of a first user, and display the N comments on a display interface of a second user, where the first comment is a comment posted by the second user.
According to the technical scheme, when the comments containing the sensitive information exist in the comments, the comments are displayed on the corresponding display interfaces for the users who publish the comments of the sensitive information, and the comments except the comments containing the sensitive information are displayed on the corresponding display interfaces for other users, so that personalized display is provided for the users, and user experience is improved.
Optionally, the N comments are all comments under the first post before a first time, where the first time is when the N comments are obtained, and the server 500 further includes a determining module 503,
the obtaining module 501 is further configured to, based on the first time, invoke an interface to obtain, from a comment database, all comments newly added to the first post in a preset time period, so as to obtain M comments, where the M comments are comments of K users on the first post, and both M and K are integers greater than 0;
the determining module 503 is configured to determine, if a second comment including sensitive information exists in the M comments, a user corresponding to the second comment from the K users;
the display module 502 is further configured to display, on a display interface of a user corresponding to the second comment, other comments except the first comment and the M comments in the N comments; or displaying the N comments and the M comments on a display interface of the user corresponding to the second comment.
According to the technical scheme, all the comments newly added to a certain post in the comment database in the preset time period are acquired to detect whether the comments containing the sensitive information exist in all the newly added comments, so that the problem of overload caused by whether the comments containing the sensitive information exist in all the comments of a large number of posts detected in real time in the existing scheme is avoided, and the efficiency of detecting the comments containing the sensitive information is improved.
Optionally, the first user is one user of the K users except the user corresponding to the second comment, the display interface of the first user further includes a first page table, at least one page number in the first page table is determined according to the number of comments that can be displayed at most by the display interface of the first user and all the comments of the first post in the comment database,
if a page selection operation for a first page in the first page table is detected on the display interface of the first user, the obtaining module 501 is further configured to obtain a current page on the display interface of the first user, and the determining module 503 is further configured to determine whether the first page is greater than a second page, where the second page is a largest page in the second page table, and at least one page in the second page table is determined according to the number of comments that can be displayed at most on the display interface of the first user, and the number of comments other than the first comment in the N comments and the number of comments other than the second comment in the M comments;
if the first page is greater than the second page, the display module 502 is further configured to display a comment corresponding to the second page on the display interface of the first user;
If the first page is smaller than or equal to the second page, the obtaining module 501 is further configured to obtain an identifier of a first comment in the current page and a user behavior of the first user; and the displaying module 502 is configured to display, according to the identifier of the first comment in the current page number and the user behavior of the first user, a corresponding comment on the display interface of the first user.
According to the technical scheme, the interface after page skipping is normally displayed when at least one page number in the first page table and at least one page number in the second page table included in the display interface of the first user are different, and the problem of error display or repeated display is avoided.
Optionally, the server 500 further includes a pushing module 504, where the obtaining module 501 is further configured to invoke the interface to obtain, from the comment database, all comments posted by the first user, so as to obtain J comments, where the J comments are comments of the first user on at least one second post;
the determining module 503 is further configured to determine, according to the J comments, a third post of the at least one second post, where the third post is determined according to the number of entities included in the J comments;
The pushing module 504 is configured to push, to the first user, a fifth post of the at least one fourth post according to a relevance between the third post and the at least one fourth post, where the at least one fourth post is a post that is not reviewed by the first user.
According to the technical scheme, the posts are determined based on the number of entities contained in each comment in all comments posted by the user, and the posts corresponding to the user recommendation are recommended according to the correlation between the posts and other posts not commented by the user, so that personalized recommendation is realized, and user experience is improved.
Optionally, according to the J comments, a third post aspect of the at least one second post is determined, and the determining module 503 is specifically configured to
If a third comment containing sensitive information exists in the J comments, detecting whether entities exist in other comments except the third comment in the J comments according to a preset entity library when the other comments except the third comment in the J comments are texts;
if yes, determining the number of entities contained in each comment in the other comments except the third comment in the J comments;
Determining the number of entities contained in the comment of each post in the at least one post according to the number of entities contained in each comment;
and determining the third posts according to the number of entities contained in the comments of each post in the at least one post, wherein the number of entities contained in the comments of the third posts is higher than the number of entities contained in the comments of other posts except the third posts in the at least one second post.
According to the technical scheme, the posts corresponding to the comments with the largest number of entities are determined based on the number of the entities contained in each comment in all comments published by the user, so that the user requirements are determined better, and the posts meeting the requirements can be recommended to the user.
Optionally, pushing a fifth post aspect of the at least one fourth post to the first user based on the relevance of the third post to the at least one fourth post,
the obtaining module 501 is configured to obtain the number of entities included in the comment of each fourth post in the at least one fourth post;
the determining module 503 is configured to determine, according to the number of entities included in the comment of each fourth post, a comment with a maximum number of entities included in the comment of each fourth post, so as to obtain a fourth comment corresponding to each fourth post;
The determining module 503 is configured to determine, according to a similarity between an entity included in a fourth comment corresponding to each fourth post and an entity included in a fifth comment, a fifth post with a highest similarity, where the fifth comment is a comment with a largest number of entities in comments posted by the first user in the third post;
the pushing module 504 is configured to push the fifth post to the first user.
According to the technical scheme, the posts with the highest similarity are recommended to the user based on the similarity between the entities, so that the posts meeting the requirements of the user are recommended better.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device of a hardware running environment according to an embodiment of the present application.
An embodiment of the present application provides an electronic device including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor to perform instructions including steps in any of the display methods. As shown in fig. 6, an electronic device of a hardware running environment according to an embodiment of the present application may include:
A processor 601, such as a CPU.
The memory 602 may alternatively be a high-speed RAM memory or a stable memory, such as a disk memory.
A communication interface 603 for enabling a connection communication between the processor 601 and the memory 602.
It will be appreciated by those skilled in the art that the configuration of the electronic device shown in fig. 6 is not limiting and may include more or fewer components than shown, or certain components may be combined, or a different arrangement of components.
As shown in fig. 6, memory 602 may include an operating system, a network communication module, and one or more programs. An operating system is a program that manages and controls server hardware and software resources, supporting the execution of one or more programs. The network communication module is used to enable communication between components within the memory 602 and with other hardware and software within the electronic device.
In the electronic device shown in fig. 6, the processor 601 is configured to execute one or more programs in the memory 602, and implement the following steps:
obtaining N comments, wherein N is an integer greater than 0;
and if the first comment containing the sensitive information exists in the N comments, displaying other comments except the first comment in the N comments on a display interface of a first user, and displaying the N comments on a display interface of a second user, wherein the first comment is a comment posted by the second user.
The specific implementation of the electronic device according to the present application may refer to each embodiment of the above display method, which is not described herein.
The present application also provides a computer readable storage medium for storing a computer program, the stored computer program being executed by the processor to implement the steps of:
obtaining N comments, wherein N is an integer greater than 0;
and if the first comment containing the sensitive information exists in the N comments, displaying other comments except the first comment in the N comments on a display interface of a first user, and displaying the N comments on a display interface of a second user, wherein the first comment is a comment posted by the second user.
The specific implementation of the computer readable storage medium according to the present application may refer to the embodiments of the display method described above, and will not be described herein.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may take other order or occur simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (9)

1. A display method, comprising:
acquiring N comments, wherein N is an integer greater than 0, the N comments are all comments under a first post before a first moment, and the first moment is the moment when the N comments are acquired;
if the first comment containing the sensitive information exists in the N comments, displaying other comments except the first comment in the N comments on a display interface of a first user, and displaying the N comments on a display interface of a second user, wherein the first comment is a comment posted by the second user;
the display interface of the first user further comprises a first page table, and at least one page number in the first page table is determined according to the number of comments which can be displayed at most by the display interface of the first user and the number of all comments of the first post in the comment database;
The method further comprises the steps of: if a page number selection operation for a first page number in the first page table is detected on the display interface of the first user, acquiring a current page number on the display interface of the first user, and determining whether the first page number is larger than a second page number, wherein the second page number is the largest page number in the second page table, and at least one page number in the second page table is determined according to the number of comments which can be displayed by the display interface of the first user at most and the number of other comments except the first comment in the N comments;
if the first page number is larger than the second page number, displaying comments corresponding to the second page number on a display interface of the first user;
if the first page number is smaller than or equal to the second page number, acquiring the identification of a first comment in the current page number and the user behavior of the first user; and displaying the corresponding comment on a display interface of the first user according to the identification of the first comment in the current page number and the user behavior of the first user.
2. The method according to claim 1, wherein the method further comprises:
Taking the first moment as a reference, calling an interface to obtain all newly added comments of the first post in a preset time period from a comment database to obtain M comments, wherein the M comments are comments of K users on the first post, and M and K are integers larger than 0;
if a second comment containing sensitive information exists in the M comments, determining a user corresponding to the second comment from the K users;
displaying other comments except the first comment and the M comments in the N comments on a display interface of the user corresponding to the second comment; or displaying the N comments and the M comments on a display interface of the user corresponding to the second comment.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
calling an interface, and acquiring all comments posted by the first user from the comment database to obtain J comments, wherein the J comments are comments of the first user on at least one second post;
determining a third post in the at least one second post according to the J comments, wherein the third post is determined according to the number of entities contained in the J comments;
And pushing a fifth post in the at least one fourth post to the first user according to the relevance of the third post and the at least one fourth post, wherein the at least one fourth post is a post which is not reviewed by the first user.
4. The method of claim 3, wherein the determining a third post of the at least one second post from the J comments comprises:
if a third comment containing sensitive information exists in the J comments, detecting whether entities exist in other comments except the third comment in the J comments according to a preset entity library when the other comments except the third comment in the J comments are texts;
if yes, determining the number of entities contained in each comment in the other comments except the third comment in the J comments;
determining the number of entities contained in the comment of each post in the at least one post according to the number of entities contained in each comment;
and determining the third posts according to the number of entities contained in the comments of each post in the at least one post, wherein the number of entities contained in the comments of the third posts is higher than the number of entities contained in the comments of other posts except the third posts in the at least one second post.
5. The method of claim 3, wherein pushing a fifth post of the at least one fourth post to the first user based on the relevance of the third post to the at least one fourth post comprises:
acquiring the number of entities contained in the comments of each fourth post in the at least one fourth post;
determining the comment with the maximum entity number contained in the comment of each fourth post according to the entity number contained in the comment of each fourth post, so as to obtain a fourth comment corresponding to each fourth post;
determining a fifth post with highest similarity according to the similarity between an entity contained in a fourth comment corresponding to each fourth post and an entity contained in a fifth comment, wherein the fifth comment is the comment with the largest entity number in comments posted by the first user in the third post;
pushing the fifth post to the first user.
6. A server is characterized in that the server comprises an acquisition module and a display module,
the obtaining module is used for obtaining N comments, N is an integer larger than 0, the N comments are all comments under a first post before a first moment, and the first moment is the moment of obtaining the N comments;
The display module is used for displaying other comments except the first comment in the N comments on a display interface of a first user and displaying the N comments on a display interface of a second user if the first comment containing sensitive information exists in the N comments, wherein the first comment is a comment posted by the second user;
the display interface of the first user further comprises a first page table, and at least one page number in the first page table is determined according to the number of comments which can be displayed at most by the display interface of the first user and the number of all comments of the first post in the comment database;
if a page selection operation for a first page in the first page table is detected on the display interface of the first user, the obtaining module is further configured to obtain a current page on the display interface of the first user, and the determining module is further configured to determine whether the first page is greater than a second page, where the second page is a largest page in the second page table, and at least one page in the second page table is determined according to the number of comments that can be displayed at most on the display interface of the first user and the number of other comments except the first comment in the N comments;
If the first page number is larger than the second page number, the display module is further configured to display a comment corresponding to the second page number on a display interface of the first user;
if the first page is smaller than or equal to the second page, the obtaining module is further configured to obtain an identifier of a first comment in the current page and a user behavior of the first user; and the display module is used for displaying the corresponding comment on the display interface of the first user according to the identification of the first comment in the current page number and the user behavior of the first user.
7. The server of claim 6, further comprising a determination module,
the obtaining module is further configured to call an interface to obtain all comments newly added to the first post in a preset time period from a comment database based on the first time, so as to obtain M comments, where the M comments are comments of K users on the first post, and both M and K are integers greater than 0;
the determining module is used for determining a user corresponding to the second comment from the K users if the second comment containing the sensitive information exists in the M comments;
The display module is further configured to display, on a display interface of a user corresponding to the second comment, other comments except the first comment and the M comments in the N comments; or displaying the N comments and the M comments on a display interface of the user corresponding to the second comment.
8. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are generated for execution by the processor to perform the instructions of the steps of any of the methods of claims 1-5.
9. A computer readable storage medium for storing a computer program for execution by a processor to implement the method of any one of claims 1-5.
CN202011572312.1A 2020-12-25 2020-12-25 Display method, server, electronic device and storage medium Active CN112559890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011572312.1A CN112559890B (en) 2020-12-25 2020-12-25 Display method, server, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011572312.1A CN112559890B (en) 2020-12-25 2020-12-25 Display method, server, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112559890A CN112559890A (en) 2021-03-26
CN112559890B true CN112559890B (en) 2024-02-09

Family

ID=75033494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011572312.1A Active CN112559890B (en) 2020-12-25 2020-12-25 Display method, server, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112559890B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547383A (en) * 2010-12-31 2012-07-04 福建星网视易信息***有限公司 Pinyin retrieval display method and system in Video On Demand (VOD) system
CN106055612A (en) * 2016-05-25 2016-10-26 青岛海信传媒网络技术有限公司 Data paging display method and terminal equipment
CN107767279A (en) * 2017-10-12 2018-03-06 燕山大学 A kind of average weighted personalized friend recommendation method based on LDA
CN108090206A (en) * 2017-12-28 2018-05-29 北京小米移动软件有限公司 Sort method and device, the electronic equipment of comment information
CN108446309A (en) * 2018-02-05 2018-08-24 深圳市资本在线金融信息服务有限公司 The application process and device of WEB intelligent report forms
CN109005422A (en) * 2018-08-01 2018-12-14 腾讯科技(深圳)有限公司 Video comments processing method and processing device
CN109508370A (en) * 2018-09-28 2019-03-22 北京百度网讯科技有限公司 Opinions Extraction method, equipment and storage medium
CN109522487A (en) * 2018-12-21 2019-03-26 北京工业大学 A kind of dining room personalized recommendation method based on comment
CN110134880A (en) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 Offer, display methods, device, electronic equipment and the storage medium of comment data
CN110413278A (en) * 2019-06-27 2019-11-05 平安科技(深圳)有限公司 The method, apparatus and storage medium, computer equipment of paging display record number
CN110442406A (en) * 2018-05-02 2019-11-12 天津京东深拓机器人科技有限公司 The method and paging control, electronic equipment of paging control processing data
CN111125157A (en) * 2018-10-31 2020-05-08 北京国双科技有限公司 Query data processing method and device, storage medium and processor

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547383A (en) * 2010-12-31 2012-07-04 福建星网视易信息***有限公司 Pinyin retrieval display method and system in Video On Demand (VOD) system
CN106055612A (en) * 2016-05-25 2016-10-26 青岛海信传媒网络技术有限公司 Data paging display method and terminal equipment
CN107767279A (en) * 2017-10-12 2018-03-06 燕山大学 A kind of average weighted personalized friend recommendation method based on LDA
CN108090206A (en) * 2017-12-28 2018-05-29 北京小米移动软件有限公司 Sort method and device, the electronic equipment of comment information
CN108446309A (en) * 2018-02-05 2018-08-24 深圳市资本在线金融信息服务有限公司 The application process and device of WEB intelligent report forms
CN110442406A (en) * 2018-05-02 2019-11-12 天津京东深拓机器人科技有限公司 The method and paging control, electronic equipment of paging control processing data
CN109005422A (en) * 2018-08-01 2018-12-14 腾讯科技(深圳)有限公司 Video comments processing method and processing device
CN109508370A (en) * 2018-09-28 2019-03-22 北京百度网讯科技有限公司 Opinions Extraction method, equipment and storage medium
CN111125157A (en) * 2018-10-31 2020-05-08 北京国双科技有限公司 Query data processing method and device, storage medium and processor
CN109522487A (en) * 2018-12-21 2019-03-26 北京工业大学 A kind of dining room personalized recommendation method based on comment
CN110134880A (en) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 Offer, display methods, device, electronic equipment and the storage medium of comment data
CN110413278A (en) * 2019-06-27 2019-11-05 平安科技(深圳)有限公司 The method, apparatus and storage medium, computer equipment of paging display record number

Also Published As

Publication number Publication date
CN112559890A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
Henry et al. Emergence of segregation in evolving social networks
CN102119377B (en) Sections of a presentation having user-definable properties
Lindholm et al. Mobile usability: How Nokia changed the face of the cellular phone
US10269033B2 (en) Expanded overlay state for campaign performance data snapshot cards
US9871758B2 (en) User recommendations in a social media network
US10360579B2 (en) Campaign performance data snapshot cards
US10304079B2 (en) Organization of campaign performance data snapshot cards in card feeds and card boards
CN102929917A (en) Dynamic content feed source filtering
US20200372065A1 (en) Content Carousel in a Social Media Timeline
CN105593848A (en) Updates to shared electronic documents in collaborative environments
CN102238106A (en) News feed techniques
CN104854615A (en) Using metadata to summarize social media content
CN109416644A (en) System and method for real-time migration of virtual machine
US20180121561A1 (en) Systems and methods of online interfaces for hierarchically arranged user-generated content
CN112559890B (en) Display method, server, electronic device and storage medium
Khaleelullah et al. A Framework for Design and Development of Message sharing using Open-Source Software
Conde et al. Web services layer for Moodle 2.0: a new area of possibilities in web based learning
CN107133072A (en) One kind operation performs method and apparatus
CN102387139B (en) Authority control method, system and device separated from application services
CN107483548A (en) mobile terminal control system, method, mobile terminal and storage medium
CN112633853B (en) Project management method and device and electronic equipment
CN109725957A (en) Group's configuration method and device, content share system
CN112051952A (en) Picture dynamic browsing method and device, electronic equipment and readable storage medium
CN112269938A (en) Information display method and device, electronic equipment and storage medium
CN114253944B (en) Database bidirectional synchronization method and device and electronic equipment

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