From 5a91e7184252ce2c446ac89cbfde81d021514015 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Mon, 10 Jul 2023 18:18:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=B3=A8=E9=94=80=E8=BF=87?= =?UTF-8?q?=EF=BC=8C=E5=86=8D=E6=AC=A1=E8=BF=9B=E8=A1=8C=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E4=B8=8D=E9=80=81=E6=8E=A8=E5=B9=BF=E4=BD=A3=E9=87=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/user/UserServices.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crmeb/app/services/user/UserServices.php b/crmeb/app/services/user/UserServices.php index 3b64e8b68..5853cfdbf 100644 --- a/crmeb/app/services/user/UserServices.php +++ b/crmeb/app/services/user/UserServices.php @@ -2041,6 +2041,17 @@ class UserServices extends BaseServices if (!$userInfo) { return false; } + + //根据手机号码查询此用户注销过,不反推广佣金 + if ($userInfo['phone'] != '' && $this->dao->getCount(['phone' => $userInfo['phone'], 'is_del' => 1])) { + return false; + } + //根据openid查询此用户注销过,不反推广佣金 + $openidArray = app()->make(WechatUserServices::class)->getColumn(['uid' => $uid], 'openid', 'id'); + if ($this->dao->getCount([['openid', 'in', $openidArray], ['is_del', '=', 1]])) { + return false; + } + if (!$spread_user) { $spread_user = $this->dao->getOne(['uid' => $spread_uid, 'status' => 1]); }