xiaoyong931011
2021-05-14 6aab3e401fc146885d5fb5cb5048cd09de4a6f18
20210514 云顶
4 files modified
21 ■■■■■ changed files
src/main/java/com/xcong/excoin/configurations/security/WebSecurityConfig.java 1 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java 9 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/yunding/service/Impl/YunDingServiceImpl.java 9 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/yunding/service/YunDingService.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/configurations/security/WebSecurityConfig.java
@@ -61,6 +61,7 @@
                .antMatchers("/api/yd/findAllInfo").permitAll()
                .antMatchers("/api/yd/getProductList").permitAll()
                .antMatchers("/api/yd/findProductInfo").permitAll()
                .antMatchers("/api/yd/getXchPrice").permitAll()
                .anyRequest().authenticated()
                .and().apply(securityConfiguereAdapter());
    }
src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java
@@ -55,6 +55,15 @@
    }
    /**
     * 获取XCH当前价
     */
    @ApiOperation(value = "获取XCH当前价")
    @GetMapping(value = "/getXchPrice")
    public Result getXchPrice() {
        return yunDingService.getXchPrice();
    }
    /**
     * 获取USDT余额
     */
    @ApiOperation(value = "获取USDT余额")
src/main/java/com/xcong/excoin/modules/yunding/service/Impl/YunDingServiceImpl.java
@@ -65,6 +65,8 @@
    private MemberDao memberDao;
    @Autowired
    private YunDingProducter yunDingProducter;
    @Autowired
    private RedisUtils redisUtils;
    @Override
    public Result findAllInfo() {
@@ -588,6 +590,13 @@
        return Result.ok("购买成功");
    }
    @Override
    public Result getXchPrice() {
        log.info("获取XCH当前价");
        String xchNewPrice = redisUtils.getString("XCH_NEW_PRICE");
        return Result.ok(xchNewPrice);
    }
    /**
     * 去加减币币账户余额,减少产品的剩余数目
src/main/java/com/xcong/excoin/modules/yunding/service/YunDingService.java
@@ -30,4 +30,6 @@
    Result getAgentList(YdAgentDto ydAgentDto);
    Result bugAgentLevel(BugAgentLeveldto bugAgentLeveldto);
    Result getXchPrice();
}