From 4dd36afd4508e40ddffc7c13ea5847e74a73c3dc Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 21 Apr 2021 16:35:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96icon=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/FileController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/FileController.class.php b/Application/Admin/Controller/FileController.class.php index fbd7c0763..24f32d3a4 100644 --- a/Application/Admin/Controller/FileController.class.php +++ b/Application/Admin/Controller/FileController.class.php @@ -205,7 +205,7 @@ class FileController extends AdminController // dd(I('icon')); if (I('icon')) { - if ($_FILES['file']['size'] > 2097152) { + if ($_FILES['file']['size'] > 2*1024*1024) { $return = array('status' => 1001, 'info' => '图片大小不得超过2M', 'data' => ''); $this->ajaxReturn($return); }