update:优化比赛队列
This commit is contained in:
+4
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user