From 4fa9591629721797386fc11836e3a9deb69cd58c Mon Sep 17 00:00:00 2001 From: lrj <owen.stl@gmail.com> Date: 星期三, 24 九月 2025 17:00:37 +0800 Subject: [PATCH] 修改评分逻辑,支持多个评委 --- web/src/api/player.js | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/api/player.js b/web/src/api/player.js index 1006ec6..a1ada54 100644 --- a/web/src/api/player.js +++ b/web/src/api/player.js @@ -16,16 +16,16 @@ } const GET_APPLICATIONS = ` - query GetApplications($name: String, $page: Int, $size: Int) { - activityPlayerApplications(name: $name, page: $page, size: $size) { + query GetApplications($name: String, $activityId: ID, $page: Int, $size: Int) { + activityPlayerApplications(name: $name, activityId: $activityId, page: $page, size: $size) { id playerName activityName phone applyTime state } } ` export const PlayerApi = { - getApplications: async (name, page, size) => { - const data = await graphqlRequest(GET_APPLICATIONS, { name, page, size }) + getApplications: async (name, activityId, page, size) => { + const data = await graphqlRequest(GET_APPLICATIONS, { name, activityId, page, size }) return data.activityPlayerApplications || [] } } \ No newline at end of file -- Gitblit v1.8.0