|
@@ -118,10 +118,11 @@ class SettingController extends Controller
|
|
$size = $image->filesize();
|
|
$size = $image->filesize();
|
|
|
|
|
|
$name = uniqid();
|
|
$name = uniqid();
|
|
|
|
+ $dir = 'tmp/share/' . date("Ymd");
|
|
$path = 'tmp/share/' . date("Ymd") . '/' . $name . '.png';
|
|
$path = 'tmp/share/' . date("Ymd") . '/' . $name . '.png';
|
|
$full_path = '/' . $path;
|
|
$full_path = '/' . $path;
|
|
- if(!\File::isDirectory($path)) {
|
|
|
|
- \File::makeDirectory($path, 493, true);
|
|
|
|
|
|
+ if(!\File::isDirectory($dir)) {
|
|
|
|
+ \File::makeDirectory($dir, 493, true);
|
|
}
|
|
}
|
|
$image->save($path);
|
|
$image->save($path);
|
|
|
|
|