11
This commit is contained in:
parent
f752287bed
commit
a3aefa93a6
@ -47,7 +47,7 @@ namespace Milimoe.FunGame.WebAPI.Controllers
|
|||||||
}
|
}
|
||||||
else
|
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("sc", sc);
|
||||||
sql.Parameters.Add("uid", uid);
|
sql.Parameters.Add("uid", uid);
|
||||||
@ -92,7 +92,7 @@ namespace Milimoe.FunGame.WebAPI.Controllers
|
|||||||
{
|
{
|
||||||
result = $"☆--- OSMTV 出生排行榜 TOP10 ---☆\r\n{season}\r\n";
|
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("group", group);
|
||||||
sql.Parameters.Add("year", year);
|
sql.Parameters.Add("year", year);
|
||||||
sql.Parameters.Add("month", month);
|
sql.Parameters.Add("month", month);
|
||||||
@ -123,11 +123,11 @@ namespace Milimoe.FunGame.WebAPI.Controllers
|
|||||||
if (count > 10) continue;
|
if (count > 10) continue;
|
||||||
if (!reverse)
|
if (!reverse)
|
||||||
{
|
{
|
||||||
result += $"{count}. 用户:{uid},圣人点数:{sc} 分{(remark.Trim() != "" ? $" ({remark})" : "")}\r\n";
|
result += $"{count}. 用户:{uid},圣人点数:{sc} 分({times} 次){(remark.Trim() != "" ? $" ({remark})" : "")}\r\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
result += $"{count}. 用户:{uid},出生点数:{sc} 分{(remark.Trim() != "" ? $" ({remark})" : "")}\r\n";
|
result += $"{count}. 用户:{uid},出生点数:{sc} 分({times} 次){(remark.Trim() != "" ? $" ({remark})" : "")}\r\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!reverse && userHas)
|
if (!reverse && userHas)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user