## 接口情况
作者:Luffy
* * * * *
时间:2015年5月12日 16:54:13
* * * * *
作用:获取用户收藏的产品,
* * * * *
说明:获取用户收藏的产品
* * * * *
提交方法:POST/GET
* * * * *
##提交参数:
~~~
mobile:手机号码
sign:签名
method:执行相关操作的方法地址
page:当前页数
limit:每页显示数量
os:系统
key:用户加密后的参数
~~~
* * * * *
所在文件:
> /app/lingsqapi/lib/api/member.php
## 接口地址:
* * * * *
~~~
获取所有订单:http://test.lingsq.com/index.php/api?&method=lingsqapi.api.member.lingsqapi.api.member.allOrder
获取待付款订单:http://test.lingsq.com/index.php/api?&method=lingsqapi.api.member.lingsqapi.api.member.noPaymentOrder
获取待收货订单:http://test.lingsq.com/index.php/api?&method=lingsqapi.api.member.noGetGoodsOrde
获取待收货订单:http://test.lingsq.com/index.php/api?&method=lingsqapi.api.member.returnOrder
~~~
###返回参数说明:
1. 退换货状态-refund_status
~~~
0:无退换货
1:退款申请中,等待卖家审
2:正常
3:卖家同意退款,等待买家退货
4:正常
5:买家已退货,等待卖家确认收货
6:卖家不同意协议,等待买家修改
7:买家已退货,卖家不同意协议,等待买家修改
8:平台介入,等待卖家举证<
9:平台介入,等待平台处理
10:正常
11:卖家同意退款,等待卖家打款至平台
12:卖家已退款,等待系统结算
~~~
2.支付状态-pay_status
~~~
0:未付款
1:已支付
2:已付款至担保方
3:待补款
4:部分退款
5:已退款
6:正在验证支付
~~~
3.发货状态-ship_status
~~~
0:正在备货(未发货)
1:已发货
2:部分发货
3:部分退货
4:已退货
~~~
* * * * *
请求示例:
###### 1. 请求所有订单
> http://test.lingsq.com/index.php/api?&method=lingsqapi.api.member.
lingsqapi.api.member.allOrder&mobile=18507907279&page=0&limit=10&sign=签名&os=ios&key=xxxxxx
###### 2.请求待付款订单,并分页
>http://test.lingsq.com/index.php/api?method=lingsqapi.api.member.noPaymentOrder&mobile=18507907279&page=1&limit=20
* * * * *
##返回数据样式:
>{"data":[{"order_id":"2015052910122150","final_amount":"0.010","pay_status":"0","ship_status":"0","is_delivery":"Y","createtime":"1432866661","payment":"mblalipay","shipping":"\u5c0f\u533a\u914d\u9001(\u5e73\u90ae)","status":"active","ship_addr":"\u7ea2\u8c37\u6ee9\u672a\u6765\u8c37\u9999\u6e2f\u9986300211ddd","goods":[{"price":"0.100","name":"\u5fb7\u56fd\u725b\u5976","quantity":"10","weight":"1800","bn":"1001","goods_id":"199","image_default_id":"48c8379b49aa251065c8861e4ac92473","goodsTotalPrice":1,"image":"http:\/\/test.lingsq.com\/public\/images\/store76\/ef\/92\/b8\/5083b764fdfb3f1aef61317d9b819720.jpg?1431584347#h"},{"price":"3.900","name":"\u597d\u591a\u9c7c\u6d77\u82d434g","quantity":"5","weight":"170","bn":"G551D0BFF31650","goods_id":"317","image_default_id":"bba4d7e48273d35bcf8723e7875d65a7","goodsTotalPrice":19.5,"image":"http:\/\/test.lingsq.com\/public\/images\/store76\/f1\/a0\/85\/d92b11bee2202e533f88ebbb8e02246d.jpg?1427971519#h"}]},{"order_id":"2015052910714105","final_amount":"20.500","pay_status":"0","ship_status":"0","is_delivery":"Y","createtime":"1432866960","payment":"mblalipay","shipping":"\u5c0f\u533a\u914d\u9001(\u5e73\u90ae)","status":"active","ship_addr":"\u7ea2\u8c37\u6ee9\u672a\u6765\u8c37\u9999\u6e2f\u9986300211ddd","goods":[{"price":"0.100","name":"\u5fb7\u56fd\u725b\u5976","quantity":"10","weight":"1800","bn":"1001","goods_id":"199","image_default_id":"48c8379b49aa251065c8861e4ac92473","goodsTotalPrice":1,"image":"http:\/\/test.lingsq.com\/public\/images\/store76\/ef\/92\/b8\/5083b764fdfb3f1aef61317d9b819720.jpg?1431584347#h"},{"price":"3.900","name":"\u597d\u591a\u9c7c\u6d77\u82d434g","quantity":"5","weight":"170","bn":"G551D0BFF31650","goods_id":"317","image_default_id":"bba4d7e48273d35bcf8723e7875d65a7","goodsTotalPrice":19.5,"image":"http:\/\/test.lingsq.com\/public\/images\/store76\/f1\/a0\/85\/d92b11bee2202e533f88ebbb8e02246d.jpg?1427971519#h"}]}],"errNo":"1","errMsg":"ok","res":""}
[点击查看文档http://www.kancloud.cn/ncgis/shope](http://www.kancloud.cn/ncgis/shopex/codemsgpex/codemsg)
- 手机是否使用验证接口
- 返回码所代表的含义
- 发送手机验证码接口
- 用户注册接口
- 获取商品所有分类
- 获取商品列表
- 用户登陆接口
- 获取商品详细信息
- 获取产品图文详情
- 获取商品评论列表
- 获取推荐商品
- 获取找回密码短信
- 重置密码
- 获取每日特惠商品
- 获取轮播图
- 用户中心首页
- 获取用户收藏商品
- 删除用户收藏商品
- 获取所有订单(所有订单、代付款订单、待收货订单、退换货订单)
- 加入购物车
- 获取购物车商品
- 删除购物车商品
- 购物车商品移入收藏夹
- 添加收货地址
- 获取用户收货地址
- 添加用户收藏
- 提交订单
- 填写订单
- 退出登录
- 确认支付成功(正在验证支付状态)
- 验证自动登陆
- 获取订单详情
- 设置默认收货地址
- 删除收货地址
- 修改收货地址