|
|
@@ -8,9 +8,6 @@ https://console.qweather.com/#/apps
|
|
|
|
|
|
*/
|
|
|
|
|
|
-const { Interface } = require("readline");
|
|
|
-
|
|
|
-
|
|
|
const scriptName = `和风天气助手`;
|
|
|
const magicJS = MagicJS(scriptName, "INFO");
|
|
|
|
|
|
@@ -167,7 +164,9 @@ async function tryCheckWeather() {
|
|
|
}
|
|
|
}
|
|
|
magicJS.notification.appendNotifyInfo(text);
|
|
|
- let sendRet = await magicJS.fastWxpusherSend(text, `${cityStr}天气预报`);
|
|
|
+ if (isWxNotify) {
|
|
|
+ let sendRet = await magicJS.fastWxpusherSend(text, `${cityStr}天气预报`);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|