Commit 96047b5d by lili

修改bug

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