From cac17aa6c28b285376a9303ead79220b995dbf5a Mon Sep 17 00:00:00 2001 From: yeziuku <53083103+yeziuku@users.noreply.github.com> Date: Mon, 10 Mar 2025 01:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E6=97=B6=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=20AutoKey=20=E5=8F=82=E6=95=B0=E4=BC=9A=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E5=A4=B1=E8=B4=A5=20(#112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/SQLScript/Entity/UserQuery.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/SQLScript/Entity/UserQuery.cs b/Library/SQLScript/Entity/UserQuery.cs index 96935bd..bb4fc9f 100644 --- a/Library/SQLScript/Entity/UserQuery.cs +++ b/Library/SQLScript/Entity/UserQuery.cs @@ -91,7 +91,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity SQLHelper.Parameters["@RegTime"] = Now; SQLHelper.Parameters["@LastTime"] = Now; SQLHelper.Parameters["@LastIP"] = IP; - if (AutoKey != "") SQLHelper.Parameters["@AutoKey"] = AutoKey; + SQLHelper.Parameters["@AutoKey"] = AutoKey; return $"{Command_Insert} {Command_Into} {TableName} ({Column_Username}, {Column_Nickname}, {Column_Password}, {Column_Email}, {Column_RegTime}, {Column_LastTime}, {Column_LastIP}, {Column_AutoKey}) {Command_Values} (@Username, @Nickname, @Password, @Email, @RegTime, @LastTime, @LastIP, @AutoKey)"; } }