Explorar o código

orderPercentage

龚成明 %!s(int64=2) %!d(string=hai) anos
pai
achega
b7b36353e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/one-pro.js

+ 1 - 1
scripts/one-pro.js

@@ -68,7 +68,7 @@ const showInfo = function(context, task) {
     const DiffPrice = token.DiffPrice
     const percentage = NumKit.getSubFloat((DiffPrice / OneInchPrice) * 100, 2)
     const orderPrice = token.orderPrice ? token.orderPrice : ''
-    const orderPercentage = NumKit.getSubFloat(((BinancePrice - orderPrice) / orderPrice) * 100, 2)
+    const orderPercentage = orderPrice ? NumKit.getSubFloat(((BinancePrice - orderPrice) / orderPrice) * 100, 2) : ''
     const nextTimeStr = token.nextHandleTime ? TimeKit.getTimeByMillisecond(token.nextHandleTime) : ''
 
     // 价格非法判定