diff --git a/app/Admin/Imports/Import.php b/app/Admin/Imports/Import.php index c2d13eae..eaf81714 100644 --- a/app/Admin/Imports/Import.php +++ b/app/Admin/Imports/Import.php @@ -15,7 +15,8 @@ class Import $file_name = substr($url, strrpos($url, '/')+1); $path = DIRECTORY_SEPARATOR.'import'.DIRECTORY_SEPARATOR.date('Y-m-d').DIRECTORY_SEPARATOR.'import'.$file_name; - Storage::put($path, file_get_contents($url)); + // dd(str_replace(config('filesystems.disks.aliyun.domain'), config('filesystems.disks.aliyun.bucket').'.'.config('filesystems.disks.aliyun.endpoint'), $url)); + Storage::put($path, file_get_contents(str_replace(config('filesystems.disks.aliyun.domain'), config('filesystems.disks.aliyun.bucket').'.'.config('filesystems.disks.aliyun.endpoint'), $url))); $file = new File(storage_path('app'.$path)); return $this->readFile($file); }