This commit is contained in:
fang 2024-11-14 10:26:17 +08:00
parent af325e0125
commit a1956b40d3
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class RequestClient {
private Map<String, String> getHeaders(){
Map<String,String> 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);