shawenguan 1 年之前
父節點
當前提交
544af982a5
共有 1 個文件被更改,包括 3 次插入4 次删除
  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}天气预报`);
+    }
 }