Authored by chenchao

fix

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