|
|
@@ -68,34 +68,24 @@ public class BaiduRtaService {
|
|
|
String ip,
|
|
|
String userAgent) {
|
|
|
if (!enabled) {
|
|
|
- log.info("[RTA][{}][绕过] reason=开关未启用 matched=true allowBid=true", mediaLabel(media));
|
|
|
+ log.info("[RTA][{}][不请求RTA] reason=开关未启用 matched=true allowBid=true action=直接参与竞价", mediaLabel(media));
|
|
|
return BaiduRtaDecision.bypass();
|
|
|
}
|
|
|
if (!supportsMedia(media) || endpoint == null || endpoint.isBlank() || customerName == null || sspid == null || eKey == null) {
|
|
|
- log.warn("[RTA][{}][绕过] reason=全局配置缺失 matched=true allowBid=true endpointConfigured={} customerNameConfigured={} sspidConfigured={} eKeyConfigured={}",
|
|
|
+ log.warn("[RTA][{}][不请求RTA] reason=全局配置缺失 matched=true allowBid=true action=直接参与竞价 endpointConfigured={} customerNameConfigured={} sspidConfigured={} eKeyConfigured={}",
|
|
|
mediaLabel(media), endpoint != null && !endpoint.isBlank(), customerName != null, sspid != null, eKey != null);
|
|
|
return BaiduRtaDecision.bypass();
|
|
|
}
|
|
|
String tu = buildTu(tagId);
|
|
|
String requestOrderId = trimToNull(orderResolver == null ? null : orderResolver.resolveOrderId(tagId));
|
|
|
- Map<String, Object> requestPreview = buildRequestPreview(appId, tagId, platform, params, ip, userAgent, tu, requestOrderId, null, null);
|
|
|
if (requestOrderId == null) {
|
|
|
- log.info("[RTA][{}][绕过] reason=Redis未配置orderId matched=true allowBid=true tagId={} redisOnly=true",
|
|
|
+ log.info("[RTA][{}][不请求RTA] reason=Redis未配置orderId matched=true allowBid=true action=直接参与竞价 tagId={} redisOnly=true",
|
|
|
mediaLabel(media), tagId);
|
|
|
- log.info("[RTA][{}][绕过预览] tagId={} request={}", mediaLabel(media), tagId, toJson(requestPreview));
|
|
|
return BaiduRtaDecision.bypass();
|
|
|
}
|
|
|
if (tu == null || appId == null || appId.isBlank()) {
|
|
|
- log.warn("[RTA][{}][绕过] reason=广告位配置缺失 matched=true allowBid=true tagId={} tu={} appId={}",
|
|
|
+ log.warn("[RTA][{}][不请求RTA] reason=广告位配置缺失 matched=true allowBid=true action=直接参与竞价 tagId={} tu={} appId={}",
|
|
|
mediaLabel(media), tagId, tu, appId);
|
|
|
- log.info("[RTA][{}][绕过预览] tagId={} request={}", mediaLabel(media), tagId, toJson(requestPreview));
|
|
|
- log.info("[RTA][{}][绕过预览] tagId={} response={}", mediaLabel(media), tagId, toJson(Map.of(
|
|
|
- "applied", false,
|
|
|
- "matched", true,
|
|
|
- "allowBid", true,
|
|
|
- "reason", "广告位配置缺失",
|
|
|
- "latencyMs", 0
|
|
|
- )));
|
|
|
return BaiduRtaDecision.bypass();
|
|
|
}
|
|
|
|