|
@@ -97,15 +97,6 @@ public class OrderPayOpsServiceImpl implements OrderPayOpsService {
|
|
|
throw new Exception("PaymentParam query is null");
|
|
|
}
|
|
|
|
|
|
- StudentPaymentOrder studentPaymentOrder = studentPaymentOrderService.findOrderByOrderNo(payParam.getOrderNo());
|
|
|
- if(studentPaymentOrder == null) {
|
|
|
- throw new BizException("参数错误");
|
|
|
- }
|
|
|
-
|
|
|
- payParam.setPayerName(studentPaymentOrder.getPaymentChannel());
|
|
|
-
|
|
|
- //签名验证
|
|
|
- checkSing(payParam);
|
|
|
//返回值
|
|
|
Map<String, Object> payment;
|
|
|
|
|
@@ -115,6 +106,17 @@ public class OrderPayOpsServiceImpl implements OrderPayOpsService {
|
|
|
//主动延迟检查订单
|
|
|
delayCheckTenant();
|
|
|
} else {
|
|
|
+
|
|
|
+ StudentPaymentOrder studentPaymentOrder = studentPaymentOrderService.findOrderByOrderNo(payParam.getOrderNo());
|
|
|
+ if(studentPaymentOrder == null) {
|
|
|
+ throw new BizException("参数错误");
|
|
|
+ }
|
|
|
+
|
|
|
+ payParam.setPayerName(studentPaymentOrder.getPaymentChannel());
|
|
|
+
|
|
|
+ //签名验证
|
|
|
+ checkSing(payParam);
|
|
|
+
|
|
|
//如果以上操作都没有 则应该是这一个,因为老代码就是这样写的。
|
|
|
payment = student(payParam);
|
|
|
}
|
|
@@ -158,7 +160,12 @@ public class OrderPayOpsServiceImpl implements OrderPayOpsService {
|
|
|
if (tenantOrderRecord.getOrderState() != 0) {
|
|
|
throw new BizException("订单已处理!");
|
|
|
}
|
|
|
+ payParam.setPayerName(tenantOrderRecord.getPaymentChannel());
|
|
|
payParam.setMerNo(tenantOrderRecord.getMerNos());
|
|
|
+
|
|
|
+ //签名验证
|
|
|
+ checkSing(payParam);
|
|
|
+
|
|
|
//获取支付数据
|
|
|
Map<String, Object> payment;
|
|
|
try {
|