Commit 219e6409 authored by 宋新宇's avatar 宋新宇

Merge remote-tracking branch 'origin/main'

parents acb16012 ea5373c6
...@@ -11,9 +11,11 @@ import com.lwby.marketing.notify.media.gdt.dto.UserId; ...@@ -11,9 +11,11 @@ import com.lwby.marketing.notify.media.gdt.dto.UserId;
import com.lwby.marketing.vo.ClientInfo; import com.lwby.marketing.vo.ClientInfo;
import com.lwby.marketing.vo.DeliveryDeviceInfo; import com.lwby.marketing.vo.DeliveryDeviceInfo;
import com.lwby.marketing.vo.NovelAction; import com.lwby.marketing.vo.NovelAction;
import lombok.extern.slf4j.Slf4j;
import java.util.Collections; import java.util.Collections;
@Slf4j
public class NovelGDTNotify extends MobileNotify { public class NovelGDTNotify extends MobileNotify {
public boolean android(NovelAction na){ public boolean android(NovelAction na){
...@@ -41,9 +43,12 @@ public class NovelGDTNotify extends MobileNotify { ...@@ -41,9 +43,12 @@ public class NovelGDTNotify extends MobileNotify {
String userAction = JSONObject.toJSONString(dto); String userAction = JSONObject.toJSONString(dto);
try { try {
String result = HttpUtil.post(sb.toString(), userAction); //TODO;测试不执行
Integer resultCode = (Integer) JSON.parseObject(result).get("code"); // String result = HttpUtil.post(sb.toString(), userAction);
return resultCode == 0; // Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// return resultCode == 0;
log.info("Callback info:{}",userAction);
return true;
} catch (Exception e) { } catch (Exception e) {
return false; return false;
} }
......
...@@ -8,7 +8,9 @@ import com.lwby.marketing.notify.media.jrtt.dto.JrttAttributeRequest; ...@@ -8,7 +8,9 @@ import com.lwby.marketing.notify.media.jrtt.dto.JrttAttributeRequest;
import com.lwby.marketing.vo.ClientInfo; import com.lwby.marketing.vo.ClientInfo;
import com.lwby.marketing.vo.DeliveryDeviceInfo; import com.lwby.marketing.vo.DeliveryDeviceInfo;
import com.lwby.marketing.vo.NovelAction; import com.lwby.marketing.vo.NovelAction;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class NovelJRTTNotify extends MobileNotify { public class NovelJRTTNotify extends MobileNotify {
public static final String ATTRIBUTE_URL = "https://analytics.oceanengine.com/api/v2/conversion"; public static final String ATTRIBUTE_URL = "https://analytics.oceanengine.com/api/v2/conversion";
...@@ -33,9 +35,12 @@ public class NovelJRTTNotify extends MobileNotify { ...@@ -33,9 +35,12 @@ public class NovelJRTTNotify extends MobileNotify {
String userJson = JSONObject.toJSONString(request); String userJson = JSONObject.toJSONString(request);
try { try {
String result = HttpUtil.post(ATTRIBUTE_URL, userJson); //TODO;测试不执行
Integer resultCode = (Integer) JSON.parseObject(result).get("code"); // String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
return resultCode == 0; // Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// return resultCode == 0;
log.info("Callback info:{}",userJson);
return true;
} catch (Exception e) { } catch (Exception e) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment