소스 검색

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

evoxwht 2 년 전
부모
커밋
0272a3ac74
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;