Explorar o código

feat: add cross task

Wren hai 1 ano
pai
achega
5f076dcf57
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/java/com/ichaoj/ams/common/util/WalletUtil.java

+ 1 - 1
src/main/java/com/ichaoj/ams/common/util/WalletUtil.java

@@ -85,7 +85,7 @@ public class WalletUtil {
 
     @SneakyThrows
     public static AirdropWallet getWalletByKeystore(String keystore, String userId, String groupName, String password) {
-        Credentials credentials = WalletUtils.loadCredentials(password, WALLET_FILE_PATH + userId + File.separator + groupName + File.separator + keystore);
+        Credentials credentials = WalletUtils.loadCredentials(password, WALLET_FILE_PATH + userId + File.separator + getEncryptPwd(groupName) + File.separator + keystore);
         String privateKey = credentials.getEcKeyPair().getPrivateKey().toString(16);
         AirdropWallet wallet = new AirdropWallet();
         wallet.setPrivateKey(privateKey);