From 9f410d497dbc50f83b08b4657d3b122679301cd8 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期一, 24 二月 2020 18:12:53 +0800
Subject: [PATCH] logPrint
---
dicApi.go | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dicApi.go b/dicApi.go
index bd0edda..8b697d8 100644
--- a/dicApi.go
+++ b/dicApi.go
@@ -2,7 +2,6 @@
import (
"encoding/json"
- "fmt"
"strconv"
)
@@ -35,7 +34,7 @@
}
var res Result
if err = json.Unmarshal(respBody, &res); err != nil {
- fmt.Println(err)
+ logPrint(err)
return false,nil
}
return res.Success,res.Data
@@ -52,7 +51,7 @@
}
var res Result
if err = json.Unmarshal(respBody, &res); err != nil {
- fmt.Println(err)
+ logPrint(err)
return false,nil
}
return res.Success,res.Data
--
Gitblit v1.8.0