fix id返回,仅判断meal设,移除心跳间隔30秒判断
This commit is contained in:
@@ -83,9 +83,9 @@ public class DeviceSaveRequest : IValidatableObject
|
||||
yield return new ValidationResult($"{DeviceTypeEnumType.Door.GetDescription()}才可设置作为考勤设备", new[] { nameof(AsAttendance) });
|
||||
}
|
||||
|
||||
if (HeartbeatInterval != 0 && HeartbeatInterval < 30)
|
||||
if (HeartbeatInterval < 0)
|
||||
{
|
||||
yield return new ValidationResult("心跳间隔需要设置>=30秒", new[] { nameof(HeartbeatInterval) });
|
||||
yield return new ValidationResult("心跳间隔不可小于0", new[] { nameof(HeartbeatInterval) });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user