浏览代码

上传不需要登录

lizhen_gitee 2 年之前
父节点
当前提交
75666f05ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/Common.php

+ 1 - 1
application/api/controller/Common.php

@@ -16,7 +16,7 @@ use think\Hook;
  */
  */
 class Common extends Api
 class Common extends Api
 {
 {
-    protected $noNeedLogin = ['init'];
+    protected $noNeedLogin = ['init','upload'];
     protected $noNeedRight = '*';
     protected $noNeedRight = '*';
 
 
     /**
     /**