1
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user