diff --git a/service/videoService.go b/service/videoService.go index aa940dd..8dbec68 100644 --- a/service/videoService.go +++ b/service/videoService.go @@ -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 {