From e8164f07ec594bf7d9574a7f2227e90b87a9f85d Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期二, 20 八月 2019 11:16:22 +0800 Subject: [PATCH] fix arg --- controllers/task.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/controllers/task.go b/controllers/task.go index ccd33ca..99b61c0 100644 --- a/controllers/task.go +++ b/controllers/task.go @@ -256,7 +256,7 @@ func (tc TaskController) SaveTaskSdkRule(c *gin.Context) { var rules TaskSdkRules err := c.BindJSON(&rules) - if err !=nil { + if err !=nil || rules.TaskId == "" || rules.SdkId == "" || len(rules.Rules) == 0 { util.ResponseFormat(c,code.RequestParamError,"鍙傛暟鏈夎") return } -- Gitblit v1.8.0