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