Browse Source

小程序码打印错误码

master v0.3.3
lijianbin 1 year ago
parent
commit
229de89019
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      qrcode.go

+ 1
- 1
qrcode.go View File

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


Loading…
Cancel
Save