From 8b260a7383ab2918524bfb13d92dac918882f8f7 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期三, 03 六月 2020 09:38:56 +0800 Subject: [PATCH] set linewidth=3 when draw rect --- controllers/sdk.go | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/controllers/sdk.go b/controllers/sdk.go index 13c8265..847ec2b 100644 --- a/controllers/sdk.go +++ b/controllers/sdk.go @@ -151,7 +151,7 @@ } func (sc SdkController) SdkDownLoad(c *gin.Context) { - var soApi dbapi.SoApi + var soApi dbapi.SdkApi var sdkConfig map[string]interface{} sdkId, exist := c.GetQuery("path") @@ -167,10 +167,7 @@ } if sdkConfig != nil { - regSdkSuccess, _ := soApi.Add(sdkConfig) - regArgsSuccess, _ := soApi.Add(sdkConfig) - - if regSdkSuccess && regArgsSuccess { + if regSdkSuccess, _ := soApi.Register(sdkConfig); regSdkSuccess { util.ResponseFormat(c, code.Success, "涓嬭浇绠楁硶鎴愬姛锛�") return } -- Gitblit v1.8.0