123
This commit is contained in:
@@ -64,7 +64,7 @@ public class PayTrdV1Service implements PayTrdService {
|
|||||||
throw new ServiceException("调用支付失败");
|
throw new ServiceException("调用支付失败");
|
||||||
}
|
}
|
||||||
if(!"SUCCESS".equals(jsonObject.getString("retCode"))){
|
if(!"SUCCESS".equals(jsonObject.getString("retCode"))){
|
||||||
log.info("第三方支付失败 V1统一支付失败失败 dto={}, payTrdConfig={}, typeEnum={}", body, JSON.toJSONString(payTrdConfig), JSON.toJSONString(jsonObject));
|
log.info("第三方支付失败 V1统一支付失败失败 url={} body={}, payTrdConfig={}, typeEnum={}", url, body, JSON.toJSONString(payTrdConfig), JSON.toJSONString(jsonObject));
|
||||||
throw new ServiceException("调用支付失败");
|
throw new ServiceException("调用支付失败");
|
||||||
}
|
}
|
||||||
String payUrl = jsonObject.getJSONObject("payParams").getString("payUrl");
|
String payUrl = jsonObject.getJSONObject("payParams").getString("payUrl");
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ public class PayTrdV2Service implements PayTrdService {
|
|||||||
throw new ServiceException("调用支付失败");
|
throw new ServiceException("调用支付失败");
|
||||||
}
|
}
|
||||||
if(!"0".equals(jsonObject.getString("retCode"))){
|
if(!"0".equals(jsonObject.getString("retCode"))){
|
||||||
log.info("第三方支付失败 V2统一支付失败失败 dto={}, payTrdConfig={}, typeEnum={}", body, JSON.toJSONString(payTrdConfig), JSON.toJSONString(jsonObject));
|
log.info("第三方支付失败 V2统一支付失败失败 url={} body={}, payTrdConfig={}, typeEnum={}", url, body, JSON.toJSONString(payTrdConfig), JSON.toJSONString(jsonObject));
|
||||||
throw new ServiceException("调用支付失败");
|
throw new ServiceException("调用支付失败");
|
||||||
}
|
}
|
||||||
String payMethod = jsonObject.getString("payMethod");
|
String payMethod = jsonObject.getString("payMethod");
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public class PayTrdV3Service implements PayTrdService {
|
|||||||
throw new ServiceException("调用支付失败");
|
throw new ServiceException("调用支付失败");
|
||||||
}
|
}
|
||||||
if(!"SUCCESS".equals(jsonObject.getString("retCode"))){
|
if(!"SUCCESS".equals(jsonObject.getString("retCode"))){
|
||||||
log.info("第三方支付失败 V3 统一支付失败失败 dto={}, payTrdConfig={}, typeEnum={}", body, JSON.toJSONString(payTrdConfig), JSON.toJSONString(jsonObject));
|
log.info("第三方支付失败 V3 统一支付失败失败 url={} body={}, payTrdConfig={}, typeEnum={}", url,body, JSON.toJSONString(payTrdConfig), JSON.toJSONString(jsonObject));
|
||||||
throw new ServiceException("调用支付失败");
|
throw new ServiceException("调用支付失败");
|
||||||
}
|
}
|
||||||
String payUrl = jsonObject.getJSONObject("payParams").getString("payUrl");
|
String payUrl = jsonObject.getJSONObject("payParams").getString("payUrl");
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public class PayTrdV4Service implements PayTrdService {
|
|||||||
throw new ServiceException("调用支付失败");
|
throw new ServiceException("调用支付失败");
|
||||||
}
|
}
|
||||||
if(!"0000".equals(jsonObject.getString("code"))){
|
if(!"0000".equals(jsonObject.getString("code"))){
|
||||||
log.info("第三方支付失败 V4 统一支付失败失败 dto={}, payTrdConfig={}, typeEnum={}", body, JSON.toJSONString(payTrdConfig), JSON.toJSONString(jsonObject));
|
log.info("第三方支付失败 V4 统一支付失败失败 url={} body={}, payTrdConfig={}, typeEnum={}", url, body, JSON.toJSONString(payTrdConfig), JSON.toJSONString(jsonObject));
|
||||||
throw new ServiceException("调用支付失败");
|
throw new ServiceException("调用支付失败");
|
||||||
}
|
}
|
||||||
String payUrl = jsonObject.getJSONObject("data").getString("url");
|
String payUrl = jsonObject.getJSONObject("data").getString("url");
|
||||||
|
|||||||
Reference in New Issue
Block a user