From b2909d07d9de14a713a9be9864f80c731e016d7e Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Wed, 12 Feb 2020 16:27:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0>=E6=8E=A8?= =?UTF-8?q?=E5=B9=BF=E5=91=98>=E7=BB=93=E7=AE=97=E7=AE=A1=E7=90=86>?= =?UTF-8?q?=E5=85=AC=E4=BC=9A=E5=88=86=E6=88=90=E7=AE=A1=E7=90=86--?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/PromoteGameRatioController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/PromoteGameRatioController.class.php b/Application/Admin/Controller/PromoteGameRatioController.class.php index 110270c14..6255912dd 100644 --- a/Application/Admin/Controller/PromoteGameRatioController.class.php +++ b/Application/Admin/Controller/PromoteGameRatioController.class.php @@ -34,7 +34,7 @@ class PromoteGameRatioController extends ThinkController $map['_string'] = 'game_id = relation_game_id'; $where['_string'] = '1 = 1'; if ($companyId || ($companyBelong !== '' && in_array($companyBelong, [0, 1]))) { - $promoteMap['_string'] = '1 = 1'; + $promoteMap['level'] = 1; if ($companyId) { $promoteMap['company_id'] = $companyId; } @@ -146,7 +146,7 @@ class PromoteGameRatioController extends ThinkController $thisPromoteStatus = $thisPromoteStatus ?? '待审核'; $thisPromoteVerStatus = getPromoteVerStatus($promotes[$thisPromoteId]['ver_status'], 2); $thisCompanyName = getPromoteCompanyName($promotes[$thisPromoteId]['company_id']); - $thisCompanyBelong = $promotes[$thisPromoteId]['company_belong'] == 1 ? '外团' : '内团'; + $thisCompanyBelong = $promotes[$thisPromoteId]['company_belong'] ? '外团' : '内团'; } if ($issetGame) { $thisGameName = $games[$thisGameId]['relation_game_name'];