소스 검색

更新文件夹目录

王大坤 1 년 전
부모
커밋
226ee6c763
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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