createPayRequest调整
This commit is contained in:
parent
292a56f6f1
commit
235e26f350
@ -127,7 +127,7 @@ public class Pay3Api {
|
||||
* @return 支付json串
|
||||
* @throws WeixinPayException
|
||||
*/
|
||||
public MchPayRequest createPayJsRequestJson(String openId, String body,
|
||||
public MchPayRequest createPayJsRequest(String openId, String body,
|
||||
String outTradeNo, double totalFee, String notifyUrl,
|
||||
String createIp) throws WeixinPayException {
|
||||
return createPayJsRequest(openId, body, outTradeNo, totalFee,
|
||||
|
||||
@ -111,11 +111,11 @@ public class WeixinPayProxy {
|
||||
* @see com.foxinmy.weixin4j.payment.mch.MchPayRequest
|
||||
* @throws WeixinPayException
|
||||
*/
|
||||
public MchPayRequest createPayJsRequestJson(String openId, String body,
|
||||
public MchPayRequest createPayJsRequest(String openId, String body,
|
||||
String outTradeNo, double totalFee, String notifyUrl,
|
||||
String createIp) throws WeixinPayException {
|
||||
return pay3Api.createPayJsRequestJson(openId, body, outTradeNo,
|
||||
totalFee, notifyUrl, createIp);
|
||||
return pay3Api.createPayJsRequest(openId, body, outTradeNo, totalFee,
|
||||
notifyUrl, createIp);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -43,14 +43,12 @@ public class MchPayRequest extends PayRequest {
|
||||
}
|
||||
|
||||
public MchPayRequest(PrePay prePay) {
|
||||
this.setAppId(prePay.getAppId());
|
||||
this.setPackageInfo("prepay_id=" + prePay.getPrepayId());
|
||||
super(prePay.getAppId(), "prepay_id=" + prePay.getPrepayId());
|
||||
this.prePay = prePay;
|
||||
}
|
||||
|
||||
public MchPayRequest(String appId, String prepayId) {
|
||||
this.setAppId(appId);
|
||||
this.setPackageInfo("prepay_id=" + prepayId);
|
||||
super(appId, "prepay_id=" + prepayId);
|
||||
this.prePay = new PrePay();
|
||||
this.prePay.setAppId(appId);
|
||||
this.prePay.setPrepayId(prepayId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user