Commit f5896acb by tc

bug:[none] 日志太多的问题

parent 5ba9b93d
...@@ -165,13 +165,9 @@ public class ChannelConsr { ...@@ -165,13 +165,9 @@ public class ChannelConsr {
LOGGER.info("根据sceneId获取bookId,<START>.[sceneId]=" + sceneId); LOGGER.info("根据sceneId获取bookId,<START>.[sceneId]=" + sceneId);
try { try {
bookId = ResponseHandleUtil.parseResponse(qrcodeSceneService.getBookId4SceneId(sceneId), Long.class); bookId = ResponseHandleUtil.parseResponse(qrcodeSceneService.getBookId4SceneId(sceneId), Long.class);
if (null == bookId) {
throw new ChannelBizException(ChannelBizException.PARAM_IS_NULL, "bookId为空");
}
return bookId; return bookId;
} catch (Exception e) { } catch (Exception e) {
LOGGER.error("根据sceneId获取bookId" + e.getMessage(), e); return null;
throw new ChannelBizException(ChannelBizException.PARAM_IS_NULL, "bookId为空");
} }
} }
......
...@@ -116,28 +116,27 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz { ...@@ -116,28 +116,27 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
if (!groupQrcode.getRiddleOpen()) { if (!groupQrcode.getRiddleOpen()) {
ReadingActivityDTO readingActivityDTO = readingActivityBiz.getReadingActivityByWxGroupId(wxGroupId); ReadingActivityDTO readingActivityDTO = readingActivityBiz.getReadingActivityByWxGroupId(wxGroupId);
if (null == readingActivityDTO){ if (null == readingActivityDTO){
logger.info("微信群=" + wxGroupId + "共读活动="+readingActivityDTO.getTheme()+"没有开启猜谜语游戏权限"); logger.info("微信群=" + wxGroupId + "共读活动没有开启猜谜语游戏权限");
return; return;
}else if (null != readingActivityDTO && !readingActivityDTO.getRiddleOpen()){ }else if (!readingActivityDTO.getRiddleOpen()){
logger.info("微信群=" + wxGroupId + "共读活动="+readingActivityDTO.getTheme()+"没有开启猜谜语游戏权限"); logger.info("微信群=" + wxGroupId + "共读活动="+readingActivityDTO.getTheme()+"没有开启猜谜语游戏权限");
return; return;
} }
} }
}else }else {
{ return;
throw new BizException(BizException.PARAM_IS_NULL.getCode(),"根据wxGroupId找不到群");
} }
//历史记录 //历史记录
RiddleRecord riddleRecord = riddleRecordDao.getLastRecordByWxGroupId(wxGroupId, null); RiddleRecord riddleRecord = riddleRecordDao.getLastRecordByWxGroupId(wxGroupId, null);
//1该群猜谜语没有记录或已结束 //1该群猜谜语没有记录或已结束
if (null == riddleRecord || (null != riddleRecord && ArrayUtils.contains(RiddleRecordStatusEnum.GAME_END, riddleRecord.getStatus()))) { if (null == riddleRecord || (ArrayUtils.contains(RiddleRecordStatusEnum.GAME_END, riddleRecord.getStatus()))) {
//1.1关键词“猜谜语” ,游戏开启,计时 //1.1关键词“猜谜语” ,游戏开启,计时
if (textContent.equals("猜谜语")) { if (textContent.equals("猜谜语")) {
startGame(riddleRecord, wxGroupId, wxId, ip); startGame(riddleRecord, wxGroupId, wxId, ip);
} }
} }
//2猜谜语进行中 //2猜谜语进行中
else if (null != riddleRecord && !RiddleRecordStatusEnum.end.getCode().equals(riddleRecord.getStatus())) { else if (!RiddleRecordStatusEnum.end.getCode().equals(riddleRecord.getStatus())) {
Integer finishCount = riddleRecord.getFinishCount() == null ? 0 : riddleRecord.getFinishCount(); Integer finishCount = riddleRecord.getFinishCount() == null ? 0 : riddleRecord.getFinishCount();
Long riddleId = riddleRecord.getRiddleId(); Long riddleId = riddleRecord.getRiddleId();
Riddle riddle = riddleDao.getById(riddleId); Riddle riddle = riddleDao.getById(riddleId);
......
...@@ -2008,7 +2008,6 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -2008,7 +2008,6 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
} }
} }
if (null == rightsSettingDto) { if (null == rightsSettingDto) {
log.error("该书没有匹配的分类权益,bookId=" + bookId);
return new RightsSettingDto(); return new RightsSettingDto();
} }
return rightsSettingDto; return rightsSettingDto;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment