| | |
| | | RechargeCentVo vo = new RechargeCentVo(); |
| | | Double money = (Double) stringObjectMap.get("money"); |
| | | vo.setAmount(BigDecimal.valueOf(money) ); |
| | | if (tAppUser.getIsVip() == 1){ |
| | | if (tAppUser.getIsVip() == 1&&tAppUser.getVipEndTime().after(new Date())){ |
| | | vo.setWpGold((Integer) stringObjectMap.get("MemberCoins")); |
| | | }else { |
| | | vo.setWpGold((Integer) stringObjectMap.get("usersCoins")); |
| | |
| | | UserIntegralChanges userIntegralChanges = new UserIntegralChanges(); |
| | | userIntegralChanges.setAppUserId(appUserId); |
| | | userIntegralChanges.setOldIntegral(appUser.getIntegral()); |
| | | userIntegralChanges.setType(5); |
| | | userIntegralChanges.setType(2); |
| | | appUser.setIntegral(null == appUser.getIntegral() ? points : appUser.getIntegral() - points); |
| | | userIntegralChanges.setNewIntegral(appUser.getIntegral()); |
| | | userIntegralChanges.setInsertTime(new Date()); |