diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewController.java index 1b65d332..310a3823 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewController.java @@ -313,7 +313,7 @@ public class ClewController extends BaseController String s = HttpUtils.sendPost("https://api.ads.heytapmobi.com/api/uploadActiveData", JSONObject.toJSONString(oppoCheck), headerMap); log.info("请求https://api.ads.heytapmobi.com/api/uploadActiveData的响应{}", s); }else if("vivo".equalsIgnoreCase(clew.getRemark())){ - String token = "9cd4cddcfc7c9f81fdaf4c94e826926bf0f84259462a57dbfc448f29cc8815c3"; + String token = "b447ca5eaa2aabac351bc798e8a826f2ad52927bb01aa0afcb8ca22397dac494"; 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; 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 8fb65adb..b7f5f917 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 @@ -147,7 +147,8 @@ public class NoticeController { String code = String.valueOf((int)((Math.random() * 9 + 1) * Math.pow(10,5))); // 工程代码泄露可能会导致AccessKey泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议使用更安全的 STS 方式,更多鉴权访问方式请参见:https://help.aliyun.com/document_detail/378657.html - Client client = createClient("LTAI5tLDuQRdfyHASSxehs9m", "CraRUliWZNMJhhSRIZ0nVWrxFkGTOH"); + + Client client = createClient("null", "null"); SendSmsRequest sendSmsRequest = new SendSmsRequest() .setSignName("保无忧法律咨询") .setTemplateCode("SMS_268511098") @@ -202,7 +203,7 @@ public class NoticeController { String s = sendPost("https://api.ads.heytapmobi.com/api/uploadActiveData", JSONObject.toJSONString(model), headerMap); log.info("请求https://api.ads.heytapmobi.com/api/uploadActiveData的响应{}", s); }else if("vivo".equalsIgnoreCase(request.getFrom())){ - String token = "9cd4cddcfc7c9f81fdaf4c94e826926bf0f84259462a57dbfc448f29cc8815c3"; + String token = "b447ca5eaa2aabac351bc798e8a826f2ad52927bb01aa0afcb8ca22397dac494"; 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; diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 44b92b96..32385100 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -142,6 +142,6 @@ swagger: enabled: true # 百度地图应用api -baidu: - ak: 'ZQTgMW7W0GTuE7Ripb0HDp5TqRaOI6PZ' - url: 'https://api.map.baidu.com/reverse_geocoding/v3/?ak=#AK#&output=json&coordtype=wgs84ll&location=' \ No newline at end of file +#baidu: +# ak: 'ZQTgMW7W0GTuE7Ripb0HDp5TqRaOI6PZ' +# url: 'https://api.map.baidu.com/reverse_geocoding/v3/?ak=#AK#&output=json&coordtype=wgs84ll&location=' \ No newline at end of file