Commit d27972e9 by fudahua

导购刷新好友

parent 10e469c1
......@@ -563,7 +563,6 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
RedisUtil.lock(lockKey, 3L);
String memberUnionidRelatedId = (String) RedisUtil.getCache(key);
if (memberUnionidRelatedId != null) {
log.info("初次绑定");
MemberUnionidRelated memberUnionidRelated = memberUnionidRelatedMapper.selectByPrimaryKey(memberUnionidRelatedId);
dto.setUnionid(dto.getUnionid() == null ? memberUnionidRelated.getUnionid() : dto.getUnionid());
dto.setExternalUserid(dto.getExternalUserid() == null ? memberUnionidRelated.getExternalUserid() : dto.getExternalUserid());
......@@ -589,7 +588,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
String userId = "";
String avatar = "";
String relaName = "";
if(StringUtils.isNotBlank(unionIdJson)){
String externalUserId = "";
if(StringUtils.isNotBlank(unionIdJson)){
JSONObject jo = JSON.parseObject(unionIdJson);
String external_contact = jo.getString("external_contact");
if(StringUtils.isNotBlank(external_contact)){
......@@ -600,7 +600,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
relaName = "--";
}
avatar = jt.getString("avatar");
}
externalUserId = jt.getString("external_userid");
}
follow_user = jo.getString("follow_user");
if(StringUtils.isNotBlank(follow_user)){
......@@ -619,7 +620,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
pojo.setAvatar(avatar);
pojo.setName(relaName);
pojo.setUnionId(unionId);
pojo.setWxEnterpriseId(wxEnterpriseId);
pojo.setExternalUserId(externalUserId);
pojo.setWxEnterpriseId(wxEnterpriseId);
return pojo;
}
@Override
......
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