commit
e4b55590fc
@ -54,8 +54,6 @@ public class SmsTemplateServiceImpl implements SmsTemplateService {
|
|||||||
@Resource
|
@Resource
|
||||||
private SmsChannelService smsChannelService;
|
private SmsChannelService smsChannelService;
|
||||||
|
|
||||||
@Resource
|
|
||||||
private SmsClientFactory smsClientFactory;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Long createSmsTemplate(SmsTemplateCreateReqVO createReqVO) {
|
public Long createSmsTemplate(SmsTemplateCreateReqVO createReqVO) {
|
||||||
@ -174,7 +172,7 @@ public class SmsTemplateServiceImpl implements SmsTemplateService {
|
|||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
void validateApiTemplate(Long channelId, String apiTemplateId) {
|
void validateApiTemplate(Long channelId, String apiTemplateId) {
|
||||||
// 获得短信模板
|
// 获得短信模板
|
||||||
SmsClient smsClient = smsClientFactory.getSmsClient(channelId);
|
SmsClient smsClient = smsChannelService.getSmsClient(channelId);
|
||||||
Assert.notNull(smsClient, String.format("短信客户端(%d) 不存在", channelId));
|
Assert.notNull(smsClient, String.format("短信客户端(%d) 不存在", channelId));
|
||||||
SmsCommonResult<SmsTemplateRespDTO> templateResult = smsClient.getSmsTemplate(apiTemplateId);
|
SmsCommonResult<SmsTemplateRespDTO> templateResult = smsClient.getSmsTemplate(apiTemplateId);
|
||||||
// 校验短信模板是否正确
|
// 校验短信模板是否正确
|
||||||
|
Loading…
Reference in New Issue
Block a user