Base.php 481 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\api\controller\inspection;
  3. use app\common\controller\InspectionApi;
  4. class Base extends InspectionApi
  5. {
  6. protected $noNeedLogin = [];
  7. protected $noNeedRight = ['*'];
  8. protected $application = null;
  9. //设置返回的会员字段
  10. protected $allowFields = ['id', 'username', 'nickname', 'mobile', 'avatar', 'score', 'level', 'bio', 'balance', 'money', 'gender'];
  11. public function _initialize()
  12. {
  13. parent::_initialize();
  14. }
  15. }