From a250e88a38aa36fbfed9a421cac4d5266b5e88dc Mon Sep 17 00:00:00 2001 From: qsc Date: Mon, 15 Dec 2025 19:28:50 +0800 Subject: [PATCH] 11 --- core/jx3_service.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/jx3_service.py b/core/jx3_service.py index 86061e0..12c3c5f 100644 --- a/core/jx3_service.py +++ b/core/jx3_service.py @@ -168,12 +168,13 @@ class JX3Service: status_time = datetime.fromtimestamp(float(timestamp)).strftime("%Y-%m-%d %H:%M:%S") - if status == 1: - status_str = f"{server}服务器已开服,快冲,快冲!\n开服时间:{status_time}" - status_bool = True - else: + if status == 0: status_str = f"{server}服务器当前维护中,等会再来吧!\n维护时间:{status_time}" status_bool = False + else: + status_str = f"{server}服务器已开服,快冲,快冲!\n开服时间:{status_time}" + status_bool = True + return_data["status"] = status_bool return_data["data"] = status_str