apzl_leasing/src/com/tenwa/lease/app/allinpay/util/ConfigConstant.java
2020-09-10 17:12:12 +08:00

92 lines
2.6 KiB
Java

package com.tenwa.lease.app.allinpay.util;
import java.io.IOException;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ConfigConstant {
private static final Logger logger = LoggerFactory.getLogger(ConfigConstant.class);
// 通联商户号
public final static String SZ_allinPayMerchantId;
// 通联用户名
public final static String SZ_allinPayUsername;
// 通联用户密码
public final static String SZ_allinPayUserpass;
// 通联私钥密码
public final static String SZ_allinPayPfxpass;
// 通联公钥
public final static String SZ_allinPayPathcer;
// 通联商户私钥路径
public final static String SZ_allinPayPathpfx;
// 通联收款类业务代码
public final static String SZ_allinBusinessCode;
// 通联商户号
public final static String TJ_allinPayMerchantId;
// 通联用户名
public final static String TJ_allinPayUsername;
// 通联用户密码
public final static String TJ_allinPayUserpass;
// 通联私钥密码
public final static String TJ_allinPayPfxpass;
// 通联公钥
public final static String TJ_allinPayPathcer;
// 通联商户私钥路径
public final static String TJ_allinPayPathpfx;
// 通联收款类业务代码
public final static String TJ_allinBusinessCode;
// 通联测试接口地址
public final static String allinPayUrl;
//用户点击url
public final static String filePath;
static {
Properties prop = new Properties();
try {
prop.load(ConfigConstant.class.getResourceAsStream("/allinPay.properties"));
} catch (IOException e) {
e.printStackTrace();
}
logger.info("通联配置文件加载:" + prop.toString());
SZ_allinPayMerchantId = prop.getProperty("SZ_allinPayMerchantId");
SZ_allinPayUsername = prop.getProperty("SZ_allinPayUsername");
SZ_allinPayUserpass = prop.getProperty("SZ_allinPayUserpass");
SZ_allinPayPfxpass = prop.getProperty("SZ_allinPayPfxpass");
SZ_allinPayPathcer = prop.getProperty("SZ_allinPayPathcer");
SZ_allinPayPathpfx = prop.getProperty("SZ_allinPayPathpfx");
SZ_allinBusinessCode = prop.getProperty("SZ_allinBusinessCode");
TJ_allinPayMerchantId = prop.getProperty("TJ_allinPayMerchantId");
TJ_allinPayUsername = prop.getProperty("TJ_allinPayUsername");
TJ_allinPayUserpass = prop.getProperty("TJ_allinPayUserpass");
TJ_allinPayPfxpass = prop.getProperty("TJ_allinPayPfxpass");
TJ_allinPayPathcer = prop.getProperty("TJ_allinPayPathcer");
TJ_allinPayPathpfx = prop.getProperty("TJ_allinPayPathpfx");
TJ_allinBusinessCode = prop.getProperty("TJ_allinBusinessCode");
allinPayUrl = prop.getProperty("allinPayUrl");
filePath = prop.getProperty("filePath");
}
}