This commit is contained in:
张成
2025-12-24 23:33:56 +08:00
parent 53e9f5b2e9
commit 36465d81e3

View File

@@ -100,10 +100,7 @@ class DeviceManager {
* 检查是否可以执行操作 * 检查是否可以执行操作
*/ */
canExecuteOperation(sn_code, operation_type) { canExecuteOperation(sn_code, operation_type) {
// 检查工作时间
if (!config.isWorkingHours()) {
return { allowed: false, reason: '不在工作时间内' };
}
// 检查频率限制 // 检查频率限制
const device = this.devices.get(sn_code); const device = this.devices.get(sn_code);