1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- namespace app\controller\store;
- use crmeb\basic\BaseController;
- class AuthController extends BaseController
- {
-
- protected $type = 1;
-
- protected $storeInfo;
-
- protected $storeId;
-
- protected $storeStaffId;
-
- protected $storeStaffInfo;
-
- protected $auth = [];
-
- protected function initialize()
- {
- $this->storeId = $this->request->hasMacro('storeId') ? $this->request->storeId() : 0;
- $this->storeStaffId = $this->request->hasMacro('storeStaffId') ? $this->request->storeStaffId() : 0;
- $this->storeStaffInfo = $this->request->hasMacro('storeStaffInfo') ? $this->request->storeStaffInfo() : [];
- $this->auth = $this->storeStaffInfo['rule'] ?? [];
- }
- }
|