This commit is contained in:
unknown 2023-09-22 16:31:34 +08:00
parent 5491b195aa
commit 2c79f57ba8

View File

@ -205,7 +205,7 @@ class VehicleLogic extends BaseLogic
$basic = array_merge($info,$rent,$logistic);
//获取商品
$goods = Product::field('product_num,cart_info')->where('order_id', $params['order_id'])->where('order_sn',$logistic['order_sn'])->select()->each(function($pro_item){
$goods = Product::field('product_num,cart_info')->where('order_id', $params['order_id'])->select()->each(function($pro_item){
$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'];