作品状态判断
This commit is contained in:
parent
cb84e6195d
commit
3e16c413e5
@ -179,7 +179,10 @@ func WorkConfirm(c *gin.Context) { // 确认作品并扣除余量
|
||||
service.Error(c, err)
|
||||
return
|
||||
}
|
||||
|
||||
if wordInfoRes.WorkStatus != 4 {
|
||||
service.Error(c, errors.New("作品不是待确认状态"))
|
||||
return
|
||||
}
|
||||
var workCategory int // 1 图文 2 视频
|
||||
|
||||
if len(wordInfoRes.Images) == 0 { // 临时判断
|
||||
|
Loading…
Reference in New Issue
Block a user