mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-22 18:11:39 +08:00
订单属性接口化,暂时用做自定义属性使用,下一步具体化支付订单对象
This commit is contained in:
@@ -246,11 +246,7 @@ public class UnionPayService extends BasePayService<UnionPayConfigStorage> {
|
||||
@Override
|
||||
public Map<String, Object> orderInfo(PayOrder order) {
|
||||
Map<String, Object> params = this.getCommonParam();
|
||||
// if(order instanceof UnionPayOrder){
|
||||
// UnionPayOrder unionPayOrder = (UnionPayOrder)order;
|
||||
// //todo 其他参数
|
||||
//// params.put();
|
||||
// }
|
||||
|
||||
UnionTransactionType type = (UnionTransactionType) order.getTransactionType();
|
||||
|
||||
|
||||
@@ -288,6 +284,7 @@ public class UnionPayService extends BasePayService<UnionPayConfigStorage> {
|
||||
params.put(SDKConstants.param_payTimeout, getPayTimeout(order.getExpirationTime()));
|
||||
params.put("orderDesc", order.getSubject());
|
||||
}
|
||||
params.putAll(order.getAttr());
|
||||
params = preOrderHandler(params, order);
|
||||
return setSign(params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user