BaseDinner.php 301 B

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