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