ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 获取当前用户所有地址 +++ get:http://ceshi.aihuapeng.com/index.php/Api/Address/getAddressInfo *uid=1#当前用户的id *key=7db058a68777ae4e#用户key值 <<< success { "code": "1", "msg": "获取地址列表成功!", "data": [ { "address_id": "2", "title": "公司", "country": "中国", "province": "北京", "city": "北京", "area": "朝阳区", "detailaddress": "二位", "longitude": "0", "latitude": "0", "status": "1", "addtime": "201501010", "consignee": "而", "consignee_phone": "18811112222", "user_user_id": "1" }, { "address_id": "3", "title": "家", "country": "中国", "province": "河北 ", "city": " 石家庄", "area": "大兴区", "detailaddress": "XX街道XX号", "longitude": "0", "latitude": "0", "status": "0", "addtime": "0", "consignee": "刘明明", "consignee_phone": "13098766789", "user_user_id": "1" } ] } <<< error { "code": "0", "msg": "这里是返回的错误信息", "data": [] } +++ ## 添加收货地址 +++ post:http://ceshi.aihuapeng.com/index.php/Api/Address/addAddress *uid=1#当前用户的id *key=7db058a68777ae4e#用户key值 *province=1#省份 *city=1#城市 *area=1#区域例如朝阳区 *detailaddress=1#详细地址 *consignee=1#收货人 *consignee_phone=1#收货人电话 *status=1#默认为0;表示添加普通地址,如果选中状态变为1,表示添加为默认地址。 <<< success { "code": "1", "msg": "恭喜您添加成功", "data": { "province": "北京", "city": "北京", "area": "朝阳区", "detailaddress": "央视大裤衩101", "consignee": "董卿", "consignee_phone": "18811112222", "user_user_id": "1", "status":"1" } } <<< error { "code": 0, "msg": "这里是返回的错误信息", "data": [] } +++ ## 删除当前选中地址 +++ get:http://ceshi.aihuapeng.com/index.php/Api/Address/delAddress *uid=1#当前用户的id *key=7db058a68777ae4e#用户key值 *address_id=1#当前地址的id <<< success { "code": "1", "msg": "删除成功", "data": [] } <<< error { "code": 0, "msg": "这里是返回的错误信息", "data": [] } +++