跨域bug修复2

This commit is contained in:
canglan committed 2026-04-14 15:56:57 +08:00
1 parent 74053bdbdc
commit fd3535f884
14 files changed
+65 -65

No files matched your search

-3
View File
@@ -119,15 +119,12 @@ class StudentService:
@staticmethod
async def get_ranking(
user_id: int,
class_id: Optional[int] = None,
limit: int = 50
) -> Dict[str, Any]:
"""获取排行榜(单班级系统)"""
# 单班级系统,直接获取排行榜
ranking = await StudentModel.get_ranking(limit=limit)
return {
"class_id": class_id or 1,
"ranking": ranking
}