瀏覽代碼

修复:已经推送的push数据不会被准备数据覆盖。

dodo hold 11 月之前
父節點
當前提交
4abd72f018
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      molilian.core/Core/PushDataReport/PushDataReportCore.cs

+ 7 - 1
molilian.core/Core/PushDataReport/PushDataReportCore.cs

@@ -94,6 +94,12 @@ namespace molilian.core
                         //foreach (var distribution in distributiontype_list)
                         {
                             int distribution = 0;
+
+                            filter = " report_date=@report_date AND platform=@platform AND distribution=@distribution AND type=@data_type AND sub_type=@sub_type";
+                            var exist = new DBContext.Table("push_data_report")
+                                        .Get<PushDataReportDTO>(filter, new { report_date = reportDatetime.Date, platform = p.push_channel_id, distribution, data_type, sub_type });
+                            if (exist != null && exist.status == 1) continue;
+
                             var item = new PushDataReportDTO();
                             item.report_date = reportDatetime.Date;
                             item.platform = p.push_channel_id;
@@ -239,7 +245,7 @@ namespace molilian.core
                     if (deeplink.push_channel_id == 0) continue;
 
                     //先跳过百度网盘的数据处理
-                    if(deeplink.channel_id== 102) continue;
+                    if (deeplink.channel_id == 102) continue;
 
                     string[] flags = ["none", "home", "success", "fail"];
                     int all_total = 0;