This commit is contained in:
parent
af325e0125
commit
a1956b40d3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue