浏览代码

增加日志

xueyiming 8 月之前
父节点
当前提交
81b1b39f4b

+ 3 - 3
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

@@ -532,7 +532,7 @@ public class CoreServiceImpl implements CoreService {
             if (StringUtils.isNotEmpty(pushStatusVO.getErrorMsg())) {
                 String accountName = "";
                 PublishContentExample publishContentExample = new PublishContentExample();
-                example.createCriteria().andPushIdEqualTo(pushId);
+                publishContentExample.createCriteria().andPushIdEqualTo(pushId);
                 List<PublishContent> failPublishContents = publishContentMapper.selectByExample(publishContentExample);
                 if (!CollectionUtils.isEmpty(failPublishContents)) {
                     Long planAccountId = failPublishContents.get(0).getPlanAccountId();
@@ -542,8 +542,8 @@ public class CoreServiceImpl implements CoreService {
                     }
                 }
                 log.error("push error pushId={} msg={}", pushId, pushStatusVO.getErrorMsg());
-                LarkRobotUtil.sendMessage("发布失败,请查看,pushId=" + pushId + "失败信息"
-                        + pushStatusVO.getErrorMsg() + "账号名称:" + accountName);
+//                LarkRobotUtil.sendMessage("发布失败,请查看,pushId=" + pushId + "失败信息"
+//                        + pushStatusVO.getErrorMsg() + "账号名称:" + accountName);
             }
             int updateStatus = 0;
             //推送失败  重新推送