简要描述:

  • 注册【验证码】接口

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2021-11-09

请求URL:

请求方式:

  • POST

请求头:

参数名 是否必须 类型 说明

验证码登录请求参数:

参数名 是否必须 类型 说明
phone string 手机号,13113690000
code string 验证码
reg_type string 固定值 pc
password string 密码
password2 string 确认密码
male string 值【
invite_code string 邀请码

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "登录成功!",
    "data": {
        "uid": 7,
        "avatar": "http://novel.com/uploads/avatar/avatar.jpg",
        "c_code": "86",
        "phone": "13113690001",
        "email": "",
        "username": "131****0001",
        "male": "",
        "birthday": "",
        "nickname": "",
        "type": "member",
        "phone_active": 1,
        "email_active": 0,
        "status": 1,
        "create_at": "2019-12-20 15:34:32",
        "update_at": "2019-12-20 15:34:32",
        "wx_openid": "",
        "smallwx_openid": "",
        "change_username": 0,
        "integral": 0,
        "invite_code": "",
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjcsImlzcyI6Imh0dHA6Ly93emIuY29tL21vZHVsZS9tYWluL3JlZ2lzdGVyIiwiaWF0IjoxNTc2ODI3MjcyLCJleHAiOjE1NzY4MzA4NzIsIm5iZiI6MTU3NjgyNzI3MiwianRpIjoiTHBRYVBkUEp1cDh3Wm45bCJ9.CV7OH9-cZvyKoqVPys_dTkTEj_A_Bs-VEqdby4nMuW0",
        "set_password": true,
        "settled_in_status": false"social_circle": {
            "social_id": 1,
            "name": "kevin社圈",
            "logo": "http://wenxiang.com/uploads/SocialCircle/2020/09/29/5f72ae2fcb928.png",
            "describe": "kevin社圈你我共同守护"
        }
    }
}

错误时返回:

{
    "status": 0,
    "msg": "验证码错误"
}

返回参数说明:

参数名 类型 说明
uid string 用户uid
avatar string 用户头像
c_code string 手机区号, 默认86
phone string 手机号
email string 邮箱
username string 用户名
male string 性别 男 ,女, 保密
birthday string 生日
nickname string 昵称
type string 会员类型,admin = 超级管理员, General_admin 普通管理员,merchant=商家,member=会员
phone_active int 手机是否认证,0=否,1=是
email_active int 邮件是否认证,0=否,1=是
status int 账号状态,0=禁用,1=启用
create_at string 注册时间
update_at string 更新时间
wx_openid string 公众号用户唯一标识
smallwx_openid string 小程序用户唯一标识
change_username int 是否可以更改用户名【0.否;1.是】
integral int 积分
invite_code string 邀请码
token string 授权
set_password bool true=弹出设置密码,false=不弹出设置密码
settled_in_status bool true=入驻成功,false=未入驻成功

social_circle返回参数说明:

参数名 类型 说明
social_id string 社圈id
name string 社圈名称
logo string 社圈logo
describe string 社圈简介

备注:

文档更新时间: 2021-11-09 14:06   作者:admin