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