前端获取参数
PHP
[code] => [iv] =>[encryptedData] =>
微信session_key接口
PHP
https://api.weixin.qq.com/sns/jscode2session?appid=$appId&secret=$appSecret&js_code=$code&grant_type=authorization_code
返回数据
PHP
[session_key] =>[openid] =>
session_key解密数据
PHP
[phoneNumber] => [purePhoneNumber] => [countryCode] => 86[watermark] => Array ( [timestamp] => [appid] => )
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://www.hqyman.cn/post/7800.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~