| | |
| | | public R<Void> test() { |
| | | LoginUser loginUserApplet = tokenService.getLoginUserApplet(); |
| | | AppUser appUser = appUserService.getById(loginUserApplet.getUserid()); |
| | | if (appUser.getShopPoint() < 500){ |
| | | return R.fail("消费积分不足500"); |
| | | if (appUser.getShopPoint() >= 500){ |
| | | return R.ok(); |
| | | } |
| | | if (appUser.getSharePoint() < 500){ |
| | | return R.fail("返佣积分不足500"); |
| | | if (appUser.getSharePoint() >= 400){ |
| | | return R.ok(); |
| | | } |
| | | // 当前用户的直推用户 |
| | | // List<AppUser> bottomUsers = appUserService.list(new LambdaQueryWrapper<AppUser>() |
| | | // .eq(AppUser::getInviteUserId, loginUserApplet.getUserid()) |
| | | // .eq(AppUser::getVipId)); |
| | | |
| | | return null; |
| | | return R.fail(); |
| | | } |
| | | |
| | | |