修改模拟射箭

This commit is contained in:
kron
2025-07-05 18:51:27 +08:00
parent 2e8f63b17e
commit 620ab246b9
2 changed files with 10 additions and 4 deletions

View File

@@ -201,7 +201,7 @@ export const simulShootAPI = (device_id, x, y) => {
const data = {
device_id,
};
if (x && y) {
if (x !== undefined && y !== undefined) {
data.x = x;
data.y = y;
}