mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-05 16:09:47 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -20,10 +20,7 @@ public class WxPayConfigStorage extends BasePayConfigStorage {
|
||||
public String mchId;
|
||||
|
||||
|
||||
@Override
|
||||
public String getSecretKey() {
|
||||
return appSecret;
|
||||
}
|
||||
|
||||
|
||||
public void setAppSecret(String appSecret) {
|
||||
this.appSecret = appSecret;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.egzosn.pay.wx.api;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.egzosn.pay.common.api.BasePayService;
|
||||
import com.egzosn.pay.common.api.Callback;
|
||||
@@ -566,10 +565,10 @@ public class WxPayService extends BasePayService {
|
||||
|
||||
//获取公共参数
|
||||
Map<String, Object> parameters = getPublicParameters();
|
||||
if (null != transactionIdOrBillDate){
|
||||
parameters.put("transaction_id", transactionIdOrBillDate);
|
||||
}else {
|
||||
if (null == transactionIdOrBillDate || "".equals(transactionIdOrBillDate)){
|
||||
parameters.put("out_trade_no", outTradeNoBillType);
|
||||
}else {
|
||||
parameters.put("transaction_id", transactionIdOrBillDate);
|
||||
}
|
||||
//设置签名
|
||||
setSign(parameters);
|
||||
|
||||
Reference in New Issue
Block a user