mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 12:05:05 +08:00
多商户配置
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.jsowell.adapay.config;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.huifu.adapay.Adapay;
|
||||
import com.huifu.adapay.model.MerConfig;
|
||||
import com.jsowell.adapay.factory.AdapayConfigFactory;
|
||||
@@ -40,13 +41,13 @@ public class InitializeAdapayConfig implements CommandLineRunner {
|
||||
/*
|
||||
单商户
|
||||
*/
|
||||
singleMerchant();
|
||||
// singleMerchant();
|
||||
|
||||
/*
|
||||
多商户
|
||||
目前有jsowell和xixiao
|
||||
*/
|
||||
// multiMerchant();
|
||||
multiMerchant();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -118,5 +119,6 @@ public class InitializeAdapayConfig implements CommandLineRunner {
|
||||
|
||||
// 将商户A和B的商户配置放入本地缓存
|
||||
Adapay.initWithMerConfigs(configPathMap);
|
||||
logger.info("汇付多商户配置初始化成功,configPathMap:{}", JSON.toJSONString(configPathMap));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user