reconnect

back_recharge
wangyuan 2019-09-23 17:20:02 +08:00
parent 4872f629d2
commit bdc84eb2fc
4 changed files with 5 additions and 2 deletions

View File

@ -403,6 +403,7 @@ public class Scene implements Runnable{
}
}
SceneManager.clearScene(roomId);
RedisUtil.getInstence().del( "MATCH_ROOM_KEY:" + roomId);
}

View File

@ -158,6 +158,7 @@ public class RedisKey {
//掉线缓存indication
public static final String INDICATION_OFFLINE = "INDICATION_OFFLINE";
public static final String INDICATION_OFFLINE_INDEX = "INDICATION_OFFLINE_INDEX";
public static final String INDICATION_OFFLINE_BLOODY = "INDICATION_OFFLINE_BLOODY";
public static final String RESPONSE_OFFLINE = "RESPONSE_OFFLINE";

View File

@ -228,7 +228,8 @@ public class FriendLogic {
continue;
}
if (friends1.size() >= maxFriends){
continue;
MessageUtil.sendErrorResponse(iSession,Global.SHOW_TIPS_ERROR,msgId,"对方好友已达上限");
return;
}
if (applyFriends.size()>= maxApplyFriends){
applyFriends.remove(0);

View File

@ -129,7 +129,7 @@ public class StoreLogic {
while(it.hasNext()){
StoreInfo storeInfo = it.next().getValue();
SStoreTypeConfig sStoreTypeConfig = SStoreTypeConfig.getsStoreTypeConfigMap().get(storeInfo.getId());
if (sStoreTypeConfig.getStoreOpenRule() ==2){
if (sStoreTypeConfig.getStoreOpenRule() ==2 || sStoreTypeConfig.getStoreOpenRule() ==5){
if (nowTime > storeInfo.getEndTime()){
removeStoreIds.add(storeInfo.getId());
}