From 37b4709d76a4f2064a46b579ee7aa15acd53ad1e Mon Sep 17 00:00:00 2001 From: ccnetcore <454313500@qq.com> Date: Sat, 29 Nov 2025 18:28:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Etoken=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Chat/TokenService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/TokenService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/TokenService.cs index 04020b42..23e7e666 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/TokenService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/TokenService.cs @@ -1,3 +1,4 @@ +using Dm.util; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using SqlSugar; @@ -98,6 +99,13 @@ public class TokenService : ApplicationService Name = x.Name, IsDisabled = x.IsDisabled }).ToListAsync(); + + tokens.Insert(0,new TokenSelectListOutputDto + { + TokenId = Guid.Empty, + Name = "默认", + IsDisabled = false + }); return tokens; }