diff --git a/app/Service/Api/Login/WxFastLoginService.php b/app/Service/Api/Login/WxFastLoginService.php index d6800b5..26d8ae9 100644 --- a/app/Service/Api/Login/WxFastLoginService.php +++ b/app/Service/Api/Login/WxFastLoginService.php @@ -41,7 +41,7 @@ class WxFastLoginService extends LoginBaseService $wxInfo = $this->jsCodeGetOpenId($this->jsCode); $this->openId = $wxInfo['openid']; - $this->unionId = $wxInfo['unionid']; + $this->unionId = $wxInfo['unionid'] ?? ''; $this->checkLock(self::LOGIN_TYPE);