rkljw 3 天之前
父節點
當前提交
abeb7fc018
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Controller/PublicController.php

+ 1 - 1
app/Controller/PublicController.php

@@ -395,7 +395,7 @@ class PublicController extends AbstractController
                 }
                 
                 // 生成文件名:key + 1
-                $fileName = ($key + 1) . $this->getFileExtension($filePathu);
+                $fileName = $requireData['names'][$key]; //($key + 1) . $this->getFileExtension($filePathu);
                 
                 // 处理远程URL文件
                 if (filter_var($filePathu, FILTER_VALIDATE_URL)) {