xiaoyong931011
2021-05-14 5e1b32f9e06867e8d770876bc9760e5ca718483a
20210514 云顶
1 files modified
6 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/yunding/service/Impl/YunDingServiceImpl.java 6 ●●●● 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);
    }