MatchController.php 601 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * 匹配模块
  4. * @author wesmiler
  5. */
  6. namespace app\weixin\controller;
  7. class MatchController extends BaseController
  8. {
  9. /**
  10. * 单身推荐
  11. * @return mixed
  12. */
  13. public function index(){
  14. $sid = input('sid', 0);
  15. if($sid){
  16. session('sid', input('sid', 0));
  17. }
  18. return $this->fetch();
  19. }
  20. /**
  21. * 每日推荐匹配
  22. * @return mixed
  23. */
  24. public function hearts(){
  25. $sid = input('sid', 0);
  26. if($sid){
  27. session('sid', input('sid', 0));
  28. }
  29. return $this->fetch();
  30. }
  31. }
  32. ?>