Base.php 348 B

12345678910111213141516171819202122
  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. }
  15. }