update:优化比赛队列

This commit is contained in:
2026-07-08 18:18:27 +08:00
parent e0d976fcce
commit af07d09ab6
5 changed files with 589 additions and 38 deletions
+4 -1
View File
@@ -1,3 +1,5 @@
import { normalizeBattleApiResult } from "@/utils/matchAdapter";
let BASE_URL = "https://api.shelingxingqiu.com/api/shoot"; // 默认正式版
try {
@@ -553,9 +555,10 @@ export const getReadyAPI = (roomId) => {
};
export const getBattleAPI = async (battleId) => {
return request("POST", "/user/match/info", {
const result = await request("POST", "/user/match/info", {
id: battleId,
});
return normalizeBattleApiResult(result);
};
export const kickPlayerAPI = (number, userId) => {