|
|
@@ -76,7 +76,7 @@ public class NongPayService {
|
|
|
// body.put("amount", payAmount);
|
|
|
body.put("subject", body.get("subject"));
|
|
|
body.put("body", body.get("body"));
|
|
|
- String notifyUrl = "http://218.93.214.118:6080/NongPay/notify"
|
|
|
+ String notifyUrl = "https://huaihai-tech.com/mzHisPay/thmz/NongPay/notifyCodeImg"
|
|
|
.trim()
|
|
|
.replaceAll("\\s+", "");
|
|
|
body.put("notifyUrl", notifyUrl);
|
|
|
@@ -131,15 +131,20 @@ public class NongPayService {
|
|
|
log.info("body={}", JSONObject.toJSONString(body));
|
|
|
String payOrderId = (String) body.get("payOrderId");
|
|
|
String mchOrderNo = (String) body.get("mchOrderNo");
|
|
|
+ String channelOrderNo = (String) body.get("channelOrderNo");
|
|
|
+ String successTime = (String) body.get("successTime");
|
|
|
String extParam = (String) body.get("extParam");
|
|
|
- int state = (Integer) body.get("state");
|
|
|
- if(state == 2) {
|
|
|
+ String state = (String) body.get("state");
|
|
|
+ if("2".equals(state)) {
|
|
|
JSONObject extraParam = JSONObject.parseObject(extParam);
|
|
|
List<MzDepositFile> mzDepositFiles = new ArrayList<>();
|
|
|
MzDepositFile mzDepositFile = new MzDepositFile();
|
|
|
mzDepositFile.setChequeType("O");
|
|
|
- mzDepositFile.setAmount(extraParam.getBigDecimal("amount"));
|
|
|
+ mzDepositFile.setPsordnum(payOrderId);
|
|
|
+ mzDepositFile.setAgtordnum(channelOrderNo);
|
|
|
+ mzDepositFile.setAmount(new BigDecimal(extraParam.getString("amount")));
|
|
|
mzDepositFile.setTraceNo(mchOrderNo);
|
|
|
+ mzDepositFile.setTransDate(successTime);
|
|
|
mzDepositFiles.add(mzDepositFile);
|
|
|
MzDepositFileVo mzDepositFileVo = new MzDepositFileVo();
|
|
|
mzDepositFileVo.setPatientId(extraParam.getString("patientId"));
|