20240115-ljl-multiPay
ljl 1 year ago
parent 8d2e6470c8
commit 5cfd370864

@ -95,6 +95,9 @@ public class CloudRequestTemplate {
* @throws Exception * @throws Exception
*/ */
public <T> String execute(String httpMethod, String url, T body, HttpHeaders headers) throws Exception { public <T> 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 time = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(LocalDateTime.now());
String sign = SignUtil.sign(appKey, appSecret, url, time, "{}", "v2"); String sign = SignUtil.sign(appKey, appSecret, url, time, "{}", "v2");

@ -22,12 +22,12 @@ mybatis.mapper-locations=classpath*:mapper/*.xml
mybatis.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl mybatis.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl
mybatis.configuration.map-underscore-to-camel-case=true mybatis.configuration.map-underscore-to-camel-case=true
cloud.app.key=7290512081592305208 #cloud.app.key=7290512081592305208
cloud.app.secret=d21bf43e-c671-4fa5-b35a-762a9c775129 #cloud.app.secret=d21bf43e-c671-4fa5-b35a-762a9c775129
# boe # boe
#cloud.app.key=7296606199200499244 cloud.app.key=7296606199200499244
#cloud.app.secret=0063975e-7755-4d51-8255-ad163604456f cloud.app.secret=0063975e-7755-4d51-8255-ad163604456f
#spring.redis.host=r-2zext1mz5bw1hsochrpd.redis.rds.aliyuncs.com #spring.redis.host=r-2zext1mz5bw1hsochrpd.redis.rds.aliyuncs.com
#spring.redis.port=6379 #spring.redis.port=6379

Loading…
Cancel
Save