Compare commits
2 Commits
2942b3ad6d
...
fa028e8ad2
| Author | SHA1 | Date | |
|---|---|---|---|
| fa028e8ad2 | |||
| 2663a3562f |
@ -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)
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user