From 180d8e19a0a5a0f0ca13506c4ddff3e1a7d30faa Mon Sep 17 00:00:00 2001 From: Mili Date: Fri, 31 Mar 2023 00:23:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E6=97=B6=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=95=99=E4=B8=8BLastIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FunGame.Core/Library/SQLScript/Entity/UserQuery.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FunGame.Core/Library/SQLScript/Entity/UserQuery.cs b/FunGame.Core/Library/SQLScript/Entity/UserQuery.cs index 68ac83e..14ac6e2 100644 --- a/FunGame.Core/Library/SQLScript/Entity/UserQuery.cs +++ b/FunGame.Core/Library/SQLScript/Entity/UserQuery.cs @@ -55,10 +55,10 @@ return $"{Constant.Command_Update} {TableName} {Constant.Command_Set} {Column_GameTime} = {Column_GameTime} + {GameTimeMinutes} {Constant.Command_Where} {Column_Username} = '{Username}'"; } - public static string Insert_Register(string Username, string Password, string Email) + public static string Insert_Register(string Username, string Password, string Email, string IP) { DateTime Now = DateTime.Now; - return $"{Constant.Command_Insert} {Constant.Command_Into} {TableName} ({Column_Username}, {Column_Password}, {Column_Email}, {Column_RegTime}, {Column_LastTime}) {Constant.Command_Values} ('{Username}', '{Password}', '{Email}', '{Now}', '{Now}')"; + return $"{Constant.Command_Insert} {Constant.Command_Into} {TableName} ({Column_Username}, {Column_Password}, {Column_Email}, {Column_RegTime}, {Column_LastTime}, {Column_LastIP}) {Constant.Command_Values} ('{Username}', '{Password}', '{Email}', '{Now}', '{Now}', '{IP}')"; } } }