|
|
@@ -100,7 +100,10 @@ public class EzPay {
|
|
|
postData.put("RespondType", "JSON");
|
|
|
postData.put("Version", "1.5");
|
|
|
postData.put("Status", "1"); // 1=即时开立
|
|
|
- return doPost(baseUrl + URL_ISSUE, config, postData);
|
|
|
+ log.info("[EzPay] invoice_issue 请求明文参数: {}", postData);
|
|
|
+ JSONObject resp = doPost(baseUrl + URL_ISSUE, config, postData);
|
|
|
+ log.info("[EzPay] invoice_issue 回应: {}", resp);
|
|
|
+ return resp;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -183,10 +186,10 @@ public class EzPay {
|
|
|
return false;
|
|
|
}
|
|
|
String decrypted = EzPayEncryptUtil.decrypt(resultHex, config.getHashKey(), config.getHashIV());
|
|
|
- boolean exist = decrypted != null && decrypted.matches(".*IsExist=Y(\b|$).*");
|
|
|
- // decrypted 形如 CellphoneBarcode=%2FABC1234&IsExist=Y
|
|
|
- log.info("[EzPay] checkBarCode decrypted={}, isExist={}", decrypted, exist);
|
|
|
- return exist;
|
|
|
+// boolean exist = decrypted != null && decrypted.matches(".*IsExist=Y(\b|$).*");
|
|
|
+// // decrypted 形如 CellphoneBarcode=%2FABC1234&IsExist=Y
|
|
|
+// log.info("[EzPay] checkBarCode decrypted={}, isExist={}", decrypted, exist);
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
/**
|