A content review method and a terminal

Through asynchronous release of audit events and multiple audit mechanisms, problems that affect business processes and high costs in the existing technology are solved, and high accuracy and low-cost content audits are achieved.

CN115700537BActive Publication Date: 2025-07-25FUJIAN TQ ONLINE INTERACTIVE INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110868505.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2025-07-25
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

The existing content review methods have problems that affect normal business processes, insufficient audit accuracy and high cost.

Method used

The audit event is used to publish asynchronously, and multiple audit interfaces are called for auditing according to the content type, including the composite audit interface of text, pictures and videos, and the audit status is updated in a timely manner and a secondary audit is conducted.

Benefits of technology

It has achieved improvement in audit accuracy without affecting normal business, reduced missed judgments and network blockage, and reduced audit costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115700537B_ABST
    Figure CN115700537B_ABST
Patent Text Reader

Abstract

The present invention discloses a content review method and a terminal. By obtaining the content to be published sent by the client and asynchronously publishing a review event based on the content to be published, it can provide an asynchronous review method separated from the user service layer, without affecting the normal business access of players, and solves the problem of waiting duration from the mechanism. During the content review process, if the content to be reviewed contains pictures or videos, a composite review interface is called for review. If the content to be reviewed only includes text, a text review interface is called for review. The diverse review modes and multiple review mechanisms can ensure the accuracy of the review, reduce the situation of missed judgment, and can reduce the review cost. According to the callback data of the composite review interface, the review situation of the content to be published is obtained and updated, and the content to be published with review errors is reviewed again, thus avoiding the blocking situation caused by factors such as network, and realizing review without affecting normal business.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and particularly relates to a content review method and a terminal. Background Art

[0002] Currently, there are generally two ways of review in the industry. One is to wait for a third-party interface to review, and the other is to build a self-built blocked word library, image recognition, and video recognition call for judgment and review.

[0003] However, the existing review methods have the following disadvantages:

[0004] 1. Third-party review takes time and affects the original normal business process. In the past, the submitted content was directly reviewed, occupying the user's original business process. If a third-party review interface is used for review, it may be restricted by the number of times and return time provided by the third party. It is easy to encounter the situation of not reviewing after exceeding the usage times, and when there is a network problem, it is easy to cause a slow return time and a situation of not reviewing due to timeout, thus affecting the business process of the current user; if a single third-party review method cannot meet the requirements, only a more expensive package can be purchased, and the review cost is high.

[0005] 2. The accuracy of self-developed shielding review does not meet the requirements, and the review cost is high. The main problem lies in that it is difficult to grasp the accuracy of shielding, and it is easy to have the situation of missed shielding or wrong shielding. Compared with the picture, text, and video review methods recognized in the industry, such as Baidu, Alibaba, or WeChat, its accuracy will be greatly reduced; if self-developed picture and video review is carried out, the R & D cost is also relatively high. That is, no matter which existing method is used, there is a problem of high review cost. Summary of the Invention

[0006] The technical problem to be solved by the present invention is: to provide a content review method and a terminal that can improve the review accuracy and reduce the review cost without affecting the normal business.

[0007] To solve the above technical problem, the technical solution adopted by the present invention is:

[0008] A content review method, comprising the steps of:

[0009] Obtain the content to be published, and asynchronously publish a review event based on the content to be published;

[0010] Judge whether the content to be published contains pictures or videos. If so, call a composite review interface according to the channel number of the content to be published, and use multiple different review interfaces in the composite review interface to sequentially review the text, pictures, or videos of the content to be published. Otherwise, call a text review interface according to the channel number of the content to be published to review the content to be published;

[0011] Obtain the callback data of the composite review interface, obtain and update the review status of the content to be published according to the callback data, and conduct a secondary review on the content to be published with review errors.

[0012] To solve the above technical problems, another technical solution adopted by the present invention is:

[0013] A content review terminal includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0014] Obtain the content to be published and asynchronously publish a review event based on the content to be published;

[0015] Determine whether the content to be published contains pictures or videos. If so, call the composite review interface according to the channel number of the content to be published, and use multiple different review interfaces in the composite review interface to review the text, pictures, or videos of the content to be published in sequence. Otherwise, call the text review interface to review the content to be published according to the channel number of the content to be published;

[0016] Obtain the callback data of the composite review interface, obtain and update the review status of the content to be published according to the callback data, and conduct a secondary review on the content to be published with review errors.

[0017] The beneficial effects of the present invention are as follows: Obtaining the content to be published sent by the client and asynchronously publishing a review event based on the content to be published can provide an asynchronous review method separated from the user service layer, without affecting the normal business access of players, and solving the problem of waiting duration from the mechanism; during the content review process, if the content to be reviewed contains pictures or videos, call the composite review interface for review. If the content to be reviewed only includes text, call the text review interface for review. The diversified review mode and multiple review mechanisms can ensure the accuracy of the review, reduce the situation of missed judgments. Compared with the prior art, adopting multiple review mechanisms can reduce the problem of insufficient third-party review times and can reduce the review cost; obtain and update the review status of the content to be published according to the callback data of the composite review interface, and conduct a secondary review on the content to be published with review errors, thereby avoiding the blocking situation caused by factors such as network through a good error handling mechanism, and realizing review without affecting normal business. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flowchart of a content review method according to an embodiment of the present invention;

[0019] Figure 2 It is a schematic diagram of a content review terminal according to an embodiment of the present invention;

[0020] Figure 3 Flow chart of a client submitting data for a content review method according to an embodiment of the present invention;

[0021] Figure 4 Flow chart of a publishing event to a message queue process for a content review method according to an embodiment of the present invention;

[0022] Figure 5 Flow chart of a message queue listening event for a content review method according to an embodiment of the present invention;

[0023] Figure 6 Flow chart of a review for a content review method according to an embodiment of the present invention;

[0024] Figure 7 Flow chart of an asynchronous callback update for a content review method according to an embodiment of the present invention;

[0025] Figure 8 Flow chart of a secondary review for a content review method according to an embodiment of the present invention. Detailed implementation manners

[0026] To describe in detail the technical content, achieved objectives and effects of the present invention, the following is described in conjunction with the embodiments and with reference to the accompanying drawings.

[0027] Please refer to Figure 1 、 Figures 3 to 8 , an embodiment of the present invention provides a content review method, including the steps of:

[0028] Obtain the content to be published, and asynchronously publish a review event based on the content to be published;

[0029] Determine whether the content to be published contains pictures or videos. If so, call a composite review interface according to the channel number of the content to be published, and use multiple different review interfaces in the composite review interface to review the text, pictures or videos of the content to be published in sequence. Otherwise, call a text review interface according to the channel number of the content to be published to review the content to be published;

[0030] Obtain the callback data of the composite review interface, obtain and update the review situation of the content to be published according to the callback data, and perform a secondary review on the content to be published with review errors.

[0031] As can be seen from the above description, the beneficial effects of the present invention are as follows: obtaining the content to be published sent by the client, and asynchronously publishing the review event based on the content to be published, which can provide an asynchronous review method separated from the user business layer and will not affect the normal business access of players, thus solving the problem of waiting time from the mechanism; during the content review process, if the content to be reviewed contains pictures or videos, the composite review interface is called for review, and if the content to be reviewed only includes text, the text review interface is called for review. The diversified review mode and multiple review mechanisms can ensure the accuracy of the review and reduce the situation of missed judgments. Compared with the prior art, the adoption of multiple review mechanisms can reduce the problem of insufficient third-party review times and can also reduce the review cost; obtaining and updating the review situation of the content to be published according to the callback data of the composite review interface, and conducting a secondary review on the content to be published with review errors, so as to avoid the blocking situation caused by factors such as network through a good error handling mechanism, and realize the review without affecting the normal business.

[0032] Further, before obtaining the content to be published, it includes:

[0033] Obtaining the submission content of the user through the client, judging whether the submission content contains pictures or videos. If so, uploading the pictures or videos and saving the information of the pictures or videos as file data, and obtaining the content to be published according to the file data and the text in the submission content;

[0034] Otherwise, directly obtaining the content to be published according to the text in the submission content.

[0035] As can be seen from the above description, uploading the picture and video files in the user submission content and saving them as file data is convenient for quickly obtaining the corresponding file paths when reviewing the pictures or videos subsequently.

[0036] Further, asynchronously publishing the review event based on the content to be published includes:

[0037] Judging whether the content to be published is new content. If so, publishing the write event and the review event to the message queue process, otherwise, publishing the update event and the review event to the message queue process;

[0038] Listening to the received event type through the message queue process and processing the content to be published according to the event type.

[0039] As described above, if the content to be published is new content, the publish write event and the review event are sent to the message queue process. Otherwise, the publish update event and the review event are sent to the message queue process. Therefore, when writing or updating the published content, the corresponding review event can be asynchronously published, thus not occupying the time-consuming of normal business and not affecting the normal business operation.

[0040] Further, it is determined whether the content to be published contains pictures or videos. If so, the composite review interface is called according to the channel number of the content to be published, and multiple different review interfaces in the composite review interface are used to review the text, pictures or videos of the content to be published in sequence. Otherwise, calling the text review interface according to the channel number of the content to be published to review the content to be published includes:

[0041] If the content to be published contains text, the corresponding text review interface is called according to the text review channel number of the content to be published to review the text of the content to be published. If the text review is successful, the status of the content to be published is modified to text review successful;

[0042] If the content to be published contains pictures, the file data is obtained, and the pictures in the file data are reviewed by calling the corresponding picture review interface according to the picture review channel number of the content to be published. If the picture review is successful, the picture review interface is replaced for review until all picture review interfaces have successfully reviewed, and then the status of the content to be published is modified to picture review successful;

[0043] If the content to be published contains videos, the file data is obtained, and the videos in the file data are reviewed by calling the preset video review interface. If the video review is successful, the status of the content to be published is modified to video review successful.

[0044] As described above, if the content to be published contains text, the corresponding text review interface is called according to the channel number, and if the review is successful, it is marked as text review successful; if the content to be published contains pictures, all picture review interfaces need to successfully review the file data before it can be marked as picture review successful; if the content to be published contains videos, the preset video review interface is called to review the videos in the file data; therefore, corresponding review mechanisms can be flexibly set for different types of content, and the accuracy of the review can be ensured through diversified review modes and multiple review mechanisms.

[0045] Further, obtaining the callback data of the composite review interface and obtaining and updating the review situation of the content to be published according to the callback data includes:

[0046] Obtain the callback data of the preset review interface in the composite review interface, and obtain and update the review situation of the content to be published according to the callback data;

[0047] The secondary review of the to-be-published content with review errors includes:

[0048] Obtain the to-be-published content with review errors and marked as un-reviewed, and schedule a secondary review of the un-reviewed to-be-published content at regular intervals.

[0049] As can be seen from the above description, obtaining the callback data of the preset review interface in the composite review interface and obtaining and updating the review status of the to-be-published content according to the callback data can timely update the review status of image review or video review; for the to-be-published content marked as un-reviewed, scheduling a secondary review can avoid blocking situations caused by factors such as network through good error handling, and reduce the content that finally requires manual review.

[0050] Please refer to Figure 2 , another embodiment of the present invention provides a content review terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0051] Obtain the to-be-published content and asynchronously publish a review event based on the to-be-published content;

[0052] Determine whether the to-be-published content contains an image or a video. If so, call the composite review interface according to the channel number of the to-be-published content, and use multiple different review interfaces in the composite review interface to review the text, image, or video of the to-be-published content in sequence. Otherwise, call the text review interface according to the channel number of the to-be-published content to review the to-be-published content;

[0053] Obtain the callback data of the composite review interface, obtain and update the review status of the to-be-published content according to the callback data, and conduct a secondary review of the to-be-published content with review errors.

[0054] As described above, obtaining the content to be published sent by the client and asynchronously publishing the review event based on the content to be published can provide a way of asynchronous review separated from the user business layer, without affecting the normal business access of players, and solve the problem of waiting time from the mechanism; during the content review process, if the content to be reviewed contains pictures or videos, the composite review interface is called for review, and if the content to be reviewed only includes text, the text review interface is called for review. The diversified review mode and multiple review mechanisms can ensure the accuracy of the review, reduce the situation of missed judgments. Compared with the prior art, adopting multiple review mechanisms can reduce the problem of insufficient third-party review times and reduce the review cost; obtaining and updating the review situation of the content to be published according to the callback data of the composite review interface, and performing a secondary review on the content to be published with review errors, so as to avoid blocking situations caused by factors such as network through a good error handling mechanism, and realize the review without affecting the normal business.

[0055] Further, before obtaining the content to be published, it includes:

[0056] Obtaining the submission content of the user through the client, judging whether the submission content contains pictures or videos. If so, uploading the pictures or videos and saving the information of the pictures or videos as file data, and obtaining the content to be published according to the file data and the text in the submission content;

[0057] Otherwise, directly obtaining the content to be published according to the text in the submission content.

[0058] As described above, uploading the picture and video files in the user submission content and saving them as file data facilitates quickly obtaining the corresponding file paths when reviewing pictures or videos subsequently.

[0059] Further, asynchronously publishing the review event based on the content to be published includes:

[0060] Judging whether the content to be published is new content. If so, publishing the write event and the review event to the message queue process, otherwise, publishing the update event and the review event to the message queue process;

[0061] Listening to the received event type through the message queue process and processing the content to be published according to the event type.

[0062] As described above, if the content to be published is new content, the write event and the review event are published to the message queue process, otherwise, the update event and the review event are published to the message queue process. Therefore, when writing or updating the published content, the corresponding review event can be asynchronously published, thus not occupying the time-consuming of normal business and not affecting the normal business.

[0063] Further, it is determined whether the content to be published contains pictures or videos. If so, the composite review interface is called according to the channel number of the content to be published, and multiple different review interfaces in the composite review interface are used to review the text, pictures or videos of the content to be published in sequence. Otherwise, calling the text review interface according to the channel number of the content to be published to review the content to be published includes:

[0064] If the content to be published contains text, the corresponding text review interface is called according to the text review channel number of the content to be published to review the text of the content to be published. If the text review is successful, the status of the content to be published is modified to text review successful;

[0065] If the content to be published contains pictures, the file data is obtained, and the pictures in the file data are reviewed by calling the corresponding picture review interface according to the picture review channel number of the content to be published. If the picture review is successful, the picture review interface is replaced for review until all picture review interfaces have successfully reviewed, and then the status of the content to be published is modified to picture review successful;

[0066] If the content to be published contains videos, the file data is obtained, and the videos in the file data are reviewed by calling the preset video review interface. If the video review is successful, the status of the content to be published is modified to video review successful.

[0067] As can be seen from the above description, if the content to be published contains text, the corresponding text review interface is called according to the channel number, and if the review is successful, it is marked as text review successful; if the content to be published contains pictures, all picture review interfaces need to successfully review the file data before it can be marked as picture review successful; if the content to be published contains videos, the preset video review interface is called to review the videos in the file data. Therefore, corresponding review mechanisms can be flexibly set for different types of content, and the accuracy of the review can be ensured through diversified review modes and multiple review mechanisms.

[0068] Further, obtaining the callback data of the composite review interface and obtaining and updating the review situation of the content to be published according to the callback data includes:

[0069] Obtaining the callback data of the preset review interface in the composite review interface, and obtaining and updating the review situation of the content to be published according to the callback data;

[0070] The secondary review of the content to be published with review errors includes:

[0071] Obtaining the content to be published with review errors and marked as un-reviewed, and periodically performing a secondary review on the un-reviewed content to be published.

[0072] As described above, obtaining the callback data of the preset review interface in the composite review interface and obtaining and updating the review status of the content to be published according to the callback data can timely update the review status of picture review or video review; for the content to be published marked as un-reviewed, performing a secondary review regularly can avoid blocking situations caused by factors such as network through good error handling and reduce the content that finally requires manual review.

[0073] A content review method and terminal of the present invention are applicable to providing an automatic and highly accurate review mechanism for communication platforms such as forums or game inns, which can improve the review accuracy and reduce the review cost without affecting normal operations. The following is described through specific embodiments:

[0074] Embodiment 1

[0075] Please refer to Figure 1 、 Figures 3 to 8 , a content review method, including the steps:

[0076] S1. Obtain the content to be published and asynchronously publish a review event based on the content to be published.

[0077] Among them, before obtaining the content to be published, it includes:

[0078] Obtain the submission content of the user through the client, judge whether the submission content contains pictures or videos. If so, upload the pictures or videos, and save the information of the pictures or videos as file data. Obtain the content to be published according to the file data and the text in the submission content;

[0079] Otherwise, directly obtain the content to be published according to the text in the submission content.

[0080] Specifically, please refer to Figure 3 , the user submits content through the client, judges whether the submission content contains pictures or videos. If so, obtain the upload address of the s3 file server such as: https: / / s3-gjzc.my.99.com / creation-zone / image / 5f6ee2880901280cd9d99736.jpg, upload the picture and video content to the file server, and construct files:

[0081] [{"fileName":"image / 5f6ee2880901280cd9d99736.jpg","path":"https: / / s3-gjzc.my.99.com / creation-zone / image / 5f6ee2880901280cd9d99736.jpg","uid":1601102628903,"n_type":1}];

[0082] Among them, when n_type is 1, it represents a picture, when n_type is 2, it represents a video, uid represents the user ID, fileName represents the file name, and path represents the upload path;

[0083] If the submitted content does not contain pictures or videos, files is [];

[0084] Combine files and the text in the submitted content with user data and submit them to the server.

[0085] Among them, the asynchronous publishing and auditing events based on the content to be published include:

[0086] Judge whether the content to be published is new content. If so, publish the write event and the audit event to the message queue process. Otherwise, publish the update event and the audit event to the message queue process;

[0087] Listen to the received event type through the message queue process, and process the content to be published according to the event type.

[0088] Specifically, please refer to Figure 4 , set the current status of the content to be published submitted by the user as to be audited, that is, status = 2, write or update the content to be published to the cache, and at the same time send the content to be published and the audit channel number to the message notification module, and return the content to be published with the modified status to the client.

[0089] In this embodiment, if the content to be published is a new work or a new comment, write the content to be published to the cache and publish the write event, and at the same time publish the audit event. If the content to be published is an old work or an old comment, use the content to be published to update the cache and publish the update event, and at the same time publish the audit event.

[0090] Please refer to Figure 5, the message notification module asynchronously sends the events published in the user process to the RabbitMq message queue process in the form of publishing or subscribing for the content to be published submitted by the user. The message queue process determines whether to execute the write update event or the review event according to the type of event received by listening. If the write update event is executed, the content to be published is written and updated to the corresponding database table. If the review event is executed, the review module method in the current message queue process is called.

[0091] S2. Determine whether the content to be published contains pictures or videos. If so, call the composite review interface according to the channel number of the content to be published, and use multiple different review interfaces in the composite review interface to review the text, pictures or videos of the content to be published in turn. Otherwise, call the text review interface according to the channel number of the content to be published to review the content to be published.

[0092] Specifically, please refer to Figure 6 , the review module is divided into a text review part, a picture review part and a video review part, which are progressive. The text review interface accesses the text review interfaces of WeChat and Baidu. The composite review interface includes a text review interface, a picture review interface and a video review interface. Among them, the picture review interface accesses the picture review interfaces of WeChat, Baidu and Alibaba. The video review interface only accesses the video review interface of Alibaba;

[0093] Among them, all third-party review interfaces can be configured. The usage times of the third-party review interfaces are recorded in the database, and the usage times can be viewed from the background. For the review methods that reach the upper limit of the number of occurrences, the configuration is closed in time to bypass one review and replace it with the subsequent review, and it is necessary to ensure that at least one review method has sufficient usage times.

[0094] When an error occurs in the third-party review request, the error handling uses the catch in the node.js language itself to capture the callback error. The errors that occur during the review directly bypass the current review stage and enter the next review stage. At the same time, the timeout uses the setTimeout in js to set a 10-second timeout overflow. Similarly, the timeout situation also directly bypasses the current review method and enters the next review method; in the past, it was difficult for a single third-party review mechanism to achieve unity in the evaluation criteria. The multiple review mechanism has a relatively large improvement in the fault tolerance and accuracy of the review. At the same time, the review method level can be adjusted at any time according to the configuration needs, which is convenient to realize the review integrity in special cases and avoid the time when the purchase of review times delays the review process.

[0095] S3. Obtain the callback data of the composite review interface, obtain and update the review situation of the content to be published according to the callback data, and conduct a secondary review on the content to be published with review errors.

[0096] Among them, obtaining the callback data of the composite review interface and obtaining and updating the review status of the content to be published according to the callback data includes:

[0097] Obtaining the callback data of a preset review interface in the composite review interface, and obtaining and updating the review status of the content to be published according to the callback data;

[0098] The secondary review of the content to be published with review errors includes:

[0099] Obtaining the content to be published with review errors and marked as un-reviewed, and periodically performing a secondary review on the un-reviewed content to be published.

[0100] Specifically, please refer to Figure 7 , the asynchronous callback update module mainly updates the data callbacked by the Alibaba image and video review interfaces. In this embodiment, if output.terrorism.suggestion == "pass" && output.porn.suggestion == "pass", when both pass, it means the image passes the review and sets the status status = 3, otherwise sets the status status = 4, and updates the cache and database record logs and red dot notifications.

[0101] Please refer to Figure 8 , because the reviews of WeChat, Baidu, and Alibaba are sometimes unstable and errors may occur. In the case of errors, both the works and the comment content are in the un-reviewed state. The secondary review verification mainly processes the above-mentioned review errors. Take 30 un-reviewed contents and pass them through the automatic review function again. If there is still an error, update the status status = 4 and conduct a manual review. If the review passes, set the status status = 3 or if it fails, set the status status = 4, and update the status data to the cache and database. During this period, it is executed once every hour at regular intervals.

[0102] Embodiment 2

[0103] Please refer to Figure 6 , the difference between this embodiment and Embodiment 1 is that it further defines how to review the content to be published. Specifically:

[0104] If the content to be published contains text, call the corresponding text review interface to review the text of the content to be published according to the text review channel number of the content to be published. If the text review is successful, modify the status of the content to be published to text review successful;

[0105] If the content to be published contains pictures, obtain the file data, call the corresponding picture review interface according to the picture review channel number of the content to be published to review the pictures in the file data. If the picture review is successful, replace the picture review interface for review until all picture review interfaces are successfully reviewed, and then modify the status of the content to be published to picture review successful;

[0106] If the content to be published contains videos, obtain the file data, call the preset video review interface to review the videos in the file data. If the video review is successful, modify the status of the content to be published to video review successful.

[0107] Specifically, in this embodiment, if the called interface is a text review interface, obtain the channel number of the content to be published. For example, platform_id = 104 corresponds to the WeChat channel number. After obtaining the WeChat channel number, use the WeChat text review interface. If the return is not passed, then call the Baidu text review interface. If it is passed, set the status of the data to be published to status = 3, that is, the review is successful. If it is not passed, set the status of the data to be published to status = 4, that is, the review is not successful, and update the review status data to the cache and database;

[0108] The default channel is to first use the Baidu text review interface. If the number of error occurrences reaches the upper limit, then use the WeChat text review interface. After the data is written to disk and saved, record the log and notify the red dot function.

[0109] If the called interface is a composite review interface, first judge which types are included in the data submitted by the user. It can include at most 3 types: text, pictures, and videos. If the content to be published contains 3 types, first review the text. The specific review method is the same as the above text review method;

[0110] If the text review is passed, then review the pictures. Similarly, first obtain the channel number. If it is the WeChat channel number, first go through the WeChat picture review. The WeChat picture review must be the picture binary base64 encrypted data. It is necessary to obtain the file path in the file data for picture download, and then submit it to the WeChat picture review interface. If the review is passed, then use the Baidu picture synchronous review method to review the pictures. If all reviews are passed, set status = 3 for successful review, update the cache and database, record the log and notify the red dot. If one of them is not passed, set status = 4 and update the cache and database.

[0111] If it is other channel numbers, Baidu Image asynchronous review is uniformly used, and the file path extracted from the file data is passed in. After the review is completed, the review pass situation is judged, and the review situation is updated to the cache and database, and a log is written and a notification red dot is added; if an error occurs in the Baidu Image asynchronous review, Alibaba Image asynchronous review is used. The difference between Alibaba Image asynchronous review and Baidu is that the callback interface url needs to be passed in.

[0112] For video review, the Alibaba Video Review interface is called separately, and the review situation of the content to be published is passed into the callback url.

[0113] Embodiment III

[0114] Please refer to Figure 2 , a content review terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, each step of a content review method in Embodiment I or Embodiment II is implemented.

[0115] In summary, a content review method and terminal provided by the present invention obtain the content to be published sent by the client and asynchronously publish a review event based on the content to be published, which can provide an asynchronous review method separated from the user service layer and will not affect the normal service access of players. The problem of waiting time is solved from the mechanism; during the content review process, if the content to be published contains text, the corresponding text review interface is called according to the channel number, and if the review is successful, it is marked as text review successful; if the content to be published contains pictures, all picture review interfaces need to successfully review the file data before it can be marked as picture review successful; if the content to be published contains video, the preset video review interface is called to review the video in the file data; therefore, corresponding review mechanisms can be flexibly set for different types of content, and the accuracy of the review can be ensured through diversified review modes and multiple review mechanisms, reducing the situation of missed judgments. Compared with the prior art, the use of multiple review mechanisms can reduce the problem of insufficient third-party review times and reduce the review cost; for the content to be published marked as un-reviewed, secondary review is performed regularly, and blocking situations caused by factors such as the network can be avoided through good error handling, reducing the content that finally requires manual review, and realizing review without affecting normal services.

[0116] The above are only the embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent transformation made using the specification and drawings of the present invention, or directly or indirectly applied in the relevant technical fields, is similarly included in the patent protection scope of the present invention.

Claims

1. A content review method, characterized in that, Including the steps: Obtain the content to be published, and asynchronously publish an audit event based on the content to be published: Determine whether the content to be published is new content. If so, publish a write event and an audit event to the message queue process. Otherwise, publish an update event and an audit event to the message queue process; Listen for the received event types through the message queue process, and process the content to be published according to the event types; Determine whether the content to be published contains pictures or videos. If so, call the composite audit interface according to the channel number of the content to be published, and use multiple different audit interfaces in the composite audit interface to audit the text, pictures or videos of the content to be published in sequence. Otherwise, call the text audit interface according to the channel number of the content to be published to audit the content to be published: The composite audit interface includes a text audit interface, a picture audit interface and a video audit interface. The text audit interface, the picture audit interface and the video audit interface all include third-party audit interfaces. The usage times of the third-party audit interfaces are recorded in the database. When the usage times of an audit interface reach the upper limit, the configuration of the audit interface is closed in time and replaced with the subsequent audit interface. When an error occurs in the third-party audit, directly bypass the current audit stage and enter the next audit stage; When an error occurs in the third-party audit request, capture the callback error. For errors or timeouts that occur during the audit, directly bypass the current audit stage and enter the next audit stage; If the content to be published contains text, call the corresponding text audit interface according to the text audit channel number of the content to be published to audit the text of the content to be published. If the text audit is successful, modify the status of the content to be published to text audit successful; If the content to be published contains pictures, obtain the file data, call the corresponding picture audit interface according to the picture audit channel number of the content to be published to audit the pictures in the file data. If the picture audit is successful, replace the picture audit interface for audit until all picture audit interfaces are successfully audited, and then modify the status of the content to be published to picture audit successful; If the content to be published contains videos, obtain the file data, call the preset video audit interface to audit the videos in the file data. If the video audit is successful, modify the status of the content to be published to video audit successful; Obtain the callback data of the composite audit interface, obtain and update the audit situation of the content to be published according to the callback data, and conduct a secondary audit on the content to be published with audit errors.

2. The content review method according to claim 1, wherein Before obtaining the content to be published, it includes: Obtain the submitted content of the user through the client, determine whether the submitted content contains pictures or videos. If so, upload the pictures or videos, and save the information of the pictures or videos as file data, and obtain the content to be published according to the file data and the text in the submitted content; Otherwise, directly obtain the content to be published according to the text in the submitted content.

3. The content review method according to claim 1, characterized in that Obtaining the callback data of the composite audit interface, and obtaining and updating the audit situation of the content to be published according to the callback data includes: Obtain the callback data of the preset review interface in the composite review interface, and obtain and update the review status of the content to be published according to the callback data; The secondary review of the content to be published with review errors includes: Obtain the content to be published with review errors and marked as un-reviewed, and perform a secondary review of the un-reviewed content at regular intervals.

4. A content review terminal, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, the following steps are implemented: Obtain the content to be published, and asynchronously publish a review event based on the content to be published: Determine whether the content to be published is new content. If so, publish a write event and a review event to the message queue process. Otherwise, publish an update event and a review event to the message queue process; Listen to the received event type through the message queue process, and process the content to be published according to the event type; Determine whether the content to be published contains pictures or videos. If so, call the composite review interface according to the channel number of the content to be published, and use multiple different review interfaces in the composite review interface to review the text, pictures or videos of the content to be published in turn. Otherwise, call the text review interface according to the channel number of the content to be published to review the content to be published: The composite review interface includes a text review interface, a picture review interface and a video review interface. The text review interface, the picture review interface and the video review interface all include third-party review interfaces. The usage times of the third-party review interfaces are recorded in the database. When the usage times of a review interface reach the upper limit, the configuration of the review interface is closed in time and replaced with the subsequent review interface. When an error occurs in the third-party review, directly bypass the current review stage and enter the next review stage; When an error occurs in the third-party review request, capture the callback error, and directly bypass the current review stage and enter the next review stage for errors or timeouts that occur during the review; If the content to be published contains text, call the corresponding text review interface to review the text of the content to be published according to the text review channel number of the content to be published. If the text review is successful, modify the status of the content to be published to text review successful; If the content to be published contains pictures, obtain the file data, call the corresponding picture review interface to review the pictures in the file data according to the picture review channel number of the content to be published. If the picture review is successful, replace the picture review interface for review until all picture review interfaces are successfully reviewed, and then modify the status of the content to be published to picture review successful; If the content to be published contains videos, obtain the file data, call the preset video review interface to review the videos in the file data. If the video review is successful, modify the status of the content to be published to video review successful; Obtain the callback data of the composite review interface, obtain and update the review status of the content to be published according to the callback data, and perform a secondary review of the content to be published with review errors.

5. The content review terminal according to claim 4, characterized in that Before obtaining the content to be published, it includes: Obtain the submission content of the user through the client, determine whether the submission content contains pictures or videos. If so, upload the pictures or videos, and save the information of the pictures or videos as file data, and obtain the content to be published according to the file data and the text in the submission content; Otherwise, directly obtain the content to be published according to the text in the submission content.

6. The content review terminal according to claim 4, characterized in that Obtain the callback data of the composite review interface, and obtain and update the review status of the content to be published according to the callback data, including: Obtain the callback data of the preset review interface in the composite review interface, and obtain and update the review status of the content to be published according to the callback data; The secondary review of the content to be published with review errors includes: Obtain the content to be published with review errors and marked as un-reviewed, and conduct a secondary review of the un-reviewed content to be published at regular intervals.

Citation Information

Patent Citations

  • Information auditing method and device and electronic device

    CN109766508A

  • Content processing method and device and storage medium

    CN112243018A