From 61d7556e6d718a2660e21912bd778e0900e7273b Mon Sep 17 00:00:00 2001 From: "kuang.yife" Date: Mon, 13 Nov 2023 14:30:32 +0800 Subject: [PATCH] =?UTF-8?q?vivo=E5=BD=92=E5=9B=A0=E4=BD=BF=E7=94=A8oaid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/tool/NoticeController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/NoticeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/NoticeController.java index 9ebef961..afa65460 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/NoticeController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/NoticeController.java @@ -128,7 +128,7 @@ public class NoticeController { String timeStamp = System.currentTimeMillis() + ""; String notice = "VIVO"+ (long)((Math.random()+1) * 10000000); String url = "https://marketing-api.vivo.com.cn/openapi/v1/advertiser/behavior/upload?access_token="+token+"×tamp="+timeStamp+"&nonce="+notice; - String content = "{\"dataList\":[{\"cvTime\":"+timeStamp+",\"cvType\":\"REGISTER\",\"userId\":\"OTHER\",\"userIdType\":\"OTHER\"}],\"pkgName\":\"com.yinliu.loan\",\"srcId\":\"ds-202310270565\",\"srcType\":\"app\"}"; + String content = "{\"dataList\":[{\"cvTime\":"+timeStamp+",\"cvType\":\"REGISTER\",\"userId\":\""+ request.getOaid() +"\",\"userIdType\":\"OAID\"}],\"pkgName\":\"com.yinliu.loan\",\"srcId\":\"ds-202310270565\",\"srcType\":\"app\"}"; Map headerMap = new HashMap<>(); headerMap.put("Content-Type", "application/json"); log.info("请求{}的属性{}", url, content);