|
@@ -77,7 +77,7 @@ class FileUploadService extends Service
|
|
}
|
|
}
|
|
|
|
|
|
//获取文件的位置oss
|
|
//获取文件的位置oss
|
|
- public function getFileShow($file_name){
|
|
|
|
|
|
+ public function getFileShow($file_name,$expired = 3500){
|
|
$path = "";
|
|
$path = "";
|
|
if(empty($file_name)) return $path;
|
|
if(empty($file_name)) return $path;
|
|
|
|
|
|
@@ -87,7 +87,7 @@ class FileUploadService extends Service
|
|
$date = \DateTime::createFromFormat('Ymd', $timestamp);
|
|
$date = \DateTime::createFromFormat('Ymd', $timestamp);
|
|
$date = $date->format('Y-m-d');
|
|
$date = $date->format('Y-m-d');
|
|
$savePath = self::string3 . $date . '/' . $file_name;
|
|
$savePath = self::string3 . $date . '/' . $file_name;
|
|
- list($status,$path) = (new OssService())->getTemporaryUrl($savePath);
|
|
|
|
|
|
+ list($status,$path) = (new OssService())->getTemporaryUrl($savePath,$expired);
|
|
}
|
|
}
|
|
|
|
|
|
return $path;
|
|
return $path;
|