Commit 3be15341 by 徐高华

Merge branch 'master_xgh_加好友队列调整' into 'master'

Master xgh 加好友队列调整

See merge request !950
parents fc76f2ae f811781e
...@@ -382,16 +382,32 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -382,16 +382,32 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
DealQywxExternalUserPojo dealQywxExternalUserPojo = new DealQywxExternalUserPojo(); DealQywxExternalUserPojo dealQywxExternalUserPojo = new DealQywxExternalUserPojo();
dealQywxExternalUserPojo.setType(DealQywxExternalUserPojo.DealType.add.getType()); dealQywxExternalUserPojo.setType(DealQywxExternalUserPojo.DealType.add.getType());
dealQywxExternalUserPojo.setData(dto); dealQywxExternalUserPojo.setData(dto);
GicMQClient instance = GICMQClientUtil.getClientInstance(); GicMQClient instance = GICMQClientUtil.getClientInstance();
String mqName = "dealQywxExternalUserMq" ;
if(this.mqCheck(dto)) {
mqName = "dealQywxExternalUserMq2";
}
try { try {
instance.sendMessage("dealQywxExternalUserMq", JSONObject.toJSONString(dealQywxExternalUserPojo)); instance.sendMessage(mqName, JSONObject.toJSONString(dealQywxExternalUserPojo));
} catch (Exception e) { } catch (Exception e) {
log.info("异步处理异常:{}", e); log.info("异步处理异常:{}", e);
} }
return null; return null;
} }
private boolean mqCheck(QwFrientNoticeDTO dto) {
boolean flag = false ;
Object obj = RedisUtil.getCache("dealQywxExternalUserMq2") ;
if(null != obj) {
String str = obj.toString() ;
String corpid = dto.getCorpid() ;
if(StringUtils.isNotBlank(corpid) && str.contains(corpid)) {
flag = true ;
}
}
return flag ;
}
@Override @Override
public String addMemberUnionidRelatedNew(MemberUnionidRelatedDTO dto, String wxUserId) { public String addMemberUnionidRelatedNew(MemberUnionidRelatedDTO dto, String wxUserId) {
......
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