Compare commits
2 Commits
2e0f9b738a
...
e4610a5088
| Author | SHA1 | Date | |
|---|---|---|---|
| e4610a5088 | |||
| a60f8a5d76 |
@ -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("内容鉴定未通过")
|
||||
return nil, errors.New(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("内容鉴定未通过")
|
||||
return nil, errors.New(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("视频鉴定未通过")
|
||||
return nil, errors.New(secResp.ProblemText)
|
||||
}
|
||||
}
|
||||
if config.AppConfig.System.AppMode != "dev" {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user