微信支付

This commit is contained in:
wangjinlei
2024-06-19 15:27:16 +08:00
parent 8e41a4215b
commit 2a115db799
8 changed files with 31 additions and 6 deletions

View File

@@ -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;
/**
* 商户号
*/

View File

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