diff --git a/Application/Admin/View/Game/add.html b/Application/Admin/View/Game/add.html index 1575e142f..199f3a918 100644 --- a/Application/Admin/View/Game/add.html +++ b/Application/Admin/View/Game/add.html @@ -676,6 +676,15 @@ + + 安卓IOS数据是否互通 + + + + diff --git a/Application/Admin/View/Game/edit.html b/Application/Admin/View/Game/edit.html index e36b7e21e..dcd64a47c 100644 --- a/Application/Admin/View/Game/edit.html +++ b/Application/Admin/View/Game/edit.html @@ -892,6 +892,15 @@ + + 安卓IOS数据是否互通 + + + + diff --git a/Application/Admin/View/PromoteCompany/add.html b/Application/Admin/View/PromoteCompany/add.html index bdb3d7dcd..9458bb484 100644 --- a/Application/Admin/View/PromoteCompany/add.html +++ b/Application/Admin/View/PromoteCompany/add.html @@ -376,6 +376,21 @@ + + *是否特殊公司: + + + + + + + + + *推广后台域名前缀: diff --git a/Application/Admin/View/PromoteCompany/edit.html b/Application/Admin/View/PromoteCompany/edit.html index 0355e6ba4..42ce732e4 100644 --- a/Application/Admin/View/PromoteCompany/edit.html +++ b/Application/Admin/View/PromoteCompany/edit.html @@ -378,6 +378,21 @@ + + *是否特殊公司: + + + + + + + + + style="display:none"> *推广后台域名前缀: diff --git a/Application/Admin/View/PromoteCompany/view.html b/Application/Admin/View/PromoteCompany/view.html index 64e2764bd..0a3ee62b5 100644 --- a/Application/Admin/View/PromoteCompany/view.html +++ b/Application/Admin/View/PromoteCompany/view.html @@ -392,6 +392,23 @@ + + *是否特殊公司: + + + + + + + + + '无', ]; + const TYPE_NORMAL = 0; // 默认推广公司 + const TYPE_CUSTOM = 1; // 定制推广公司 隐藏某些功能 + public function getOutBelongs() { return [ diff --git a/Application/Home/Controller/BaseController.class.php b/Application/Home/Controller/BaseController.class.php index 5e3561338..95da267e3 100644 --- a/Application/Home/Controller/BaseController.class.php +++ b/Application/Home/Controller/BaseController.class.php @@ -2,6 +2,7 @@ namespace Home\Controller; +use Base\Service\PromoteCompanyService; use Think\Controller; use Base\Service\PromoteService; @@ -393,8 +394,12 @@ class BaseController extends HomeController } } - $closePromoteLowest = [334, 370]; - if (in_array($topPromote['company_id'], $closePromoteLowest)) { + // 推广公司 + $promoteCompanyService = new PromoteCompanyService(); + $promoteCompanyService->getCompanies([$topPromote['company_id']]); + if ($promoteCompanyService['type'] == $promoteCompanyService::TYPE_CUSTOM) { +// $closePromoteLowest = [334, 370]; +// if (in_array($topPromote['company_id'], $closePromoteLowest)) { if ($topPromote['can_view_recharge'] == 1 && !in_array($promote['level'], [3, 4])) { return true; } else {