12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace app\adminapi\controller;
- use crmeb\basic\BaseController;
- class AuthController extends BaseController
- {
-
- protected $adminInfo;
-
- protected $adminId;
-
- protected $merId;
-
- protected $auth = [];
-
- protected $bindModel = null;
-
- protected function initialize()
- {
- parent::initialize();
- $this->adminId = $this->request->adminId();
- $this->adminInfo = $this->request->adminInfo();
- $this->merId = $this->request->mer_id();
- $this->auth = $this->request->adminInfo['rule'] ?? [];
- event('AdminVisit', [$this->adminInfo, 'system', $this->merId]);
- }
- }
|