CN109150689B - Comment processing method and device and comment processing device - Google Patents

Comment processing method and device and comment processing device Download PDF

Info

Publication number
CN109150689B
CN109150689B CN201710458034.9A CN201710458034A CN109150689B CN 109150689 B CN109150689 B CN 109150689B CN 201710458034 A CN201710458034 A CN 201710458034A CN 109150689 B CN109150689 B CN 109150689B
Authority
CN
China
Prior art keywords
comment
identification information
content
list
virtual identification
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
CN201710458034.9A
Other languages
Chinese (zh)
Other versions
CN109150689A (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 Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201710458034.9A priority Critical patent/CN109150689B/en
Publication of CN109150689A publication Critical patent/CN109150689A/en
Application granted granted Critical
Publication of CN109150689B publication Critical patent/CN109150689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/59Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable

Abstract

The embodiment of the invention provides a comment processing method and device and a comment processing device, wherein the comment processing method specifically comprises the following steps: obtaining comment content; generating virtual identification information corresponding to the comment content; and displaying the comment content in a comment list according to the virtual identification information. The embodiment of the invention can reduce the waiting time of the user for the comment publishing to a certain extent and effectively improve the user experience.

Description

Comment processing method and device and comment processing device
Technical Field
The invention relates to the technical field of network communication, in particular to a comment processing method and device and a comment processing device.
Background
At present, with the continuous development of network communication technology, in order to enhance the interaction between a user and a website or an application, some websites or applications provide a comment function, so that the user can make comments on interested contents or view comments of other users on the interested contents when using the websites or applications through an intelligent terminal.
For example, while posting news, blogs, pictures and other contents on a webpage, a website establishes a comment area for the contents on the webpage, and a user can post comments on the contents by leaving a message in the comment area, and the comments are reserved on the webpage for other users to view. For the user, operations such as replying to the viewed comments can also be performed.
The process of posting comments at present may be: the client sends an ID (Identity) issuing request to the server in response to an issuing instruction of a current user, wherein the ID issuing request can carry comment content and comment object information corresponding to the comment content, so that the server can audit the comment content, and if the review of the comment content passes, the client can return an ID according to the ID issuing request to indicate that the comment content is successfully issued; then, when the relevant client requests the server for comments, the server may send a comment list including the comments corresponding to the IDs to the relevant client, and the relevant client may display the comment list, so that both the current user and other users may view the comments posted by the current user.
However, in practical applications, if the network quality of the intelligent terminal adopted by the user is poor (for example, if the network is disconnected or the network speed is slow), a series of network delay problems such as data packet retransmission and communication timeout occur between the client and the server in the existing scheme, so that the existing scheme takes a long time to complete the issuance of the comment, and the current user needs a long time to wait for the issuance of the comment, which results in poor use experience. Or, if the review of the comment content is not passed, the current user cannot see the publishing result of the corresponding comment content.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a comment processing method, a comment processing apparatus, and an apparatus for comment processing that overcome or at least partially solve the above problems.
In order to solve the above problem, the present invention discloses a comment processing method, including:
obtaining comment content;
generating virtual identification information corresponding to the comment content;
and displaying the comment content in a comment list according to the virtual identification information.
Optionally, the displaying the comment content in a comment list according to the virtual identification information includes:
generating a first comment item which accords with a preset format according to the comment content and the corresponding virtual identification information thereof;
displaying the first comment entry in a comment list.
Optionally, the displaying the comment content in a comment list according to the virtual identification information includes:
and displaying the comment content at the first position in a comment list according to the virtual identification information.
Optionally, the method further comprises:
and forbidding reply to the comment content of which the identification information is the virtual identification information.
Optionally, the prohibiting the reply to the comment content corresponding to the virtual identification information includes:
responding to a comment reply instruction, and judging whether the identification information of the comment content corresponding to the comment reply instruction is virtual identification information;
and when the identification information of the comment content corresponding to the comment reply instruction is virtual identification information, prohibiting reply to the comment content.
Optionally, the method further comprises:
sending a publishing request to a server; the release request carries the comment content and the comment object information corresponding to the comment content;
receiving real identification information returned by the server according to the release request;
requesting an up-to-date comment list from a server;
and updating the comment list according to the latest comment list.
Optionally, the updating the comment list according to the latest comment list includes:
the latest comment list includes: and replacing the comment list with the latest comment list according to a second comment item obtained by the comment content and the corresponding real identification information.
In another aspect, the present invention discloses a comment processing apparatus, including:
the comment content acquisition module is used for acquiring comment content;
the virtual identification generation module is used for generating virtual identification information corresponding to the comment content; and
and the comment display module is used for displaying the comment content in a comment list according to the virtual identification information.
Optionally, the comment display module includes:
the comment item generation submodule is used for generating a first comment item which accords with a preset format according to the comment content and the corresponding virtual identification information;
and the comment item display submodule is used for displaying the first comment item in a comment list.
Optionally, the comment display module includes:
and the first position display submodule is used for displaying the comment content at the first position in a comment list according to the virtual identification information.
Optionally, the apparatus further comprises:
and the reply prohibition module is used for prohibiting the reply of the comment content of which the identification information is the virtual identification information.
Optionally, the reply prohibition module includes:
the judgment submodule is used for responding to the comment reply instruction and judging whether the identification information of the comment content corresponding to the comment reply instruction is virtual identification information or not;
and the prohibition submodule is used for prohibiting the reply of the comment content when the identification information of the comment content corresponding to the comment reply instruction is the virtual identification information.
Optionally, the apparatus further comprises:
the first sending module is used for sending a publishing request to the server; the release request carries the comment content and the comment object information corresponding to the comment content;
the first receiving module is used for receiving real identification information returned by the server according to the issuing request;
the second receiving module is used for requesting the latest comment list from the server;
and the updating module is used for updating the comment list according to the latest comment list.
Optionally, the update module includes:
an update sub-module for including in the up-to-date list of reviews: and replacing the comment list with the latest comment list when obtaining a second comment item according to the comment content and the corresponding real identification information.
In yet another aspect, an apparatus for review processing is disclosed that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors, the one or more programs including instructions for:
obtaining comment content;
generating virtual identification information corresponding to the comment content;
and displaying the comment content in a comment list according to the virtual identification information.
In yet another aspect, the present disclosure discloses a machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform one or more of the above-described comment processing methods.
The embodiment of the invention has the following advantages:
the embodiment of the invention generates the virtual identification information corresponding to the comment content through the client and uses the virtual identification information for displaying the comment content, so that the client can provide the publishing result of the comment content for the user in time under the condition of not being influenced by the network quality or the auditing result of the server, thereby reducing the waiting time of the user for publishing the comment to a certain extent and effectively improving the user experience. Particularly, in the case that the network quality of the intelligent terminal adopted by the user is poor (for example, if the network is disconnected or the network speed is slow), the waiting time of the user for the comment publishing can be effectively reduced.
Drawings
Fig. 1 is a schematic diagram of an application environment of a comment processing method of an embodiment of the present invention;
FIG. 2 is a flow chart of the steps of a comment processing method embodiment one of the present invention;
FIG. 3 is a flowchart illustrating the steps of a second embodiment of a comment processing method;
FIG. 4 is a flowchart illustrating the steps of a second embodiment of a comment processing method;
FIG. 5 is a flowchart illustrating the steps of a second embodiment of a comment processing method;
FIG. 6 is a block diagram of the structure of an embodiment of a comment processing apparatus of the present invention;
fig. 7 is a block diagram of a structure of a comment processing apparatus of the present invention as a terminal; and
fig. 8 is a block diagram of a configuration of an apparatus for comment processing of the present invention as a server.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In the embodiment of the present invention, the server may be configured to store and maintain information corresponding to the comment, and specifically, the information corresponding to the comment may include: identification information, comment content, and the like, wherein the identification information can be used to identify comments and to index information such as comment content.
In the process of implementing the embodiment of the present invention, the inventors found that: one condition for the client to display the comment content in the comment list may include: the identification information, specifically, the identification information may be a part of a data structure corresponding to the comment content, and therefore, in the existing scheme, the client needs to first request the server for the identification information, and then issue the comment according to the identification information sent by the server.
The embodiment of the invention provides a comment processing scheme, which can be applied to a client, and specifically comprises the following steps: obtaining comment content, generating virtual identification information corresponding to the comment content, and displaying the comment content in a comment list according to the virtual identification information. In the embodiment of the invention, the client generates the virtual identification information corresponding to the comment content and uses the virtual identification information for displaying the comment content, so that the client can provide the publishing result of the comment content for the user in time under the condition of not being influenced by the network quality or the auditing result of the server, thereby reducing the waiting time of the user for publishing the comment to a certain extent and effectively improving the user experience. Particularly, in the case that the network quality of the intelligent terminal adopted by the user is poor (for example, if the network is disconnected or the network speed is slow), the waiting time of the user for the comment publishing can be effectively reduced. Or the client can provide the publishing result of the comment content to the user in time under the condition that the server is not waited for the audit to pass, so that the client can still provide the publishing result of the comment content to the user even if the server is not passed in the audit result, and the publishing accuracy and the publishing efficiency of the comment content can be improved from the perspective of the user.
The embodiment of the invention can be applied to Application scenes of websites and/or APPs (Application programs), and the websites and/or APPs can provide a comment function for interface contents. The Interface may be abbreviated as a UI (User Interface), which may implement interaction between a User and an application program through display content. Examples of interfaces may include: the page of the web page or the interface provided by the common application program, it can be understood that the embodiment of the present application does not impose a limitation on the specific interface.
The comment processing method provided by the embodiment of the present invention can be applied to the application environment shown in fig. 1, where the client 100 and the server 200 are located in a wired or wireless network, and the client 100 and the server 200 perform data interaction through the wired or wireless network.
Optionally, the client 100 may be run on an intelligent terminal, and the intelligent terminal specifically includes but is not limited to: smart phones, tablet computers, e-readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop portable computers, car-mounted computers, desktop computers, set-top boxes, smart televisions, wearable devices, and the like.
In this embodiment of the present invention, the client 100 may interact with the user through the interface, optionally, when receiving a trigger operation of the user on the interface content, a comment interface may be provided, so that the user triggers a comment instruction through the comment interface, and optionally, the comment interface may include: and after the user inputs the comment content through the comment input box, the comment button can be clicked to trigger a comment instruction.
The server 200 may be configured to store and maintain information corresponding to the comment, and specifically, the information corresponding to the comment may include: identification information, comment content, and the like, wherein the identification information can be used to identify comments and to index information such as comment content.
In an embodiment of the present invention, the client 100 may first send a publishing request to the server 200 in response to the comment instruction; the release request may carry the comment content and the comment object information corresponding to the comment content, so that the server 200 performs review on the comment content, and if the review of the comment content passes, the server 200 may return an ID according to the ID release request, indicating that the comment content is successfully released; and the client 100 may receive real identification information returned by the server 200 according to the publishing request, where the real identification information may be used to represent that the publishing of the comment content is successful.
In practical applications, the client 100 may be consistent with an APP such as a browser, or may be combined with an APP such as a browser in a plug-in manner, so as to implement comment content on interface content provided by an APP such as a browser.
In an embodiment of the present invention, the server 200 may provide both the interface function and the comment function of the interface content, and an example of the server 200 may be a server corresponding to a browser. In another embodiment of the present invention, the server 200 may only provide a comment function of the interface content, and examples of the server 200 may be: a third party server.
The comment object information may be used to represent an object corresponding to the comment content, and optionally, the comment object may be interface content such as an article, a topic, a paragraph of the article, and even an existing comment, that is, the user may comment on the article or the topic content, and may also continue to comment on a comment that has been issued by the current user or another user, and in this case, the comment may be called a comment reply.
In an optional embodiment of the present invention, the comment object information may be: in practical application, the server 200 may obtain the topoid according to the source _ id, where the source _ id may be a unique identifier of the interface, and in practical application, the source _ id may be extracted from a URL (Uniform Resource Locator) of the interface, and accordingly, the server 200 may store the topoid and the corresponding comment content. Accordingly, the client 100 may first send source _ id to the server 200 and receive the topoc _ id returned by the server 200; then, the client 100 sends topic _ id and comment content to the server 200. If the real identification information (comment _ id) returned by the server 200 is received, the comment content can be considered to be successfully published; in this case, if the client 100 issues a request for refreshing the comment list, the server 200 may return the latest comment list, which may include the comment that has just been successfully posted. Or, if the real identification information (comment _ id) returned by the server 200 is not received, it may be considered that the comment content is unsuccessfully published; in this case, when the client 100 issues a request for refreshing the comment list, the server 200 may return the latest comment list, which may not include the comment that has just been successfully posted
In another optional embodiment of the present invention, in response to the comment instruction, the client 100 may further obtain comment content corresponding to the comment instruction, generate virtual identification information corresponding to the comment content, and display the comment content in the comment list according to the virtual identification information. In this way, the client can provide the posting result of the comment content to the user in time without being affected by the network quality or the auditing result of the server, so that the waiting time of the user for posting the comment can be reduced to a certain extent.
Method embodiment one
Referring to fig. 2, a flowchart illustrating steps of a first comment processing method embodiment of the present invention is shown, which may specifically include the following steps:
step 201, obtaining comment content;
step 202, generating virtual identification information corresponding to the comment content;
and step 203, displaying the comment content in a comment list according to the virtual identification information.
The embodiment of the invention can be applied to application scenes of websites and/or APPs, the embodiment of the invention mainly takes the application scene of a browser as an example to explain the comment processing process of the embodiment of the invention, and comment processing processes corresponding to other application scenes are mutually referred.
In practical application, the client can be used as a functional module or a plug-in of a browser to execute the comment processing method of the embodiment of the invention. Optionally, a functional module or a plug-in of the browser may execute the comment processing method according to the embodiment of the present invention through js (javascript) code, and it can be understood that the specific development language corresponding to the comment processing method according to the embodiment of the present invention is not limited in the embodiment of the present invention.
In practical applications, the client may provide a comment interface to the user, and optionally, the comment interface may include: a comment input box for allowing a user to input comment contents through the comment input box; thus, step 201 may enter the comment into the content in the box as the comment content.
Optionally, the comment interface may further include a comment button, so that the user may click the comment button to trigger a comment instruction, where the comment instruction may identify the completion and submission of the comment content. In this way, step 201 may comment the content in the input box as the comment content in response to the comment instruction described above.
Step 202 may generate virtual identification information corresponding to the comment content, so that the virtual identification information is used for displaying the comment content. Optionally, in step 202, virtual identification information corresponding to the comment content may be generated according to a data structure corresponding to the real identification information, so that the data structure corresponding to the virtual identification information may be consistent with the data structure corresponding to the real identification information, thereby enabling the virtual identification information to be used for displaying the comment content. It can be understood that the specific generation process of the virtual identification information is not limited by the embodiment of the present invention.
In practical applications, the comment list may display the comment contents in order according to the identification information (including real identification information and/or virtual identification information). In an optional embodiment of the present invention, the virtual identification information may be different from the existing real identification information, so as to avoid a display confusion problem caused by repetition between the virtual identification information and the existing real identification information.
Step 203 may display the comment content in a comment list according to the virtual identification information generated in step 202. Since the identification information may be a part of the data structure corresponding to the comment content, the comment content may be displayed according to the virtual identification information.
In an optional embodiment of the present invention, the step 203 of displaying the comment content in a comment list according to the virtual identification information may include: generating a first comment item which accords with a preset format according to the comment content and the corresponding virtual identification information thereof; displaying the first comment entry in a comment list. The comment item can be used for representing a comment and can be a constituent unit in the comment list, the preset format can be used for representing or restricting a data structure format corresponding to the comment item, and the first comment item conforming to the preset format can be generated through the client side, so that the first comment item can be compatible with the data structure of the comment list, and normal display of the first comment item in the comment list can be achieved.
In another optional embodiment of the present invention, the step 203 may include, according to the virtual identification information, a process of displaying the comment content in a comment list, where: displaying the comment content in a comment list through a preset interface according to the virtual identification information; wherein, the parameters of the preset interface may include: the comment content and the corresponding virtual identification information thereof. The preset interface can be provided by the server, so that the client can call the preset interface to enable the corresponding call request to carry the comment content and the corresponding virtual identification information thereof, and the comment content is displayed in the comment list.
In still another optional embodiment of the present invention, the step 203 of displaying the comment content in a comment list according to the virtual identification information may include: and displaying the comment content in a comment list by using a display container according to the virtual identification information. Taking an intelligent terminal of an android operating system as an example, a corresponding display container of the intelligent terminal may be a view container component ViewGroup, and it can be understood that a specific process of displaying the comment content in the comment list is not limited in the embodiment of the present invention.
In yet another optional embodiment of the present invention, the step 203 of displaying the comment content in a comment list according to the virtual identification information may include: and displaying the comment content at the first position in a comment list according to the virtual identification information. In this way, the user can view the comment content which is just successfully published of the user at the first time and in a conspicuous position. Of course, the above-mentioned first position is only an alternative embodiment as a position of the comment content, and actually, the comment content may be displayed at any position in the comment list.
In summary, the comment processing method of the embodiment of the present invention generates the virtual identification information corresponding to the comment content through the client, and uses the virtual identification information for displaying the comment content, so that the client can provide the posting result of the comment content to the user in time without being affected by the network quality or the auditing result of the server, and therefore, the waiting time of the user for posting the comment can be reduced to a certain extent, and the user experience is effectively improved. Particularly, in the case that the network quality of the intelligent terminal adopted by the user is poor (for example, if the network is disconnected or the network speed is slow), the waiting time of the user for the comment publishing can be effectively reduced.
Method embodiment two
Referring to fig. 3, a flowchart illustrating steps of a second embodiment of a comment processing method according to the present invention is shown, which may specifically include the following steps:
step 301, obtaining comment content;
step 302, generating virtual identification information corresponding to the comment content;
step 303, displaying the comment content in a comment list according to the virtual identification information;
with respect to the first embodiment of the method shown in fig. 2, the method of this embodiment may further include:
and step 304, forbidding reply to the comment content of which the identification information is the virtual identification information.
In practical application, if a user replies to the comment content of which the identification information is the virtual identification information, the problem of cycle falsification of the identification information is easily caused, and the complexity of processing logic is increased due to the problem of cycle falsification of the identification information. The identification information cycle falsification here means that the virtual identification information is used to reply the comment content of which the identification information is the virtual identification information, that is, for the comment content of which the identification information is the virtual identification information, the identification information corresponding to the reply information is also the virtual identification information.
The embodiment of the invention inhibits the reply of the comment content of which the identification information is the virtual identification information, and can solve the problem of the identification information cycle counterfeiting to a certain extent.
In an optional embodiment of the present invention, the process of prohibiting a reply to the comment content corresponding to the virtual identification information may include: responding to a comment reply instruction, and judging whether the identification information of the comment content corresponding to the comment reply instruction is virtual identification information; and when the identification information of the comment content corresponding to the comment reply instruction is virtual identification information, prohibiting reply to the comment content.
Optionally, a preset mark may be added to the virtual identification information, and the above-mentioned process of determining whether the identification information of the comment content corresponding to the comment reply instruction is the virtual identification information may include: judging whether the identification information of the comment content corresponding to the comment reply instruction carries a preset mark, wherein the specific process of judging whether the identification information of the comment content corresponding to the comment reply instruction is virtual identification information is not limited in the embodiment of the invention.
Optionally, the prohibiting reply to the comment content whose identification information is virtual identification information specifically may include: and forbidding displaying the comment input box corresponding to the reply, so that the user is not allowed to reply to the comment using the virtual identification information. Of course, a manner other than prohibiting displaying the comment input box corresponding to the reply is also possible, and the embodiment of the present invention does not impose any limitation on the specific manner of prohibiting the reply to the comment content whose identification information is the virtual identification information.
It should be noted that the prohibition of replying to the comment content whose identification information is the virtual identification information is only an optional embodiment of the present invention, and in fact, the embodiment of the present invention may also allow replying to the comment content whose identification information is the virtual identification information, for example, in response to a comment reply instruction, when the identification information of the comment content corresponding to the comment reply instruction is the virtual identification information, a comment input box corresponding to the reply is displayed, and the like.
In summary, the comment processing method of the embodiment of the present invention prohibits reply to the comment content whose identification information is virtual identification information, and can identify the problem of information cycle falsification to a certain extent.
Method embodiment three
Referring to fig. 4, a flowchart illustrating steps of a third embodiment of a comment processing method according to the present invention is shown, which may specifically include the following steps:
step 401, obtaining comment content;
step 402, generating virtual identification information corresponding to the comment content;
step 403, displaying the comment content in a comment list according to the virtual identification information;
with respect to the first embodiment of the method shown in fig. 2, the method of this embodiment may further include:
step 404, sending a publishing request to a server; the release request can carry the comment content and the comment object information corresponding to the comment content;
step 405, receiving real identification information returned by the server according to the release request;
step 406, requesting the latest comment list from the server;
for example, the latest comment list corresponding to the current interface may be obtained from the server through a refresh request.
Step 407, updating the comment list according to the latest comment list.
Compared with the first method embodiment shown in fig. 2, in this embodiment, the comment content may be preferentially displayed in the comment list according to the virtual identification information, and on this basis, this embodiment may further obtain the real identification information and the latest comment list from the server through steps 404 to 407, and update the comment list according to the latest comment list.
In an optional embodiment of the invention, the latest comment list may include: the process of updating the comment list according to the latest comment list may include: replacing the list of comments with the latest list of comments. It should be noted that one difference between the first comment item and the second comment item is that the former corresponds to the virtual identification information, the latter corresponds to the real identification information, and the comment contents corresponding to the former and the latter are identical.
In summary, the comment processing method of the embodiment of the present invention can update the comment list according to the latest comment list returned by the server; the above-described updating can replace the first comment item using the virtual identification information with the second comment item using the real identification information, and therefore, the problem of the identification information cycle forgery can be avoided.
It should be noted that, the above updating the comment list according to the latest comment list is only an optional embodiment of the present invention, and actually, in other embodiments of the present invention, the comment list may not be updated, and the first comment entry using the virtual identification information may be retained.
Method example four
Referring to fig. 5, a flowchart illustrating steps of a third embodiment of a comment processing method according to the present invention is shown, which may specifically include the following steps:
step 501, monitoring a comment instruction by a client;
step 502, the client side responds to the comment instruction, obtains comment content, generates virtual identification information corresponding to the comment content, and displays the comment content in a comment list according to the virtual identification information;
step 503, the client sends an issuing request to the server in response to the comment instruction; the release request can carry the comment content and the comment object information corresponding to the comment content;
step 504, the server returns real identification information to the client according to the release request;
step 505, the client requests the latest comment list from the server;
step 506, the client updates the comment list according to the latest comment list.
It should be noted that, in addition to sending response information to the client that sends the audit request, the server may also send a comment entry corresponding to the response information to other related clients, so that other users view the comment entry. The relevant client may be a client that pays attention to (such as browsing, collecting, commenting, and the like) the interface content corresponding to the comment instruction, and the like.
In summary, the comment processing method of the embodiment of the present invention can preferentially display the comment content in the comment list according to the virtual identification information; on the basis, the real identification information and the corresponding response information can be obtained from the server, and the comment list is updated according to the latest comment list. The above-described updating can replace the first comment item using the virtual identification information with the second comment item using the real identification information, and therefore, the problem of the identification information cycle forgery can be avoided.
It should be noted that, for simplicity of description, the method embodiments are described as a series of motion combinations, but those skilled in the art should understand that the present invention is not limited by the described motion sequences, because some steps may be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no moving act is required as an embodiment of the invention.
Device embodiment
Referring to fig. 6, a block diagram illustrating a structure of an embodiment of a comment processing apparatus according to the present invention may specifically include:
the comment content acquisition module is used for acquiring comment content;
the virtual identification generation module is used for generating virtual identification information corresponding to the comment content; and
and the comment display module is used for displaying the comment content in a comment list according to the virtual identification information.
Optionally, the comment display module includes:
the comment item generation submodule is used for generating a first comment item which accords with a preset format according to the comment content and the corresponding virtual identification information;
and the comment item display submodule is used for displaying the first comment item in a comment list.
Optionally, the comment display module includes:
and the first position display submodule is used for displaying the comment content at the first position in a comment list according to the virtual identification information.
Optionally, the apparatus further comprises:
and the reply prohibition module is used for prohibiting the reply of the comment content of which the identification information is the virtual identification information.
Optionally, the reply prohibition module includes:
the judgment submodule is used for responding to the comment reply instruction and judging whether the identification information of the comment content corresponding to the comment reply instruction is virtual identification information or not;
and the prohibition submodule is used for prohibiting the reply of the comment content when the identification information of the comment content corresponding to the comment reply instruction is the virtual identification information.
Optionally, the apparatus further comprises:
the first sending module is used for sending a publishing request to the server; the release request can carry the comment content and the comment object information corresponding to the comment content;
the first receiving module is used for receiving real identification information returned by the server according to the issuing request;
the second receiving module is used for requesting the latest comment list from the server;
and the updating module is used for updating the comment list according to the latest comment list.
Optionally, the update module includes:
an update sub-module for including in the up-to-date list of reviews: and replacing the comment list with the latest comment list when obtaining a second comment item according to the comment content and the corresponding real identification information.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present invention provides an apparatus for comment processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors include instructions for: obtaining comment content; generating virtual identification information corresponding to the comment content; and displaying the comment content in a comment list according to the virtual identification information.
Optionally, the displaying the comment content in a comment list according to the virtual identification information includes:
generating a first comment item which accords with a preset format according to the comment content and the corresponding virtual identification information thereof;
displaying the first comment entry in a comment list.
Optionally, the displaying the comment content in a comment list according to the virtual identification information includes:
and displaying the comment content at the first position in a comment list according to the virtual identification information.
Optionally, the device is also configured to execute the one or more programs by the one or more processors including instructions for:
and forbidding reply to the comment content of which the identification information is the virtual identification information.
Optionally, the prohibiting the reply to the comment content corresponding to the virtual identification information includes:
responding to a comment reply instruction, and judging whether the identification information of the comment content corresponding to the comment reply instruction is virtual identification information;
and when the identification information of the comment content corresponding to the comment reply instruction is virtual identification information, prohibiting reply to the comment content.
Optionally, the device is also configured to execute the one or more programs by the one or more processors including instructions for:
sending a publishing request to a server; the release request carries the comment content and the comment object information corresponding to the comment content;
receiving real identification information returned by the server according to the release request;
requesting an up-to-date comment list from a server;
and updating the comment list according to the latest comment list.
Optionally, the updating the comment list according to the latest comment list includes:
the latest comment list includes: and replacing the comment list with the latest comment list according to a second comment item obtained by the comment content and the corresponding real identification information.
Fig. 7 is a block diagram illustrating a configuration of an apparatus for comment processing as a terminal according to an exemplary embodiment. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, apparatus 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 908 comprises a screen providing an output interface between the device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide motion action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, the sensor assembly 914 may detect an open/closed state of the device 900, the relative positioning of the components, such as a display and keypad of the apparatus 900, the sensor assembly 914 may also detect a change in the position of the apparatus 900 or a component of the apparatus 900, the presence or absence of user contact with the apparatus 900, orientation or acceleration/deceleration of the apparatus 900, and a change in the temperature of the apparatus 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 8 is a block diagram illustrating a structure of an apparatus for comment processing as a server according to an exemplary embodiment. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A machine-readable medium (e.g., a non-transitory computer-readable storage medium) in which instructions, when executed by a processor of an apparatus (smart terminal or server), enable the apparatus to perform a comment processing method, the method comprising: obtaining comment content; generating virtual identification information corresponding to the comment content; and displaying the comment content in a comment list according to the virtual identification information.
Optionally, the displaying the comment content in a comment list according to the virtual identification information includes:
generating a first comment item which accords with a preset format according to the comment content and the corresponding virtual identification information thereof;
displaying the first comment entry in a comment list.
Optionally, the displaying the comment content in a comment list according to the virtual identification information includes:
and displaying the comment content at the first position in a comment list according to the virtual identification information.
Optionally, the method further comprises:
and forbidding reply to the comment content of which the identification information is the virtual identification information.
Optionally, the prohibiting the reply to the comment content corresponding to the virtual identification information includes:
responding to a comment reply instruction, and judging whether the identification information of the comment content corresponding to the comment reply instruction is virtual identification information;
and when the identification information of the comment content corresponding to the comment reply instruction is virtual identification information, prohibiting reply to the comment content.
Optionally, the method further comprises:
sending a publishing request to a server; the release request carries the comment content and the comment object information corresponding to the comment content;
receiving real identification information returned by the server according to the release request;
requesting an up-to-date comment list from a server;
and updating the comment list according to the latest comment list.
Optionally, the updating the comment list according to the latest comment list includes:
the latest comment list includes: and replacing the comment list with the latest comment list according to a second comment item obtained by the comment content and the corresponding real identification information.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention 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 invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The comment processing method, the comment processing device and the comment processing device provided by the invention are introduced in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the explanation of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (19)

1. A comment processing method is applied to a client, and comprises the following steps:
obtaining comment content;
generating virtual identification information corresponding to the comment content;
displaying the comment content in a comment list according to the virtual identification information; the data structure corresponding to the virtual identification information is consistent with the data structure corresponding to the real identification information;
the displaying the comment content in a comment list according to the virtual identification information includes:
generating a first comment item which accords with a preset format according to the comment content and the corresponding virtual identification information thereof;
displaying the first comment entry in a comment list.
2. The method of claim 1, wherein the displaying the comment content in a comment list according to the virtual identification information further comprises:
and displaying the comment content at the first position in a comment list according to the virtual identification information.
3. The method according to any one of claims 1 to 2, further comprising:
and forbidding reply to the comment content of which the identification information is the virtual identification information.
4. The method of claim 3, wherein the inhibiting replies to the comment content corresponding to the virtual identification information comprises:
responding to a comment reply instruction, and judging whether the identification information of the comment content corresponding to the comment reply instruction is virtual identification information;
and when the identification information of the comment content corresponding to the comment reply instruction is virtual identification information, prohibiting reply to the comment content.
5. The method according to any one of claims 1 to 2, further comprising:
sending a publishing request to a server; the release request carries the comment content and the comment object information corresponding to the comment content;
receiving real identification information returned by the server according to the release request;
requesting an up-to-date comment list from a server;
and updating the comment list according to the latest comment list.
6. The method of claim 5, wherein said updating said list of comments in accordance with said most recent list of comments comprises:
the latest comment list includes: and replacing the comment list with the latest comment list according to a second comment item obtained by the comment content and the corresponding real identification information.
7. A comment processing apparatus characterized by comprising:
the comment content acquisition module is used for acquiring comment content;
the virtual identification generation module is used for generating virtual identification information corresponding to the comment content; the data structure corresponding to the virtual identification information is consistent with the data structure corresponding to the real identification information; and
the comment display module is used for displaying the comment content in a comment list according to the virtual identification information;
the comment display module includes:
the comment item generation submodule is used for generating a first comment item which accords with a preset format according to the comment content and the corresponding virtual identification information;
and the comment item display submodule is used for displaying the first comment item in a comment list.
8. The apparatus of claim 7, wherein the comment display module further comprises:
and the first position display submodule is used for displaying the comment content at the first position in a comment list according to the virtual identification information.
9. The apparatus of any of claims 7 to 8, further comprising:
and the reply prohibition module is used for prohibiting the reply of the comment content of which the identification information is the virtual identification information.
10. The apparatus of claim 9, wherein the reply inhibit module comprises:
the judgment submodule is used for responding to the comment reply instruction and judging whether the identification information of the comment content corresponding to the comment reply instruction is virtual identification information or not;
and the prohibition submodule is used for prohibiting the reply of the comment content when the identification information of the comment content corresponding to the comment reply instruction is the virtual identification information.
11. The apparatus of any of claims 7 to 8, further comprising:
the first sending module is used for sending a publishing request to the server; the release request carries the comment content and the comment object information corresponding to the comment content;
the first receiving module is used for receiving real identification information returned by the server according to the issuing request;
the second receiving module is used for requesting the latest comment list from the server;
and the updating module is used for updating the comment list according to the latest comment list.
12. The apparatus of claim 11, wherein the update module comprises:
an update sub-module for including in the up-to-date list of reviews: and replacing the comment list with the latest comment list when obtaining a second comment item according to the comment content and the corresponding real identification information.
13. An apparatus for review processing comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein execution of the one or more programs by one or more processors comprises instructions for:
obtaining comment content;
generating virtual identification information corresponding to the comment content;
displaying the comment content in a comment list according to the virtual identification information; the data structure corresponding to the virtual identification information is consistent with the data structure corresponding to the real identification information;
the displaying the comment content in a comment list according to the virtual identification information includes:
generating a first comment item which accords with a preset format according to the comment content and the corresponding virtual identification information thereof;
displaying the first comment entry in a comment list.
14. The apparatus of claim 13, wherein the displaying the comment content in a comment list according to the virtual identification information comprises:
and displaying the comment content at the first position in a comment list according to the virtual identification information.
15. The apparatus of any of claims 13-14, wherein the apparatus is further configured to execute the one or more programs by one or more processors includes instructions for:
and forbidding reply to the comment content of which the identification information is the virtual identification information.
16. The apparatus of claim 15, wherein the inhibiting of the reply to the comment content corresponding to the virtual identification information comprises:
responding to a comment reply instruction, and judging whether the identification information of the comment content corresponding to the comment reply instruction is virtual identification information;
and when the identification information of the comment content corresponding to the comment reply instruction is virtual identification information, prohibiting reply to the comment content.
17. The apparatus of any of claims 13-14, wherein the apparatus is further configured to execute the one or more programs by one or more processors includes instructions for:
sending a publishing request to a server; the release request carries the comment content and the comment object information corresponding to the comment content;
receiving real identification information returned by the server according to the release request;
requesting an up-to-date comment list from a server;
and updating the comment list according to the latest comment list.
18. The apparatus of claim 17, wherein said updating the list of comments in accordance with the most recent list of comments comprises:
the latest comment list includes: and replacing the comment list with the latest comment list according to a second comment item obtained by the comment content and the corresponding real identification information.
19. A machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform a comment processing method as recited in one or more of claims 1 through 6.
CN201710458034.9A 2017-06-16 2017-06-16 Comment processing method and device and comment processing device Active CN109150689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710458034.9A CN109150689B (en) 2017-06-16 2017-06-16 Comment processing method and device and comment processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710458034.9A CN109150689B (en) 2017-06-16 2017-06-16 Comment processing method and device and comment processing device

Publications (2)

Publication Number Publication Date
CN109150689A CN109150689A (en) 2019-01-04
CN109150689B true CN109150689B (en) 2021-08-20

Family

ID=64830592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710458034.9A Active CN109150689B (en) 2017-06-16 2017-06-16 Comment processing method and device and comment processing device

Country Status (1)

Country Link
CN (1) CN109150689B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134880B (en) * 2019-05-20 2022-04-15 北京字节跳动网络技术有限公司 Comment data providing method, comment data displaying method, comment data providing device, comment data displaying device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316424A (en) * 2008-07-08 2008-12-03 阿里巴巴集团控股有限公司 Information transmission method, system and device
CN104123358A (en) * 2014-07-17 2014-10-29 广州金山网络科技有限公司 User comment showing method and system
CN105916037A (en) * 2015-12-23 2016-08-31 乐视网信息技术(北京)股份有限公司 Video comment information processing method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950308A (en) * 2010-09-30 2011-01-19 深圳市戴文科技有限公司 Method, device, server and system for displaying network comment information
US20170140051A1 (en) * 2015-11-16 2017-05-18 Facebook, Inc. Ranking and Filtering Comments Based on Labelling
CN105847116A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Comment reply information processing method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316424A (en) * 2008-07-08 2008-12-03 阿里巴巴集团控股有限公司 Information transmission method, system and device
CN104123358A (en) * 2014-07-17 2014-10-29 广州金山网络科技有限公司 User comment showing method and system
CN105916037A (en) * 2015-12-23 2016-08-31 乐视网信息技术(北京)股份有限公司 Video comment information processing method and apparatus

Also Published As

Publication number Publication date
CN109150689A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
US20190073100A1 (en) Method and device for displaying page
CN105912693B (en) Network request processing method, network data acquisition method, network request processing device and network data acquisition device, and server
CN105511949B (en) Verification code filling method and device and mobile terminal
RU2640632C2 (en) Method and device for delivery of information
US10642456B2 (en) Application distribution method and device
CN106897937B (en) Method and device for displaying social sharing information
CN112272302A (en) Multimedia resource display method, device, system and storage medium
CN107193606B (en) Application distribution method and device
CN110691268B (en) Message sending method, device, server, mobile terminal and storage medium
CN108804244B (en) Data transmission method, device and storage medium
CN106547547B (en) data acquisition method and device
CN107633172B (en) Malicious webpage monitoring method and electronic equipment
CN107402767B (en) Method and device for displaying push message
CN110413169B (en) Information display method, device and medium
CN108280342B (en) Application synchronization method and device for application synchronization
CN105303120B (en) Short message reading method and device
CN104572230B (en) Script file loading method and device and script file generating method and device
CN111079040B (en) Resource sniffing method, device, terminal, server and storage medium
CN111695064B (en) Buried point loading method and device
CN109150689B (en) Comment processing method and device and comment processing device
CN107241439B (en) Message pushing method and device for H5 page
CN110113256B (en) Information interaction method and device, server, user terminal and readable storage medium
CN109753205B (en) Display method and device
CN112102009A (en) Advertisement display method, device, equipment and storage medium
CN106951238B (en) Page display method and device

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