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

---
 cameraPolygonRelationApi.go |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/cameraPolygonRelationApi.go b/cameraPolygonRelationApi.go
index a5a2b1e..09569d9 100644
--- a/cameraPolygonRelationApi.go
+++ b/cameraPolygonRelationApi.go
@@ -12,9 +12,6 @@
 func (api CameraPolygonRelationApi) FindAll() (flag bool,list []protomsg.CameraPolygonRelation) {
 	url := DATA_URL_PREFIX + "/polygon/relation/findAll"
 	netNode := getNetNode(url2Topic(Topic_Scene_Service, url))
-	if netNode == nil {
-		return false,nil
-	}
 	client := NewClient(WithNodes(netNode))
 	body, err := client.DoGetRequest(url, nil, nil)
 	if err != nil {
@@ -40,9 +37,6 @@
 func (api CameraPolygonRelationApi) Relations(paramBody map[string]interface{}) (bool,interface{}) {
 	url := DATA_URL_PREFIX + "/polygon/relations"
 	netNode := getNetNode(url2Topic(Topic_Scene_Service, url))
-	if netNode == nil {
-		return false,nil
-	}
 	client := NewClient(WithNodes(netNode))
 	body, err := client.DoPostRequest(url,CONTENT_TYPE_JSON,paramBody,nil,nil)
 	if err != nil {
@@ -59,9 +53,6 @@
 func (api CameraPolygonRelationApi) SaveRelation(paramBody map[string]interface{}) (bool,interface{}) {
 	url := DATA_URL_PREFIX + "/polygon/relation/save"
 	netNode := getNetNode(url2Topic(Topic_Scene_Service, url))
-	if netNode == nil {
-		return false,nil
-	}
 	client := NewClient(WithNodes(netNode))
 	body, err := client.DoPostRequest(url,CONTENT_TYPE_JSON,paramBody,nil,nil)
 	if err != nil {
@@ -78,9 +69,6 @@
 func (api CameraPolygonRelationApi) DelRelation(id string) bool {
 	url := DATA_URL_PREFIX + "/polygon/relation/del"
 	netNode := getNetNode(url2Topic(Topic_Scene_Service, url))
-	if netNode == nil {
-		return false
-	}
 	client := NewClient(WithNodes(netNode))
 	paramMap := make(map[string]string,0)
 	paramMap["id"] = id

--
Gitblit v1.8.0