mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
多商户配置
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package com.jsowell.adapay.config;
|
||||
|
||||
import com.jsowell.adapay.factory.AdapayConfigFactory;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 希晓充电adapay配置
|
||||
*/
|
||||
@Component
|
||||
@Getter
|
||||
@Setter
|
||||
public class XixiaoAdapayConfig extends AbstractAdapayConfig{
|
||||
|
||||
@Value("${adapay.debugFlag}")
|
||||
private boolean debugFlag;
|
||||
|
||||
@Value("${adapay.prodMode}")
|
||||
private boolean prodMode;
|
||||
|
||||
@Value("${adapay.xixiao.apiKey}")
|
||||
private String apiKey;
|
||||
|
||||
@Value("${adapay.xixiao.mockApiKey}")
|
||||
private String mockApiKey;
|
||||
|
||||
@Value("${adapay.xixiao.rsaPrivateKey}")
|
||||
private String rsaPrivateKey;
|
||||
|
||||
@Value("${adapay.xixiao.appId}")
|
||||
private String adapayAppId;
|
||||
|
||||
@Value("${adapay.xixiao.wechatAppId}")
|
||||
private String wechatAppId;
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
// key为微信小程序id
|
||||
AdapayConfigFactory.register(wechatAppId, this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user