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