### 小程序登录解密(同步创建会员信息)
~~~[api]
post:https://huangjinjiangan.xiaoding.shop/store/api.wechat/session
*code=023LQzyn1c2a9j06Kiyn1dZqyn1LQzyl#小程序授权码
<<<
result
{
"code": 1,
"msg": "CODE获取信息成功",
"data": {
"session_key": "xa+f5iA67L/8/nfdescavQ==",
"expires_in": 7200,
"member":{"id":"100","nickname":"Anyon"},
"openid": "ogcII0ZnEOjrJwTBE2ByqoN_nDfo"
}
}
~~~
~~~[api]
post:hhttps://huangjinjiangan.xiaoding.shop/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"
}
}
}
~~~