From fe84095fd7f1af2efc6194dcb7a0660ea665984e Mon Sep 17 00:00:00 2001 From: Dai Date: Thu, 25 Jul 2024 16:44:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9Fopenid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/StudentService.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/common/service/StudentService.php b/app/common/service/StudentService.php index 3716099..73573f3 100644 --- a/app/common/service/StudentService.php +++ b/app/common/service/StudentService.php @@ -99,7 +99,17 @@ class StudentService } $code = $request->post('code'); + + print '
';
+            print_r($code);
+            die;
+
             $user_info = WechatSubscriptController::getCodeAccessToken($code);
+
+            print '
';
+            print_r($user_info);
+            die;
+
             if (isset($result['code'])) {
                 throw new Exception('获取信息失败');
             }
@@ -114,7 +124,6 @@ class StudentService
                 ]);
             }
 
-
             return [
                 'code' => ResponseCode::SUCCESS,
                 'msg' => 'success'