|
@@ -3,7 +3,6 @@ package com.gree.mall.manager.config.wx;
|
|
|
import cn.binarywang.wx.miniapp.api.WxMaService;
|
|
|
import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl;
|
|
|
import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl;
|
|
|
-import cn.hutool.json.JSONUtil;
|
|
|
import com.github.binarywang.wxpay.config.WxPayConfig;
|
|
|
import com.github.binarywang.wxpay.service.WxPayService;
|
|
|
import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl;
|
|
@@ -13,7 +12,6 @@ import com.gree.mall.manager.plus.entity.AdminCompanyWechatPayConfig;
|
|
|
import com.gree.mall.manager.plus.service.AdminCompanyWechatPayConfigService;
|
|
|
import com.gree.mall.manager.plus.service.AdminCompanyWechatService;
|
|
|
import com.gree.mall.manager.utils.RedisUtil;
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
import me.chanjar.weixin.mp.api.WxMpService;
|
|
|
import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl;
|
|
|
import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl;
|
|
@@ -30,7 +28,6 @@ import java.util.Map;
|
|
|
|
|
|
@Component
|
|
|
@Configuration
|
|
|
-@Slf4j
|
|
|
public class WxConfiguration {
|
|
|
|
|
|
private final static String keyPath = "classpath:/static/apiclient_cert.p12";
|
|
@@ -111,8 +108,6 @@ public class WxConfiguration {
|
|
|
WxPayService wxPayService = new WxPayServiceImpl();
|
|
|
wxPayService.setConfig(wxPayConfig);
|
|
|
|
|
|
- // log.info("{} 初始化微信小程序支付服务{}", adminCompanyWechatPayConfig.getCompanyName(), JSONUtil.toJsonStr(wxPayConfig));
|
|
|
-
|
|
|
wxSubPayWebsitServices.put(adminCompanyWechatPayConfig.getId(),wxPayService);
|
|
|
}
|
|
|
|
|
@@ -137,8 +132,6 @@ public class WxConfiguration {
|
|
|
WxPayService wxPayService = new WxPayServiceImpl();
|
|
|
wxPayService.setConfig(wxPayConfig);
|
|
|
|
|
|
- // log.info("{} 初始化微信支付服务{}", adminCompanyWechatPayConfig.getCompanyName(), JSONUtil.toJsonStr(wxPayConfig));
|
|
|
-
|
|
|
wxPayWebsitServices.put(adminCompanyWechatPayConfig.getId(),wxPayService);
|
|
|
}
|
|
|
|