添加分享房间链接和对战结束返回房间
This commit is contained in:
11
src/apis.js
11
src/apis.js
@@ -412,9 +412,8 @@ export const cancelOrderListAPI = async (id) => {
|
||||
return request("POST", "/user/order/cancelOrder", { id });
|
||||
};
|
||||
|
||||
export const isGamingAPI = async () => {
|
||||
const result = await request("GET", "/user/isGaming");
|
||||
return result.gaming || false;
|
||||
export const getUserGameState = () => {
|
||||
return request("GET", "/user/state");
|
||||
};
|
||||
|
||||
export const getCurrentGameAPI = async () => {
|
||||
@@ -546,3 +545,9 @@ export const getMyLikeList = (page = 1, pageSize = 10) => {
|
||||
`/user/score/sheet/week/shoot/rank/like/list?pageNum=${page}&pageSize=${pageSize}`
|
||||
);
|
||||
};
|
||||
|
||||
export const getReadyAPI = (roomId) => {
|
||||
return request("POST", `/user/room/ready`, {
|
||||
roomId,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user