diff --git a/app/admin/controller/Forum.php b/app/admin/controller/Forum.php index 88a85c9..c9e3730 100644 --- a/app/admin/controller/Forum.php +++ b/app/admin/controller/Forum.php @@ -295,4 +295,11 @@ class Forum extends AdminController return json(['code'=>-1,'msg'=>'审核出错']); } } + //array_filter过滤函数 + public function filtr($arr){ + if($arr === '' || $arr === null){ + return false; + } + return true; + } }