Commit 4e3c8fbd by 墨竹

feat:增加空指针判断

parent f1477c37
......@@ -1839,6 +1839,12 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
String[] s = sceneStr.split("_");
String relationKey = s[1];
TabHaobanExternalClerkRelated externalClerkRelated = externalClerkRelatedMapper.getByRelationKey(relationKey);
if (externalClerkRelated == null) {
log.error("关注公共号-会员回调好办关联好友,未查询到,relationKey:{}",relationKey);
serviceResponse.setCode(0);
serviceResponse.setMessage("未查询到好友关系");
return serviceResponse;
}
externalClerkRelatedApiService.bindMemberIdExternalById(externalClerkRelated.getExternalClerkRelatedId(), enterpriseId, memberId, unionid);
return serviceResponse;
}
......
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