作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

·

... ... @@ -9,6 +9,7 @@ namespace api\index\controller;
use api\index\model\ActivityModel;
use api\index\model\SlideItemModel;
use api\index\model\UserModel;
use api\index\model\VolunteerModel;
use cmf\controller\RestBaseController;
... ... @@ -18,6 +19,16 @@ use cmf\controller\RestBaseController;
*/
class IndexController extends RestBaseController
{
public function _initialize()
{
$user_id = $this->getUserId();
$userModel = new UserModel();
$user = $userModel->where(array('id'=>$user_id))->find();
if($user['user_status'] == 0){
$this->error('兄嘚,你已被列入黑名单!');
}
}
/**
* @title 首页
* @description 首页
... ...