Authored by chenchao

fix

... ... @@ -3,7 +3,6 @@ package com.yohoufo.order.service.pay.weixin;
import com.yohoufo.common.utils.HttpClient;
import com.yohoufo.order.config.WeixinPayConfig;
import com.yohoufo.order.service.pay.weixin.ssl.WxMiniappHttpSslClient;
import com.yohoufo.order.service.pay.weixin.ssl.WxUFORealAppHttpSslClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... ... @@ -14,7 +13,7 @@ import org.springframework.stereotype.Service;
public class WeixinMiniappPayService extends AbstractWeixinPayService {
@Autowired
private WxUFORealAppHttpSslClient wxUFORealAppHttpSslClient;
private WxMiniappHttpSslClient wxMiniappHttpSslClient;
@Override
protected String getMchId() {
... ... @@ -43,6 +42,6 @@ public class WeixinMiniappPayService extends AbstractWeixinPayService {
@Override
protected HttpClient getSslHttpClient() {
return wxUFORealAppHttpSslClient;
return wxMiniappHttpSslClient;
}
}
... ...
... ... @@ -6,7 +6,7 @@ import org.springframework.stereotype.Component;
/**
* Created by chao.chen on 2018/11/9.
*/
@Component
public class WxMiniappHttpSslClient extends HttpSslClientAbstract {
@Override
protected String getMchCertPath() {
... ... @@ -15,6 +15,6 @@ public class WxMiniappHttpSslClient extends HttpSslClientAbstract {
@Override
protected String getMchCertPassword() {
return WeixinPayConfig.Miniapp.KEY;
return WeixinPayConfig.Miniapp.MALL_ID;
}
}
... ...