Bladeren bron

notCheckPublishPlan

wangyunpeng 4 weken geleden
bovenliggende
commit
c04f9ee8bb

+ 6 - 0
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/XxlJobService.java

@@ -121,6 +121,9 @@ public class XxlJobService {
 
     @ApolloJsonValue("${touliu.account.ghIds:[\"gh_93e00e187787\", \"gh_ac43e43b253b\", \"gh_68e7fdc09fe4\",\"gh_77f36c109fb1\", \"gh_b181786a6c8c\", \"gh_1ee2e1b39ccf\"]}")
     private List<String> touliuAccountGhIds;
+
+    @ApolloJsonValue("${notCheckPublishPlan:[\"20250325073241267857470\"]}")
+    private List<String> notCheckPublishPlan;
     @ApolloJsonValue("${cold.pool.produce.planId:[\"20240802021606053813696\", \"20240802080355355308981\",\n" +
             "\"20240805154433785506170\", \"20240805154359027876170\", \"20241024100016206421084\", " +
             "\"20241030070010871546586\"]}")
@@ -135,6 +138,9 @@ public class XxlJobService {
         String dateStr = DateUtils.getCurrentDateStr("yyyy-MM-dd");
         List<String> specialAdAccountNames = aigcBaseMapper.getTodaySpecialAdAccountNames(dateStr);
         for (NotPublishPlan publishPlan : notPublishPlan) {
+            if (notCheckPublishPlan.contains(publishPlan.getPlanId())) {
+                continue;
+            }
             long now = System.currentTimeMillis();
             int nowHour = DateUtils.getHourByTimestamp(now / 1000);
             int nowMinute = DateUtils.getMinuteByTimestamp(now / 1000);