From d279022520262b8fb8fc985df3bb19df19192a2f Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期四, 22 八月 2019 19:57:07 +0800 Subject: [PATCH] add cluster updateName and leave --- controllers/dbtableperson.go | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/controllers/dbtableperson.go b/controllers/dbtableperson.go index 92f6a88..9afabe9 100644 --- a/controllers/dbtableperson.go +++ b/controllers/dbtableperson.go @@ -206,6 +206,10 @@ if reqBody["tableId"] != nil { tableId = reqBody["tableId"].(string) } + if tableId == "" { + util.ResponseFormat(c,code.RequestParamError,"鍙傛暟鏈夎锛屽簳搴搃d涓嶈兘涓虹┖") + return + } orderName := "id" if reqBody["orderName"] != nil { orderName = reqBody["orderName"].(string) @@ -251,7 +255,6 @@ } else { util.ResponseFormat(c,code.ComError,[]interface{}{}) } - util.ResponseFormat(c, code.Success, data) } // @Summary 鏌ヨ搴曞簱浜哄憳鍒楄〃 -- Gitblit v1.8.0