Commit 2d29e87c by 徐高华

Merge branch 'feature/xgh/zq12' into 'master'

入群通知

See merge request !2401
parents 3222c2c9 148a98fa
......@@ -1014,17 +1014,16 @@ public class GroupChatServiceImpl implements GroupChatService {
public void notice(String enterpriseId,String memberId , int addOrQuit) {
logger.info("会员群发退群通知={}",memberId,addOrQuit);
logger.info("会员群入群通知={},{}",memberId,addOrQuit,addOrQuit);
if(StringUtils.isBlank(enterpriseId) || StringUtils.isBlank(memberId)) {
return;
}
JSONObject json = new JSONObject() ;
GroupChatUserNoticeDTO dto = new GroupChatUserNoticeDTO() ;
dto.setEnterpriseId(enterpriseId);
dto.setMemberId(memberId);
dto.setAddOrQuit(addOrQuit);
try {
mqClient.sendMessage("qywxAddGroupChatEvent", json.toJSONString());
mqClient.sendMessage("qywxAddGroupChatEvent",JSONObject.toJSONString(dto));
} catch (Exception e) {
throw new RuntimeException(e);
}
......
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