|
|
@@ -2514,7 +2514,7 @@ public class QwExternalContactServiceImpl extends ServiceImpl<QwExternalContactM
|
|
|
needUpdate = true;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ if (needUpdate) {
|
|
|
// 构建请求
|
|
|
QwLinkCreateParam linkCreateParam=new QwLinkCreateParam();
|
|
|
linkCreateParam.setLink_id(qwAcquisitionAssistant.getLinkId());
|
|
|
@@ -2526,16 +2526,14 @@ public class QwExternalContactServiceImpl extends ServiceImpl<QwExternalContactM
|
|
|
|
|
|
//调用企微API
|
|
|
QwResult qwResult = qwApiService.linkUpdate(linkCreateParam, corpId);
|
|
|
- if (qwResult.getErrcode() == 0) {
|
|
|
- if (needUpdate) {
|
|
|
+ if (qwResult.getErrcode() == 0) {
|
|
|
acquisitionAssistantMapper.updateQwAcquisitionAssistant(qwAcquisitionAssistant);
|
|
|
log.info("已从获客链接{}的可用列表中移除用户{}", linkId, userID);
|
|
|
+ }else {
|
|
|
+ logger.error("修改渠道活码 失败!"+linkCreateParam+":"+qwResult.getErrmsg());
|
|
|
}
|
|
|
- }else {
|
|
|
- logger.error("修改渠道活码 失败!"+linkCreateParam+":"+qwResult.getErrmsg());
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
|
|
} else {
|
|
|
log.info("用户{}今日已添加客户数:{}/{}", userID, currentCount, limitCount);
|