luodangjia
2024-08-15 6f91919a81c92766cb6a119dfe099b83a22ef446
ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/TAppUserController.java
@@ -306,6 +306,14 @@
        appUserService.updateById(appUser);
        return R.ok();
    }
//    @ApiOperation(value = "个人中心信息", tags = {"小程序-个人中心"})
//    @PostMapping(value = "/user/info")
//    public R info() {
//        Long userId = 1L;
//        TAppUser byId = appUserService.getById(userId);
//
//
//    }
    @ApiOperation(value = "赠送会员", tags = {"用户管理-用户列表"})
@@ -315,11 +323,11 @@
        int plusDay = 0;
        if (giveVipDto.getType() == 1) {
            plusDay = 31;
            plusDay = 1;
        } else if (giveVipDto.getType() == 2) {
            plusDay = 93;
            plusDay = 3;
        } else if (giveVipDto.getType() == 3) {
            plusDay = 365;
            plusDay = 12;
        }
        //增加vipDetail
        giveVipUtil.sendVip(nowUser, giveVipDto.getVipId(),plusDay);