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