From a1956b40d3f648220dc8c9f878cda1a0861dab10 Mon Sep 17 00:00:00 2001 From: fang <123456> Date: Thu, 14 Nov 2024 10:26:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=8A=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/shkd/sys/sys/midservice/utils/RequestClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/utils/RequestClient.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/utils/RequestClient.java index 1cf75b4..1e3669c 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/utils/RequestClient.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/utils/RequestClient.java @@ -78,7 +78,7 @@ public class RequestClient { private Map getHeaders(){ Map header=new HashMap<>(); String timestamp = Long.toString(System.currentTimeMillis() / 1000); - byte[] securityKey = this.clientKey.substring(10, 26).getBytes(); + byte[] securityKey = this.clientSecret.substring(10, 26).getBytes(); String authenticationCode = SmUtil.sm4(securityKey).encryptHex(clientKey + clientSecret + timestamp); header.put("authen", authenticationCode); header.put("clientKey", clientKey);