소스 검색

优化代码

master
Binary Wang 6 년 전
부모
커밋
99d601138f
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. +6
    -5
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java

+ 6
- 5
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java 파일 보기

@@ -1,5 +1,10 @@
package com.github.binarywang.wxpay.service.impl;

import java.nio.charset.StandardCharsets;
import javax.net.ssl.SSLContext;

import org.apache.commons.lang3.StringUtils;

import com.github.binarywang.wxpay.bean.WxPayApiData;
import com.github.binarywang.wxpay.exception.WxPayException;
import jodd.http.HttpConnectionProvider;
@@ -10,10 +15,6 @@ import jodd.http.ProxyInfo.ProxyType;
import jodd.http.net.SSLSocketHttpConnectionProvider;
import jodd.http.net.SocketHttpConnectionProvider;
import jodd.util.Base64;
import org.apache.commons.lang3.StringUtils;

import javax.net.ssl.SSLContext;
import java.nio.charset.StandardCharsets;

/**
* 微信支付请求实现类,jodd-http实现.
@@ -87,7 +88,7 @@ public class WxPayServiceJoddHttpImpl extends BaseWxPayServiceImpl {
try {
this.log.debug("【微信服务器响应头信息】:\n{}", response.toString(false));
} catch (NullPointerException e) {
throw new WxPayException("response.toString() 居然抛出空指针异常了", e);
this.log.warn("HttpResponse.toString() 居然抛出空指针异常了", e);
}

String responseString = response.bodyText();


불러오는 중...
취소
저장