## 微信扫码登录
>[danger] 异步通知:
> 1. 通知方式:POST
> 2. Content-Type: application/x-www-form-urlencoded;charset=utf-8
> 3. 扫码一次则通知一次, 不会重复通知, 通知即登录成功, 登录失败不通知
>[success] 登录成功返回:
> 1. 字符串:"success"
> 2. HTTP状态码:200
~~~[api]
post:/wechat/qrcode.do
*string:notify=http://baidu.com#异步通知地址, 完整URL, 请务必URL编码后传输
*string:other= #你方唯一标识, 接口和异步都将原样返回
<<<
成功 (正确)
{
"code": 0,
"msg": "ok",
"data": {
"qrcode": "",
"other": "",
"extime": 300
}
}
<<<
失败 (错误)
{
"code": 1,
"msg": "系统升级中, 暂不可用",
"data": []
}
<<<
回调 (异步通知)
{
"openid": "",
"other": ""
}
~~~
> #### 响应参数
> | 参数 | 说明 |
> | --- | --- |
> | qrcode | 登陆链接, 请在微信内打开, 请做成二维码供用户扫描 |
> | other | 你方唯一标识, 原样返回 |
> | extime | 该二维码过期时间, 单位:秒, 可以用该时间创建倒计时, 倒计时结束则刷新二维码 |
> #### 异步通知参数
> | 参数 | 说明 |
> | --- | --- |
> | openid | 扫码用户的OpenId, 该用户在微信的唯一标识符 |
> | other | 你方唯一标识, 原样返回 |