Compare commits
No commits in common. "fa028e8ad2534ef6acb565c4cee49f1d3cb44b8e" and "2942b3ad6d7159ef535ab87da80fe65c4f4ca77b" have entirely different histories.
fa028e8ad2
...
2942b3ad6d
@ -48,8 +48,8 @@ func UpdateVideoScript(ctx *gin.Context) {
|
||||
service.Error(ctx, errors.New("内容安全检测服务异常,请稍后再试"))
|
||||
return
|
||||
}
|
||||
if secResp.SecurityStatus == "high" {
|
||||
service.Error(ctx, errors.New("内容鉴定未通过"))
|
||||
if secResp.SecurityStatus != "none" {
|
||||
service.Error(ctx, err)
|
||||
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 == "high" {
|
||||
return nil, errors.New("内容鉴定未通过")
|
||||
if secResp.SecurityStatus != "none" {
|
||||
return nil, errors.New(secResp.Describe)
|
||||
}
|
||||
// 图片鉴定
|
||||
/*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 == "high" {
|
||||
return nil, errors.New("内容鉴定未通过")
|
||||
if secResp.SecurityStatus != "none" {
|
||||
return nil, errors.New(secResp.Describe)
|
||||
}
|
||||
/* ok, err = check.SecurityText(req.Title)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user