From 55a7f4a3068955878ed2cd1ab9f6aa2a866eb525 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Mon, 29 Aug 2022 11:46:01 +0800 Subject: [PATCH] edit-admin-order_detail --- admin/controllers/receiver/orderv2/Orders.php | 9 +++++---- admin/views/receiver/orderv2/get/ckinfo.php | 2 +- admin/views/receiver/orderv2/get/index.php | 3 +-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/controllers/receiver/orderv2/Orders.php b/admin/controllers/receiver/orderv2/Orders.php index debdbef2..9e4946b6 100644 --- a/admin/controllers/receiver/orderv2/Orders.php +++ b/admin/controllers/receiver/orderv2/Orders.php @@ -303,10 +303,11 @@ class Orders extends HD_Controller $agent['business_risk'] = $business_risk; $insurance_img = json_decode($img_data['insurance_img'],true); $business_img = json_decode($img_data['business_img'],true); - $agent['insurance_price'] = $insurance_img['price']; - $agent['insurance_product'] = $insurance_img['product']; - $agent['business_price'] = $business_img['price']; - $agent['business_product'] = $business_img['product']; + $agent['insurance_price'] = $insurance_img['price'] ? $insurance_img['price'] : ''; + $agent['insurance_product'] = $insurance_img['product'] ? $insurance_img['product'] : ''; + $agent['business_price'] = $business_img['price'] ? $business_img['price'] : ''; + $agent['business_product'] = $business_img['product'] ? $business_img['product'] : ''; + $agent['car_num'] = $agent['car_num'] ? $agent['car_num'] : ''; $row['agent'] = $agent; //获取销售员 if ($row['sale_id']) { diff --git a/admin/views/receiver/orderv2/get/ckinfo.php b/admin/views/receiver/orderv2/get/ckinfo.php index 66f53fb9..cf572441 100644 --- a/admin/views/receiver/orderv2/get/ckinfo.php +++ b/admin/views/receiver/orderv2/get/ckinfo.php @@ -11,7 +11,7 @@