IndexController.php 450 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * 应用首页接口,后面可能根据不同版本独立
  4. */
  5. class IndexController extends ApiBaseController {
  6. public function beforeAction($action){
  7. // $weixin_use = array('staticSource');
  8. // if(Yii::app()->getRequest()->getParam("request_from") == 'weixin' && in_array($action->id,$weixin_use)){
  9. // return true;
  10. // }
  11. //todo user first login
  12. return $this->verify();
  13. }
  14. }