MarketController.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 MarketController extends MarketBaseController
  10. {
  11. /**
  12. * 分销中心
  13. * @return mixed
  14. */
  15. public function index(){
  16. return $this->fetch();
  17. }
  18. /**
  19. * 分销用户注册
  20. * @return mixed
  21. */
  22. public function entry(){
  23. if($this->agentStatus == 1){
  24. session('invite_id', isset($_GET['sid'])? intval($_GET['sid']) : 0);
  25. //Wechat::redirectUrl(url('/weixin/market/index','','',true));
  26. }
  27. return $this->fetch();
  28. }
  29. /**
  30. * 收益
  31. * @return mixed
  32. */
  33. public function income(){
  34. return $this->fetch();
  35. }
  36. /**
  37. * 我的团队
  38. * @return mixed
  39. */
  40. public function team(){
  41. return $this->fetch();
  42. }
  43. /**
  44. * 会员邀请
  45. * @return mixed
  46. */
  47. public function invite(){
  48. return $this->fetch();
  49. }
  50. /**
  51. * 团队成员邀请
  52. * @return mixed
  53. */
  54. public function teamInvite(){
  55. return $this->fetch();
  56. }
  57. }
  58. ?>