From ce1d061ee6573e34f09533d424bb25725a223ef2 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Sun, 27 Sep 2020 18:31:51 +0800 Subject: [PATCH 1/2] =?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/BaseController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Home/Controller/BaseController.class.php b/Application/Home/Controller/BaseController.class.php index fae35173b..fa192f705 100644 --- a/Application/Home/Controller/BaseController.class.php +++ b/Application/Home/Controller/BaseController.class.php @@ -395,7 +395,7 @@ class BaseController extends HomeController /** * 市场部特殊推广公司的规则 */ - $onlyPresidentList = [330, 331, 332]; + $onlyPresidentList = [330, 331, 332, 334]; if (in_array($topPromote['company_id'], $onlyPresidentList)) { if ($topPromote['can_view_recharge'] == 1 && $promote['level'] == 1) { return true; From 2f4868553a1f79da8695c42a0d00aa4e5e729b58 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Sun, 27 Sep 2020 19:01:16 +0800 Subject: [PATCH 2/2] =?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/BaseController.class.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Application/Home/Controller/BaseController.class.php b/Application/Home/Controller/BaseController.class.php index fa192f705..ea09d5dc0 100644 --- a/Application/Home/Controller/BaseController.class.php +++ b/Application/Home/Controller/BaseController.class.php @@ -395,7 +395,7 @@ class BaseController extends HomeController /** * 市场部特殊推广公司的规则 */ - $onlyPresidentList = [330, 331, 332, 334]; + $onlyPresidentList = [330, 331, 332]; if (in_array($topPromote['company_id'], $onlyPresidentList)) { if ($topPromote['can_view_recharge'] == 1 && $promote['level'] == 1) { return true; @@ -404,6 +404,15 @@ class BaseController extends HomeController } } + $closePromoteLowest = [334]; + if (in_array($topPromote['company_id'], $closePromoteLowest)) { + if ($topPromote['can_view_recharge'] == 1 && $promote['level'] != 4) { + return true; + } else { + return false; + } + } + if ($topPromote['can_view_recharge'] == 1) { return true; }