From cc9d7e2dfad7c634e8ce69d02ce5fc4065e809e4 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期日, 25 四月 2021 11:34:47 +0800 Subject: [PATCH] 使用bhsgo by lichao --- appApi.go | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/appApi.go b/appApi.go index b08ec4f..bd0eb0e 100644 --- a/appApi.go +++ b/appApi.go @@ -13,9 +13,6 @@ url := DATA_URL_PREFIX + "/app/findAllApp" netNode := getNetNode(url2Topic(Topic_AppCenter_Service, url)) logPrint("netNode:", netNode) - if netNode == nil { - return nil - } client := NewClient(WithNodes(netNode)) paramMap := make(map[string]string, 0) paramMap["appName"] = appName @@ -42,9 +39,6 @@ func (api AppApi) Save(paramBody map[string]interface{}) bool { url := DATA_URL_PREFIX + "/app/save" netNode := getNetNode(url2Topic(Topic_AppCenter_Service, url)) - if netNode == nil { - return false - } client := NewClient(WithNodes(netNode)) body, err := client.DoPostRequest(url,CONTENT_TYPE_JSON,paramBody,nil,nil) if err != nil { -- Gitblit v1.8.0