| 
...
 | 
...
 | 
@@ -64,7 +64,16 @@ class UploadFile | 
| 
 | 
 | 
             $this->isUpload = false;
 | 
| 
 | 
 | 
             // 是不是远程路径
 | 
| 
 | 
 | 
             if(str_starts_with($tempFile, 'http://') || str_starts_with($tempFile, 'https://')){
 | 
| 
 | 
 | 
                 $content = @file_get_contents($tempFile);
 | 
| 
 | 
 | 
                 // 是不是本地文件
 | 
| 
 | 
 | 
                 if(str_contains($tempFile, str_replace(['https://','http://'],'',APP_HOST))){
 | 
| 
 | 
 | 
                     $url = parse_url($tempFile);
 | 
| 
 | 
 | 
                     if(is_file(PUBLIC_PATH.$url['path'])){
 | 
| 
 | 
 | 
                         $content = @file_get_contents(PUBLIC_PATH.$url['path']);
 | 
| 
 | 
 | 
                     }
 | 
| 
 | 
 | 
                 }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
                 if(empty($content))
 | 
| 
 | 
 | 
                     $content = @file_get_contents($tempFile);
 | 
| 
 | 
 | 
             }
 | 
| 
 | 
 | 
             // 以文件内容的形式保存
 | 
| 
 | 
 | 
             else{
 | 
...
 | 
...
 | 
 |