NewLife/NewLife.Cube

ExpireIn
大石头 authored at 2026-01-24 21:34:36
70fc5ed
Tree
1 Parent(s) dab3b83
Summary: 2 changed files with 6 additions and 3 deletions.
Modified +4 -1
Modified +2 -2
Modified +4 -1
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md
index cc2c79c..3c5b1dd 100644
--- a/.github/copilot-instructions.md
+++ b/.github/copilot-instructions.md
@@ -32,12 +32,15 @@
 
 ### 3.1 XCode / Cube(数据库 & Web 快速开发)
 
-当任务涉及以下任一信号时,请**先检查当前仓库** `.github/instructions/xcode.instructions.md` **是否存在**,若存在则读取并遵循:
+当任务涉及以下任一信号时,请**先搜索并检查当前仓库** `.github/instructions/xcode.instructions.md` **是否存在**,若存在则读取并遵循:
 
 - 需求包含:XCode/Cube/魔方/实体生成/模型 XML/数据类库/数据库 CRUD/Controller 生成/`xcodetool`/`xcode` 命令
 - 解决方案/项目中出现:`NewLife.XCode` 包引用
 - 存在:`Model.xml`、`*.xcode.xml`、`*.Data.csproj`(或项目名以 `.Data` 结尾)
 - 代码出现命名空间/类型:`XCode.*`、`Entity`(XCode 实体基类)、XCode 相关特性/接口
+- **用户提到修改任意 `.xml` 文件**(如 `member.xml`、`area.xml` 等配置文件),应**主动搜索** `xcode.instructions.md` 判断是否需要引入
+
+**主动检测策略**:当用户提及 XML 文件修改时,即使未明确提到 XCode 关键字,也应先用 `file_search` 搜索 `xcode.instructions.md`,若存在则读取,以确定该 XML 文件是否属于 XCode/Cube 体系。
 
 未满足以上条件时,**不要**引入 XCode/Cube 初始化流程,避免干扰其它仓库的常规开发。
 
Modified +2 -2
diff --git a/XUnitTest/SsoClientTests.cs b/XUnitTest/SsoClientTests.cs
index 03f0270..832ffec 100644
--- a/XUnitTest/SsoClientTests.cs
+++ b/XUnitTest/SsoClientTests.cs
@@ -28,7 +28,7 @@ public class SsoClientTests
         Assert.NotNull(token);
         Assert.NotEmpty(token.AccessToken);
         Assert.NotEmpty(token.RefreshToken);
-        Assert.Equal(7200, token.Expire);
+        Assert.Equal(7200, token.ExpireIn);
         Assert.Equal(3, token.AccessToken.Split('.').Length);
 
         var user = await client.GetUser(token.AccessToken) as User;
@@ -65,7 +65,7 @@ public class SsoClientTests
         Assert.NotNull(token);
         Assert.NotEmpty(token.AccessToken);
         Assert.NotEmpty(token.RefreshToken);
-        Assert.Equal(7200, token.Expire);
+        Assert.Equal(7200, token.ExpireIn);
         Assert.Equal(3, token.AccessToken.Split('.').Length);
 
         var ex = await Assert.ThrowsAsync<ApiException>(() => client.GetUser(token.AccessToken));