|  | @@ -23,6 +23,7 @@ import static com.wechat.pay.contrib.apache.httpclient.constant.WechatPayHttpHea
 | 
	
		
			
				|  |  |   * @author kaur*/
 | 
	
		
			
				|  |  |  @Slf4j
 | 
	
		
			
				|  |  |  public class WechatPayValidator {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 应答超时时间,单位为分钟
 | 
	
		
			
				|  |  |       */
 | 
	
	
		
			
				|  | @@ -70,7 +71,6 @@ public class WechatPayValidator {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private void validateParameters(HttpServletRequest request) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          // NOTE: ensure HEADER_WECHAT_PAY_TIMESTAMP at last
 | 
	
		
			
				|  |  |          String[] headers = {WECHAT_PAY_SERIAL, WECHAT_PAY_SIGNATURE, WECHAT_PAY_NONCE, WECHAT_PAY_TIMESTAMP};
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -103,17 +103,12 @@ public class WechatPayValidator {
 | 
	
		
			
				|  |  |                  + body + "\n";
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    private String getResponseBody(CloseableHttpResponse response) throws IOException {
 | 
	
		
			
				|  |  | -        HttpEntity entity = response.getEntity();
 | 
	
		
			
				|  |  | -        return (entity != null && entity.isRepeatable()) ? EntityUtils.toString(entity) : "";
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 对称解密,异步通知的加密数据
 | 
	
		
			
				|  |  |       *
 | 
	
		
			
				|  |  |       * @param resource 加密数据
 | 
	
		
			
				|  |  |       * @param apiV3Key apiV3密钥
 | 
	
		
			
				|  |  | -     * @return
 | 
	
		
			
				|  |  | +     * @return JSONObject
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      public static JSONObject decryptFromResource(String resource, String apiV3Key) {
 | 
	
		
			
				|  |  |          log.info("回调通知,密文解密");
 |