From ff8b11d2d6006352649f6e23940a753a07dc8b9a Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Fri, 22 Sep 2023 16:17:22 +0800 Subject: [PATCH] update --- app/adminapi/logic/vehicle/VehicleLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/adminapi/logic/vehicle/VehicleLogic.php b/app/adminapi/logic/vehicle/VehicleLogic.php index 1de8ea68..dc781ff8 100644 --- a/app/adminapi/logic/vehicle/VehicleLogic.php +++ b/app/adminapi/logic/vehicle/VehicleLogic.php @@ -198,7 +198,7 @@ class VehicleLogic extends BaseLogic public static function vehicleLogisticDetail($params){ $info = Vehicle::field('id,license,status,type')->findOrEmpty($params['car_id'])->toArray(); $rent = VehicleRent::field('use_user_id,use_user_name,use_user_phone')->where('car_id',$info['id'])->findOrEmpty()->toArray(); - $logistic = Logistics::field('order_sn,user_name,receiver_address,shop_name,shop_address,create_time,qh_time')->where('order_id',$params['order_id'])->findOrEmpty()->toArray(); + $logistic = Logistics::field('order_sn,user_name,receiver_address,shop_name,shop_address,create_time,qh_time')->where('courier_id',$rent['use_user_idgit'])->where('order_id',$params['order_id'])->findOrEmpty()->toArray(); $qhTime = !empty($logistic['qh_time']) ? strtotime($logistic['qh_time']) : time(); $diffTime = timeDiff($qhTime,time()); $logistic['diff_time'] = $diffTime['day'].'天'.$diffTime['hour'].'小时'.$diffTime['min'].'分钟'.$diffTime['sec'].'秒';