新版房间1v1对战数据调试完成

This commit is contained in:
kron
2026-02-04 17:45:57 +08:00
parent a2674aae5b
commit 7f73f3ebb3
18 changed files with 524 additions and 843 deletions

View File

@@ -6,7 +6,7 @@ try {
switch (envVersion) {
case "develop": // 开发版
// BASE_URL = "http://192.168.1.242:8000/api/shoot";
// BASE_URL = "http://192.168.1.30:8000/api/shoot";
BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot";
break;
case "trial": // 体验版
@@ -418,9 +418,9 @@ export const getUserGameState = () => {
};
export const getCurrentGameAPI = async () => {
uni.$emit("update-header-loading", true);
const result = await request("GET", "/user/join/battle");
return result.currentGame || {};
// uni.$emit("update-header-loading", true);
// const result = await request("GET", "/user/join/battle");
// return result.currentGame || {};
};
export const getPointBookConfigAPI = async () => {
@@ -552,3 +552,10 @@ export const getReadyAPI = (roomId) => {
roomId,
});
};
export const getBattleAPI = async (battleId) => {
const result = await request("POST", "/user/match/info", {
id: battleId,
});
return result;
};