From 91642abac5818e0e9e2332267fe50ae624db840b Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Mon, 25 Nov 2024 11:44:14 +0800 Subject: [PATCH] feat : wx login --- app/Service/Api/Login/WxFastLoginService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);