车辆多语言修复

This commit is contained in:
2025-05-13 15:29:30 +08:00
parent af0e8bc62f
commit 21b19109d0
8 changed files with 198 additions and 86 deletions
+2 -2
View File
@@ -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) {