修复钉钉登录时重置手机或邮箱的问题
Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
parent
56863da650
commit
fbfbe95893
@ -174,6 +174,12 @@ class Member extends CommonModel
|
||||
} else {
|
||||
//已登录且未绑定,则绑定
|
||||
if (!$currentMember['dingtalk_unionid'] || !$currentMember['dingtalk_userid']) {
|
||||
if ($currentMember['mobile']) {
|
||||
unset($memberData['mobile']);
|
||||
}
|
||||
if ($currentMember['email']) {
|
||||
unset($memberData['email']);
|
||||
}
|
||||
self::update($memberData, $where);
|
||||
$member = self::where($where)->find();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user