commit
20ca18fc7c
@ -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'].'秒';
|
||||
|
Loading…
x
Reference in New Issue
Block a user