Explorar o código

下级用户绑定手机号会绑定到上级的问题修复

evoxwht %!s(int64=2) %!d(string=hai) anos
pai
achega
0272a3ac74
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      crmeb/app/services/wechat/WechatUserServices.php

+ 1 - 1
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;