Browse Source

修改获取小程序openid接口调用

master v0.2.1
guzeng 3 years ago
parent
commit
decadd1d2b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      miniapp_openid.client.go

+ 2
- 2
miniapp_openid.client.go View File

@ -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) res_data_de, err := GetOrgData(res)
@ -66,7 +66,7 @@ func HandleMiniAppOpenid(res *Response) (*MiniAppOpenidReqRes, error) {
return nil, err return nil, err
} }
var res_arr MiniAppOpenidReqRes
var res_arr MiniAppOpenidRes
err = json.Unmarshal([]byte(res_data_de), &res_arr) err = json.Unmarshal([]byte(res_data_de), &res_arr)


Loading…
Cancel
Save