From f529b0fe67d68a4be6e9690043ee5d6837be72df Mon Sep 17 00:00:00 2001
From: 554325746@qq.com <554325746@qq.com>
Date: 星期二, 12 一月 2021 11:05:50 +0800
Subject: [PATCH] getAppInfo and voice add
---
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