|
|
|
<?php
|
|
|
|
|
|
|
|
use App\Models\File\Image;
|
|
|
|
use App\Models\File\File;
|
|
|
|
use App\Models\File\File as FileModel;
|
|
|
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
use App\Services\CosService;
|
|
|
|
use App\Utils\EncryptUtils;
|
|
...
|
...
|
@@ -474,7 +474,7 @@ if (!function_exists('getImageUrl')) { |
|
|
|
return 'https:'.$path;
|
|
|
|
}
|
|
|
|
$imageModel = new Image();
|
|
|
|
$imageInfo = $imageModel->read(['path'=>$path],'is_cos');
|
|
|
|
$imageInfo = $imageModel->read(['path'=>$path],['is_cos']);
|
|
|
|
if($imageInfo === false){
|
|
|
|
return '';
|
|
|
|
}
|
|
...
|
...
|
@@ -516,8 +516,8 @@ if (!function_exists('getFileUrl')) { |
|
|
|
if(substr($path,0,2) == '//'){
|
|
|
|
return 'https:'.$path;
|
|
|
|
}
|
|
|
|
$fileModel = new File();
|
|
|
|
$fileInfo = $fileModel->read(['path'=>$path],'is_cos');
|
|
|
|
$fileModel = new FileModel();
|
|
|
|
$fileInfo = $fileModel->read(['path'=>$path],['is_cos']);
|
|
|
|
if($fileInfo === false){
|
|
|
|
return '';
|
|
|
|
}
|
...
|
...
|
|