ZxcZxc123 пре 1 година
родитељ
комит
70e47f6d79
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      app/api/controller/wechat/WechatController.php

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

@@ -80,6 +80,7 @@ class WechatController
         $openid = $wechatInfo['openid'];
         $openid = $wechatInfo['openid'];
         event('WechatOauthAfter', [$openid, $wechatInfo, $spreadId, $login_type]);
         event('WechatOauthAfter', [$openid, $wechatInfo, $spreadId, $login_type]);
         $user = User::where('uid', WechatUser::openidToUid($openid, 'openid'))->find();
         $user = User::where('uid', WechatUser::openidToUid($openid, 'openid'))->find();
+        var_dump($user);
         if (!$user)
         if (!$user)
             return app('json')->fail('获取用户信息失败');
             return app('json')->fail('获取用户信息失败');
         if ($user->login_type == 'h5' && ($h5UserInfo = User::where(['account' => $user->phone, 'phone' => $user->phone, 'user_type' => 'h5'])->find()))
         if ($user->login_type == 'h5' && ($h5UserInfo = User::where(['account' => $user->phone, 'phone' => $user->phone, 'user_type' => 'h5'])->find()))