From bcfe67a13a078e700ef16aa87d3e00c439107cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com> Date: Fri, 10 Nov 2023 11:25:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E8=BF=94=E5=9B=9Etoken=E6=97=B6?= =?UTF-8?q?=E5=B8=A6=E4=B8=8A=E7=94=A8=E6=88=B7Id,=E7=9B=AE=E5=89=8D?= =?UTF-8?q?=E6=98=AF=E4=B8=8D=E5=AE=89=E5=85=A8=E5=81=9A=E6=B3=95=EF=BC=8C?= =?UTF-8?q?=E5=90=8E=E6=9C=9F=E7=94=A8=E6=88=B7=E9=87=8F=E4=B8=8A=E6=9D=A5?= =?UTF-8?q?=E6=97=B6=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- New_College.Api/Controllers/OAuthController.cs | 1 + New_College.Model/ViewModels/Result/CasDoorTokenResult.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/New_College.Api/Controllers/OAuthController.cs b/New_College.Api/Controllers/OAuthController.cs index b02c8e6..c41e757 100644 --- a/New_College.Api/Controllers/OAuthController.cs +++ b/New_College.Api/Controllers/OAuthController.cs @@ -64,6 +64,7 @@ namespace New_College.Controllers TokenModelJwt tokenModel = new TokenModelJwt { Uid = user.Item2.Id, Role = "users" }; jwtStr = JwtHelper.IssueJwt(tokenModel); response.token = jwtStr; + response.Id = user.Item2.Id; suc = true; } else diff --git a/New_College.Model/ViewModels/Result/CasDoorTokenResult.cs b/New_College.Model/ViewModels/Result/CasDoorTokenResult.cs index 10e1f8c..02755d8 100644 --- a/New_College.Model/ViewModels/Result/CasDoorTokenResult.cs +++ b/New_College.Model/ViewModels/Result/CasDoorTokenResult.cs @@ -128,6 +128,7 @@ namespace New_College.Model.ViewModels public class CasDoorToken { + public int Id { get; set; } public string token { get; set; } public string servicetoken { get; set; }