|
@@ -77,6 +77,8 @@ public class AdapayMerchantService {
|
|
|
merConfig.setRSAPublicKey(merchant.getPublicKey());
|
|
merConfig.setRSAPublicKey(merchant.getPublicKey());
|
|
|
Adapay.initWithMerConfig(merConfig);
|
|
Adapay.initWithMerConfig(merConfig);
|
|
|
|
|
|
|
|
|
|
+ adapayProperties.setAppId(merchant.getAppId());
|
|
|
|
|
+
|
|
|
List<AdapayMerchant> list = adapayMerchantRepo.findAll();
|
|
List<AdapayMerchant> list = adapayMerchantRepo.findAll();
|
|
|
list.forEach(m -> m.setSelected(m.getId().equals(id)));
|
|
list.forEach(m -> m.setSelected(m.getId().equals(id)));
|
|
|
adapayMerchantRepo.saveAll(list);
|
|
adapayMerchantRepo.saveAll(list);
|