|
|
@@ -703,14 +703,12 @@ public class CoreServiceImpl implements CoreService {
|
|
|
if (planAccount.getRetryCount() >= 10) {
|
|
|
planAccount.setStatus(3);
|
|
|
planAccountMapper.updateByPrimaryKeySelective(planAccount);
|
|
|
- LarkRobotUtil.sendMessage("计划发布失败3次,请查看 账号计划id为" + planAccount.getPlanId());
|
|
|
return false;
|
|
|
}
|
|
|
} else if (planAccount.getRetryCount() >= 3) {
|
|
|
// 公众号群发每天最多尝试3次
|
|
|
planAccount.setStatus(3);
|
|
|
planAccountMapper.updateByPrimaryKeySelective(planAccount);
|
|
|
- LarkRobotUtil.sendMessage("计划发布失败3次,请查看 账号计划id为" + planAccount.getPlanId());
|
|
|
return false;
|
|
|
}
|
|
|
} else {
|
|
|
@@ -718,7 +716,6 @@ public class CoreServiceImpl implements CoreService {
|
|
|
if (planAccount.getRetryCount() >= 5) {
|
|
|
planAccount.setStatus(3);
|
|
|
planAccountMapper.updateByPrimaryKeySelective(planAccount);
|
|
|
- LarkRobotUtil.sendMessage("计划发布失败5次,请查看 账号计划id为" + planAccount.getPlanId());
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -1541,7 +1538,12 @@ public class CoreServiceImpl implements CoreService {
|
|
|
&& !pushStatusVO.getErrorMsg().contains("45028")
|
|
|
&& !pushStatusVO.getErrorMsg().contains("所有分组均发表失败")) {
|
|
|
log.error("push error pushId={} msg={}", pushId, pushStatusVO.getErrorMsg());
|
|
|
- String message = String.format("发布失败,请查看\npushId=%s \n失败信息:%s \n账号名称:%s \n计划id:%s \n计划名称:%s",
|
|
|
+ String message = String.format("发布失败,请查看\n" +
|
|
|
+ "账号名称:%s \n" +
|
|
|
+ "计划id:%s \n" +
|
|
|
+ "计划名称:%s \n" +
|
|
|
+ "pushId:%s \n" +
|
|
|
+ "失败信息:%s ",
|
|
|
pushId, pushStatusVO.getErrorMsg(), planAccount.getAccountName(),
|
|
|
planAccount.getPlanId(), planAccount.getPlanName());
|
|
|
LarkRobotUtil.sendMessage(message);
|