We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b72d980 + 837f155 commit f153406Copy full SHA for f153406
1 file changed
yudao-module-pay/src/main/java/cn/iocoder/yudao/module/pay/service/channel/PayChannelServiceImpl.java
@@ -82,8 +82,8 @@ public void updateChannel(PayChannelUpdateReqVO updateReqVO) {
82
*/
83
private PayClientConfig parseConfig(String code, String configStr) {
84
// 解析配置
85
- Class<? extends PayClientConfig> payClass = PayChannelEnum.isAlipay(configStr) ? AlipayPayClientConfig.class
86
- : PayChannelEnum.isWeixin(configStr) ? WxPayClientConfig.class
+ Class<? extends PayClientConfig> payClass = PayChannelEnum.isAlipay(code) ? AlipayPayClientConfig.class
+ : PayChannelEnum.isWeixin(code) ? WxPayClientConfig.class
87
: NonePayClientConfig.class;
88
if (ObjectUtil.isNull(payClass)) {
89
throw exception(CHANNEL_NOT_FOUND);
0 commit comments