delay_day
This commit is contained in:
parent
05d76a08bc
commit
eddd38414c
|
|
@ -73,7 +73,7 @@ func QuashVideo(user int, data map[string]interface{}) (int, string) {
|
|||
case "delete":
|
||||
case "delay":
|
||||
if data["option"] == "all" {
|
||||
if dao.QuashAllDelay(user, data["day"].(int)) == 0 {
|
||||
if dao.QuashAllDelay(user, data["delay_day"].(int)) == 0 {
|
||||
res = proto.RevokeDelayOperationFailed
|
||||
msg = "quash all video delay error"
|
||||
} else {
|
||||
|
|
@ -81,7 +81,7 @@ func QuashVideo(user int, data map[string]interface{}) (int, string) {
|
|||
msg = "success"
|
||||
}
|
||||
} else if data["option"] == "one" {
|
||||
if dao.QuashOneDelay(user, data["id"].(int), data["day"].(int)) == 0 {
|
||||
if dao.QuashOneDelay(user, data["id"].(int), data["delay_day"].(int)) == 0 {
|
||||
res = proto.RevokeDelayOperationFailed
|
||||
msg = "quash one video error"
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue