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