fix: 解决密钥问题

This commit is contained in:
Yifei.Kuang 2026-05-19 14:37:01 +08:00
parent 57bc8ab4c9
commit b600ca1ce9
3 changed files with 7 additions and 6 deletions

View File

@ -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+"&timestamp="+timeStamp+"&nonce="+notice;

View File

@ -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+"&timestamp="+timeStamp+"&nonce="+notice;

View File

@ -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='
#baidu:
# ak: 'ZQTgMW7W0GTuE7Ripb0HDp5TqRaOI6PZ'
# url: 'https://api.map.baidu.com/reverse_geocoding/v3/?ak=#AK#&output=json&coordtype=wgs84ll&location='