From 3c313b4f3430f591b64fed7a1609387e9f9f98f6 Mon Sep 17 00:00:00 2001 From: "HESU\\HESU" <1696136552@qq.com> Date: Sat, 22 Mar 2025 17:16:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E4=B8=8D=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/UploadController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controller/UploadController.php b/app/controller/UploadController.php index 5f413bf..f13ec13 100644 --- a/app/controller/UploadController.php +++ b/app/controller/UploadController.php @@ -14,6 +14,11 @@ use support\Request; class UploadController { + + /** + * 不需要登录的方法 + */ + protected $noNeedLogin = ['uploadImage']; // 允许的文件类型 protected $allowedMimeTypes = [ 'image/jpeg',