mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-09 22:09:05 +00:00
style 一些常量和参数的调整
This commit is contained in:
@@ -18,7 +18,7 @@ public class UnionPayWay {
|
||||
|
||||
// 支付方式
|
||||
private static final List<PayWayEnum> PAY_WAYS = Arrays.asList(PayWayEnum.WAP, PayWayEnum.APP, PayWayEnum.WEB,
|
||||
PayWayEnum.JSAPI, PayWayEnum.QRCODE, PayWayEnum.BARCODE,PayWayEnum.B2B);
|
||||
PayWayEnum.JSAPI, PayWayEnum.QRCODE, PayWayEnum.BARCODE );
|
||||
|
||||
/**
|
||||
* 根据编码获取
|
||||
|
@@ -84,7 +84,7 @@ public class UnionPayService {
|
||||
else if (payWayEnum == PayWayEnum.WAP) {
|
||||
payBody = this.formPay(totalFee, payOrder, unionPayKit, UnionTransactionType.WAP );
|
||||
}
|
||||
// b2b支付
|
||||
// b2b支付 TODO 未完成
|
||||
else if (payWayEnum == PayWayEnum.B2B) {
|
||||
payBody = this.b2bPay(totalFee, payOrder, unionPayKit);
|
||||
}
|
||||
@@ -102,7 +102,6 @@ public class UnionPayService {
|
||||
unionPayOrder.setOutTradeNo(String.valueOf(payOrder.getId()));
|
||||
unionPayOrder.setSubject(payOrder.getTitle());
|
||||
unionPayOrder.setPrice(amount);
|
||||
unionPayOrder.setBankType();
|
||||
unionPayOrder.setExpirationTime(expiredTime);
|
||||
unionPayOrder.setTransactionType(type);
|
||||
return unionPayKit.toPay(unionPayOrder);
|
||||
|
Reference in New Issue
Block a user