sugangqiang 2 年之前
父节点
当前提交
a1b6b4968c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/common/controller/Api.php

+ 1 - 1
app/common/controller/Api.php

@@ -353,7 +353,7 @@ class Api extends BaseController {
                 $url = $fileinfo["templateUrl"];
                 break;
         }
-        $filepath = "storage/" . $fileinfo["url"];     // 下载文件名
+        $filepath = "storage/" . $url;     // 下载文件名
         if (!file_exists($filepath)) {
             header('HTTP/1.1 404 NOT FOUND');
         } else {