瀏覽代碼

表格结构整理

龚成明 2 年之前
父節點
當前提交
7e55ca6a98
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      scripts/one-pro.js

+ 3 - 3
scripts/one-pro.js

@@ -53,7 +53,7 @@ const orderHandler = function(context, task) {
   })
 }
 
-const table = new TableKit(['pair', 'binance', 'order price', 'profit', 'next time', 'percentage'], 20)
+const table = new TableKit(['pair', '1inch', 'binance', 'order price', 'profit(%)', 'next time'], 20)
 const showInfo = function(context, task) {
   const logger = task.logger
   const tokenMap = context.tokenMap
@@ -76,8 +76,8 @@ const showInfo = function(context, task) {
       return OneInchPrice && BinancePrice
     })()
 
-    const rows = [pair.toString(), BinancePrice.toString(), orderPrice.toString(),
-      orderPercentage.toString().concat('%'), nextTimeStr, percentage.toString().concat('%')]
+    const rows = [pair.toString(), OneInchPrice.toString(), BinancePrice.toString(),
+      orderPrice.toString(), orderPercentage.toString(), nextTimeStr]
 
     // 识别到在拉盘
     token.isLong = (() => {