From eb8715b55c3d87e0f5028424036515e33dba280c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=8C=90=EB=8F=8C?= Date: Sun, 8 Dec 2024 23:43:30 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EC=8B=9C=20=EC=BB=A4=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/Git/ExcelManager.cs | 2 +- Server/Manager/ItemManager.cs | 6 +++--- Server/System/Statics.cs | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Server/Git/ExcelManager.cs b/Server/Git/ExcelManager.cs index 793d9a8..7087ea8 100644 --- a/Server/Git/ExcelManager.cs +++ b/Server/Git/ExcelManager.cs @@ -119,7 +119,7 @@ namespace Server.Git } dataList.Add(variable[m], getData); } - dicViewer.Add((long)(isIndex ? dataList["index"] : n - 4), dataList); + dicViewer.Add((isIndex ? (long)dataList["index"] : n - 4), dataList); } var sheet = new Sheet(worksheet.Name, variable, dataEnum, type, dicViewer); diff --git a/Server/Manager/ItemManager.cs b/Server/Manager/ItemManager.cs index e79e750..6fe7336 100644 --- a/Server/Manager/ItemManager.cs +++ b/Server/Manager/ItemManager.cs @@ -47,7 +47,7 @@ namespace Server.Manager Equipment equipment = new Equipment(); equipment.user_id = user.id; equipment.equip_unit = 0; - equipment.rand_stats = rand.Next(5); + equipment.rand_stats = rand.Next(4); equipment.equipment_data_id = rewardData.return_item; if(!box.Add(equipment)) throw new RuntimeException("Unknown Error [box.Add(equipment)]", Error.RuntimeException); @@ -134,7 +134,7 @@ namespace Server.Manager Equipment equipment = new Equipment(); equipment.user_id = user.id; equipment.equip_unit = 0; - equipment.rand_stats = rand.Next(5); + equipment.rand_stats = rand.Next(4); equipment.equipment_data_id = randomRewardDatas[n].reward; if (!box.Add(equipment)) throw new RuntimeException("Unknown Error [box.Add(equipment)]", Error.RuntimeException); @@ -232,7 +232,7 @@ namespace Server.Manager Equipment equipment = new Equipment(); equipment.user_id = user.id; equipment.equip_unit = 0; - equipment.rand_stats = rand.Next(5); + equipment.rand_stats = rand.Next(4); equipment.equipment_data_id = randomRewardDatas[selectItem].reward; if (!box.Add(equipment)) throw new RuntimeException("Unknown Error [box.Add(equipment)]", Error.RuntimeException); diff --git a/Server/System/Statics.cs b/Server/System/Statics.cs index 64cd027..1462abf 100644 --- a/Server/System/Statics.cs +++ b/Server/System/Statics.cs @@ -7,13 +7,13 @@ namespace Server.System public static class Statics { #if DEBUG - public static readonly string SQL_URL = "Host=192.168.1.3;Port=5432;Username=manager;Password=Zn2zs558W5SdD8K;Database=project_thewar;"; - public static readonly string EXCEL_SQL_URL = "Host=192.168.1.3;Port=5432;Username=manager;Password=Zn2zs558W5SdD8K;Database=project_thewar;"; + public static readonly string SQL_URL = "Host=192.168.1.3;Port=5432;Username=furrytail;Password=WPDfU4MuthWzdje4HH8cq7nUZiwBek;Database=project_thewar;"; + public static readonly string EXCEL_SQL_URL = "Host=192.168.1.3;Port=5432;Username=furrytail;Password=WPDfU4MuthWzdje4HH8cq7nUZiwBek;Database=project_thewar;"; public static readonly string remoteUrl = "https://manager:BQNl01bJJF0wn9R@gitea.pandoli365.com/Team.thewar/thewar_excel.git"; public static readonly Redis redis = new Redis("192.168.1.3", 6379, 1, "mwAG28D5y0MAOOokMCnn"); #elif LIVE - public static readonly string SQL_URL = "Host=192.168.1.3;Port=5432;Username=manager;Password=:q+Zn2zs558W5SdD8K;Database=project_thewar;"; - public static readonly string EXCEL_SQL_URL = "Host=192.168.1.3;Port=5432;Username=manager;Password=Zn2zs558W5SdD8K;Database=project_thewar;"; + public static readonly string SQL_URL = "Host=192.168.1.3;Port=5432;Username=furrytail;Password=WPDfU4MuthWzdje4HH8cq7nUZiwBek;Database=project_thewar;"; + public static readonly string EXCEL_SQL_URL = "Host=192.168.1.3;Port=5432;Username=furrytail;Password=WPDfU4MuthWzdje4HH8cq7nUZiwBek;Database=project_thewar;"; public static readonly string remoteUrl = "https://manager:BQNl01bJJF0wn9R@gitea.pandoli365.com/Team.thewar/thewar_excel.git"; public static readonly Redis redis = new Redis("192.168.1.3", 6379, 1, "mwAG28D5y0MAOOokMCnn"); #endif