Browse Source

feat:用户端-微信登录

刘学玺 4 months ago
parent
commit
9dc9073993
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Services/Client/WechatService.php

+ 1 - 1
app/Services/Client/WechatService.php

@@ -76,7 +76,7 @@ class WechatService
             $user = $this->socialite->userFromCode($code);
 
             // 验证openid
-            abort_if(empty($user->openid), 400, '获取微信openid失败');
+            abort_if(empty($user->getId()), 400, '获取微信openid失败');
 
             // 整理用户信息
             $userInfo = $this->formatUserInfo($user);