订单属性接口化,暂时用做自定义属性使用,下一步具体化支付订单对象

This commit is contained in:
egzosn
2020-01-05 22:38:50 +08:00
parent f5accfbf60
commit afd3797f03
11 changed files with 56 additions and 647 deletions

View File

@@ -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);
}