From 7aa2c6f8eda9f68ca11a3854a1b2a9d69730d6e7 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期二, 20 八月 2019 14:41:34 +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