From 00fd1d5c7f05690264bf3cf6d44ebed81109a036 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期二, 20 八月 2019 19:20:39 +0800 Subject: [PATCH] add http:// to publicDomain --- 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