Skip to content

Commit 2e62754

Browse files
committed
🐛 修复青龙引号报错 #22
1 parent 1b64e6a commit 2e62754

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

telecom_monitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def send_notify(title, body):
3838

3939
# 如未配置 push_config 则使用青龙环境通知设置
4040
if CONFIG_DATA.get("push_config"):
41-
notify.push_config = CONFIG_DATA["push_config"].copy()
41+
notify.push_config.update(CONFIG_DATA["push_config"])
4242
notify.push_config["CONSOLE"] = notify.push_config.get("CONSOLE", True)
4343
notify.send(title, body)
4444
except Exception as e:
@@ -181,7 +181,7 @@ def auto_login():
181181
notify_str = f"""
182182
📱 手机:{summary['phonenum']}
183183
💰 余额:{round(summary['balance']/100,2)}
184-
📞 通话:{summary['voiceUsage']}{f' / {summary['voiceTotal']}' if summary['voiceTotal']>0 else ''} min
184+
📞 通话:{summary['voiceUsage']}{f" / {summary['voiceTotal']}" if summary['voiceTotal']>0 else ''} min
185185
🌐 总流量
186186
- 通用:{common_str}{f'{chr(10)} - 专用:{special_str}' if special_str else ''}"""
187187

0 commit comments

Comments
 (0)