会员登陆
POST
/externalapi/user/login接口目前只支持账号密码登录,不支持验证码登录。
请求参数
Body 参数application/x-www-form-urlencoded
account
string
必需
用户名/邮箱/手机号
示例值:
username
password
string
密码
示例值:
11111111
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
响应编码:1=正常,0=错误
msg
string
响应说明
type
integer
必需
data
object
必需
userinfo
object
用户信息
示例
{
"code": 1,
"msg": "登录成功",
"type": 1,
"data": {
"userinfo": {
"id": 321,
"username": "userxxxxx",
"nickname": "xiaoming",
"email": "email@qq.com",
"mobile": "",
"email_verify": 1,
"mobile_verify": 0,
"avatar": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigxNjEsMTYwLDIyOSkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPjc8L3RleHQ+PC9zdmc+",
"duties": null,
"gender": 0,
"purpose": null,
"money": "8888",
"score": 8888,
"extension_status": 2,
"verify_status": "1",
"owner_verify_status": "0",
"ref": "0",
"channel": "1",
"origin_money": "3293.23",
"give_money": "54.19",
"token": "ddwwwd-0cfc-4b0a-89df-e113cf11a252",
"user_id": 1,
"createtime": 1697527680,
"expiretime": 1700119680,
"expires_in": 2591999
}
}
}
修改于 10 个月前