diff --git a/Application/Home/Controller/BaseController.class.php b/Application/Home/Controller/BaseController.class.php index 5db490250..ef4a8e3d5 100644 --- a/Application/Home/Controller/BaseController.class.php +++ b/Application/Home/Controller/BaseController.class.php @@ -25,7 +25,8 @@ class BaseController extends HomeController{ define('SETTLEMENT_GRADE','sub_status'); /* 给二级结算 */ define('G_SETTLEMENT_GRADE','sub_status,third_status'); } - + + $this->assign('loginer', $pro); $this->assign("parent_id", $pro['parent_id']); $this->assign("grand_id", $pro['grand_id']); $result = M('site_apply','tab_')->where("promote_id=$pid")->getField('status'); diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index 789c7ea94..81e738c27 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -36,8 +36,11 @@ class PromoteController extends BaseController public function index($p = 1) { $this->meta_title = "首页"; - $this->display('prepare'); - exit(0); + $loginPromote = $this->getLoginPromote(); + if ($loginPromote['id'] != 1 && $loginPromote['parent_id'] != 1 && $loginPromote['grand_id'] != 1) { + $this->display('prepare'); + exit(0); + } header("Content-type:text/html;charset=utf-8"); $user = D('Promote')->isLogin(); diff --git a/Application/Home/View/default/Public/promote_base.html b/Application/Home/View/default/Public/promote_base.html index 9c9380ebf..edbb370ae 100644 --- a/Application/Home/View/default/Public/promote_base.html +++ b/Application/Home/View/default/Public/promote_base.html @@ -47,6 +47,9 @@ 推广员管理 + + + + + @@ -72,14 +77,18 @@ + +