img
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace plugin\admin\app\controller;
|
||||
|
||||
use app\service\OssService;
|
||||
use plugin\admin\app\model\Location;
|
||||
use support\Request;
|
||||
use support\Response;
|
||||
@@ -127,6 +128,13 @@ class VehicleController extends Crud
|
||||
$fbo_location = Location::find($item->fbo_locations_id);
|
||||
$item->fbo_location_name = $fbo_location ? $fbo_location->name : '';
|
||||
}
|
||||
|
||||
|
||||
if(!str_starts_with($items->url, 'http')){
|
||||
$ossservice = new OssService();
|
||||
$img_url = $ossservice->generatePrivateUrl($item->img_url,86400);
|
||||
$item->img_url = $img_url;
|
||||
}
|
||||
return $items;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user