From 689e018f543529783d26a1067ef6f19f9f864d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E8=B4=A4=E5=B9=B3?= Date: Mon, 2 Sep 2019 15:21:06 +0800 Subject: [PATCH] pushbear conf fix --- README.md | 2 +- config/pushbearConf.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 485e03f..abf02dd 100755 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ #### 项目使用说明 - 可以配置邮箱,可以配置可以不配置,配置邮箱的格式在[配置](TickerConfig.py)里面可以看到ex - 可以配置server酱提醒(推荐), [配置教程](https://www.jianshu.com/p/8d10b5b9c4e3) - - 配置[配置](TickerConfig.py)文件的时候,需注意空格和遵循yaml语法格式 + - 配置[配置](TickerConfig.py)文件的时候,需注意空格和遵循python语法格式 #### 项目开始 - 服务器启动: diff --git a/config/pushbearConf.py b/config/pushbearConf.py index 115fdfc..01e1073 100644 --- a/config/pushbearConf.py +++ b/config/pushbearConf.py @@ -12,11 +12,11 @@ def sendPushBear(msg): :param str: 通知内容 content :return: """ - if TickerConfig.PUSHBEAR_CONF["is_pushbear"] and TickerConfig.PUSHBEAR_CONF["pushbear_conf"]["send_key"].strip() != "": + if TickerConfig.PUSHBEAR_CONF["is_pushbear"] and TickerConfig.PUSHBEAR_CONF["send_key"].strip() != "": try: sendPushBearUrls = urls.get("Pushbear") data = { - "sendkey": TickerConfig.PUSHBEAR_CONF["pushbear_conf"]["send_key"].strip(), + "sendkey": TickerConfig.PUSHBEAR_CONF["send_key"].strip(), "text": "易行购票成功通知", "desp": msg }