Merge branch 'fearture-newScript-daiyb' into dev
This commit is contained in:
commit
73e8077a40
@ -71,7 +71,7 @@ func UpdateWorkImageCore(ctx *gin.Context, req *cast.UpdateWorkImageReq) (*cast.
|
||||
return nil, errors.New("内容安全检测服务异常,请稍后再试")
|
||||
}
|
||||
if secResp.SecurityStatus == "high" {
|
||||
return nil, errors.New(secResp.ProblemText)
|
||||
return nil, errors.New(fmt.Sprintf("敏感词:%s", secResp.ProblemText))
|
||||
}
|
||||
// 图片鉴定
|
||||
/*for _, v := range req.Images {
|
||||
@ -308,7 +308,7 @@ func UpdateWorkVideoCore(ctx *gin.Context, req *cast.UpdateWorkVideoReq) (*cast.
|
||||
return nil, errors.New("内容安全检测服务异常,请稍后再试")
|
||||
}
|
||||
if secResp.SecurityStatus == "high" {
|
||||
return nil, errors.New(secResp.ProblemText)
|
||||
return nil, errors.New(fmt.Sprintf("敏感词:%s", secResp.ProblemText))
|
||||
}
|
||||
/* ok, err = check.SecurityText(req.Title)
|
||||
if err != nil {
|
||||
@ -341,7 +341,7 @@ func UpdateWorkVideoCore(ctx *gin.Context, req *cast.UpdateWorkVideoReq) (*cast.
|
||||
return nil, errs
|
||||
}
|
||||
if fileResp.SecurityStatus == "high" {
|
||||
return nil, errors.New(secResp.ProblemText)
|
||||
return nil, errors.New(fmt.Sprintf("敏感词:%s", secResp.ProblemText))
|
||||
}
|
||||
}
|
||||
if config.AppConfig.System.AppMode != "dev" {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user