feat(REQ-3300) - 优化处理添加群成员的事件处理逻辑
This commit is contained in:
parent
d053c01abe
commit
1c2939e59f
@ -18,6 +18,7 @@ import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.google.common.collect.Lists;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.groovy.util.Maps;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -87,7 +88,7 @@ public class ImGroupAddMembersEventHandler implements EventHandler, Initializing
|
||||
notice.setBizCode(String.valueOf(visaId));
|
||||
notice.setBizExtParams(new JSONObject(Maps.of(
|
||||
"initiatorName", ownerProfile.getRealName(),
|
||||
"visaType", VisaTypeEnum.valueOfCode(visaType).getDesc(),
|
||||
"visaType", StringUtils.isNotBlank(visaType) ? VisaTypeEnum.valueOfCode(visaType).getDesc() : "",
|
||||
"topic", group.getName())));
|
||||
noticeApi.send(notice);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user