12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- declare (strict_types = 1);
- // +----------------------------------------------------------------------
- // | [ WE CAN DO IT MORE SIMPLE ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2018-2020 rights reserved.
- // +----------------------------------------------------------------------
- // |
- // +----------------------------------------------------------------------
- // | Date: 2020-08-25 17:23
- // +----------------------------------------------------------------------
- namespace app\system\controller;
- /**
- * 基类 所有控制器继承的类
- * Class AuthController
- * @package app\adminapi\controller
- */
- class AuthController extends \app\BaseController
- {
- /**
- * 当前登陆管理员信息
- * @var
- */
- protected $adminInfo;
- /**
- * 当前登陆管理员ID
- * @var
- */
- protected $adminId;
- /**
- * 当前管理员权限
- * @var array
- */
- protected $auth = [];
- /**
- * 模型类名
- * @var null
- */
- protected $bindModel = null;
- /**
- * 初始化
- */
- protected function initialize()
- {
- parent::initialize();
- $this->adminInfo = $this->request->adminInfo;
- event('AdminVisit', [$this->adminInfo, 'system']);
- }
- }
|