Browse Source

storage加public

master
李可松 4 years ago
parent
commit
83627a3982
  1. 2
      app/Console/Commands/Collector.php

2
app/Console/Commands/Collector.php

@ -447,7 +447,7 @@ class Collector extends Command
$md5 = md5($raw);
$filename = 'collect/images/' . date('Y-m-d') . '/' . $md5 . '.' . $ext;
if (file_exists(storage_path($filename)) || Storage::put($filename, $raw)) {
if (file_exists(storage_path($filename)) || Storage::put('public/' . $filename, $raw)) {
return $filename;
} else {
return '';

Loading…
Cancel
Save