cqpCow 10 months ago
parent
commit
a8d6a7e61b
1 changed files with 0 additions and 11 deletions
  1. 0 11
      app/Service/Service.php

+ 0 - 11
app/Service/Service.php

@@ -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;