Commit d49be09f authored by zhang_z's avatar zhang_z

修改;

parent 0ea7dadf
...@@ -62,15 +62,19 @@ public class Factory extends com.xingdata.zxpay.api.Factory { ...@@ -62,15 +62,19 @@ public class Factory extends com.xingdata.zxpay.api.Factory {
switch (payChannel) { switch (payChannel) {
case com.xingdata.zxpay.C.PAY_CHANNEL.ALI: case com.xingdata.zxpay.C.PAY_CHANNEL.ALI:
request.setTradeType(C.TRADE_TYPE.ALI); request.setTradeType(C.TRADE_TYPE.ALI);
request.setKey(PayCenter.getInstance().mShopppp.getHshopKeyAlipay());
break; break;
case com.xingdata.zxpay.C.PAY_CHANNEL.WECHAT: case com.xingdata.zxpay.C.PAY_CHANNEL.WECHAT:
request.setTradeType(C.TRADE_TYPE.WECHAT); request.setTradeType(C.TRADE_TYPE.WECHAT);
request.setKey(PayCenter.getInstance().mShopppp.getHshopKeyWechat());
break; break;
case com.xingdata.zxpay.C.PAY_CHANNEL.BANK: case com.xingdata.zxpay.C.PAY_CHANNEL.BANK:
request.setTradeType(C.TRADE_TYPE.UNION); request.setTradeType(C.TRADE_TYPE.UNION);
request.setKey(PayCenter.getInstance().mShopppp.getHshopKeyUnipay());
break; break;
} }
request.sign(); request.sign();
return run(Api.getInstance().service.action(request)) return run(Api.getInstance().service.action(request))
.map(new ResultFilter()) .map(new ResultFilter())
.doFinally(() -> orderMap.put(request.getOutTransactionNo(), request.getTimeStart())); .doFinally(() -> orderMap.put(request.getOutTransactionNo(), request.getTimeStart()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment