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