songxingwei 2 年之前
父節點
當前提交
cbf43ced97
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/data/controller/api/auth/Center.php

+ 1 - 0
app/data/controller/api/auth/Center.php

@@ -79,6 +79,7 @@ class Center extends Auth
      */
     public function upload()
     {
+        ini_set ("memory_limit","-1");
         $file = $this->request->file('file');
         if (empty($file)) $this->error('文件上传异常!');
         $extension = strtolower($file->getOriginalExtension());