新增定时器redis存储钱包余额 迭代
parent
a1e102a9a6
commit
b962728367
|
@ -135,7 +135,12 @@ public class InvitationServiceImpl implements InvitationService {
|
|||
if (i < 0){
|
||||
throw new RuntimeException("订单未生效!");
|
||||
}
|
||||
//清空redis中的钱包余额数据
|
||||
redisService.deleteObject(userId + SysUserPurse.PURSE_NAME);
|
||||
// 清空redis中的钱包余额数据
|
||||
// redisService.deleteObject(userId + SysUserPurse.PURSE_NAME);
|
||||
//再次查询钱包修改后的信息
|
||||
PurseResponse NewpurseResponse = purseServiceTwo.purseObject(Long.valueOf(userId));
|
||||
Integer balanceFee = NewpurseResponse.getBalanceFee();
|
||||
//将查到新用户的余额存储到Redis中
|
||||
redisService.setCacheObject(userId + SysUserPurse.PURSE_NAME,balanceFee);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue