From 92dcc9300e7ed19d6db7f48c3dc7060a85d4b19b Mon Sep 17 00:00:00 2001 From: wangzeyan <258785420@qq.com> Date: Mon, 30 Jun 2025 12:34:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- niucloud/app/api/route/route.php | 2 +- niucloud/app/model/school_student_courses.php | 14 ++++++++++++++ .../api/apiService/PersonCourseScheduleService.php | 2 +- niucloud/app/service/api/login/LoginService.php | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 niucloud/app/model/school_student_courses.php diff --git a/niucloud/app/api/route/route.php b/niucloud/app/api/route/route.php index 8a415cf5..991c3fd5 100644 --- a/niucloud/app/api/route/route.php +++ b/niucloud/app/api/route/route.php @@ -442,7 +442,7 @@ Route::group(function () { })->middleware(ApiChannel::class) - ->middleware(ApiCheckToken::class, true) + ->middleware(ApiPersonnelCheckToken::class, true) ->middleware(ApiLog::class); //↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑-----学生用户端相关-----↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ diff --git a/niucloud/app/model/school_student_courses.php b/niucloud/app/model/school_student_courses.php new file mode 100644 index 00000000..ab03591a --- /dev/null +++ b/niucloud/app/model/school_student_courses.php @@ -0,0 +1,14 @@ +find(); + $student = Student::where('user_id', $where['resource_id'])->find(); if (!$student) { return $res; } diff --git a/niucloud/app/service/api/login/LoginService.php b/niucloud/app/service/api/login/LoginService.php index fd51c820..70918280 100644 --- a/niucloud/app/service/api/login/LoginService.php +++ b/niucloud/app/service/api/login/LoginService.php @@ -177,7 +177,7 @@ class LoginService extends BaseApiService try { $token_info = TokenAuth::parseToken($token, AppTypeDict::API); - dd($token_info); + dd($token_info,$token,AppTypeDict::PERSONNEL); } catch (Throwable $e) { // if(env('app_debug', false)){ // throw new AuthException($e->getMessage(), 401);