作者 李忠强

更新

... ... @@ -267,11 +267,13 @@ class Rider extends Api
{
"goods_name": "Mate 20 华为 HUAWEI ",
"goods_attr": "极光色 8GB+128GB",
"total_num": "1", 购买数量
"image_text": "http://temporaryfood.qiniu.broing.cn123132"
},
{
"goods_name": "MacBook Pro 13寸",
"goods_attr": "天空灰",
"total_num": "1",
"image_text": "http://temporaryfood.qiniu.broing.cn123132"
}
],
... ... @@ -289,7 +291,7 @@ class Rider extends Api
->find();
$order->visible(['order_no','address','goods','id','distance','comment']);
foreach ($order->getRelation('goods') as $key => $value){
$value->visible(['goods_name','goods_attr']);
$value->visible(['goods_name','goods_attr','total_num']);
}
$comment = new GoodsComment();
$content = $comment->where('order_id',$order->id)->select();
... ...