mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.jsowell.adapay.config;
|
||||
package com.jsowell.adapay.config.merchant;
|
||||
|
||||
import com.jsowell.adapay.config.AbstractAdapayConfig;
|
||||
import com.jsowell.adapay.factory.AdapayConfigFactory;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@@ -12,7 +13,7 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@Getter
|
||||
@Setter
|
||||
public class JsowellAdapayConfig extends AbstractAdapayConfig{
|
||||
public class JsowellAdapayConfig extends AbstractAdapayConfig {
|
||||
@Value("${adapay.debugFlag}")
|
||||
private boolean debugFlag;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.jsowell.adapay.config;
|
||||
package com.jsowell.adapay.config.merchant;
|
||||
|
||||
import com.jsowell.adapay.config.AbstractAdapayConfig;
|
||||
import com.jsowell.adapay.factory.AdapayConfigFactory;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@@ -12,7 +13,7 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@Getter
|
||||
@Setter
|
||||
public class XixiaoAdapayConfig extends AbstractAdapayConfig{
|
||||
public class XixiaoAdapayConfig extends AbstractAdapayConfig {
|
||||
|
||||
@Value("${adapay.debugFlag}")
|
||||
private boolean debugFlag;
|
||||
Reference in New Issue
Block a user