| | |
| | | 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") |