Authored by LUOXC

fixbug

@@ -329,7 +329,6 @@ public abstract class AbstractWeixinPayService extends AbstractPayService { @@ -329,7 +329,6 @@ public abstract class AbstractWeixinPayService extends AbstractPayService {
329 log.error("[{}] valid prepay response failed", orderInfo.getOrderCode()); 329 log.error("[{}] valid prepay response failed", orderInfo.getOrderCode());
330 return null; 330 return null;
331 } 331 }
332 -  
333 JSONObject prepayJson = getPrepayData(requestParams, reponseMap); 332 JSONObject prepayJson = getPrepayData(requestParams, reponseMap);
334 log.info("[{}] response prepayData: {}", orderInfo.getOrderCode(), prepayJson); 333 log.info("[{}] response prepayData: {}", orderInfo.getOrderCode(), prepayJson);
335 return prepayJson; 334 return prepayJson;
@@ -494,6 +493,9 @@ public abstract class AbstractWeixinPayService extends AbstractPayService { @@ -494,6 +493,9 @@ public abstract class AbstractWeixinPayService extends AbstractPayService {
494 493
495 494
496 public boolean verifySign(Map<String, String> paramsMap) { 495 public boolean verifySign(Map<String, String> paramsMap) {
  496 + if (paramsMap == null) {
  497 + return false;
  498 + }
497 return verifySign(paramsMap, paramsMap.get(WeixinPayConfig.ApiConstants.SIGN_TYPE)); 499 return verifySign(paramsMap, paramsMap.get(WeixinPayConfig.ApiConstants.SIGN_TYPE));
498 } 500 }
499 501