Commit db5a8a6a by 墨竹

Merge branch 'feature-2022_03_02' into developer

parents 6a282480 ea73ea12
......@@ -1351,10 +1351,14 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
String corpid = enterprise.getCorpid();
String userId = "";
TabHaobanStaff staff = staffService.selectByUserIdAndEnterpriseId(wxUserId, wxEnterpriseId);
if (staff != null && StringUtils.isNotBlank(staff.getWxOpenUseId())) {
if (staff == null) {
log.error("员工为空,wxUserId:{}", wxUserId);
return null;
}
if (corpid.length() > 20) {
userId = staff.getWxOpenUseId();
} else {
userId = wxUserId;
userId = staff.getWxUserId();
}
log.info("【获取第三方应用好友】wxEnterpriseId={},userId={}", wxEnterpriseId, userId);
String wxRes = qywxUserApiService.listExternalUserid(corpid, config.getWxSuiteid(), userId);
......
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