bug fix
This commit is contained in:
@@ -214,9 +214,10 @@ public class InviteServiceImpl extends ServiceImpl<InviteDao, Invite> implements
|
||||
user.setUserId(userId);
|
||||
user.setInviterCode(userEntity.getInvitationCode());
|
||||
user.setInviterUserId(userEntity.getUserId());
|
||||
user.setInviteCount((userEntity.getInviteCount() == null ? 0 : userEntity.getInviteCount()) + 1);
|
||||
userService.updateById(user);
|
||||
|
||||
userEntity.setInviteCount((user.getInviteCount() == null ? 0 : user.getInviteCount()) + 1);
|
||||
|
||||
// 金币
|
||||
int money = Integer.parseInt(commonInfoService.findOne(911).getValue());
|
||||
if (money > 0 && userEntity.getUserId() != 1) {
|
||||
|
||||
Reference in New Issue
Block a user