From 006fd48d717a648bd3e61a54e6896ec73b9390d4 Mon Sep 17 00:00:00 2001 From: Jalin Date: Mon, 16 Dec 2019 10:08:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=2012306=20=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py12306/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py12306/app.py b/py12306/app.py index 0c4a42b..4bf5317 100644 --- a/py12306/app.py +++ b/py12306/app.py @@ -15,7 +15,7 @@ def app_available_check(): if Config().IS_DEBUG: return True now = time_now() - if now.hour >= 23 or now.hour < 6: + if (now.hour >= 23 and now.minute >= 30) or now.hour < 6: CommonLog.add_quick_log(CommonLog.MESSAGE_12306_IS_CLOSED.format(time_now())).flush() open_time = datetime.datetime(now.year, now.month, now.day, 6) if open_time < now: