From 0272a3ac743bec4bcd1a2881d13ece20fdd5c40d Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Tue, 20 Jun 2023 17:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E7=BA=A7=E7=94=A8=E6=88=B7=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E6=89=8B=E6=9C=BA=E5=8F=B7=E4=BC=9A=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E5=88=B0=E4=B8=8A=E7=BA=A7=E7=9A=84=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/wechat/WechatUserServices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/services/wechat/WechatUserServices.php b/crmeb/app/services/wechat/WechatUserServices.php index 3702f49d4..37bb9d2f9 100644 --- a/crmeb/app/services/wechat/WechatUserServices.php +++ b/crmeb/app/services/wechat/WechatUserServices.php @@ -85,7 +85,7 @@ class WechatUserServices extends BaseServices */ public function openidToUid($openid, string $openidType = 'openid') { - $uid = $this->dao->value([[$openidType, '=', $openid], ['user_type', '<>', 'h5']], 'uid'); + $uid = $this->dao->value([$openidType => $openid, 'is_del' => 0], 'uid'); if (!$uid) throw new AdminException(400710); return $uid;