12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- declare (strict_types = 1);
- // +----------------------------------------------------------------------
- // | [ WE CAN DO IT MORE SIMPLE ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2018-2020 rights reserved.
- // +----------------------------------------------------------------------
- // | Author: TABLE ME
- // +----------------------------------------------------------------------
- // | Date: 2020-08-25 17:23
- // +----------------------------------------------------------------------
- namespace app\api\controller;
- /**
- * 基类 所有控制器继承的类
- * Class AuthController
- * @package app\adminapi\controller
- */
- class AuthController extends \app\BaseController
- {
- /**
- * 当前登陆管理员信息[记录日志]
- * @var
- */
- protected $user;
- /**
- * 初始化
- */
- protected function initialize()
- {
- parent::initialize();
- $this->user = $this->request->user;
- event('UserVisit', [$this->user, 'api']);
- }
- }
|