移除过期方法

This commit is contained in:
egzosn@gmail.com
2017-07-28 17:08:11 +08:00
parent 12b9d3eac3
commit f9e779f596
5 changed files with 3 additions and 28 deletions

View File

@@ -33,10 +33,6 @@ public class AliPayConfigStorage extends BasePayConfigStorage {
this.aliPublicKey = aliPublicKey;
}
@Override
public String getSecretKey() {
return aliPublicKey;
}
public void setAppId(String appId) {

View File

@@ -69,7 +69,6 @@ public enum PayType implements BasePayType {
public PayService getPayService(ApyAccount apyAccount) {
WxPayConfigStorage wxPayConfigStorage = new WxPayConfigStorage();
wxPayConfigStorage.setMchId(apyAccount.getPartner());
wxPayConfigStorage.setAppSecret(apyAccount.getPublicKey());
wxPayConfigStorage.setKeyPublic(apyAccount.getPublicKey());
wxPayConfigStorage.setAppid(apyAccount.getAppid());
wxPayConfigStorage.setKeyPrivate(apyAccount.getPrivateKey());
@@ -127,6 +126,7 @@ public enum PayType implements BasePayType {
@Override
public PayService getPayService(ApyAccount apyAccount) {
FuiouPayConfigStorage fuiouPayConfigStorage = new FuiouPayConfigStorage();
fuiouPayConfigStorage.setKeyPublic(apyAccount.getPublicKey());
fuiouPayConfigStorage.setKeyPrivate(apyAccount.getPrivateKey());
fuiouPayConfigStorage.setNotifyUrl(apyAccount.getNotifyUrl());
fuiouPayConfigStorage.setReturnUrl(apyAccount.getReturnUrl());
@@ -140,7 +140,6 @@ public enum PayType implements BasePayType {
@Override
public TransactionType getTransactionType(String transactionType) {
// in.egan.pay.ali.before.bean.AliTransactionType 17年更新的版本,旧版本请自行切换
return FuiouTransactionType.valueOf(transactionType);
}

View File

@@ -10,7 +10,6 @@ import com.egzosn.pay.common.api.BasePayConfigStorage;
public class FuiouPayConfigStorage extends BasePayConfigStorage {
public String mchntCd;//商户代码
public String mchntKey;//商户密钥
/**
* 应用id
@@ -54,13 +53,4 @@ public class FuiouPayConfigStorage extends BasePayConfigStorage {
return null;
}
@Override
public String getSecretKey() {
return super.getKeyPrivate();
}
public void setSecretKey(String mchntKey){
this.mchntKey = mchntKey;
setKeyPrivate(mchntKey);
}
}

View File

@@ -11,20 +11,13 @@ import com.egzosn.pay.common.api.BasePayConfigStorage;
*/
public class WxYouDianPayConfigStorage extends BasePayConfigStorage {
public volatile String secretKey;
//账号
public volatile String seller;
public void setSecretKey(String secretKey) {
this.secretKey = secretKey;
}
@Override
public String getSecretKey() {
return secretKey;
}
@Override

View File

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