diff --git a/Dockerfile b/Dockerfile index 4da5db3..befef7a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,18 @@ EXPOSE 9996 ENV TZ=Asia/Shanghai RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +# °²װ×ÖÌåºÍÒÀÀµ +RUN apt-get update && apt-get install -y \ + fonts-liberation \ + fonts-dejavu-core \ + fonts-wqy-zenhei \ + fontconfig \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +# Öؽ¨×ÖÌ建´æ +RUN fc-cache -fv + # ¹¹½¨½׶Î FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release diff --git a/YD_Event.Application/Auth/AuthService.cs b/YD_Event.Application/Auth/AuthService.cs index 785d145..325721b 100644 --- a/YD_Event.Application/Auth/AuthService.cs +++ b/YD_Event.Application/Auth/AuthService.cs @@ -93,29 +93,5 @@ public class AuthService : IDynamicApiController return new FileStreamResult(stream, "image/gif"); } - /// - /// 刷新Token - /// - /// - /// - [HttpPost("refresh")] - public string RefreshToken([FromQuery] string accessToken) - { - var context = _httpContextAccessor.HttpContext; - var refreshToken = context.Request.Headers["x-access-token"].ToString(); - - if (string.IsNullOrWhiteSpace(accessToken) || string.IsNullOrWhiteSpace(refreshToken)) - { - throw Oops.Bah("无效的Token"); - } - // 交换新的 Token - var newToken = JWTEncryption.Exchange(accessToken, refreshToken); - - // 设置响应报文头 - context.Response.Headers["access-token"] = newToken; - context.Response.Headers["x-access-token"] = refreshToken; // 刷新Token通常保持不变,或者也可以轮换 - - return newToken; - } } \ No newline at end of file diff --git a/YD_Event.Application/YD_Event.Application.xml b/YD_Event.Application/YD_Event.Application.xml index 9546e2d..10b2a68 100644 --- a/YD_Event.Application/YD_Event.Application.xml +++ b/YD_Event.Application/YD_Event.Application.xml @@ -489,13 +489,6 @@ 验证码唯一id - - - 刷新Token - - - - 登录名 diff --git a/YD_Event.Web.Core/Handlers/JwtHandler.cs b/YD_Event.Web.Core/Handlers/JwtHandler.cs index 95a02df..7c9138a 100644 --- a/YD_Event.Web.Core/Handlers/JwtHandler.cs +++ b/YD_Event.Web.Core/Handlers/JwtHandler.cs @@ -11,7 +11,7 @@ namespace YD_Event.Web.Core; public class JwtHandler : AppAuthorizeHandler { /// - /// 这里写您的授权判断逻辑,授权通过返回 true,否则返回 false + /// 授权判断逻辑,授权通过返回 true,否则返回 false /// /// ///