调整导入
parent
e8ba0e860b
commit
f68ac5039a
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue