121212133

This commit is contained in:
Putoo
2026-07-10 19:37:38 +08:00
parent 2c1bec379d
commit dec8c2e076
6 changed files with 32 additions and 23 deletions

View File

@@ -30,7 +30,11 @@ public class RankController : ControllerBase
RefAsync<int> total = 0;
string upTime = $"更新时间:{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}";
int area = StateHelper.areaId;
if (type is >= 0 and < 8)
if (type == 0)
{
data = await _rankService.GetGameLevRank(area, page, 10, total);
}
else if (type is >= 1 and < 8)
{
data = await _rankService.GetGameRank(type, area, page, 10, total);
upTime = await _rankService.GetRankUpdateTime();