diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileUseQryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileUseQryExe.java index b00894a9..242379c1 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileUseQryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileUseQryExe.java @@ -128,9 +128,9 @@ public class UserProfileUseQryExe { UserInviteUser userInviteUser = allInvites.get(0); String key = String.format(INVITE_RECHARGE_TOTAL_KEY, userInviteUser.getUserId(), userInviteUser.getInviteUserId()); - int quantity = redisService.getStringToInteger(key); + String quantity = redisService.getString(key); - return BigDecimal.valueOf(quantity) + return BigDecimal.valueOf(StringUtils.isEmpty(quantity) ? 0 : Long.parseLong(quantity)) .divide(BigDecimal.valueOf(10000), 2, RoundingMode.HALF_UP); }