瀏覽代碼

增加是否会员

ZxcZxc123 1 年之前
父節點
當前提交
c9822fa78b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/api/controller/wechat/WechatController.php

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

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