yangzian преди 3 години
родител
ревизия
74a4742dcc

+ 6 - 4
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/service/impl/MonitorBytedanceServiceImpl.java

@@ -165,10 +165,12 @@ public class MonitorBytedanceServiceImpl implements IMonitorBytedanceService {
                         planList.add(actiontrackUrl.getPlanId());
                     }
                 }
-                //发送预警消息
-                accountInfo.setPlanIdList(planList);
-                sendEnterpriseWeiXinMessage(accountInfo);
-                log.info("accountId:=={}==计划id:{}=====第三方点击监测链接不一致,已发送企业微信通知============",accountInfo.getAccountId(),accountInfo.getPlanIdList());
+                if (Check.isNull(planList) && planList.size() > 0){
+                    //发送预警消息
+                    accountInfo.setPlanIdList(planList);
+                    sendEnterpriseWeiXinMessage(accountInfo);
+                    log.info("accountId:=={}==计划id:{}=====第三方点击监测链接不一致,已发送企业微信通知============",accountInfo.getAccountId(),accountInfo.getPlanIdList());
+                }
             }
             log.info("accountId:=={}====已创建的计划暂时没有第三方点击监测链接============",accountInfo.getAccountId());
         }