Commit 6e4684d2 by 裴大威

fix 1010054

parent f371be41
...@@ -395,6 +395,14 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz { ...@@ -395,6 +395,14 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
if (groupNameAndMaxSeqDTO != null) { if (groupNameAndMaxSeqDTO != null) {
Integer maxSeq = groupNameAndMaxSeqDTO.getMaxSeq() + 1; Integer maxSeq = groupNameAndMaxSeqDTO.getMaxSeq() + 1;
String groupName = groupNameAndMaxSeqDTO.getGroupQrcodeName() + groupNameAndMaxSeqDTO.getClassify() + maxSeq + "群"; String groupName = groupNameAndMaxSeqDTO.getGroupQrcodeName() + groupNameAndMaxSeqDTO.getClassify() + maxSeq + "群";
// 群长度超过16部分会被截取,导致群名称重复
if (groupName.length() > 16) {
final String s = maxSeq + "群";
groupName = groupNameAndMaxSeqDTO.getClassify() + s;
if (groupName.length() > 16) {
groupName = groupNameAndMaxSeqDTO.getClassify().substring(0, 16 - s.length()) + s;
}
}
GroupQrcode groupQrcode = new GroupQrcode(); GroupQrcode groupQrcode = new GroupQrcode();
groupQrcode.setWeixinGroupId(oneQrcode.getWeixinGroupId()); groupQrcode.setWeixinGroupId(oneQrcode.getWeixinGroupId());
groupQrcode.setQrcodeUrl(oneQrcode.getQrcodeUrl()); groupQrcode.setQrcodeUrl(oneQrcode.getQrcodeUrl());
......
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