xueyiming hai 8 meses
pai
achega
4a3ff85bde

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

@@ -500,6 +500,10 @@ public class CoreServiceImpl implements CoreService {
             if (pushStatusVO == null) {
                 continue;
             }
+            if (StringUtils.isNotEmpty(pushStatusVO.getErrorMsg())) {
+                log.error("push error pushId={} msg={}", pushId, pushStatusVO.getErrorMsg());
+                LarkRobotUtil.sendMessage("发布失败,请查看,pushId=" + pushId + "失败信息" + pushStatusVO.getErrorMsg());
+            }
             int updateStatus = 0;
             //推送失败  重新推送
             if (pushStatusVO.getPushStatus() == 3) {

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

@@ -64,14 +64,12 @@ public class PlanServiceImpl {
     //分页获取待排序内容列表
     public LongArticleSystemContentVO listWaitingMatchMiniprogramContents(LongArticleSystemGetContentsParam param) {
         String apiUrl = "http://aigc-api.cybertogether.net/aigc/publish/LongArticleSystem/listWaitingMatchMiniprogramContents";
-        List<ContentItemVO> contentItemList = new ArrayList<>();
         try {
             String res = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(apiUrl, JSON.toJSONString(param));
             JSONObject jsonObject = JSON.parseObject(res);
             Integer code = jsonObject.getInteger("code");
             if (code == 0) {
-                LongArticleSystemContentVO longArticleSystemContentVO = jsonObject.getJSONObject("data").toJavaObject(LongArticleSystemContentVO.class);
-                return longArticleSystemContentVO;
+                return jsonObject.getJSONObject("data").toJavaObject(LongArticleSystemContentVO.class);
             }
         } catch (Exception e) {
             log.error("listWaitingMatchMiniprogramContents error", e);