作者 yangfu

fix: 封面

... ... @@ -76,8 +76,11 @@ func ContentSecurityCheck(ctx context.Context, svcCtx *svc.ServiceContext, conn
if resp.Result.Suggest == security.CheckSuggestPass {
dm.ReviewStatus = domain.ReviewStatusPass
}
if len(dm.ContentKeyWords) == 0 {
dm.ContentKeyWords = append(dm.ContentKeyWords, content.Summary)
}
// 延迟任务(认定为风险的、人工审核),帖子或评论先隐藏,状态改为非法
if resp.Result.Suggest == security.CheckSuggestRisky || resp.Result.Suggest == security.CheckSuggestReview {
if resp.Result.Suggest == security.CheckSuggestRisky { // || resp.Result.Suggest == security.CheckSuggestReview
executors.NewDelayExecutor(func() {
HandlerSecurityContent(ctx, svcCtx, svcCtx.DefaultDBConn(), content, dm.ReviewStatus)
}, time.Second*5).Trigger()
... ...