競賽資訊完整版 ( 只剩評分、競賽得獎 )

This commit is contained in:
2025-09-16 17:19:20 +08:00
parent b4386dc481
commit 6ce0b250cb
4 changed files with 67 additions and 22 deletions

View File

@@ -77,8 +77,8 @@ export async function GET(request: NextRequest, { params }: { params: { id: stri
likes_count: app.likes_count || 0,
views_count: app.views_count || 0,
rating: Math.round(avgRating * 10) / 10, // 四捨五入到小數點後一位
creator_name: "未知作者",
creator_department: "未知部門",
creator_name: app.creator_name || "未知作者",
creator_department: app.creator_department || "未知部門",
team_name: team.name,
created_at: app.created_at
};