1
This commit is contained in:
@@ -855,11 +855,10 @@ public class LogisticsServiceImpl implements ILogisticsService {
|
||||
|| (distributionMark != null && distributionMark.contains("闲鱼"));
|
||||
if (useGoofishWecom) {
|
||||
String touserGoofish = getTouserByDistributionMark(distributionMark);
|
||||
String fullText = "JD物流信息推送\n" + pushContent;
|
||||
logger.info("闲鱼关联或分销含「闲鱼」:尝试企微闲鱼自建应用 - 订单ID: {}, 分销标识: {}, 接收人: {}",
|
||||
order.getId(), distributionMark,
|
||||
StringUtils.hasText(touserGoofish) ? touserGoofish : "(jarvis.wecom.goofish-notify-touser)");
|
||||
if (wxSendGoofishNotifyClient.pushGoofishAgentText(touserGoofish, fullText)) {
|
||||
if (wxSendGoofishNotifyClient.pushGoofishAgentText(touserGoofish, "JD物流信息推送", pushContent.toString())) {
|
||||
logger.info("企微闲鱼应用推送成功 - 订单ID: {}, 订单号: {}, waybill_no: {}",
|
||||
order.getId(), order.getOrderId(), waybillNo);
|
||||
return true;
|
||||
|
||||
@@ -213,7 +213,7 @@ public class TencentDocBatchPushServiceImpl implements ITencentDocBatchPushServi
|
||||
continue;
|
||||
}
|
||||
String pushText = "【腾讯文档推送】批次长时间未结束,已标记为「已中断」\n" + resultMsg;
|
||||
boolean ok = wxSendGoofishNotifyClient.pushGoofishAgentText(null, pushText);
|
||||
boolean ok = wxSendGoofishNotifyClient.pushGoofishAgentText(null, "", pushText);
|
||||
if (ok) {
|
||||
redisCache.setCacheObject(dedupeKey, "1", 7, TimeUnit.DAYS);
|
||||
}
|
||||
|
||||
@@ -353,7 +353,7 @@ public class TencentDocDelayedPushServiceImpl implements ITencentDocDelayedPushS
|
||||
Object msgObj = ar.get(AjaxResult.MSG_TAG);
|
||||
String msg = msgObj != null ? String.valueOf(msgObj) : "同步接口返回失败";
|
||||
batchPushService.updateBatchPushRecord(batchId, "FAILED", 0, 0, 0, null, msg);
|
||||
wxSendGoofishNotifyClient.pushGoofishAgentText(null,
|
||||
wxSendGoofishNotifyClient.pushGoofishAgentText(null, "",
|
||||
"【腾讯文档推送】定时批量同步失败\n批次: " + batchId + "\n" + msg);
|
||||
}
|
||||
}
|
||||
@@ -364,7 +364,7 @@ public class TencentDocDelayedPushServiceImpl implements ITencentDocDelayedPushS
|
||||
if (batchId != null) {
|
||||
String msg = "批量同步调用失败: " + (ex.getMessage() != null ? ex.getMessage() : ex.getClass().getSimpleName());
|
||||
batchPushService.updateBatchPushRecord(batchId, "FAILED", 0, 0, 0, null, msg);
|
||||
wxSendGoofishNotifyClient.pushGoofishAgentText(null,
|
||||
wxSendGoofishNotifyClient.pushGoofishAgentText(null, "",
|
||||
"【腾讯文档推送】定时批量同步异常\n批次: " + batchId + "\n" + msg);
|
||||
}
|
||||
}
|
||||
@@ -376,7 +376,7 @@ public class TencentDocDelayedPushServiceImpl implements ITencentDocDelayedPushS
|
||||
try {
|
||||
String msg = "执行批量同步失败: " + (e.getMessage() != null ? e.getMessage() : e.getClass().getSimpleName());
|
||||
batchPushService.updateBatchPushRecord(batchId, "FAILED", 0, 0, 0, null, msg);
|
||||
wxSendGoofishNotifyClient.pushGoofishAgentText(null,
|
||||
wxSendGoofishNotifyClient.pushGoofishAgentText(null, "",
|
||||
"【腾讯文档推送】定时批量同步异常\n批次: " + batchId + "\n" + msg);
|
||||
} catch (Exception ex) {
|
||||
log.error("更新批量推送记录失败", ex);
|
||||
|
||||
Reference in New Issue
Block a user