Parcourir la source

更新文件夹目录

王大坤 il y a 1 an
Parent
commit
226ee6c763
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      app/Http/Controllers/V1/Ai/AiController.php
  2. BIN
      public/.DS_Store

+ 2 - 1
app/Http/Controllers/V1/Ai/AiController.php

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);

BIN
public/.DS_Store