|
@ -21,6 +21,7 @@ import com.ccsens.util.JsonResponse; |
|
|
import com.ccsens.util.RedisUtil; |
|
|
import com.ccsens.util.RedisUtil; |
|
|
import com.ccsens.util.exception.BaseException; |
|
|
import com.ccsens.util.exception.BaseException; |
|
|
import com.ccsens.util.mq.DelayProducer; |
|
|
import com.ccsens.util.mq.DelayProducer; |
|
|
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException; |
|
|
import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
@ -134,7 +135,11 @@ public class ClientService implements IClientService { |
|
|
//延时发送开始
|
|
|
//延时发送开始
|
|
|
long expiration = gameRecord.getStartTime() - System.currentTimeMillis(); |
|
|
long expiration = gameRecord.getStartTime() - System.currentTimeMillis(); |
|
|
sendMsg.sendMsg(executor, expiration, ()->{ |
|
|
sendMsg.sendMsg(executor, expiration, ()->{ |
|
|
sendMsg.sendStatus(gameRecord, joins, GameConstant.GAME_PROCESSING); |
|
|
try { |
|
|
|
|
|
sendMsg.sendStatus(gameRecord, joins, GameConstant.GAME_PROCESSING); |
|
|
|
|
|
} catch (JsonProcessingException e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -142,7 +147,11 @@ public class ClientService implements IClientService { |
|
|
//延时发送结束
|
|
|
//延时发送结束
|
|
|
long expiration = gameRecord.getStartTime() - System.currentTimeMillis(); |
|
|
long expiration = gameRecord.getStartTime() - System.currentTimeMillis(); |
|
|
sendMsg.sendMsg(executor, expiration, ()->{ |
|
|
sendMsg.sendMsg(executor, expiration, ()->{ |
|
|
sendMsg.sendStatus(gameRecord, joins, GameConstant.GAME_PROCESSING); |
|
|
try { |
|
|
|
|
|
sendMsg.sendStatus(gameRecord, joins, GameConstant.GAME_PROCESSING); |
|
|
|
|
|
} catch (JsonProcessingException e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|