From 451b2b3105aeb759a4fb905e92873c00a1dd9772 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 10 Jul 2020 10:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/IndexController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" => '请联系市场专员开通账号。')); }