Commit 06c0be13 by 徐高华

刷新好友标签

parent d495138c
...@@ -90,7 +90,7 @@ public interface QywxTagApiService { ...@@ -90,7 +90,7 @@ public interface QywxTagApiService {
* @param externalUserId * @param externalUserId
* @return * @return
*/ */
public ServiceResponse syncQywxTagToGicByExternalUserId(String wxEnterpriseId, String externalUserId, String wxUserId); public ServiceResponse syncQywxTagToGicByExternalUserId(String wxEnterpriseId, String externalUserId, String wxUserId , String externalUserInfo);
/** /**
* 更改状态 * 更改状态
......
...@@ -606,7 +606,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService { ...@@ -606,7 +606,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
@Override @Override
public ServiceResponse syncQywxTagToGicByExternalUserId(String wxEnterpriseId, String externalUserId, String wxUserId) { public ServiceResponse syncQywxTagToGicByExternalUserId(String wxEnterpriseId, String externalUserId, String wxUserId , String externalUserInfo) {
//刷新标签的时候不允许同步 //刷新标签的时候不允许同步
ServiceResponse resp = new ServiceResponse(); ServiceResponse resp = new ServiceResponse();
//所有以及关联同步的标签 //所有以及关联同步的标签
...@@ -622,10 +622,14 @@ public class QywxTagApiServiceImpl implements QywxTagApiService { ...@@ -622,10 +622,14 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(wxEnterpriseId) ; WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(wxEnterpriseId) ;
//查询外部联系人 //查询外部联系人
String externalUseridInfo = null ; String externalUseridInfo = null ;
if(qwDTO.isSelf()) { if(null != externalUserInfo) {
externalUseridInfo = this.qywxUserApiService.getCorpSelfExternalUseridInfo(qwDTO.getDkCorpid(), qwDTO.getSelfSecret(), externalUserId,qwDTO.getUrlHost()) ; externalUseridInfo = externalUserInfo ;
}else { }else {
externalUseridInfo = this.qywxUserApiService.getExternalUseridInfo(qwDTO.getThirdCorpid(), config.getWxSuiteid(), externalUserId); if (qwDTO.isSelf()) {
externalUseridInfo = this.qywxUserApiService.getCorpSelfExternalUseridInfo(qwDTO.getDkCorpid(), qwDTO.getSelfSecret(), externalUserId, qwDTO.getUrlHost());
} else {
externalUseridInfo = this.qywxUserApiService.getExternalUseridInfo(qwDTO.getThirdCorpid(), config.getWxSuiteid(), externalUserId);
}
} }
if (StringUtils.isBlank(externalUseridInfo)) { if (StringUtils.isBlank(externalUseridInfo)) {
logger.info("好友不存在"); logger.info("好友不存在");
......
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