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);