MarketController.php 1.3 KB

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