修改模拟射箭
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user