广场动态加入视频机审

This commit is contained in:
yezian 2024-07-03 16:06:53 +08:00
parent bdbe2de99a
commit 5f3d82ebfe
1 changed files with 74 additions and 61 deletions

View File

@ -163,69 +163,75 @@ const PostMachineReviewContent = (props) => {
</div>
<hr className="w-full" />
<p>媒体审核结果</p>
{data.media === null && (
<p className="text-green-400">视频不过审核</p>
{data.mediaType === "video" && (
<p
className={data.media === "" ? "text-green-400" : "text-red-400"}
>
{data.media === "" ? "机审通过" : data.media}
</p>
)}
<div>
{data.media?.map((item, index) => {
if (item.status === 2 || item.status === 5) {
{data.mediaType === "image" && (
<div>
{data.media?.map((item, index) => {
if (item.status === 2 || item.status === 5) {
return (
<p key={index} className="text-green-400">
{index + 1}无违规
</p>
);
}
if (item.status === 10) {
return (
<p key={index} className="text-green-400">
{index + 1}审核失败
</p>
);
}
return (
<p key={index} className="text-green-400">
{index + 1}无违规
</p>
);
}
if (item.status === 10) {
return (
<p key={index} className="text-green-400">
{index + 1}审核失败
</p>
);
}
return (
<div key={index}>
<p className="text-red-400">{index + 1}违规情况</p>
<div className="flex flex-wrap gap-1">
{item.porn_scene_suggestion &&
item.porn_scene_suggestion !== "pass" && (
<div className="border-2 border-black bg-gray-200">
<p>色情审核</p>
<ul>
<li>建议{item.porn_scene_suggestion}</li>
<li>结果{item.porn_scene_label}</li>
<li>结果{item.porn_scene_rate.toFixed(1)}</li>
</ul>
</div>
)}
{item.terrorism_scene_suggestion &&
item.terrorism_scene_suggestion !== "pass" && (
<div className="border-2 border-black bg-gray-200">
<p>暴恐审核</p>
<ul>
<li>建议{item.terrorism_scene_suggestion}</li>
<li>结果{item.terrorism_scene_label}</li>
<li>
结果{item.terrorism_scene_rate.toFixed(1)}
</li>
</ul>
</div>
)}
{item.live_scene_suggestion &&
item.live_scene_suggestion !== "pass" && (
<div className="border-2 border-black bg-gray-200">
<p>不良审核</p>
<ul>
<li>建议{item.live_scene_suggestion}</li>
<li>结果{item.live_scene_label}</li>
<li>结果{item.live_scene_rate.toFixed(1)}</li>
</ul>
</div>
)}
<div key={index}>
<p className="text-red-400">{index + 1}违规情况</p>
<div className="flex flex-wrap gap-1">
{item.porn_scene_suggestion &&
item.porn_scene_suggestion !== "pass" && (
<div className="border-2 border-black bg-gray-200">
<p>色情审核</p>
<ul>
<li>建议{item.porn_scene_suggestion}</li>
<li>结果{item.porn_scene_label}</li>
<li>结果{item.porn_scene_rate.toFixed(1)}</li>
</ul>
</div>
)}
{item.terrorism_scene_suggestion &&
item.terrorism_scene_suggestion !== "pass" && (
<div className="border-2 border-black bg-gray-200">
<p>暴恐审核</p>
<ul>
<li>建议{item.terrorism_scene_suggestion}</li>
<li>结果{item.terrorism_scene_label}</li>
<li>
结果{item.terrorism_scene_rate.toFixed(1)}
</li>
</ul>
</div>
)}
{item.live_scene_suggestion &&
item.live_scene_suggestion !== "pass" && (
<div className="border-2 border-black bg-gray-200">
<p>不良审核</p>
<ul>
<li>建议{item.live_scene_suggestion}</li>
<li>结果{item.live_scene_label}</li>
<li>结果{item.live_scene_rate.toFixed(1)}</li>
</ul>
</div>
)}
</div>
</div>
</div>
);
})}
</div>
);
})}
</div>
)}
</div>
),
},
@ -381,7 +387,14 @@ const PostMachineReviewContent = (props) => {
text: item.moment_audit_task.audited_text,
},
info: {
media: item.image_audit_task_vo.image_audits,
mediaType:
item.moment_audit_task.audited_media.videos.length === 0
? "image"
: "video",
media:
item.moment_audit_task.audited_media.videos.length === 0
? item.image_audit_task_vo.image_audits
: item.moment_audit_task.image_audit_opinion,
text: item.text_audit_task_vo.text_audit,
},
submitTime: new Date(