Browse Source

批量创建--出价判断

zhaoxian 4 years ago
parent
commit
3884afadbc

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouBatchCampaignPreviewServiceImpl.java

@@ -537,7 +537,7 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
         groupPreview.setUnitNameFormat(groupJson.getString("unitName"));
         groupPreview.setPutStatus(Check.isNull(campaignJson.getInteger("unitStatus")) || campaignJson.getInteger("unitStatus") == 2 ? 2 : null);
         groupPreview.setBidType(groupJson.getInteger("bidType"));
-        if (groupJson.getInteger("bidType") == 2) {
+        if (!Check.isNull(groupJson.getInteger("bidMin")) && !Check.isNull(groupJson.getInteger("bidMax"))) {
             int bid = getRandom(groupJson.getInteger("bidMax"), groupJson.getInteger("bidMin"));
             if (bid > 0) {
                 groupJson.put("bid", bid);