简要描述:

  • 账号密码注册接口 (注册逻辑同之前一致只是手机号换成了账号)

action

plugin.account-login.frotend.member.register

参数: 除了这几个参数另外拥有原本注册接口所有的参数(除去手机号)!!!!!!

参数名 是否必须 类型 说明
account string 账号
password string 密码
confirm_password string 确认密码
fathername string 父亲姓名
mothername string 母亲姓名
customDatas string 原参数
address string 原参数
birthday string 原参数
gender string 原参数
custom_value string 原参数
mid string 原参数
invite_code string 邀请码

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "uid": 698218,
        "uniacid": 5,
        "mobile": "",
        "email": "",
        "groupid": 0,
        "credit1": "0.00",
        "credit2": "0.00",
        "credit3": "0.00",
        "credit4": "0.00",
        "credit5": "0.00",
        "credit6": "0.00",
        "createtime": 1607049274,
        "realname": "",
        "nickname": "a1234567",
        "signature": null,
        "avatar": "http://shop/static/images/photo-mr.jpg",
        "qq": "",
        "vip": 0,
        "gender": 0,
        "birthyear": 0,
        "birthmonth": 0,
        "birthday": "2020-12-04",
        "constellation": "",
        "zodiac": "",
        "telephone": "",
        "idcard": "",
        "studentid": "",
        "grade": "",
        "address": "",
        "zipcode": "",
        "nationality": "",
        "resideprovince": "",
        "residecity": "",
        "residedist": "",
        "graduateschool": "",
        "company": "",
        "education": "",
        "occupation": "",
        "position": "",
        "revenue": "",
        "affectivestatus": "",
        "lookingfor": "",
        "bloodtype": "",
        "height": "",
        "weight": "",
        "alipay": null,
        "msn": "",
        "taobao": "",
        "site": "",
        "bio": "",
        "interest": "",
        "pay_password": "0",
        "account": "a1234567",
        "fathername": "1",
        "mothername": "2",
        "alipay_name": null,
        "province_name": "",
        "city_name": "",
        "area_name": "",
        "province": 0,
        "city": 0,
        "area": 0,
        "wechat": null,
        "level_id": 0,
        "level_name": "普通会员",
        "is_agent": true,
        "referral": {
            "uid": "",
            "avatar": "/static/images/photo-mr.jpg",
            "nickname": "总店",
            "level": "",
            "is_show": null
        },
        "qr": "http://shop/storage/app/public/qr/5_698218.png",
        "avatar_dir": "http://shop/storage/app/public/avatar/",
        "copyright": "",
        "credit": {
            "is_show": 1,
            "text": "余额",
            "data": "0.00"
        },
        "integral": {
            "text": "积分",
            "data": "0.00"
        },
        "love_show": {
            "is_show": 1,
            "text": "爱心值",
            "data": "0.00"
        },
        "avatar_image": "http://shop/static/images/photo-mr.jpg",
        "username": "a1234567"
    }
}

错误时返回:

  {
    "result": 0,
    "msg": '账号或密码格式错误',
	"data":null
  }
  
  {
    "result": 0,
    "msg": '密保问题:父亲姓名不能为空',
	"data":null
  }
  
  {
    "result": 0,
    "msg": '密码不匹配',
	"data":null
  }

返回参数说明:

参数名 类型 说明
result int 注册状态 0-失败;1-成功
data array 用户数据

备注:

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