From ba59b41fb91d6f7b9c55c1b19dbcda86bf5d8a68 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Fri, 20 Dec 2019 10:07:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90=E5=AE=98?= =?UTF-8?q?=E6=96=B9=E6=B8=A0=E9=81=93=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Model/PromoteModel.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Model/PromoteModel.class.php b/Application/Admin/Model/PromoteModel.class.php index 4256f3f97..b466da9a2 100644 --- a/Application/Admin/Model/PromoteModel.class.php +++ b/Application/Admin/Model/PromoteModel.class.php @@ -390,6 +390,7 @@ class PromoteModel extends Model{ { $where['level'] = $level; + $userAuth = session('user_auth'); setPowerPromoteIds($where,'id'); $offcialData = [0=>['id'=>0,'nickname'=>'官方渠道']]; @@ -399,7 +400,7 @@ class PromoteModel extends Model{ $item['nickname'] = $item['account'] . ($item['nickname'] ? "({$item['nickname']})" : ""); } - if (in_array('0',explode(',',$where['id'][1]))) { + if (in_array('0',explode(',',$where['id'][1]))||$userAuth['data_empower_type']==1) { $result = array_merge($offcialData,$result); // dump($result);die(); }