|
|
@ -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");
|
|
|
|