@whyour/qinglong 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sample/notify.js +1 -2
- package/sample/notify.py +1 -2
package/package.json
CHANGED
package/sample/notify.js
CHANGED
|
@@ -97,7 +97,6 @@ const push_config = {
|
|
|
97
97
|
WEBHOOK_CONTENT_TYPE: '', // 自定义通知 content-type
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
// 首先读取 面板变量 或者 github action 运行变量
|
|
101
100
|
for (const key in push_config) {
|
|
102
101
|
const v = process.env[key];
|
|
103
102
|
if (v) {
|
|
@@ -1290,7 +1289,7 @@ async function sendNotify(text, desp, params = {}) {
|
|
|
1290
1289
|
}
|
|
1291
1290
|
}
|
|
1292
1291
|
|
|
1293
|
-
if (push_config.HITOKOTO) {
|
|
1292
|
+
if (push_config.HITOKOTO !== 'false') {
|
|
1294
1293
|
desp += '\n\n' + (await one());
|
|
1295
1294
|
}
|
|
1296
1295
|
|
package/sample/notify.py
CHANGED
|
@@ -120,7 +120,6 @@ push_config = {
|
|
|
120
120
|
}
|
|
121
121
|
# fmt: on
|
|
122
122
|
|
|
123
|
-
# 首先读取 面板变量 或者 github action 运行变量
|
|
124
123
|
for k in push_config:
|
|
125
124
|
if os.getenv(k):
|
|
126
125
|
v = os.getenv(k)
|
|
@@ -962,7 +961,7 @@ def send(title: str, content: str, ignore_default_config: bool = False, **kwargs
|
|
|
962
961
|
return
|
|
963
962
|
|
|
964
963
|
hitokoto = push_config.get("HITOKOTO")
|
|
965
|
-
content += "\n\n" + one() if hitokoto else ""
|
|
964
|
+
content += "\n\n" + one() if hitokoto != "false" else ""
|
|
966
965
|
|
|
967
966
|
notify_function = add_notify_function()
|
|
968
967
|
ts = [
|