API接口文档

手机绑定

创建于 2021-10-20 / 最近更新于 2021-11-22 / 130

简要描述

手机绑定

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-10-07

请求URL

user/appmobilebind

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

{
    "mobile": "17602128368",
    "verify": "0944",
    "avatar": "https://d1.shopxo.vip/static/index/default/images/default-user-avatar.jpg",
    "city": "",
    "gender": "0",
    "nickname": "qqqqqq",
    "province": "",
    "referrer": 0,
    "weixin_openid": "oB6US5SNOngn196qzb3lagEBTh6w",
    "weixin_unionid": "o1Ang5xo5tiJD-l7Y1kY7-hT6emk"
}
参数名 是否必须 类型 描述
mobile string 手机号码
verify string 验证码
avatar string 用户头像
province string 所在省
city string 所在城市
gender string 性别
nickname string 昵称
referrer string 邀请人
weixin_openid string 对应小程序平台openid
weixin_unionid string 对应小程序平台unionid

返回示例

正确时返回

{
    "msg": "绑定成功",
    "code": 0,
    "data": {
        "id": "1",
        "alipay_openid": "",
        "weixin_openid": "oB6US5SNOngn196qzb3lagEBTh6w",
        "weixin_unionid": "o1Ang5xo5tiJD-l7Y1kY7-hT6emk",
        "weixin_web_openid": "obfTQw7y972CqaHw2ohJ2PcETUw8",
        "baidu_openid": "",
        "toutiao_openid": "",
        "qq_openid": "",
        "qq_unionid": "",
        "status": "0",
        "token": "1fa48232d7a0392ca22269a3d35b540f",
        "username": "qqqqqq",
        "nickname": "qqqqqq",
        "mobile": "17602128368",
        "email": "",
        "gender": "0",
        "avatar": "https://d1.shopxo.vip/static/index/default/images/default-user-avatar.jpg",
        "province": "",
        "city": "",
        "birthday": "0",
        "address": "",
        "integral": "1189",
        "locking_integral": "0",
        "referrer": "0",
        "plugins_distribution_level": "0",
        "plugins_user_level": "0",
        "is_delete_time": "0",
        "add_time": "1627535697",
        "upd_time": "1634727340",
        "add_time_text": "2021-07-29 13:14:57",
        "upd_time_text": "2021-10-20 18:55:40",
        "gender_text": "保密",
        "birthday_text": "",
        "mobile_security": "176***368",
        "email_security": "",
        "user_name_view": "qqqqqq",
        "is_mandatory_bind_mobile": 0
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
data array 用户信息

备注

更多返回错误代码请看首页的错误代码描述

0 人点赞过