修复撤销逻辑问题
This commit is contained in:
parent
6ffabcdbcc
commit
378024553a
|
|
@ -219,11 +219,12 @@ func QuashOption(c *gin.Context) {
|
|||
if res != "" {
|
||||
var retrievedData map[string]interface{}
|
||||
err2 := json.Unmarshal([]byte(res), &retrievedData)
|
||||
if err2 != nil {
|
||||
if err2 == nil {
|
||||
code, msg := service.QuashVideo(int(id.(float64)), retrievedData)
|
||||
c.JSON(http.StatusOK, gin.H{"code": code, "message": msg, "data": msg})
|
||||
} else {
|
||||
c.JSON(http.StatusOK, gin.H{"code": proto.ParameterError, "message": err2, "data": "2"})
|
||||
worker.PushRedisList(user.(string)+"-"+strconv.Itoa(int(id.(float64)))+"-option", res) //未操作成功重新添加到队列
|
||||
c.JSON(http.StatusOK, gin.H{"code": proto.ParameterError, "message": err2, "data": "json解析错误"})
|
||||
return
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue