切换导航条
此项目
正在载入...
登录
何书鹏
/
anttest
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
何书鹏
4 years ago
提交
c2de6ed57d40b7961022506bc0d44eb69466f772
1 个父辈
1c73dd30
包裹接口
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
221 行增加
和
5 行删除
application/api/controller/OrderExpress.php
public/api.html
application/api/controller/OrderExpress.php
查看文件 @
c2de6ed
...
...
@@ -20,7 +20,61 @@ class OrderExpress extends Base
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name=order_id, type=inter, required=true, description="订单ID")
*
* @ApiReturn()
* @ApiReturn({
"code": 1,
"msg": "包裹列表",
"time": "1609395352",
"data": [{
"id": 4, //包裹ID
"user_id": 2,
"order_id": 42, //订单ID
"express_name": "顺丰速运", //物流公司
"express_code": "SF", //物流公司编号
"express_no": "123456", //物流单号
"createtime": 1609395121,
"log": [],
"item": [{ //订单商品
"id": 46, //订单商品ID
"user_id": 2,
"order_id": 42,
"goods_id": 2, //商品ID
"goods_type": "normal",
"goods_sku_price_id": 2,
"activity_id": 0,
"activity_type": null,
"item_goods_sku_price_id": 0,
"goods_sku_text": null,
"goods_title": "测试商品2", //商品名称
"goods_image": "https://yixiaoxian.qiniu.broing.cn/uploads/20201222/FrL-L9PaG1w26iB0ah64UAFBiuqN.png", //商品图片
"goods_original_price": "1000.00", //原价
"discount_fee": "0.00", //折扣价
"goods_price": "0.02", //现价
"goods_num": 1, //购买数量
"dispatch_status": 1, //发货状态:0=未发货,1=已发货,2=已收货
"dispatch_fee": "8.00", //发货费用
"dispatch_type": "express", //发货方式:express=物流
"dispatch_id": 1, //发货模板ID
"store_id": 0,
"aftersale_status": 0,
"comment_status": 0,
"refund_status": 0,
"refund_fee": null,
"refund_msg": null,
"express_name": "顺丰速运", //快递公司
"express_code": "SF", //快递公司编号
"express_no": "123456", //快递单号
"ext": "[]",
"status_code": "noget",
"status_name": "待收货",
"status_desc": "等待买家收货",
"btns": [
"get",
"aftersale"
],
"ext_arr": []
}]
}]
})
*/
public
function
index
()
{
...
...
@@ -39,7 +93,61 @@ class OrderExpress extends Base
* @ApiParams (name=id, type=inter, required=true, description="包裹ID")
* @ApiParams (name=order_id, type=inter, required=true, description="订单ID")
*
* @ApiReturn()
* @ApiReturn({
"code": 1,
"msg": "包裹详情",
"time": "1609395352",
"data": {
"id": 4, //包裹ID
"user_id": 2,
"order_id": 42, //订单ID
"express_name": "顺丰速运", //物流公司
"express_code": "SF", //物流公司编号
"express_no": "123456", //物流单号
"createtime": 1609395121,
"log": [],
"item": [{ //订单商品
"id": 46, //订单商品ID
"user_id": 2,
"order_id": 42,
"goods_id": 2, //商品ID
"goods_type": "normal",
"goods_sku_price_id": 2,
"activity_id": 0,
"activity_type": null,
"item_goods_sku_price_id": 0,
"goods_sku_text": null,
"goods_title": "测试商品2", //商品名称
"goods_image": "https://yixiaoxian.qiniu.broing.cn/uploads/20201222/FrL-L9PaG1w26iB0ah64UAFBiuqN.png", //商品图片
"goods_original_price": "1000.00", //原价
"discount_fee": "0.00", //折扣价
"goods_price": "0.02", //现价
"goods_num": 1, //购买数量
"dispatch_status": 1, //发货状态:0=未发货,1=已发货,2=已收货
"dispatch_fee": "8.00", //发货费用
"dispatch_type": "express", //发货方式:express=物流
"dispatch_id": 1, //发货模板ID
"store_id": 0,
"aftersale_status": 0,
"comment_status": 0,
"refund_status": 0,
"refund_fee": null,
"refund_msg": null,
"express_name": "顺丰速运", //快递公司
"express_code": "SF", //快递公司编号
"express_no": "123456", //快递单号
"ext": "[]",
"status_code": "noget",
"status_name": "待收货",
"status_desc": "等待买家收货",
"btns": [
"get",
"aftersale"
],
"ext_arr": []
}]
}
})
*/
public
function
detail
()
{
...
...
public/api.html
查看文件 @
c2de6ed
...
...
@@ -3247,7 +3247,61 @@
<div
class=
"tab-pane"
id=
"sample41"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<pre
id=
"sample_response41"
>
无
</pre>
<pre
id=
"sample_response41"
>
{
"code": 1,
"msg": "包裹列表",
"time": "1609395352",
"data": [{
"id": 4, //包裹ID
"user_id": 2,
"order_id": 42, //订单ID
"express_name": "顺丰速运", //物流公司
"express_code": "SF", //物流公司编号
"express_no": "123456", //物流单号
"createtime": 1609395121,
"log": [],
"item": [{ //订单商品
"id": 46, //订单商品ID
"user_id": 2,
"order_id": 42,
"goods_id": 2, //商品ID
"goods_type": "normal",
"goods_sku_price_id": 2,
"activity_id": 0,
"activity_type": null,
"item_goods_sku_price_id": 0,
"goods_sku_text": null,
"goods_title": "测试商品2", //商品名称
"goods_image": "https://yixiaoxian.qiniu.broing.cn/uploads/20201222/FrL-L9PaG1w26iB0ah64UAFBiuqN.png", //商品图片
"goods_original_price": "1000.00", //原价
"discount_fee": "0.00", //折扣价
"goods_price": "0.02", //现价
"goods_num": 1, //购买数量
"dispatch_status": 1, //发货状态:0=未发货,1=已发货,2=已收货
"dispatch_fee": "8.00", //发货费用
"dispatch_type": "express", //发货方式:express=物流
"dispatch_id": 1, //发货模板ID
"store_id": 0,
"aftersale_status": 0,
"comment_status": 0,
"refund_status": 0,
"refund_fee": null,
"refund_msg": null,
"express_name": "顺丰速运", //快递公司
"express_code": "SF", //快递公司编号
"express_no": "123456", //快递单号
"ext": "[]",
"status_code": "noget",
"status_name": "待收货",
"status_desc": "等待买家收货",
"btns": [
"get",
"aftersale"
],
"ext_arr": []
}]
}]
}
</pre>
</div>
</div>
</div>
<!-- #sample -->
...
...
@@ -3395,7 +3449,61 @@
<div
class=
"tab-pane"
id=
"sample42"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<pre
id=
"sample_response42"
>
无
</pre>
<pre
id=
"sample_response42"
>
{
"code": 1,
"msg": "包裹详情",
"time": "1609395352",
"data": {
"id": 4, //包裹ID
"user_id": 2,
"order_id": 42, //订单ID
"express_name": "顺丰速运", //物流公司
"express_code": "SF", //物流公司编号
"express_no": "123456", //物流单号
"createtime": 1609395121,
"log": [],
"item": [{ //订单商品
"id": 46, //订单商品ID
"user_id": 2,
"order_id": 42,
"goods_id": 2, //商品ID
"goods_type": "normal",
"goods_sku_price_id": 2,
"activity_id": 0,
"activity_type": null,
"item_goods_sku_price_id": 0,
"goods_sku_text": null,
"goods_title": "测试商品2", //商品名称
"goods_image": "https://yixiaoxian.qiniu.broing.cn/uploads/20201222/FrL-L9PaG1w26iB0ah64UAFBiuqN.png", //商品图片
"goods_original_price": "1000.00", //原价
"discount_fee": "0.00", //折扣价
"goods_price": "0.02", //现价
"goods_num": 1, //购买数量
"dispatch_status": 1, //发货状态:0=未发货,1=已发货,2=已收货
"dispatch_fee": "8.00", //发货费用
"dispatch_type": "express", //发货方式:express=物流
"dispatch_id": 1, //发货模板ID
"store_id": 0,
"aftersale_status": 0,
"comment_status": 0,
"refund_status": 0,
"refund_fee": null,
"refund_msg": null,
"express_name": "顺丰速运", //快递公司
"express_code": "SF", //快递公司编号
"express_no": "123456", //快递单号
"ext": "[]",
"status_code": "noget",
"status_name": "待收货",
"status_desc": "等待买家收货",
"btns": [
"get",
"aftersale"
],
"ext_arr": []
}]
}
}
</pre>
</div>
</div>
</div>
<!-- #sample -->
...
...
@@ -9804,7 +9912,7 @@
<div
class=
"row mt0 footer"
>
<div
class=
"col-md-6"
align=
"left"
>
Generated on 2020-12-31 1
1:54:19
</div>
Generated on 2020-12-31 1
4:28:56
</div>
<div
class=
"col-md-6"
align=
"right"
>
<a
href=
"./"
target=
"_blank"
>
My Website
</a>
</div>
...
...
请
注册
或
登录
后发表评论