车辆多语言修复
This commit is contained in:
@@ -22,7 +22,7 @@ use support\Cache;
|
||||
class VehicleController
|
||||
{
|
||||
|
||||
protected $status = ['未知','待发车','在途(发往fbo港口)','抵达发货港口','在途(发往目的地仓库)','抵达仓库','售出'];
|
||||
protected $status = ['未知','待发车','在途(发往fbo港口)','抵达发货港口','在途(发往目的地仓库)','抵达目的地','售出'];
|
||||
/**
|
||||
* Mask VIN number by showing only first 2 and last 6 characters
|
||||
*/
|
||||
@@ -105,7 +105,7 @@ class VehicleController
|
||||
}
|
||||
|
||||
$vehicle->fbo_destination = isset($arr[$vehicle->fbo_locations_id]) ? $arr[$vehicle->fbo_locations_id]['name'] : '';
|
||||
|
||||
$vehicle->status = $this->status[$vehicle->status]??$this->status[0];
|
||||
if(!str_starts_with($vehicle['img_url'], 'http')){
|
||||
$img_url = Cache::get('img_'.$vehicle->id);
|
||||
if ($img_url) {
|
||||
|
||||
Reference in New Issue
Block a user