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); }