ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### 小程序换取会话(创建会员信息) ~~~[api] post:/store/api.wechat/session *string:code=023LQzyn1c2a9j06Kiyn1dZqyn1LQzyl#小程序授权码 <<< result { "code": 1, "msg": "CODE获取信息成功", "data": { "expires_in": 7200, "session_key": "xa+f5iA67L/8/nfdescavQ==", "member":{"id":"100","nickname":"Anyon"}, "openid": "ogcII0ZnEOjrJwTBE2ByqoN_nDfo" } } ~~~ ### 小程序数据解密(创建会员信息) ~~~[api] post:/store/api.wechat/decode *iv=8Eg3aZvOzf1+h/bhnpb1Yw==#小程序加密向量值 *code=023LQzyn1c2a9j06Kiyn1dZqyn1LQzyl#登录授权码(code与session二选一) *session=0#通过sesson获取到的key(code与session二选一) *encrypted=32t5123531254132#小程序加密数据内容 <<< result { "code": 1, "msg": "解密数据返回成功", "data": { "member":{"id":"100","nickname":"Anyon"}, "openId": "ogcII0ZnEOjrJwTBE2ByqoN_nDfo", "nickName": "Anyon", "gender": 1, "language": "zh_CN", "city": "Guangzhou", "province": "Guangdong", "country": "China", "avatarUrl": "https://wx.qlogo.cn/mmopen/vi_32/VMgdmzEYLGIibNDbqTdcCmra2fktEVSsSa4MiaGjUoNdsWojtQCfFATt7NUHmm2ib0fwMR9Epia68b18IfsIiceMv6w/132", "watermark": { "timestamp": 1535616453, "appid": "wx19f64200446c3582" } } } ~~~