shawenguan 1 tahun lalu
induk
melakukan
544af982a5
1 mengubah file dengan 3 tambahan dan 4 penghapusan
  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}天气预报`);
+    }
 }