diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java index a47638cfe..9bb7d2e4e 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java @@ -946,7 +946,11 @@ public class WxMerchantServiceImpl implements WxMerchantService { receiver.setPlat(EnumAppPlat.WX.getCode()); } StringBuffer psb = new StringBuffer("{\"").append(Constant.paymentReceiverParamIsv).append("\":").append(wxMerchant.getIsIsv()).append(""); - psb.append(",\"").append(Constant.paymentReceicerParamApiKey).append("\":\"").append(wxMerchant.getApiKey()).append("\"}"); + if (EnumYesOrNo.YES.getCode().intValue()== wxMerchant.getIsIsv().intValue()) { + psb.append("}"); + }else { + psb.append(",\"").append(Constant.paymentReceicerParamApiKey).append("\":\"").append(wxMerchant.getApiKey()).append("\"}"); + } receiver.setReceiverAccount(wxMerchant.getAccount()); receiver.setReceiverParams(psb.toString()); wxProfitPaymentReceiverService.saveOrUpdate(receiver);