From 9341c1891f6b9f1cafb2487b0fe3c3848f06720c Mon Sep 17 00:00:00 2001 From: Fanjc <271366833@qq.com> Date: Thu, 19 Oct 2023 03:13:36 +0000 Subject: [PATCH] =?UTF-8?q?bug=20=E4=BF=AE=E5=A4=8D1.82=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=AF=BC=E8=87=B4=E7=9A=84=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=97=A0=E6=B3=95=E4=BF=AE=E6=94=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fanjc <271366833@qq.com> --- .../module/system/service/sms/SmsTemplateServiceImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/sms/SmsTemplateServiceImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/sms/SmsTemplateServiceImpl.java index 0f276a915..8eefb2a2e 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/sms/SmsTemplateServiceImpl.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/sms/SmsTemplateServiceImpl.java @@ -54,8 +54,6 @@ public class SmsTemplateServiceImpl implements SmsTemplateService { @Resource private SmsChannelService smsChannelService; - @Resource - private SmsClientFactory smsClientFactory; @Override public Long createSmsTemplate(SmsTemplateCreateReqVO createReqVO) { @@ -174,7 +172,7 @@ public class SmsTemplateServiceImpl implements SmsTemplateService { @VisibleForTesting void validateApiTemplate(Long channelId, String apiTemplateId) { // 获得短信模板 - SmsClient smsClient = smsClientFactory.getSmsClient(channelId); + SmsClient smsClient = smsChannelService.getSmsClient(channelId); Assert.notNull(smsClient, String.format("短信客户端(%d) 不存在", channelId)); SmsCommonResult templateResult = smsClient.getSmsTemplate(apiTemplateId); // 校验短信模板是否正确