diff --git a/telecom_class.py b/telecom_class.py index cb3ae7b..5758f2e 100644 --- a/telecom_class.py +++ b/telecom_class.py @@ -91,7 +91,6 @@ def do_login(self, phonenum, password): headers=self.headers, json=body, ) - print(response.text) return response.json() def qry_important_data(self, **kwargs): diff --git a/telecom_monitor.py b/telecom_monitor.py index b0b8bda..c88a399 100644 --- a/telecom_monitor.py +++ b/telecom_monitor.py @@ -70,7 +70,6 @@ def main(): telecom = Telecom() def auto_login(): - print(f"开始自动登录") if TELECOM_USER := os.environ.get("TELECOM_USER"): phonenum, password = ( TELECOM_USER[:11], @@ -86,7 +85,7 @@ def auto_login(): if not phonenum.isdigit(): exit("自动登录:手机号设置错误,退出") else: - print(phonenum, password) + print(f"自动登录:{phonenum}") login_failure_count = CONFIG_DATA.get("user", {}).get("loginFailureCount", 0) if login_failure_count < 5: data = telecom.do_login(phonenum, password) @@ -121,7 +120,7 @@ def auto_login(): # 简化主要信息 summary = telecom.to_summary(important_data["responseData"]["data"]) if summary: - print("简化主要信息:", summary) + print(f"简化主要信息:{summary}") CONFIG_DATA["summary"] = summary # 获取流量包明细