添加模拟射箭按钮

This commit is contained in:
kron
2025-06-08 13:55:09 +08:00
parent deff79aa7b
commit 312906fec3
5 changed files with 46 additions and 7 deletions

View File

@@ -125,3 +125,14 @@ export const getGameAPI = (battleId) => {
id: battleId,
});
};
export const simulShootAPI = (device_id, x, y) => {
const data = {
device_id,
};
if (x && y) {
data.x = x;
data.y = y;
}
return request("POST", "/index/arrow", data);
};