微信支付
This commit is contained in:
@@ -45,6 +45,8 @@ public class WechatPayConfig implements Serializable {
|
||||
private String appId;//fzds
|
||||
@Value("${wxpay.zmzmappId}")
|
||||
private String zmzmappId;
|
||||
@Value("${wxpay.wumenappId}")
|
||||
private String wumenappId;
|
||||
/**
|
||||
* 商户号
|
||||
*/
|
||||
|
||||
@@ -86,6 +86,8 @@ public class WxpayServiceImpl extends ServiceImpl<PayWechatOrderDao, PayWechatOr
|
||||
appid = wechatPayConfig.getAppId();
|
||||
}else if ("zmzm".equals(paymentInfo.getAppName())){
|
||||
appid = wechatPayConfig.getZmzmappId();
|
||||
} else if ("wumen".equals(paymentInfo.getAppName())) {
|
||||
appid = wechatPayConfig.getWumenappId();
|
||||
}
|
||||
// app id
|
||||
paramMap.put("appid", appid);
|
||||
|
||||
Reference in New Issue
Block a user