mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-12 19:29:52 +08:00
update 打印日志
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
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;
|
||||
@@ -77,8 +76,7 @@ public class InitializeAdapayConfig implements CommandLineRunner {
|
||||
merConfig.setApiMockKey(mockApiKey);
|
||||
merConfig.setRSAPrivateKey(rsaPrivateKey);
|
||||
Adapay.initWithMerConfig(merConfig);
|
||||
log.info("汇付配置初始化成功,debug:{}, prodMode:{}, apiKey:{}, mockApiKey:{}, rsaPrivateKey:{}"
|
||||
, DEBUG_FLAG, PROD_MODE, JSOWELL_API_KEY, JSOWELL_MOCK_API_KEY, JSOWELL_RSA_PRIVATE_KEY);
|
||||
log.info("汇付配置初始化成功,debug:{}, prodMode:{}", DEBUG_FLAG, PROD_MODE);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -118,6 +116,6 @@ public class InitializeAdapayConfig implements CommandLineRunner {
|
||||
|
||||
// 将商户A和B的商户配置放入本地缓存
|
||||
Adapay.initWithMerConfigs(configPathMap);
|
||||
log.info("汇付多商户配置初始化成功,configPathMap:{}", JSON.toJSONString(configPathMap));
|
||||
log.info("汇付多商户配置初始化成功,merchantCount:{}", configPathMap.size());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ public class WxAppletRemoteService {
|
||||
"&js_code=%s" +
|
||||
"&grant_type=authorization_code";
|
||||
|
||||
log.info("appid:{},appscrect:{}", WeixinLoginProperties.WX_OPEN_APP_ID, WeixinLoginProperties.WX_OPEN_APP_SECRET);
|
||||
log.info("微信登录获取openid, appid:{}", WeixinLoginProperties.WX_OPEN_APP_ID);
|
||||
|
||||
String accessTokenUrl = String.format(baseAccessTokenUrl, WeixinLoginProperties.WX_OPEN_APP_ID, WeixinLoginProperties.WX_OPEN_APP_SECRET, code);
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ public class HttpUtils {
|
||||
String jsonResult = EntityUtils.toString(httpEntity);
|
||||
return JSON.readValue(jsonResult, HashMap.class);
|
||||
} else {
|
||||
log.error("微信支付错误信息:{}, body:{}", EntityUtils.toString(httpEntity), body);
|
||||
log.error("微信支付错误信息:{}", EntityUtils.toString(httpEntity));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("HttpUtils.doPostWexin error", e);
|
||||
|
||||
Reference in New Issue
Block a user