|
@@ -130,11 +130,11 @@ class DialogueManager:
|
|
|
"""获取当前时间上下文"""
|
|
|
if not current_hour:
|
|
|
current_hour = datetime.now().hour
|
|
|
- if 5 <= current_hour < 8:
|
|
|
+ if 5 <= current_hour < 7:
|
|
|
return TimeContext.EARLY_MORNING
|
|
|
- elif 8 <= current_hour < 12:
|
|
|
+ elif 7 <= current_hour < 11:
|
|
|
return TimeContext.MORNING
|
|
|
- elif 12 <= current_hour < 14:
|
|
|
+ elif 11 <= current_hour < 14:
|
|
|
return TimeContext.NOON
|
|
|
elif 14 <= current_hour < 18:
|
|
|
return TimeContext.AFTERNOON
|