Procházet zdrojové kódy

尝试修复打印问题

龚成明 před 2 roky
rodič
revize
f0b4622a9b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      scripts/monitors/price-monitor.js

+ 1 - 1
scripts/monitors/price-monitor.js

@@ -34,7 +34,7 @@ const showPrices = function(context, task) {
 
     // 需要输出到文件的打印逻辑
     const isLogToFile = (() => {
-      return percentage > PriceMonitorConfig.percentageLimit && (PrevOneInchPrice !== OneInchPrice && PrevBinancePrice !== BinancePrice)
+      return percentage > PriceMonitorConfig.percentageLimit && (PrevOneInchPrice !== OneInchPrice || PrevBinancePrice !== BinancePrice)
     })()
     table.showLine(rows, isLogToFile ? fileLogger : undefined)