多商户配置

(cherry picked from commit 312b37f5bb)
This commit is contained in:
2023-08-15 16:49:41 +08:00
parent 7898bf8b45
commit d4adac696e
2 changed files with 2 additions and 2 deletions

View File

@@ -624,7 +624,7 @@ public class MemberService {
createAdaPaymentParam.setDescription(JSON.toJSONString(map));
try {
log.info("创建汇付支付参数:{}", JSONObject.toJSONString(createAdaPaymentParam));
Map<String, Object> response = Payment.create(BeanMap.create(createAdaPaymentParam));
Map<String, Object> response = Payment.create(BeanMap.create(createAdaPaymentParam), dto.getAppId());
log.info("创建汇付支付参数反参:{}", JSONObject.toJSONString(response));
if (response != null && !response.isEmpty()) {
JSONObject jsonObject = JSONObject.parseObject(response.get("expend").toString());

View File

@@ -103,7 +103,7 @@ public class InitializeAdapayConfig implements CommandLineRunner {
* mockApiKey为mock模式的API KEY
* rsaPrivateKey为商户发起请求时用于请求参数加签所需要的RSA私钥
*/
Map<String, MerConfig> configPathMap = new HashMap<>();
Map<String, MerConfig> configPathMap = new HashMap<>(); // key为merchantKey, value为MerConfig
List<AbstractAdapayConfig> allConfig = AdapayConfigFactory.getAllConfig();
for (AbstractAdapayConfig config : allConfig) {
String apiKey = config.getApiKey();