车辆列表
This commit is contained in:
@@ -545,20 +545,14 @@ class VehicleController extends Crud
|
||||
$item = $vehicle::find($item['id']);
|
||||
$location = $hz::find($item->locations_id);
|
||||
$item['status_txt'] = $this->status[$lang][$item->status]??$this->status[$lang][0];
|
||||
// $item->status = "已到达迪拜仓库";
|
||||
$item->location_name = $location ? $location->name : '';
|
||||
$final_location = $hz::find($item->final_locations_id);
|
||||
// log::info('final_location_name:',[$item->final_locations_id]);
|
||||
$item->final_location_name = $final_location ? $final_location->name : '';
|
||||
$fbo_location = $hz::find($item->fbo_locations_id);
|
||||
$item->fbo_location_name = $fbo_location ? $fbo_location->name : '';
|
||||
|
||||
$location = $hz::find($item->locations_id);
|
||||
$item->location_name = $location ? $location->name : '';
|
||||
// $car = $vehicle::find($item->id);
|
||||
// $item->status = $car ? $car->status : $item->status;
|
||||
// $location = $hz::find($item->final_location_id);
|
||||
// $item->final_location_name = $location ? $location->name : '';
|
||||
$location = $hz::find($item->fbo_locations_id);
|
||||
$item->fbo_location_name = $location ? $location->name : '';
|
||||
|
||||
@@ -573,9 +567,6 @@ class VehicleController extends Crud
|
||||
Cache::set('img_dib_'.$item->id, $img_url, 86390);
|
||||
}
|
||||
|
||||
// $ossservice = new OssService();
|
||||
// $oss_picture = $ossservice->generatePrivateUrl($follow['picture'],86400);
|
||||
// $item['img_url'] = $img_url;
|
||||
} catch (\Exception $e) {
|
||||
Log::error("Vehicle image URL generation failed:", [
|
||||
'error' => $e->getMessage(),
|
||||
|
||||
Reference in New Issue
Block a user