|
|
@ -176,6 +176,10 @@ public class ClientService implements IClientService { |
|
|
|
userJoinGroup.setUserJoinId(userJoin.getId()); |
|
|
|
userJoinGroup.setGameGroupId(join.getGroupId()); |
|
|
|
userJoinGroupDao.insertSelective(userJoinGroup); |
|
|
|
// 缓存小组人数
|
|
|
|
String key = join.getGroupId() + GameConstant.GAME_GROUP_NUM; |
|
|
|
Object o = redisUtil.get(key); |
|
|
|
redisUtil.set(key, o == null ? 1 : (int)o + 1, GameConstant.REDIS_TIME_TWENTY); |
|
|
|
} |
|
|
|
// 3.更新redis(sort set key:分数 value:头像,姓名)
|
|
|
|
if (prepare || processing) { |
|
|
|