• 用户-注册
    • request
    • response

    用户-注册

    request

    method :post

    URLindex.php?g=Shop&m=UserApi&a=register

    字段 类型 是否必须 描述
    username varchar 用户注册的邮箱或者手机
    password varchar 用户注册密码
    password2 varchar 用户注册确认密码

    response

    1. {
    2. "info": {
    3. "userid": "1",
    4. "email": "",
    5. "sex": "0",
    6. "birthday": "0",
    7. "user_money": "0.00",
    8. "frozen_money": "0.00",
    9. "distribut_money": "0.00",
    10. "pay_points": "0",
    11. "address_id": "0",
    12. "reg_time": "1483371522",
    13. "last_login": "0",
    14. "last_ip": "",
    15. "qq": "",
    16. "mobile": "15088132444",
    17. "mobile_validated": "1",
    18. "oauth": "",
    19. "openid": "",
    20. "head_pic": "",
    21. "province": "0",
    22. "city": "0",
    23. "district": "0",
    24. "email_validated": "0",
    25. "nickname": "15088132444",
    26. "level": "0",
    27. "discount": "0.00",
    28. "total_amount": "0.00",
    29. "is_lock": "0",
    30. "is_distribut": "0",
    31. "first_leader": "0",
    32. "second_leader": "0",
    33. "third_leader": "0",
    34. "token": "9ce184919872f6be2c3328792dcde271"
    35. },
    36. "status": 1,
    37. "url": "",
    38. "state": "success"
    39. }

    ps: 失败返回 status != 1,具体看msg信息

    登录成功之后返回的shop_user表上的信息。