| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
- /**
- * 分销
- * @author wesmiler
- */
- namespace app\weixin\controller;
- use app\weixin\model\Wechat;
- use cmf\controller\HomeBaseController;
- class MarketController extends MarketBaseController
- {
- /**
- * 分销中心
- * @return mixed
- */
- public function index(){
- return $this->fetch();
- }
- /**
- * 注册入口
- * @return mixed
- */
- public function reg(){
- if($this->agentStatus == 1 && isset($_GET['sid'])){
- session('invite_id', isset($_GET['sid'])? intval($_GET['sid']) : 0);
- //Wechat::redirectUrl(url('/weixin/market/index','','',true));
- }
- return $this->fetch();
- }
- /**
- * 分销用户注册
- * @return mixed
- */
- public function entry(){
- if($this->agentStatus == 1){
- session('invite_id', isset($_GET['sid'])? intval($_GET['sid']) : 0);
- Wechat::redirectUrl(url('/weixin/market/index','','',true));
- }
- return $this->fetch();
- }
- /**
- * 收益
- * @return mixed
- */
- public function income(){
- return $this->fetch();
- }
- /**
- * 收益排行榜
- * @return mixed
- */
- public function rank(){
- return $this->fetch();
- }
- /**
- * 资料
- * @return mixed
- */
- public function profile(){
- return $this->fetch();
- }
- /**
- * 我的团队
- * @return mixed
- */
- public function team(){
- return $this->fetch();
- }
- /**
- * 会员邀请
- * @return mixed
- */
- public function invite(){
- return $this->fetch();
- }
- /**
- * 团队成员邀请
- * @return mixed
- */
- public function teamInvite(){
- return $this->fetch();
- }
- }
- ?>
|