|
@@ -331,6 +331,9 @@ public class BytedanceProjectServiceImpl implements IBytedanceProjectService {
|
|
|
//深度转化目标
|
|
|
String deepConversionType = detail.getJSONObject("optimize_goal").getString("deep_external_action");
|
|
|
|
|
|
+ //为NO_BID时,不校验出价
|
|
|
+ String bidType = detail.getJSONObject("delivery_setting").getString("bid_type");
|
|
|
+
|
|
|
StringBuffer msgType = new StringBuffer();
|
|
|
StringBuffer msgBid = new StringBuffer();
|
|
|
//转化目标标识
|
|
@@ -353,8 +356,10 @@ public class BytedanceProjectServiceImpl implements IBytedanceProjectService {
|
|
|
} else {
|
|
|
//未查询到转化出价,说明出价不一致,触发出价关停。
|
|
|
if (Check.isNull(cpaBid)) {
|
|
|
- bidFalg = false;
|
|
|
- msgBid.append("[").append(octypeName).append("]目标出价为空");
|
|
|
+ if (!"NO_BID".equals(bidType)) {
|
|
|
+ bidFalg = false;
|
|
|
+ msgBid.append("[").append(octypeName).append("]目标出价为空");
|
|
|
+ }
|
|
|
} else {
|
|
|
BigDecimal cpa = new BigDecimal(cpaBid).multiply(new BigDecimal("1000"));
|
|
|
BigDecimal ocpx = new BigDecimal(ocpxBid);//本地设置
|
|
@@ -401,15 +406,15 @@ public class BytedanceProjectServiceImpl implements IBytedanceProjectService {
|
|
|
|
|
|
if (!typeFalg) { // 出价方式设置非法
|
|
|
String text = getProjectBidTypeText(localProject, accountId, projectId, projectName, adId, adObj.getString("promotion_name"), msgType.toString());
|
|
|
- sendMsg(accountId, projectId,adId, text);
|
|
|
+ sendMsg(accountId, projectId, adId, text);
|
|
|
}
|
|
|
if (!bidFalg) {
|
|
|
String text = getProjectOverBidMessage(localProject, accountId, projectId, projectName, adId, adObj.getString("promotion_name"), msgBid.toString());
|
|
|
- sendMsg(accountId, projectId,adId, text);
|
|
|
+ sendMsg(accountId, projectId, adId, text);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void sendMsg(Long accountId, Long projectId,Long adId, String text) {
|
|
|
+ private void sendMsg(Long accountId, Long projectId, Long adId, String text) {
|
|
|
try {
|
|
|
MediaSendAlarmRecord record = new MediaSendAlarmRecord(accountId, "1", text);
|
|
|
record.setProjectId(projectId);
|
|
@@ -425,9 +430,9 @@ public class BytedanceProjectServiceImpl implements IBytedanceProjectService {
|
|
|
projectListMapper.insertSendRecord(record);
|
|
|
//当前已发送次数
|
|
|
|
|
|
- Integer i = projectListMapper.getrefusalAccountCounts(accountId,adId);
|
|
|
+ Integer i = projectListMapper.getrefusalAccountCounts(accountId, adId);
|
|
|
//更新计数
|
|
|
- projectListMapper.insertSendAccountId(accountId, adId,(Check.isNull(i) ? 0 : i) + 1);
|
|
|
+ projectListMapper.insertSendAccountId(accountId, adId, (Check.isNull(i) ? 0 : i) + 1);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|