无关风月
2024-08-24 215fde9671b285b4f77fa3f5a669c58b74af17c8
ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/TAppUserController.java
@@ -116,7 +116,20 @@
    private TInviteUserService inviteUserService;
    /**
     * 远程调用 积分兑换订单 退款回退积分
     * @return
     */
    @PostMapping(value = "/refundPoints/{param}")
    public R refundPoints(@PathVariable("param")String param) {
        String[] split = param.split("-");
        String userId = split[0];
        String points = split[1];
        TAppUser byId = appUserService.getById(userId);
        byId.setPoints(byId.getPoints()+Integer.parseInt(points));
        appUserService.updateById(byId);
        return R.ok();
    }
    @ApiOperation(value = "查询当前用户是否为会员 0否1是", tags = {"小程序--查询当前用户是否为会员"})
    @PostMapping(value = "/getUserInfo")