| xqd
@@ -476,8 +476,9 @@ class AiController extends Controller
|
|
|
if (empty($file_name)) {
|
|
|
$file_name = md5(time()) . '.pdf';
|
|
|
}
|
|
|
- $path = public_path() . '/file/pdf/' . $file_name;
|
|
|
$date = date('Ymd');
|
|
|
+ $path = public_path() . '/file/pdf/' . $date.'/'.$file_name;
|
|
|
+
|
|
|
$imageDir = public_path() . '/file/pdf/'.$date.'/';
|
|
|
if (!is_dir($imageDir)) {
|
|
|
mkdir($imageDir, 0755, true);
|