update:新增稳定训练

This commit is contained in:
2026-08-26 15:23:02 +08:00
parent 45bc324f70
commit 96b64e4187
15 changed files with 645 additions and 25 deletions
+3 -1
View File
@@ -376,9 +376,11 @@ export const readyGameAPI = (battleId) => {
});
};
export const simulShootAPI = (device_id, x, y) => {
export const simulShootAPI = (device_id, x, y, targetType = 40) => {
const data = {
device_id,
// 模拟射箭仅支持 20cm、40cm 靶纸,未传或传入无效值时默认使用 40cm。
targetType: Number(targetType) === 20 ? 20 : 40,
};
if (x !== undefined && y !== undefined) {
data.x = x;