Commit 911d6074 by qwmqiuwenmin

fix

parent adf3c986
...@@ -548,9 +548,9 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -548,9 +548,9 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
JSONObject jo = JSON.parseObject(uJ); JSONObject jo = JSON.parseObject(uJ);
String external_contact = jo.getString("external_contact"); String external_contact = jo.getString("external_contact");
String uj_follow_user = jo.getString("follow_user"); String uj_follow_user = jo.getString("follow_user");
JSONObject jt = null;
if(StringUtils.isNotBlank(external_contact)){ if(StringUtils.isNotBlank(external_contact)){
JSONObject jt = JSON.parseObject(external_contact); jt = JSON.parseObject(external_contact);
externalUserId = jt.getString("external_userid");
wxName = EmojiFilterUtil.filterEmojiLast(jt.getString("name"), true); wxName = EmojiFilterUtil.filterEmojiLast(jt.getString("name"), true);
} }
if(StringUtils.isNotBlank(uj_follow_user)){ if(StringUtils.isNotBlank(uj_follow_user)){
...@@ -562,11 +562,17 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -562,11 +562,17 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
uj_userId = follow.getString("userid"); uj_userId = follow.getString("userid");
log.info("【新增外部联系人】createTime={},name={},followCreateTime={},wxName={}",createTime,name,follow.getString("createtime"),wxName); log.info("【新增外部联系人】createTime={},name={},followCreateTime={},wxName={}",createTime,name,follow.getString("createtime"),wxName);
if(uj_userId.equals(userId1) && createTime.equals(follow.getString("createtime")) && name.equals(wxName)){ if(uj_userId.equals(userId1) && createTime.equals(follow.getString("createtime")) && name.equals(wxName)){
break; if(jt != null){
externalUserId = jt.getString("external_userid");
break;
}
} }
} }
} }
} }
if(StringUtils.isNotBlank(externalUserId)){
break;
}
} }
} }
return externalUserId; return externalUserId;
......
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