mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 22:40:48 +00:00
下级用户绑定手机号会绑定到上级的问题修复
This commit is contained in:
parent
6d92c7f1b1
commit
0272a3ac74
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user