K线机器人-修复产生空盘口数据BUG

pull/1/head
luzhaofeng 5 years ago
parent aadd82388a
commit 0daa620a2b
  1. 31
      blockchain-server/blockchain-server-databot/src/main/java/com/blockchain/server/databot/schedule/KMarketScheduling.java

@ -282,12 +282,16 @@ public class KMarketScheduling {
newPrices.put(unitPrice, marketDTO); newPrices.put(unitPrice, marketDTO);
} }
} }
if (newPrices.size() == 0) {
//设置深度数据到缓存中 System.out.println("==========================出现0==============================");
setDepthInRedis(newPrices, coinName, unitName, tradingType); System.out.println("配置:" + config.toString());
System.out.println("单价:" + newPrices);
//发送推送前端请求 } else {
send(coinName, unitName); //设置深度数据到缓存中
setDepthInRedis(newPrices, coinName, unitName, tradingType);
//发送推送前端请求
send(coinName, unitName);
}
} }
/*** /***
@ -349,11 +353,16 @@ public class KMarketScheduling {
} }
} }
//设置深度数据到缓存中 if (newPrices.size() == 0) {
setDepthInRedis(newPrices, coinName, unitName, tradingType); System.out.println("==========================出现0==============================");
System.out.println("配置:" + config.toString());
//发送推送前端请求 System.out.println("单价:" + nowPrice);
send(coinName, unitName); } else {
//设置深度数据到缓存中
setDepthInRedis(newPrices, coinName, unitName, tradingType);
//发送推送前端请求
send(coinName, unitName);
}
} }
/*** /***

Loading…
Cancel
Save