|
@ -69,7 +69,7 @@ func GetMiniappQrcode(access_token string, qrcodeParamsMap map[string]interface{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if _, exist := responseData["errcode"]; exist && helper.ToInt(responseData["errcode"]) != 0 { |
|
|
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 |
|
|
return "data:image/png;base64," + base64.StdEncoding.EncodeToString(response), nil |
|
|