From decadd1d2bf3675115cb8cc497c89b83a82c6a4b Mon Sep 17 00:00:00 2001 From: guzeng Date: Fri, 2 Apr 2021 00:04:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8Fopenid=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniapp_openid.client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniapp_openid.client.go b/miniapp_openid.client.go index b0eb445..30d632c 100644 --- a/miniapp_openid.client.go +++ b/miniapp_openid.client.go @@ -57,7 +57,7 @@ func GetMiniAppOpenid(appid, secret, js_code string, url ...string) (*AccessToke /** * 处理返回结果 */ -func HandleMiniAppOpenid(res *Response) (*MiniAppOpenidReqRes, error) { +func HandleMiniAppOpenid(res *Response) (*MiniAppOpenidRes, error) { //解密 res_data_de, err := GetOrgData(res) @@ -66,7 +66,7 @@ func HandleMiniAppOpenid(res *Response) (*MiniAppOpenidReqRes, error) { return nil, err } - var res_arr MiniAppOpenidReqRes + var res_arr MiniAppOpenidRes err = json.Unmarshal([]byte(res_data_de), &res_arr)