fix : login
This commit is contained in:
@@ -54,7 +54,7 @@ class WxFastLoginService extends LoginBaseService
|
|||||||
$this->openId = $wxInfo['openid'];
|
$this->openId = $wxInfo['openid'];
|
||||||
$this->unionId = $wxInfo['unionid'] ?? '';
|
$this->unionId = $wxInfo['unionid'] ?? '';
|
||||||
|
|
||||||
$this->jsCodeGetPhoneNumber($phoneCode);
|
$wxPhone = $this->jsCodeGetPhoneNumber($phoneCode);
|
||||||
$this->mobile = $wxPhone['phone_info']['purePhoneNumber'] ?? '';
|
$this->mobile = $wxPhone['phone_info']['purePhoneNumber'] ?? '';
|
||||||
|
|
||||||
$this->checkLock(self::LOGIN_TYPE);
|
$this->checkLock(self::LOGIN_TYPE);
|
||||||
@@ -75,8 +75,6 @@ class WxFastLoginService extends LoginBaseService
|
|||||||
*/
|
*/
|
||||||
private function updateMobile(): void
|
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 (empty($this->mobile)) return;
|
||||||
|
|
||||||
if ($this->userInfo->mobile == $this->mobile) return;
|
if ($this->userInfo->mobile == $this->mobile) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user