zhaoxian пре 1 година
родитељ
комит
54b7039e1f

+ 7 - 8
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/service/impl/AdUnitReportServiceImpl.java

@@ -277,7 +277,7 @@ public class AdUnitReportServiceImpl implements IAdUnitReportService {
                                 if (ocpxActionType == 2 && dayBudget != 0 && dayBudget <= 500 * 1000) {
                                     // 转化目标为2行为数,并且预算小于等于500且不是不限,则允许启动
                                     typeFalg = true;
-                                }else{
+                                } else {
                                     //通过key未获取值,说明不包含该目标,进行关停
                                     typeFalg = false;
                                 }
@@ -287,7 +287,7 @@ public class AdUnitReportServiceImpl implements IAdUnitReportService {
                                     bidFalg = false;
                                 }
                             }
-                        }else if (ocpxActionType == 2 && (dayBudget == 0 || dayBudget > 500 * 1000)) {
+                        } else if (ocpxActionType == 2 && (dayBudget == 0 || dayBudget > 500 * 1000)) {
                             // 转化目标为2行为数,并且预算大于500 或者不限,则关停
                             typeFalg = false;
                         }
@@ -324,12 +324,11 @@ public class AdUnitReportServiceImpl implements IAdUnitReportService {
                         });
                     }
                 }
-                for (Object deta : details) {
-                    JSONObject unitDetail = (JSONObject) deta;
-                    unitDetail.put("advertiser_id", accountId);
-                    KuaishouAdUnitList ksAdunit = KuaishouAdUnitList.getAdUnitListInfo(unitDetail);
-                    ksAdUnitList.add(ksAdunit);
-                }
+
+                detail.put("advertiser_id", accountId);
+                KuaishouAdUnitList ksAdunit = KuaishouAdUnitList.getAdUnitListInfo(detail);
+                ksAdUnitList.add(ksAdunit);
+
             }
         }
         if (!Check.isNull(ksAdUnitList)) {