From 5fd5d9ca4acdd4991757e651f5f3d5ce3785081a Mon Sep 17 00:00:00 2001 From: sakurasep <13562008871@163.com> Date: Thu, 21 Mar 2024 19:42:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A8=8B=E5=BA=8F=E4=B8=AD?= =?UTF-8?q?=E6=96=AD=E7=9A=84=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/main/get_seat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/main/get_seat.py b/py/main/get_seat.py index 702f49b..eeb05de 100644 --- a/py/main/get_seat.py +++ b/py/main/get_seat.py @@ -208,11 +208,11 @@ def check_book_seat(): logger.info("存在已经预约的座位") seat_id = entry["name"] name = entry["nameMerge"] + FLAG = True MESSAGE += f"预约成功:你当前的座位是 {name} {seat_id}\n" send_get_request(BARK_URL + MESSAGE + BARK_EXTRA) asyncio.run(send_seat_result_to_channel()) send_message_anpush() - FLAG = True break elif entry["statusName"] == "使用中" and DATE == "today": logger.info("存在正在使用的座位") @@ -229,7 +229,7 @@ def check_reservation_status(): global FLAG, MESSAGE # 状态信息检测 status = SEAT_RESULT['msg'] - logger.info(status) + logger.info("预约状态:" + status) if status is not None: if status == "当前时段存在预约,不可重复预约!": logger.info("重复预约, 请检查选择的时间段或是否已经成功预约") @@ -450,7 +450,7 @@ def rebook_seat_or_checkout(): res = send_post_request_and_save_response(URL_CHECK_OUT, post_data, request_headers) if "msg" in res: status = res["msg"] - logger.info(status) + logger.info("签退状态:" + status) if status == "完全离开操作成功": MESSAGE += "\n恭喜签退成功" send_get_request(BARK_URL + MESSAGE + BARK_EXTRA)