From 9f0063dfc00a9d74b868c9b6b299fac2103c9c03 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期三, 15 七月 2020 15:54:04 +0800
Subject: [PATCH] cameraRule save ret data
---
licenseApi.go | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/licenseApi.go b/licenseApi.go
index 87ce182..abb6fdb 100644
--- a/licenseApi.go
+++ b/licenseApi.go
@@ -56,17 +56,17 @@
return res.Success,res.Data
}
-func (api LicenseApi) Show() (bool,interface{}){
+func (api LicenseApi) Show() (int,bool,interface{}){
url := api.getBasicUrl() + DATA_URL_PREFIX + "/license/show"
client := NewClient()
body, err := client.DoGetRequest(url, nil, nil)
if err != nil {
- return false,nil
+ return 500,false,nil
}
var res Result
if err = json.Unmarshal(body, &res); err != nil {
- return false,nil
+ return 500,false,nil
}
- return true,res.Data
+ return res.Code,res.Success,res.Data
}
--
Gitblit v1.8.0