diff --git a/MilimoeWebAPI/Controllers/APIController.cs b/MilimoeWebAPI/Controllers/APIController.cs index 9147274..11f91d3 100644 --- a/MilimoeWebAPI/Controllers/APIController.cs +++ b/MilimoeWebAPI/Controllers/APIController.cs @@ -47,7 +47,7 @@ namespace Milimoe.FunGame.WebAPI.Controllers } else { - sql.Script = "insert into saints(uid, sc, `group`, `year`, `month`, record) values(@uid, @sc, @group, @year, @month, @record)"; + sql.Script = "insert into saints(uid, sc, times, `group`, `year`, `month`, record) values(@uid, @sc, 1, @group, @year, @month, @record)"; } sql.Parameters.Add("sc", sc); sql.Parameters.Add("uid", uid); @@ -92,7 +92,7 @@ namespace Milimoe.FunGame.WebAPI.Controllers { result = $"☆--- OSMTV 出生排行榜 TOP10 ---☆\r\n{season}\r\n"; } - sql.Script = "select * from saints_backup where `group` = @group and `year` = @year and `month` = @month order by sc" + (!reverse ? " desc" : ""); + sql.Script = "select * from saints where `group` = @group and `year` = @year and `month` = @month order by sc" + (!reverse ? " desc" : ""); sql.Parameters.Add("group", group); sql.Parameters.Add("year", year); sql.Parameters.Add("month", month); @@ -123,11 +123,11 @@ namespace Milimoe.FunGame.WebAPI.Controllers if (count > 10) continue; if (!reverse) { - result += $"{count}. 用户:{uid},圣人点数:{sc} 分{(remark.Trim() != "" ? $" ({remark})" : "")}\r\n"; + result += $"{count}. 用户:{uid},圣人点数:{sc} 分({times} 次){(remark.Trim() != "" ? $" ({remark})" : "")}\r\n"; } else { - result += $"{count}. 用户:{uid},出生点数:{sc} 分{(remark.Trim() != "" ? $" ({remark})" : "")}\r\n"; + result += $"{count}. 用户:{uid},出生点数:{sc} 分({times} 次){(remark.Trim() != "" ? $" ({remark})" : "")}\r\n"; } } if (!reverse && userHas)