|
@@ -1243,12 +1243,12 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
static ExecutorService executorMaxBidService = Executors.newFixedThreadPool(5);
|
|
|
|
|
|
private void addGroup(Long advertiserId, JSONArray details) {
|
|
|
- JSONObject json = warningOperationService.getBidTypeAndMaxBid(advertiserId);
|
|
|
- Long maxBid = json.getLong("maxBid");// 最高出价
|
|
|
+ // JSONObject json = warningOperationService.getBidTypeAndMaxBid(advertiserId);
|
|
|
+ /* Long maxBid = json.getLong("maxBid");// 最高出价
|
|
|
String bidTypeStr = json.getString("bidType"); // 出价方式
|
|
|
JSONArray bidTypeArr = JSONArray.parseArray(bidTypeStr);
|
|
|
String ocpxActionTypeStr = json.getString("ocpxActionType"); // 优化目标
|
|
|
- JSONArray ocpxArr = JSONArray.parseArray(ocpxActionTypeStr);
|
|
|
+ JSONArray ocpxArr = JSONArray.parseArray(ocpxActionTypeStr);*/
|
|
|
if (!Check.isNull(details)) {
|
|
|
List<KuaiShouGroup> groups = new ArrayList<>();
|
|
|
for (int i = 0; i < details.size(); i++) {
|
|
@@ -1263,7 +1263,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
String unit_name = detail.getString("unit_name");
|
|
|
Integer status = detail.getInteger("status");
|
|
|
Integer put_status = detail.getInteger("put_status");
|
|
|
- if (put_status == 1) { // 组状态为 投放中的
|
|
|
+ /* if (put_status == 1) { // 组状态为 投放中的
|
|
|
if (status != 15) { // 广告组状态为非暂停
|
|
|
Boolean bidTypeTrueOrFalse = false;
|
|
|
for (int j = 0; j < bidTypeArr.size(); j++) {
|
|
@@ -1307,7 +1307,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+*/
|
|
|
KuaiShouGroup group = new KuaiShouGroup();
|
|
|
group.setId("" + advertiserId + unitId);
|
|
|
group.setAccountId(advertiserId);
|