fix : login

This commit is contained in:
2025-03-31 14:42:18 +08:00
parent 35317080a0
commit 1f681d1fbe

View File

@@ -54,7 +54,7 @@ class WxFastLoginService extends LoginBaseService
$this->openId = $wxInfo['openid'];
$this->unionId = $wxInfo['unionid'] ?? '';
$this->jsCodeGetPhoneNumber($phoneCode);
$wxPhone = $this->jsCodeGetPhoneNumber($phoneCode);
$this->mobile = $wxPhone['phone_info']['purePhoneNumber'] ?? '';
$this->checkLock(self::LOGIN_TYPE);
@@ -75,8 +75,6 @@ class WxFastLoginService extends LoginBaseService
*/
private function updateMobile(): void
{
$this->log->debug(json_encode($this->userInfo->toArray()));
$this->log->debug('user_mobile:'.$this->mobile);
if (empty($this->mobile)) return;
if ($this->userInfo->mobile == $this->mobile) return;