Skip to content

Commit

Permalink
🔨 简化 log
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Jun 11, 2024
1 parent e9f1351 commit afa0106
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion telecom_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
5 changes: 2 additions & 3 deletions telecom_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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)
Expand Down Expand Up @@ -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

# 获取流量包明细
Expand Down

0 comments on commit afa0106

Please sign in to comment.