From e94b6418f19a71c1d8d9c77788b7c611fbd3a695 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Mon, 29 Jun 2020 14:02:20 +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 --- .../Admin/Controller/FinancePromoteController.class.php | 1 + Application/Base/Service/MarketService.class.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/FinancePromoteController.class.php b/Application/Admin/Controller/FinancePromoteController.class.php index 114b85b3c..4116f1508 100644 --- a/Application/Admin/Controller/FinancePromoteController.class.php +++ b/Application/Admin/Controller/FinancePromoteController.class.php @@ -579,6 +579,7 @@ class FinancePromoteController extends AdminController $isMarketLeader = isMarketLeader(); if ($isMarketLeader) { $map['promote.admin_id'] = ['gt', 0]; + $map['s.market_admin_id'] = ['gt', 0]; } //获取推广员 diff --git a/Application/Base/Service/MarketService.class.php b/Application/Base/Service/MarketService.class.php index ea632749a..1939b1433 100644 --- a/Application/Base/Service/MarketService.class.php +++ b/Application/Base/Service/MarketService.class.php @@ -43,10 +43,10 @@ class MarketService M('promote', 'tab_')->where($map)->save(['admin_id' => $toId]); M('promote', 'tab_')->where(['chain' => ['like', $promote['chain'] . $promote['id'] . '/%']])->save(['admin_id' => $promote['admin_id']]); - $authGroup = M('sys_auth_group')->where(['title'=>'市场总监'])->find(); + $authGroup = M('auth_group', 'sys_')->where(['title'=>'市场总监'])->find(); $dataPresident = explode(',', $authGroup['data_president']); if (!in_array($promote['id'], $dataPresident)) { - M('sys_auth_group')->where(['title'=>'市场总监'])->save(['data_president' => $authGroup['data_president'] . ',' . $promote['id']]); + M('auth_group', 'sys_')->where(['title'=>'市场总监'])->save(['data_president' => $authGroup['data_president'] . ',' . $promote['id']]); } }