bug 修复1.82版本升级导致的短信模板无法修改问题

Signed-off-by: Fanjc <271366833@qq.com>
pull/59/head
Fanjc 2023-10-19 03:13:36 +00:00 committed by Gitee
parent e8da08a2ea
commit 9341c1891f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 3 deletions

View File

@ -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<SmsTemplateRespDTO> templateResult = smsClient.getSmsTemplate(apiTemplateId);
// 校验短信模板是否正确