• 商城-用户收货地址
    • request
    • response

    商城-用户收货地址

    用户添加自己收货资料,省份,城市,地区这里需要依赖地区模块

    request

    method :Get

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

    字段 类型 是否必须 描述

    response

    1. {
    2. "info": [
    3. {
    4. "address_id": "3",
    5. "userid": "4",
    6. "consignee": "黄振炼",
    7. "email": "",
    8. "country": "0",
    9. "province": "110000",
    10. "city": "110100",
    11. "district": "110101",
    12. "twon": "0",
    13. "address": "2222",
    14. "zipcode": "",
    15. "mobile": "13800138000",
    16. "is_default": "0",
    17. "is_pickup": "0",
    18. "province_name": "北京",
    19. "city_name": "北京市",
    20. "district_name": "东城区"
    21. }
    22. ],
    23. "status": 1,
    24. "url": "",
    25. "state": "success"
    26. }

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

    收货地址这里关系到省市联动效果,获取所属的用户是登录用户