src/main/java/com/xcong/excoin/modules/yunding/service/Impl/YunDingServiceImpl.java | ●●●●● patch | view | raw | blame | history |
src/main/java/com/xcong/excoin/modules/yunding/service/Impl/YunDingServiceImpl.java
@@ -593,8 +593,12 @@ @Override public Result getXchPrice() { log.info("获取XCH当前价"); BigDecimal xchNewPrices = BigDecimal.ZERO; String xchNewPrice = redisUtils.getString("XCH_NEW_PRICE"); return Result.ok(Long.parseLong(xchNewPrice)); if(StrUtil.isNotEmpty(xchNewPrice)){ xchNewPrices = new BigDecimal(xchNewPrice); } return Result.ok(xchNewPrices); }