Commit 96047b5d by lili

修改bug

parent 9cd3547f
......@@ -187,12 +187,12 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
//将二维码修改为已满群状态
changeToOverNumber(groupQrcodeDTO.getWeixinQrcodeId(), groupQrcodeDTO.getId());
}
List<String> nickNames = JedisClusterUtils.getJsonList("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId, String.class);
if(ListUtils.isEmpty(nickNames) && !StringUtil.isEmpty(nickName)){
nickNames = new ArrayList<>();
nickNames.add(nickName);
JedisClusterUtils.setJsonList("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId, nickNames, 600);
}
// List<String> nickNames = JedisClusterUtils.getJsonList("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId, String.class);
// if(ListUtils.isEmpty(nickNames) && !StringUtil.isEmpty(nickName)){
// nickNames = new ArrayList<>();
// nickNames.add(nickName);
// JedisClusterUtils.setJsonList("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId, nickNames, 600);
// }
String value = JedisClusterUtils.getJson("BOOK:WEIXINGROUP:GUIDE" + weixinGroupId, String.class);
if (StringUtil.isEmpty(value)) {
JedisClusterUtils.setJson("BOOK:WEIXINGROUP:GUIDE" + weixinGroupId, weixinGroupId, 5);
......
......@@ -61,7 +61,7 @@ public class GroupQrcodeFacadeImpl implements GroupQrcodeFacade {
@GetMapping("addUser")
ResponseDto<?> addUser(@RequestParam("weixinGroupId") String weixinGroupId, @RequestParam("userNumber") Integer userNumber)
throws BizException{
groupQrcodeBiz.addOneUser(weixinGroupId, userNumber);
groupQrcodeBiz.addOneUser(weixinGroupId, userNumber, null);
return new ResponseDto<>();
}
}
......@@ -146,7 +146,7 @@ public class SendWeixinRequestTools {
@ParamLog("修改微信群名称")
public static void sendGuideMessage(List<ReplyMessageVO> replyMessages, String robotId, String weixinGroupId) {
JedisClusterUtils.del("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId);
//JedisClusterUtils.del("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId);
if (ListUtils.isEmpty(replyMessages)) {
return;
}
......@@ -284,17 +284,17 @@ public class SendWeixinRequestTools {
public static void sendDefaultMessage(String groupName, String robotId, String weixinGroupId) {
String content = "";
List<String> nickNames = JedisClusterUtils.getJsonList("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId, String.class);
if(!ListUtils.isEmpty(nickNames)){
JedisClusterUtils.del("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId);
}
for (String nickName : nickNames) {
content = content + "@" + nickName + " ";
}
// List<String> nickNames = JedisClusterUtils.getJsonList("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId, String.class);
// if(!ListUtils.isEmpty(nickNames)){
// JedisClusterUtils.del("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId);
// }
// for (String nickName : nickNames) {
// content = content + "@" + nickName + " ";
// }
if (StringUtil.isEmpty(groupName)) {
content = content + "欢迎加入本书!凭以下关键词领取任务或资源:";
content = "欢迎加入本书!凭以下关键词领取任务或资源:";
} else {
content = content + "欢迎加入本书!" + groupName + "凭以下关键词领取任务或资源:";
content = "欢迎加入本书!" + groupName + "凭以下关键词领取任务或资源:";
}
SendTextMessageVO sendTextMessageVO = new SendTextMessageVO();
sendTextMessageVO.setContent(content);
......
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