修复钉钉登录时重置手机或邮箱的问题

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-10-07 17:15:03 +08:00
parent 56863da650
commit fbfbe95893

View File

@ -174,6 +174,12 @@ class Member extends CommonModel
} else { } else {
//已登录且未绑定,则绑定 //已登录且未绑定,则绑定
if (!$currentMember['dingtalk_unionid'] || !$currentMember['dingtalk_userid']) { if (!$currentMember['dingtalk_unionid'] || !$currentMember['dingtalk_userid']) {
if ($currentMember['mobile']) {
unset($memberData['mobile']);
}
if ($currentMember['email']) {
unset($memberData['email']);
}
self::update($memberData, $where); self::update($memberData, $where);
$member = self::where($where)->find(); $member = self::where($where)->find();
} }