Commit 5a771ae5 by 杨涛

加日志

parent 344f7d3b
...@@ -362,6 +362,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz { ...@@ -362,6 +362,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
@Override @Override
@ParamLog("校验是否为该群的打卡关键字") @ParamLog("校验是否为该群的打卡关键字")
public Boolean checkWeixinClockKeyword(String content, String weixinGroupId) throws BizException { public Boolean checkWeixinClockKeyword(String content, String weixinGroupId) throws BizException {
LOGGER.info("content----->"+content+"weixinGroupId----->"+weixinGroupId);
//简单过滤非关键词的词 //简单过滤非关键词的词
if (StringUtil.isEmpty(content) || content.length() > 10) { if (StringUtil.isEmpty(content) || content.length() > 10) {
return null; return null;
...@@ -374,7 +375,8 @@ public class WeixinClockBizImpl implements WeixinClockBiz { ...@@ -374,7 +375,8 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
Map<String,Object> paramMap = new HashMap<>(); Map<String,Object> paramMap = new HashMap<>();
paramMap.put("bookGroupClassifyId",classifyQrcodeInfo.getClassifyId()); paramMap.put("bookGroupClassifyId",classifyQrcodeInfo.getClassifyId());
String aimKeyword = weixinClockGroupClassifyDao.getKeywordByGroupClassify(paramMap); String aimKeyword = weixinClockGroupClassifyDao.getKeywordByGroupClassify(paramMap);
return content.equals(aimKeyword); LOGGER.info("aimKeyword=" + aimKeyword + "content=" + content);
return content.equalsIgnoreCase(aimKeyword);
} }
private String getClockRankUrl(String wxGroupId, String wxUserId){ private String getClockRankUrl(String wxGroupId, String wxUserId){
...@@ -424,6 +426,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz { ...@@ -424,6 +426,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
@ParamLog("为微信群打卡关键词,发送关键词信息") @ParamLog("为微信群打卡关键词,发送关键词信息")
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public Boolean sendKeywordMessage(String content, String userWxId,String wechatGroupId, String wxId, String ip) { public Boolean sendKeywordMessage(String content, String userWxId,String wechatGroupId, String wxId, String ip) {
LOGGER.info("接受到的关键词信息" + content);
GroupClassifyQrcodeDTO classifyQrcodeInfo = bookGroupClassifyBiz.getClassifyQrcodeInfo(wechatGroupId); GroupClassifyQrcodeDTO classifyQrcodeInfo = bookGroupClassifyBiz.getClassifyQrcodeInfo(wechatGroupId);
if(null == classifyQrcodeInfo){ if(null == classifyQrcodeInfo){
return null; return null;
......
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