|
|
@ -528,7 +528,8 @@ public class ScreenService implements IScreenService{ |
|
|
|
long current = System.currentTimeMillis(); |
|
|
|
long moreTime = start.getLocalTime() - current; |
|
|
|
//查询游戏
|
|
|
|
GameRecord gameRecord = gameRecordDao.selectByPrimaryKey(start.getMemberRecord()); |
|
|
|
// GameRecord gameRecord = gameRecordDao.selectByPrimaryKey(start.getMemberRecord());
|
|
|
|
GameRecord gameRecord = getGameRecord(start.getMemberRecord()); |
|
|
|
log.info("游戏信息:{}", gameRecord); |
|
|
|
if (gameRecord == null) { |
|
|
|
throw new BaseException(CodeEnum.PARAM_ERROR); |
|
|
@ -537,7 +538,7 @@ public class ScreenService implements IScreenService{ |
|
|
|
switch (gameRecord.getGameStatus().byteValue()) { |
|
|
|
case GameConstant.GAME_PREPARATION: throw new BaseException(CodeEnum.GAME_PREPARATION); |
|
|
|
case GameConstant.GAME_PROCESSING: throw new BaseException(CodeEnum.GAME_PROCESSING); |
|
|
|
case GameConstant.GAME_COMPLETED: throw new BaseException(CodeEnum.GAME_COMPLETED); |
|
|
|
// case GameConstant.GAME_COMPLETED: throw new BaseException(CodeEnum.GAME_COMPLETED);
|
|
|
|
} |
|
|
|
|
|
|
|
//更新状态和时间
|
|
|
|