From d5a8c97ad3f24f4f566da119c7f0a88548588ec3 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 21 Apr 2021 16:35:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/FileController.class.php | 5 +++-- Application/Admin/View/Game/edit.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/FileController.class.php b/Application/Admin/Controller/FileController.class.php index a9db7bd78..fbd7c0763 100644 --- a/Application/Admin/Controller/FileController.class.php +++ b/Application/Admin/Controller/FileController.class.php @@ -202,10 +202,11 @@ class FileController extends AdminController /* 调用文件上传组件上传文件 */ $Picture = D('Picture'); $pic_driver = C('PICTURE_UPLOAD_DRIVER'); + // dd(I('icon')); if (I('icon')) { - if ($_FILES['file']['size'] > 51200) { - $return = array('status' => 1001, 'info' => '图片大小不得超过50k', 'data' => ''); + if ($_FILES['file']['size'] > 2097152) { + $return = array('status' => 1001, 'info' => '图片大小不得超过2M', 'data' => ''); $this->ajaxReturn($return); } } diff --git a/Application/Admin/View/Game/edit.html b/Application/Admin/View/Game/edit.html index ee9a72c58..0c6339a61 100644 --- a/Application/Admin/View/Game/edit.html +++ b/Application/Admin/View/Game/edit.html @@ -2586,7 +2586,7 @@ }); if (response.status==1001) { - alert('图片大小不得超过50k'); + alert('图片大小不得超过2M'); $('#icon_thelist').children().last().remove(); location.reload() }