0
0

Base.php 411 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\api\controller;
  3. use think\Controller;
  4. class Base extends Controller
  5. {
  6. protected $middleware = ['Auth'];
  7. protected $userId;
  8. protected $orgId;
  9. protected function initialize()
  10. {
  11. parent::initialize();
  12. $this->userId = input('userId/d',0);
  13. $this->orgId = input('orgId/d',0);
  14. // $this->orgId = $this->orgId <= 0 ? 3 : $this->orgId;
  15. }
  16. }