From 0933c0470a3700f1af2504d61625211be0769ec9 Mon Sep 17 00:00:00 2001 From: milimoe Date: Fri, 21 Mar 2025 01:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Select=5FGetAPISecretKey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/SQLScript/Common/Common.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Library/SQLScript/Common/Common.cs b/Library/SQLScript/Common/Common.cs index e8dcd88..5a477dd 100644 --- a/Library/SQLScript/Common/Common.cs +++ b/Library/SQLScript/Common/Common.cs @@ -64,7 +64,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Common public const string Column_Reference1 = "Reference1"; public const string Column_Reference2 = "Reference2"; - public static string Insert_APITokens(SQLHelper SQLHelper, string TokenID, string SecretKey = "", string Reference1 = "", string Reference2 = "") + public static string Insert_APIToken(SQLHelper SQLHelper, string TokenID, string SecretKey = "", string Reference1 = "", string Reference2 = "") { SQLHelper.Parameters["@TokenID"] = TokenID; SQLHelper.Parameters["@SecretKey"] = SecretKey; @@ -78,6 +78,12 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Common SQLHelper.Parameters["@TokenID"] = TokenID; return $"{Command_Select} {Command_All} {Command_From} {TableName} {Command_Where} {Column_TokenID} = @TokenID"; } + + public static string Select_GetAPISecretKey(SQLHelper SQLHelper, string SecretKey) + { + SQLHelper.Parameters["@SecretKey"] = SecretKey; + return $"{Command_Select} {Command_All} {Command_From} {TableName} {Command_Where} {Column_SecretKey} = @SecretKey"; + } public static string Update_GetAPIToken(SQLHelper SQLHelper, string TokenID, string SecretKey, string Reference1 = "", string Reference2 = "") {