mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
汇付支付订单
This commit is contained in:
@@ -158,12 +158,7 @@ public class OrderService {
|
||||
} else if (StringUtils.equals(dto.getPayMode(), OrderPayModeEnum.PAYMENT_OF_WECHATPAY.getValue())) {
|
||||
// 微信支付
|
||||
dto.setOrderBasicInfo(orderInfo);
|
||||
Map<String, Object> weixinMap = null;
|
||||
if (stationIdList.contains("all") || stationIdList.contains(orderInfo.getStationId())) {
|
||||
weixinMap = adapayPayOrder(dto);
|
||||
} else {
|
||||
weixinMap = wechatPayOrder(dto);
|
||||
}
|
||||
Map<String, Object> weixinMap = wechatPayOrder(dto);
|
||||
// 返回微信支付参数
|
||||
resultMap.put("weixinMap", weixinMap);
|
||||
} else if (StringUtils.equals(dto.getPayMode(), OrderPayModeEnum.PAYMENT_OF_ALIPAY.getValue())) { // 支付宝支付
|
||||
@@ -176,7 +171,11 @@ public class OrderService {
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 使用adapay支付订单
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object> payOrderWithAdapay(PayOrderDTO dto) {
|
||||
OrderBasicInfo orderInfo = orderBasicInfoService.getOrderInfoByOrderCode(dto.getOrderCode());
|
||||
if (orderInfo == null) {
|
||||
|
||||
Reference in New Issue
Block a user