WXSERVICE ADD LOG FOR TEST
This commit is contained in:
@@ -31,15 +31,20 @@ public class AppWxServiceImpl extends BaseWx {
|
|||||||
public void init() {
|
public void init() {
|
||||||
// 小程序id
|
// 小程序id
|
||||||
config.appId = paramsService.getSysParamValue("wx_mini_app_id");
|
config.appId = paramsService.getSysParamValue("wx_mini_app_id");
|
||||||
|
log.info("小程序id:{}", config.appId);
|
||||||
// 小程序secrete
|
// 小程序secrete
|
||||||
config.appSecret = paramsService.getSysParamValue("wx_mini_secrete");
|
config.appSecret = paramsService.getSysParamValue("wx_mini_secrete");
|
||||||
|
log.info("小程序secrete:{}", config.appSecret);
|
||||||
config.certPath = "";
|
config.certPath = "";
|
||||||
// 微信支付公钥
|
// 微信支付公钥
|
||||||
config.pubKey = paramsService.getSysParamValue("wx_pub_key");
|
config.pubKey = paramsService.getSysParamValue("wx_pub_key");
|
||||||
|
log.info("微信支付公钥:{}", config.pubKey);
|
||||||
// api支付证书私钥
|
// api支付证书私钥
|
||||||
config.apiCertKey = paramsService.getSysParamValue("wx_apiclient_key");
|
config.apiCertKey = paramsService.getSysParamValue("wx_apiclient_key");
|
||||||
|
log.info("api支付证书私钥:{}", config.apiCertKey);
|
||||||
// api支付证书公钥
|
// api支付证书公钥
|
||||||
config.apiCert = paramsService.getSysParamValue("wx_apiclient_cert");
|
config.apiCert = paramsService.getSysParamValue("wx_apiclient_cert");
|
||||||
|
log.info("api支付证书公钥:{}", config.apiCert);
|
||||||
try {
|
try {
|
||||||
config.privateKey = RsaKit.loadPrivateKey(config.apiCertKey);
|
config.privateKey = RsaKit.loadPrivateKey(config.apiCertKey);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -51,13 +56,17 @@ public class AppWxServiceImpl extends BaseWx {
|
|||||||
config.platformCertNo = "";
|
config.platformCertNo = "";
|
||||||
// 商户号
|
// 商户号
|
||||||
config.mchId = paramsService.getSysParamValue("wx_mch_id");
|
config.mchId = paramsService.getSysParamValue("wx_mch_id");
|
||||||
|
log.info("商户号:{}", config.mchId);
|
||||||
// v3密钥
|
// v3密钥
|
||||||
config.apiV3Key = paramsService.getSysParamValue("wx_v3_key");
|
config.apiV3Key = paramsService.getSysParamValue("wx_v3_key");
|
||||||
|
log.info("v3密钥:{}", config.apiV3Key);
|
||||||
config.apiV2Key = "";
|
config.apiV2Key = "";
|
||||||
// 回调地址
|
// 回调地址
|
||||||
config.notifyUrl = paramsService.getSysParamValue("native_notify_url") + "/wx/pay";
|
config.notifyUrl = paramsService.getSysParamValue("native_notify_url") + "/wx/pay";
|
||||||
|
log.info("回调地址:{}", config.notifyUrl);
|
||||||
config.refundNotifyUrl = "";
|
config.refundNotifyUrl = "";
|
||||||
config.transferNotifyUrl = paramsService.getSysParamValue("native_notify_url") + "/wx/transfer";
|
config.transferNotifyUrl = paramsService.getSysParamValue("native_notify_url") + "/wx/transfer";
|
||||||
|
log.info("转账回调地址:{}", config.transferNotifyUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BaseWx getAppService() {
|
public BaseWx getAppService() {
|
||||||
|
|||||||
Reference in New Issue
Block a user