Commit c8207583 by 徐高华

过滤表情

parent 682b49dc
......@@ -74,6 +74,7 @@ import com.gic.wechat.api.dto.qywx.chat.GroupChatListItemDTO;
import com.gic.wechat.api.dto.qywx.chat.GroupChatUserIdDTO;
import com.gic.wechat.api.service.qywx.QywxChatApiService;
import com.github.pagehelper.PageHelper;
import com.vdurmont.emoji.EmojiParser;
@Service("groupChatService")
public class GroupChatServiceImpl implements GroupChatService {
......@@ -424,10 +425,12 @@ public class GroupChatServiceImpl implements GroupChatService {
return;
}
GroupChatDetailDTO detail = detailResp.getResult();
String chatName = EmojiParser.removeAllEmojis(detail.getName()) ;
String notice = EmojiParser.removeAllEmojis(detail.getNotice()) ;
chat.setGroupChatId(groupChatId);
chat.setChatAddTime(new Date(detail.getCreate_time() * 1000));
chat.setChatNotice(detail.getNotice());
chat.setName(detail.getName());
chat.setChatNotice(notice);
chat.setName(chatName);
// 处理群主
String owner = detail.getOwner();
TabHaobanStaff staff = this.staffMapper.selectByUserIdAndEnterpriseId(owner, wxEnterpriseId);
......
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