|
|
@@ -201,12 +201,14 @@ public class VaultodyServiceImpl implements VaultodyService {
|
|
|
|
|
|
@Override
|
|
|
public BaseResultDto vaultsTransactions(VaultTransactionsEntity entity) throws Exception{
|
|
|
- String apiKey = "6f3cc6caf513a5cde2df5d3ed805e3703d4d43b2";
|
|
|
- String apiSecret = "MLjTUAYgxSM2dg=="; // Base64编码的secret
|
|
|
- String passphrase = "7UGMi2*t0h";
|
|
|
+ VaultodyConfig config = getVaultodyConfig();
|
|
|
+ String apiKey = config.getApiKey();
|
|
|
+ String apiSecret = config.getApiSecret(); // Base64编码的secret
|
|
|
+ String passphrase = config.getPassphrase();
|
|
|
String method = "GET";
|
|
|
- String requestPath = "/vaults/"+entity.getVaultId()+"/transactions";
|
|
|
- String baseUrl = "https://rest.vaultody.com";
|
|
|
+// String requestPath = "/vaults/"+entity.getVaultId()+"/transactions";
|
|
|
+ String requestPath = getPath(config.getVaultsTransactionsPathTemplate(), entity.getVaultId());
|
|
|
+ String baseUrl = config.getBaseUrl();
|
|
|
String query = "{}";
|
|
|
Map<String, String> params = new HashMap();
|
|
|
if(!ObjectUtils.isEmpty(entity.getLimit())){
|