简要描述:
- 用户第三方登录、关联微信qq账号接口
请求URL:
POST/wapapi/login/oauthAppLogin
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
type | yes | string | 第三方类型,大小写敏感,微信:WCHAT,qq:QQLOGIN |
uid | yes | string | 微信unionid,qq openid |
name | no | string | 用户名称 |
gender | no | string | 性别,1:男,2:女,0:保密 |
iconurl | no | string | 头像url |
返回示例:
正确时返回:
{
"code": 1,
"message":"登陆成功"
"data": {
"user_token":"11111"
}
}
{
"code": 2,
"message":"请绑定手机"
}
{
"code": 3,
"message":"用户不可用"
}
{
"code": 4,
"message":"获取code",
'data' => {
'url':'https://'
}
}
错误时返回:
{
"code": < 0,
"message": "配置无效"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
code | int | 1:登陆成功 2:跳转绑定手机的页面 3:显示用户被锁定 4:跳转获取code的链接,或者授权链接 |