同步群的时候,群名为空,添加默认名称;

1 parent a61501a1
...@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; ...@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import com.linkwechat.common.constant.WeConstans; import com.linkwechat.common.constant.WeConstans;
import com.linkwechat.common.utils.StringUtils;
import com.linkwechat.wecom.client.WeCustomerClient; import com.linkwechat.wecom.client.WeCustomerClient;
import com.linkwechat.wecom.client.WeCustomerGroupClient; import com.linkwechat.wecom.client.WeCustomerGroupClient;
import com.linkwechat.wecom.client.WeUserClient; import com.linkwechat.wecom.client.WeUserClient;
...@@ -138,7 +139,7 @@ public class WeGroupServiceImpl extends ServiceImpl<WeGroupMapper, WeGroup> impl ...@@ -138,7 +139,7 @@ public class WeGroupServiceImpl extends ServiceImpl<WeGroupMapper, WeGroup> impl
weGroups.add( weGroups.add(
WeGroup.builder() WeGroup.builder()
.chatId(kk.getChatId()) .chatId(kk.getChatId())
.groupName(kk.getName()) .groupName(StringUtils.isNotEmpty(kk.getName())? kk.getName() : "@微信群")
.notice(kk.getNotice()) .notice(kk.getNotice())
.owner(kk.getOwner()) .owner(kk.getOwner())
.addTime(new Date(kk.getCreateTime() * 1000L)) .addTime(new Date(kk.getCreateTime() * 1000L))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!