hrjy 2 years ago
parent
commit
3f0a49cba2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/api/controller/wechat/AuthController.php

+ 1 - 0
app/api/controller/wechat/AuthController.php

@@ -76,6 +76,7 @@ class AuthController
         $userInfo['code'] = $data['spread_code'];
         $userInfo['session_key'] = $session_key;
         $userInfo['login_type'] = $login_type;
+        $userInfo['unionId'] = $userInfoCong['unionid'];
         $uid = WechatUser::routineOauth($userInfo);
         $userInfo = User::where('uid', $uid)->find();
         if ($userInfo->login_type == 'h5' && ($h5UserInfo = User::where(['account' => $userInfo->phone, 'phone' => $userInfo->phone, 'user_type' => 'h5'])->find()))