Commit cc4c1952 by 徐高华

log

parent 41d60c3a
......@@ -209,6 +209,7 @@ public class WelcomeSendServiceImpl implements WelcomeSendService {
qywxWelcomeMsgDTO.setWelcomeCode(welcomeCode);
String result = null ;
if(qwDTO.getWxSecurityType()==5) {
log.info("自建={}",corpid,qwDTO.getSelfSecret());
result = this.qywxUserApiService.sendSelfWelcomeMsgByExternal(corpid, qwDTO.getSelfSecret(),
qywxWelcomeMsgDTO);
}else {
......@@ -368,9 +369,13 @@ public class WelcomeSendServiceImpl implements WelcomeSendService {
}
private String getExternalUserName(WxEnterpriseQwDTO qwDTO, String externalUserId) {
log.info("查询好友详情,externalUserId={}", externalUserId);
String userInfo = qywxUserApiService.getExternalUseridInfo(qwDTO.getThirdCorpid(), config.getWxSuiteid(),
externalUserId);
log.info("查询好友详情,externalUserId={},{}", externalUserId,qwDTO.getWxSecurityType());
String userInfo = null ;
if(qwDTO.getWxSecurityType()==5) {
userInfo =qywxUserApiService.getCorpSelfExternalUseridInfo(qwDTO.getDkCorpid(), qwDTO.getSelfSecret(), externalUserId);
}else {
userInfo =qywxUserApiService.getExternalUseridInfo(qwDTO.getThirdCorpid(), config.getWxSuiteid(), externalUserId);
}
String name = "";
if (StringUtils.isBlank(userInfo)) {
log.info("好友不存在");
......
......@@ -102,6 +102,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
if(qw.getWxSecurityType()==5) {
qw.setDkCorpid(wxEnterprise.getWxCorpid());
qw.setThirdCorpid(wxEnterprise.getWxCorpid());
qw.setMemberCorpid(wxEnterprise.getWxCorpid());
TabSecretSetting secret = secretSettingMapper.getSecretSetting(wxEnterpriseId, SecretTypeEnum.CONTACT_CUSTOMER.getVal(), null);
qw.setSelfSecret(secret.getSecretVal());
}
......
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