feat:营账通key

This commit is contained in:
苏竹红
2025-11-18 15:08:35 +08:00
parent 6d6f72dbc9
commit 7703e4ef09
4 changed files with 6 additions and 1 deletions

View File

@@ -37,6 +37,8 @@ public class WalletHttpClientRest {
private String coolPrivateKey;
@Value("${wallet.api.rsa.public.key}")
private String walletPublicKey;
@Value("${wallet.api.yzt.key}")
private String yztKey;
/**
@@ -47,7 +49,7 @@ public class WalletHttpClientRest {
// 1. 准备请求参数
Map<String, Object> requestParams = convertToMap(request);
requestParams.put("timestamp", System.currentTimeMillis());
requestParams.put("key", "360155690205317");
requestParams.put("key", yztKey);
// 2. 生成签名
String signature = RsaSignUtil.generateSign(requestParams,coolPrivateKey);
requestParams.put("sign", signature);