mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-20 22:18:07 +08:00
Compare commits
3 Commits
5edb2ac5a3
...
6087bde3da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6087bde3da | ||
|
|
7c25ee6852 | ||
|
|
1c2b2a04fa |
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="./opt/app/spring/logs" />
|
||||
<property name="log.path" value="/opt/app/spring/logs" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n%ex" />
|
||||
<!-- 日志最大的历史 90天 -->
|
||||
<property name="maxHistory" value="90"/>
|
||||
|
||||
<!-- 控制台输出 -->
|
||||
<!-- 控制台输出 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
|
||||
@@ -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