diff --git a/Application/Home/Controller/IndexController.class.php b/Application/Home/Controller/IndexController.class.php index f29b7b8d9..cb2c5bb33 100644 --- a/Application/Home/Controller/IndexController.class.php +++ b/Application/Home/Controller/IndexController.class.php @@ -75,7 +75,7 @@ class IndexController extends HomeController $promote = M("promote", "tab_")->where(['id' => $result])->find(); $promoteService = new PromoteService(); - if ($promoteService->isPresidentAccess($promote)) { + if (!$promoteService->isPresidentAccess($promote)) { $this->ajaxReturn(array("status" => 0, "msg" => '请联系市场专员开通账号。')); } @@ -118,7 +118,7 @@ class IndexController extends HomeController if ($result > 0) { $promoteService = new PromoteService(); - if ($promoteService->isPresidentAccess($promote)) { + if (!$promoteService->isPresidentAccess($promote)) { $this->ajaxReturn(array("status" => 0, "msg" => '请联系市场专员开通账号。')); }