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;