diff --git a/ms-biz/src/main/java/com/ms/biz/tool/CloudRequestTemplate.java b/ms-biz/src/main/java/com/ms/biz/tool/CloudRequestTemplate.java index 1424e3a..c30c092 100644 --- a/ms-biz/src/main/java/com/ms/biz/tool/CloudRequestTemplate.java +++ b/ms-biz/src/main/java/com/ms/biz/tool/CloudRequestTemplate.java @@ -95,6 +95,9 @@ public class CloudRequestTemplate { * @throws Exception */ public String execute(String httpMethod, String url, T body, HttpHeaders headers) throws Exception { + String appKey = "7290512081592305208"; + String appSecret = "d21bf43e-c671-4fa5-b35a-762a9c775129"; + // 添加云平台要求的头部 String time = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(LocalDateTime.now()); String sign = SignUtil.sign(appKey, appSecret, url, time, "{}", "v2"); diff --git a/ms-dal/src/main/resources/application.properties b/ms-dal/src/main/resources/application.properties index c4b6be6..4604c98 100644 --- a/ms-dal/src/main/resources/application.properties +++ b/ms-dal/src/main/resources/application.properties @@ -22,12 +22,12 @@ mybatis.mapper-locations=classpath*:mapper/*.xml mybatis.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl mybatis.configuration.map-underscore-to-camel-case=true -cloud.app.key=7290512081592305208 -cloud.app.secret=d21bf43e-c671-4fa5-b35a-762a9c775129 +#cloud.app.key=7290512081592305208 +#cloud.app.secret=d21bf43e-c671-4fa5-b35a-762a9c775129 # boe -#cloud.app.key=7296606199200499244 -#cloud.app.secret=0063975e-7755-4d51-8255-ad163604456f +cloud.app.key=7296606199200499244 +cloud.app.secret=0063975e-7755-4d51-8255-ad163604456f #spring.redis.host=r-2zext1mz5bw1hsochrpd.redis.rds.aliyuncs.com #spring.redis.port=6379