fetch
This commit is contained in:
parent
0e25915691
commit
84adb688b8
@ -67,7 +67,7 @@ class LogisticsLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
$item['status_name'] = $item->status_name;
|
||||
$product_count = 0;
|
||||
//获取产品信息
|
||||
$lst_item['products'] = Product::field('product_num,cart_info')->where('order_id', $item['order_id'])->select()->each(function($pro_item) use(&$product_count){
|
||||
$item['products'] = Product::field('product_num,cart_info')->where('order_id', $item['order_id'])->select()->each(function($pro_item) use(&$product_count){
|
||||
$pro_item['cart_info'] = json_decode($pro_item['cart_info'], true);
|
||||
$pro_item['goods_name'] = $pro_item['cart_info']['product']['store_name'];
|
||||
$pro_item['goods_unit'] = $pro_item['cart_info']['product']['unit_name'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user