Skip to content

Commit 4e44d0c

Browse files
committed
🎨优化代码
1 parent 2eaf23d commit 4e44d0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def push_pushplus(_token, content=""):
194194
if _token == '':
195195
print("[注意] 未提供token,不进行pushplus推送!")
196196
else:
197-
server_url = f"http://www.pushplus.plus/send"
197+
server_url = "http://www.pushplus.plus/send"
198198
params = {
199199
"token": _token,
200200
"title": '小米运动 步数修改',
@@ -228,7 +228,7 @@ def push_tg(_token, chat_id, desp=""):
228228
response = requests.get(server_url, params=params)
229229
json_data = response.json()
230230

231-
if json_data['ok'] == True:
231+
if json_data['ok']:
232232
print(f"[{now}] 推送成功。")
233233
else:
234234
print(f"[{now}] 推送失败:{json_data['error_code']}({json_data['description']})")

0 commit comments

Comments
 (0)