shawenguan před 1 rokem
rodič
revize
544af982a5
1 změnil soubory, kde provedl 3 přidání a 4 odebrání
  1. 3 4
      Scripts/qweather/qweatherHelper.js

+ 3 - 4
Scripts/qweather/qweatherHelper.js

@@ -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}天气预报`);
+    }
 }