MarketController.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 reg(){
  23. if($this->agentStatus == 1 && isset($_GET['sid'])){
  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 entry(){
  34. if($this->agentStatus == 1){
  35. session('invite_id', isset($_GET['sid'])? intval($_GET['sid']) : 0);
  36. Wechat::redirectUrl(url('/weixin/market/index','','',true));
  37. }
  38. return $this->fetch();
  39. }
  40. /**
  41. * 收益
  42. * @return mixed
  43. */
  44. public function income(){
  45. return $this->fetch();
  46. }
  47. /**
  48. * 收益排行榜
  49. * @return mixed
  50. */
  51. public function rank(){
  52. return $this->fetch();
  53. }
  54. /**
  55. * 资料
  56. * @return mixed
  57. */
  58. public function profile(){
  59. return $this->fetch();
  60. }
  61. /**
  62. * 我的团队
  63. * @return mixed
  64. */
  65. public function team(){
  66. return $this->fetch();
  67. }
  68. /**
  69. * 会员邀请
  70. * @return mixed
  71. */
  72. public function invite(){
  73. return $this->fetch();
  74. }
  75. /**
  76. * 团队成员邀请
  77. * @return mixed
  78. */
  79. public function teamInvite(){
  80. return $this->fetch();
  81. }
  82. }
  83. ?>