From f2cf47ba9fdf075b374ddb9deebdd9ee4436f17e Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 06 三月 2020 14:22:55 +0800
Subject: [PATCH] Esinfo add carNo

---
 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