## 接口情况
作者:Luffy
* * * * *
时间:2015年5月27日 15:51:48
* * * * *
作用:生成订单
* * * * *
说明:提交订单
* * * * *
提交方法:POST
* * * * *
##提交参数:
~~~
mobile:手机号码
goods_id:商品id(多个商品用,隔开)
sign:签名
key:加密验证
~~~
* * * * *
所在文件:
> /app/lingsqapi/lib/api/order.php
## 接口地址:
* * * * *
~~~
http://test.lingsq.com/index.php/api?&method=lingsqapi.api.order.checkout
~~~
* * * * *
请求示例:
> http://test.lingsq.com/index.php/api?debug=1&method=lingsqapi.api.order.checkout&goods=199&mobile=18507907279&sign=签名&key=key
* * * * *
* * * * *
返回数据:
> {"data":{"address":{"name":"\u6556\u5148\u751f","addr_id":"56","area":"mainland:\u6c5f\u897f\/\u5357\u660c\u5e02\/\u7ea2\u8c37\u6ee9\u65b0\u533a:3269","addr":"\u7ea2\u8c37\u6ee9\u672a\u6765\u8c37\u9999\u6e2f\u9986300211ddd","zip":"330000","tel":"","mobile":"0791-7252476","last_modify":null},"payments":[{"platform":"ismobile","app_platform":"\u89e6\u5c4f\u7248","app_name":"\u5fae\u4fe1","app_staus":"\u5f00\u542f","app_version":"1.0","app_id":"wechatpaym","app_rpc_id":"wechatpaym","app_class":"wechatpaym_payment_plugin_wechatpaym","app_des":" ","app_pay_type":"","app_display_name":"\u5fae\u4fe1\u624b\u673a\u652f\u4ed8","app_info":"\u5fae\u4fe1\u624b\u673a\u652f\u4ed8","support_cur":null,"pay_fee":0,"supportCurrency":{"CNY":"156"}},{"platform":"ismobile","app_platform":"\u89e6\u5c4f\u7248","app_name":"\u79fb\u52a8\u652f\u4ed8\u5b9d\u652f\u4ed8","app_staus":"\u5f00\u542f","app_version":"1.0","app_id":"mblalipay","app_rpc_id":"mblalipay","app_class":"mobile_payment_plugin_mblalipay","app_des":"\u652f\u4ed8\u5b9d","app_pay_type":"true","app_display_name":"\u652f\u4ed8\u5b9d","app_info":"\u79fb\u52a8\u652f\u4ed8\u5b9d\uff08\u4e2d\u56fd\uff09\u7f51\u7edc\u6280\u672f\u6709\u9650\u516c\u53f8\u662f\u56fd\u5185\u9886\u5148\u7684\u72ec\u7acb\u7b2c\u4e09\u65b9\u652f\u4ed8\u5e73\u53f0\uff0c\u7531\u963f\u91cc\u5df4\u5df4\u96c6\u56e2\u521b\u529e\u3002\u652f\u4ed8\u5b9d\u81f4\u529b\u4e8e\u4e3a\u4e2d\u56fd\u7535\u5b50\u5546\u52a1\u63d0\u4f9b\u201c\u7b80\u5355\u3001\u5b89\u5168\u3001\u5feb\u901f\u201d\u7684\u5728\u7ebf\u652f\u4ed8\u89e3\u51b3\u65b9\u6848\u3002\n\u5982\u4f55\u4f7f\u7528\u652f\u4ed8\u5b9d\u652f\u4ed8\uff1f<\/a>","support_cur":"","pay_fee":null,"supportCurrency":{"CNY":"01"}}],"goods":{"shopTotalPrice":0.1,"0":{"goods_id":"199","name":"\u5fb7\u56fd\u725b\u5976","bn":"1001","price":"0.100","weight":"180.000","product_id":"526","num":"1","image":"http:\/\/www.lingsq.com\/public\/images\/store76\/ef\/92\/b8\/5083b764fdfb3f1aef61317d9b819720.jpg","goodsPrice":0.1}}},"errNo":1,"errMsg":"ok","res":""}
* * * * *
[点击查看文档http://www.kancloud.cn/ncgis/shope](http://www.kancloud.cn/ncgis/shopex/codemsgpex/codemsg)
- 手机是否使用验证接口
- 返回码所代表的含义
- 发送手机验证码接口
- 用户注册接口
- 获取商品所有分类
- 获取商品列表
- 用户登陆接口
- 获取商品详细信息
- 获取产品图文详情
- 获取商品评论列表
- 获取推荐商品
- 获取找回密码短信
- 重置密码
- 获取每日特惠商品
- 获取轮播图
- 用户中心首页
- 获取用户收藏商品
- 删除用户收藏商品
- 获取所有订单(所有订单、代付款订单、待收货订单、退换货订单)
- 加入购物车
- 获取购物车商品
- 删除购物车商品
- 购物车商品移入收藏夹
- 添加收货地址
- 获取用户收货地址
- 添加用户收藏
- 提交订单
- 填写订单
- 退出登录
- 确认支付成功(正在验证支付状态)
- 验证自动登陆
- 获取订单详情
- 设置默认收货地址
- 删除收货地址
- 修改收货地址