|
|
@ -202,10 +202,11 @@ class FileController extends AdminController
|
|
|
|
/* 调用文件上传组件上传文件 */
|
|
|
|
/* 调用文件上传组件上传文件 */
|
|
|
|
$Picture = D('Picture');
|
|
|
|
$Picture = D('Picture');
|
|
|
|
$pic_driver = C('PICTURE_UPLOAD_DRIVER');
|
|
|
|
$pic_driver = C('PICTURE_UPLOAD_DRIVER');
|
|
|
|
|
|
|
|
// dd(I('icon'));
|
|
|
|
|
|
|
|
|
|
|
|
if (I('icon')) {
|
|
|
|
if (I('icon')) {
|
|
|
|
if ($_FILES['file']['size'] > 51200) {
|
|
|
|
if ($_FILES['file']['size'] > 2097152) {
|
|
|
|
$return = array('status' => 1001, 'info' => '图片大小不得超过50k', 'data' => '');
|
|
|
|
$return = array('status' => 1001, 'info' => '图片大小不得超过2M', 'data' => '');
|
|
|
|
$this->ajaxReturn($return);
|
|
|
|
$this->ajaxReturn($return);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|