update:改功能易引发坏人滥用,违背开发者初心

This commit is contained in:
hrz
2025-10-23 11:43:49 +08:00
parent 4b2d7da4e5
commit bde50e661d
4 changed files with 24 additions and 1714 deletions
@@ -102,21 +102,4 @@ export default {
});
}).send();
},
// 发送设备指令
sendDeviceCommand(deviceId, mcpData, callback) {
RequestService.sendRequest()
.url(`${getServiceUrl()}/device/commands/${deviceId}`)
.method('POST')
.data(mcpData)
.success((res) => {
RequestService.clearRequestTime();
callback(res);
})
.networkFail((err) => {
console.error('发送设备指令失败:', err);
RequestService.reAjaxFun(() => {
this.sendDeviceCommand(deviceId, mcpData, callback);
});
}).send();
},
}