public static void main(String[] args) {
//09:00:00
int begin = 9;
//20:00:00
int end = 20;
int hour = DateTime.now().hour(true);
Assert.isTrue(hour >= begin && hour < end, StrUtil.format("当前功能操作时间段为:{}:00-{}:00", begin, end));
}