From 734efba76450f66f5adf75a9ea693d1b70de42b1 Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Sun, 4 Jan 2026 17:47:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4=E5=88=A4?= =?UTF-8?q?=E5=AE=9A=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Infrastructure/WebExtensions/EntityExtension.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Infrastructure/WebExtensions/EntityExtension.cs b/Infrastructure/WebExtensions/EntityExtension.cs index 555e478..9dc4f6d 100644 --- a/Infrastructure/WebExtensions/EntityExtension.cs +++ b/Infrastructure/WebExtensions/EntityExtension.cs @@ -13,7 +13,7 @@ namespace Infrastructure var types = source?.GetType(); if (types == null || context == null) return source; BindingFlags flag = BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.Instance; - + types.GetProperty("CreatedTime", flag)?.SetValue(source, DateTime.Now, null); types.GetProperty("CreateTime", flag)?.SetValue(source, DateTime.Now, null); types.GetProperty("AddTime", flag)?.SetValue(source, DateTime.Now, null); types.GetProperty("CreateBy", flag)?.SetValue(source, context.GetName(), null);