TestController.php 731 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * 首页
  4. * @author wesmiler
  5. */
  6. namespace app\weixin\controller;
  7. use app\weixin\model\Wechat;
  8. use cmf\controller\HomeBaseController;
  9. class TestController extends BaseController
  10. {
  11. /**
  12. * 首页
  13. * @return mixed
  14. */
  15. public function index(){
  16. return $this->fetch(':index');
  17. }
  18. /**
  19. * 进入完善页面
  20. */
  21. public function entry(){
  22. $needRegProfile = session('needRegProfile');
  23. if($needRegProfile == false){
  24. Wechat::redirectUrl(url('/weixin/match/index','','',true));
  25. }
  26. return $this->fetch('entry');
  27. }
  28. public function photo(){
  29. return $this->fetch('photo');
  30. }
  31. }
  32. ?>