This commit is contained in:
unknown 2023-08-18 10:46:00 +08:00
parent 0e25915691
commit 84adb688b8

View File

@ -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'];