|
@@ -100,24 +100,24 @@ public class OrderPayOpsServiceImpl implements OrderPayOpsService {
|
|
|
|
|
|
//返回值
|
|
//返回值
|
|
Map<String, Object> payment;
|
|
Map<String, Object> payment;
|
|
-
|
|
|
|
if (WrapperUtil.checkStr(payParam.getPlatform(), tenantPlatform)) {
|
|
if (WrapperUtil.checkStr(payParam.getPlatform(), tenantPlatform)) {
|
|
//tenant 机构开通、续费付款、 cloudTeacherOrder 团练宝激活支付、tenantRecharge 机构充值
|
|
//tenant 机构开通、续费付款、 cloudTeacherOrder 团练宝激活支付、tenantRecharge 机构充值
|
|
payment = tenantPlatformOrder(payParam);
|
|
payment = tenantPlatformOrder(payParam);
|
|
//主动延迟检查订单
|
|
//主动延迟检查订单
|
|
delayCheckTenant();
|
|
delayCheckTenant();
|
|
} else {
|
|
} else {
|
|
-
|
|
|
|
StudentPaymentOrder studentPaymentOrder = studentPaymentOrderService.findOrderByOrderNo(payParam.getOrderNo());
|
|
StudentPaymentOrder studentPaymentOrder = studentPaymentOrderService.findOrderByOrderNo(payParam.getOrderNo());
|
|
if(studentPaymentOrder == null) {
|
|
if(studentPaymentOrder == null) {
|
|
- throw new BizException("参数错误");
|
|
|
|
|
|
+ throw new BizException("参数错误");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
payParam.setPayerName(studentPaymentOrder.getPaymentChannel());
|
|
payParam.setPayerName(studentPaymentOrder.getPaymentChannel());
|
|
|
|
|
|
//签名验证
|
|
//签名验证
|
|
checkSing(payParam);
|
|
checkSing(payParam);
|
|
-
|
|
|
|
|
|
+ String baseApiUrl = sysConfigDao.findConfigValue("base_api_url");
|
|
|
|
+ payParam.setNotifyUrl(baseApiUrl + "/api-student/studentOrder/callback/" + payParam.getOrderNo());
|
|
|
|
+
|
|
//如果以上操作都没有 则应该是这一个,因为老代码就是这样写的。
|
|
//如果以上操作都没有 则应该是这一个,因为老代码就是这样写的。
|
|
payment = student(payParam);
|
|
payment = student(payParam);
|
|
}
|
|
}
|
|
@@ -167,6 +167,8 @@ public class OrderPayOpsServiceImpl implements OrderPayOpsService {
|
|
|
|
|
|
//签名验证
|
|
//签名验证
|
|
checkSing(payParam);
|
|
checkSing(payParam);
|
|
|
|
+ String baseApiUrl = sysConfigDao.findConfigValue("base_api_url");
|
|
|
|
+ payParam.setNotifyUrl(baseApiUrl + "/api-web/tenantInfo/callback/" + payParam.getOrderNo());
|
|
|
|
|
|
//获取支付数据
|
|
//获取支付数据
|
|
Map<String, Object> payment;
|
|
Map<String, Object> payment;
|
|
@@ -258,7 +260,7 @@ public class OrderPayOpsServiceImpl implements OrderPayOpsService {
|
|
Map<String, Object> paymentParams = getPaymentParam(payParam, clazz, hfMerchantConfig.getPlatformPayeeMemberId());
|
|
Map<String, Object> paymentParams = getPaymentParam(payParam, clazz, hfMerchantConfig.getPlatformPayeeMemberId());
|
|
paymentParams.put("time_expire", timeExpire);
|
|
paymentParams.put("time_expire", timeExpire);
|
|
paymentParams.put("expend", getExpend(hfMerchantConfig, payParam));
|
|
paymentParams.put("expend", getExpend(hfMerchantConfig, payParam));
|
|
-// paymentParams.put("notify_url", payParam.getNotifyUrl());
|
|
|
|
|
|
+ paymentParams.put("notify_url", payParam.getNotifyUrl());
|
|
//向第三方发起支付,获取第三方的支付的信息
|
|
//向第三方发起支付,获取第三方的支付的信息
|
|
payment = Payment.executePayment(hfMerchantConfig.getAppId(), hfMerchantConfig.getMerKey(), paymentParams);
|
|
payment = Payment.executePayment(hfMerchantConfig.getAppId(), hfMerchantConfig.getMerKey(), paymentParams);
|
|
|
|
|
|
@@ -272,7 +274,7 @@ public class OrderPayOpsServiceImpl implements OrderPayOpsService {
|
|
params.put("merchantNo", hfMerchantConfig.getPlatformPayeeMemberId());
|
|
params.put("merchantNo", hfMerchantConfig.getPlatformPayeeMemberId());
|
|
params.put("orderId", payParam.getOrderNo());
|
|
params.put("orderId", payParam.getOrderNo());
|
|
params.put("orderAmount", payParam.getAmount());
|
|
params.put("orderAmount", payParam.getAmount());
|
|
-// params.put("notifyUrl", payParam.getNotifyUrl());
|
|
|
|
|
|
+ params.put("notifyUrl", payParam.getNotifyUrl());
|
|
params.put("redirectUrl", payParam.getReturnUrl());
|
|
params.put("redirectUrl", payParam.getReturnUrl());
|
|
params.put("scene", "OFFLINE");
|
|
params.put("scene", "OFFLINE");
|
|
params.put("goodsName", payParam.getOrderSubject());
|
|
params.put("goodsName", payParam.getOrderSubject());
|