one_after 2 mesi fa
parent
commit
c0cdf44595
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/controller/UploadController.php

+ 2 - 2
app/controller/UploadController.php

@@ -193,7 +193,7 @@ class UploadController extends Crud
                 if (!is_dir($full_dir)) {
                     mkdir($full_dir, 0777, true);
                 }
-                $imagePath_one = '/upload/img/' . date('Ymd') . '/' . $imageName; // 指定保存路径和文件名
+                $imagePath_one = '/upload/img/11' . date('Ymd') . '/' . $imageName; // 指定保存路径和文件名
 
                 // 保存图片到服务器
                 file_put_contents($base_dir . $imagePath_one, $imageData);
@@ -213,7 +213,7 @@ class UploadController extends Crud
                 if (!is_dir($full_dir)) {
                     mkdir($full_dir, 0777, true);
                 }
-                $imagePath_two = '/upload/img/' . date('Ymd') . '/' . $imageName; // 指定保存路径和文件名
+                $imagePath_two = '/upload/img/22' . date('Ymd') . '/' . $imageName; // 指定保存路径和文件名
 
                 // 保存图片到服务器
                 file_put_contents($base_dir . $imagePath_two, $imageData);