MarketController.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 rank(){
  41. return $this->fetch();
  42. }
  43. /**
  44. * 资料
  45. * @return mixed
  46. */
  47. public function profile(){
  48. return $this->fetch();
  49. }
  50. /**
  51. * 我的团队
  52. * @return mixed
  53. */
  54. public function team(){
  55. return $this->fetch();
  56. }
  57. /**
  58. * 会员邀请
  59. * @return mixed
  60. */
  61. public function invite(){
  62. return $this->fetch();
  63. }
  64. /**
  65. * 团队成员邀请
  66. * @return mixed
  67. */
  68. public function teamInvite(){
  69. return $this->fetch();
  70. }
  71. }
  72. ?>