quguofeng 1 年之前
父节点
当前提交
edbed7d2b9
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/controller/api/Auth.php

+ 1 - 2
app/controller/api/Auth.php

@@ -554,8 +554,7 @@ class Auth extends BaseController
             return app('json')->fail('授权失败');
         $authInfo = $users[0];
         $userRepository = app()->make(UserRepository::class);
-        var_dump($auth['auth']['order_id']);exit();
-        $authInfo['order_id'] = $auth['auth']['order_id'] ?? 0;
+        $authInfo['wechat_user_id']['order_id'] = $auth['auth']['order_id'] ?? 0;
         $user = $users[1] ?? $userRepository->wechatUserIdBytUser($authInfo['wechat_user_id']);
         $code = (int)($auth['auth']['spread_code']['id'] ?? $auth['auth']['spread_code'] ?? '');
         //获取是否有扫码进小程序