Compare commits

..

2 Commits

Author SHA1 Message Date
fa028e8ad2 Merge branch 'fearture-newScript-daiyb' into dev 2026-02-09 15:15:12 +08:00
2663a3562f 内容鉴定 2026-02-09 15:15:05 +08:00
2 changed files with 6 additions and 6 deletions

View File

@ -48,8 +48,8 @@ func UpdateVideoScript(ctx *gin.Context) {
service.Error(ctx, errors.New("内容安全检测服务异常,请稍后再试"))
return
}
if secResp.SecurityStatus != "none" {
service.Error(ctx, err)
if secResp.SecurityStatus == "high" {
service.Error(ctx, errors.New("内容鉴定未通过"))
return
}
newCtx := NewCtxWithUserInfo(ctx)

View File

@ -70,8 +70,8 @@ func UpdateWorkImageCore(ctx *gin.Context, req *cast.UpdateWorkImageReq) (*cast.
if err != nil {
return nil, errors.New("内容安全检测服务异常,请稍后再试")
}
if secResp.SecurityStatus != "none" {
return nil, errors.New(secResp.Describe)
if secResp.SecurityStatus == "high" {
return nil, errors.New("内容鉴定未通过")
}
// 图片鉴定
/*for _, v := range req.Images {
@ -307,8 +307,8 @@ func UpdateWorkVideoCore(ctx *gin.Context, req *cast.UpdateWorkVideoReq) (*cast.
if err != nil {
return nil, errors.New("内容安全检测服务异常,请稍后再试")
}
if secResp.SecurityStatus != "none" {
return nil, errors.New(secResp.Describe)
if secResp.SecurityStatus == "high" {
return nil, errors.New("内容鉴定未通过")
}
/* ok, err = check.SecurityText(req.Title)
if err != nil {