SenderApi.php 407 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\common\controller;
  3. use think\Loader;
  4. /**
  5. * API控制器基类
  6. */
  7. class SenderApi extends Api
  8. {
  9. protected function _initialize()
  10. {
  11. parent::_initialize(); // TODO: Change the autogenerated stub
  12. /*$user=$this->auth->getUser();
  13. if($user && $user['type']!=$user::SENDER){
  14. $this->error('You have no permission for sender');
  15. }*/
  16. }
  17. }