Browse Source

1.暂时处理K线
———— by qlm

qlm 4 năm trước cách đây
mục cha
commit
3efaa86fec

+ 3 - 0
src/main/java/com/xc/service/impl/IndexApiServiceImpl.java

@@ -289,6 +289,9 @@ public class IndexApiServiceImpl implements IndexApiService {
         if(from > to){
             to = new Date().getTime() / 1000;
         }
+        if(!symbol.contains("_")){
+            symbol = symbol +"_bb";
+        }
         List<HistoryVo> historyVoList = new ArrayList<>();
         List<HistoryVo> historyVoDays = new ArrayList<>();
         getDate(symbol, resolution, from, to, historyVoList, historyVoDays);