From 229de890193c652a043de0f6fd248eaa3178cf3d Mon Sep 17 00:00:00 2001 From: lijianbin <513837235@.qq.com> Date: Fri, 10 Feb 2023 11:11:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=A0=81=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E9=94=99=E8=AF=AF=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qrcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrcode.go b/qrcode.go index bcbd613..4c8896a 100644 --- a/qrcode.go +++ b/qrcode.go @@ -69,7 +69,7 @@ func GetMiniappQrcode(access_token string, qrcodeParamsMap map[string]interface{ } if _, exist := responseData["errcode"]; exist && helper.ToInt(responseData["errcode"]) != 0 { - return "", errors.New(helper.ToStr(responseData["errmsg"])) + return "", errors.New(helper.ToStr(responseData["errmsg"]) + ",errcode:" + helper.ToStr(responseData["errcode"])) } return "data:image/png;base64," + base64.StdEncoding.EncodeToString(response), nil