This commit is contained in:
milimoe 2026-01-03 22:00:16 +08:00
parent f752287bed
commit a3aefa93a6
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0

View File

@ -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)