|
@@ -476,17 +476,6 @@ class Service
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public function delStorageFileOss($old, $new = []){
|
|
|
- foreach ($old as $value){
|
|
|
- if(! in_array($value, $new)){
|
|
|
- $file_name = str_replace("/api/uploadFiles/",'',$value);
|
|
|
- $file_name = str_replace("|",'/',$file_name);
|
|
|
- list($status,$msg) = (new OssService())->deleteFile($file_name);
|
|
|
-// if(! $status) return [false , $msg];
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
public function showTimeAgo($time, $time_big){
|
|
|
// 计算时间差(秒)
|
|
|
$diffInSeconds = $time_big - $time;
|