Merge remote-tracking branch 'origin/2.0-dev' into 2.0-dev

new-dev
袁野 1 year ago
commit 1a6a50c65f
  1. 4
      hai-order/src/main/java/com/web/controller/OrderPayController.java
  2. 5
      hai-service/src/main/java/com/hai/service/impl/BsConfigServiceImpl.java

@ -228,7 +228,7 @@ public class OrderPayController {
if (store.getSourceType().equals(MerchantStoreSourceType.type1.getNumber())) { if (store.getSourceType().equals(MerchantStoreSourceType.type1.getNumber())) {
// 查询支付配置 // 查询支付配置
HighGasChannelConfig gasChannelConfig = gasChannelConfigService.getConfig(GasChannel.type1, GasChannelPayPlatformType.type1); HighGasChannelConfig gasChannelConfig = gasChannelConfigService.getConfig(GasChannel.type1);
if (gasChannelConfig == null) { if (gasChannelConfig == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未配置支付参数,请稍后重试!"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未配置支付参数,请稍后重试!");
} }
@ -582,7 +582,7 @@ public class OrderPayController {
payParam.put("outTradeNo" , order.getOrderNo()); payParam.put("outTradeNo" , order.getOrderNo());
payParam.put("transType" , "JSAPI"); payParam.put("transType" , "JSAPI");
payParam.put("payMode" , "ALIPAY"); payParam.put("payMode" , "ALIPAY");
payParam.put("totalAmount" , order.getPayRealPrice()); payParam.put("totalAmount" , order.getPayablePrice());
payParam.put("profitSharing" , profitSharing.equals("Y")?1:0); payParam.put("profitSharing" , profitSharing.equals("Y")?1:0);
payParam.put("notifyUrl" , SysConst.getSysConfig().getHuiPayNotify()); payParam.put("notifyUrl" , SysConst.getSysConfig().getHuiPayNotify());
payParam.put("subject" , orderTitle); payParam.put("subject" , orderTitle);

@ -108,6 +108,11 @@ public class BsConfigServiceImpl implements BsConfigService {
stringName.append(productPayType.getPayTypeName()).append(","); stringName.append(productPayType.getPayTypeName()).append(",");
string.append(productPayType.getPayTypeId()).append(","); string.append(productPayType.getPayTypeId()).append(",");
} }
} else if (platformId == 4) {
if (productPayType.getPayTypeId() == 1 || productPayType.getPayTypeId() == 3 || productPayType.getPayTypeId() == 6 || productPayType.getPayTypeId() == 7) {
stringName.append(productPayType.getPayTypeName()).append(",");
string.append(productPayType.getPayTypeId()).append(",");
}
} }
} else { } else {
stringName.append(productPayType.getPayTypeName()).append(","); stringName.append(productPayType.getPayTypeName()).append(",");

Loading…
Cancel
Save