@my943813636
2019-03-11T05:11:33.000000Z
字数 763
阅读 635
GET xxxx/unionIdentity
{...data : {unionCode : "asdaslkjlkfjsalkj"expTime : "2019年2月21日09:42:10" //过期时间 5分钟就好}}
其中
appid 为 公众号的id
scope 为 snsapi_userinfo
state 为 获取登录前的唯一用户识别码 中获取的 unionCode
redirect_uri 为 https://book.jftio.cn/#/pc/oauth 进行一次 urlEncode
GET xxxx/unionIdentity/{unionCode}
成功登陆响应
{...data : {token : "asdjasljflkasjfljaslkfjlkafs",uid : "1"}}
失败响应
{...code : 错误码}
