## code 换取 session_key
+++
POST:https://store.cuci.cc/store/api/minapp/session.html
*code#wx.login 返回的 code 值
encrypted#(可选)wx.getUserInfo 返回的 encryptedData 加密数据
iv#(可选)wx.getUserInfo 返回的 iv 值
<<<
获取成功
{
"code": "SUCCESS",
"msg": "获取用户openid成功!",
"data": {
"openid":"fasdfasdfadsfadsfasdfdasfads",
"expires_in":2592000
}
}
<<<
获取失败1
{
"code": "ERROR",
"info": "获取用户openid失败!",
"data": {
"errcode": 40029,
"errmsg": "invalid code, hints: [ req_id: JKWnaa0057s105 ]"
}
}
<<<
获取失败2
{
"code": "SHOP_ORDER_MISSING_PARAMETER",
"info": "丢失必要参数,请参考文档提交数据!",
"data": []
}
<<<
授权失败
{
"code": "AUTH_TOKEN_FAILD",
"info": "应用授权失败,请进行接口授权操作!",
"data": []
}
+++