Commit f5896acb by tc

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

parent 5ba9b93d
......@@ -165,13 +165,9 @@ public class ChannelConsr {
LOGGER.info("根据sceneId获取bookId,<START>.[sceneId]=" + sceneId);
try {
bookId = ResponseHandleUtil.parseResponse(qrcodeSceneService.getBookId4SceneId(sceneId), Long.class);
if (null == bookId) {
throw new ChannelBizException(ChannelBizException.PARAM_IS_NULL, "bookId为空");
}
return bookId;
} catch (Exception e) {
LOGGER.error("根据sceneId获取bookId" + e.getMessage(), e);
throw new ChannelBizException(ChannelBizException.PARAM_IS_NULL, "bookId为空");
return null;
}
}
......
......@@ -116,28 +116,27 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
if (!groupQrcode.getRiddleOpen()) {
ReadingActivityDTO readingActivityDTO = readingActivityBiz.getReadingActivityByWxGroupId(wxGroupId);
if (null == readingActivityDTO){
logger.info("微信群=" + wxGroupId + "共读活动="+readingActivityDTO.getTheme()+"没有开启猜谜语游戏权限");
logger.info("微信群=" + wxGroupId + "共读活动没有开启猜谜语游戏权限");
return;
}else if (null != readingActivityDTO && !readingActivityDTO.getRiddleOpen()){
}else if (!readingActivityDTO.getRiddleOpen()){
logger.info("微信群=" + wxGroupId + "共读活动="+readingActivityDTO.getTheme()+"没有开启猜谜语游戏权限");
return;
}
}
}else
{
throw new BizException(BizException.PARAM_IS_NULL.getCode(),"根据wxGroupId找不到群");
}else {
return;
}
//历史记录
RiddleRecord riddleRecord = riddleRecordDao.getLastRecordByWxGroupId(wxGroupId, null);
//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关键词“猜谜语” ,游戏开启,计时
if (textContent.equals("猜谜语")) {
startGame(riddleRecord, wxGroupId, wxId, ip);
}
}
//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();
Long riddleId = riddleRecord.getRiddleId();
Riddle riddle = riddleDao.getById(riddleId);
......
......@@ -2008,7 +2008,6 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
}
}
if (null == rightsSettingDto) {
log.error("该书没有匹配的分类权益,bookId=" + bookId);
return new 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