更新 SMSService.java

pull/1/head
wangsiyuan 2023-12-19 14:27:03 +08:00
parent 3ebb79170c
commit 4fefc8136f
1 changed files with 9 additions and 6 deletions

View File

@ -19,12 +19,15 @@ import java.io.IOException;
public class SMSService { public class SMSService {
private final Logger logger = LoggerFactory.getLogger(SMSService.class); private final Logger logger = LoggerFactory.getLogger(SMSService.class);
@Autowired private final ApiSettingService apiSettingService;
private ApiSettingService apiSettingService; private final TokenService tokenService;
@Autowired private final QyWeChatURLService qyWeChatURLService;
private TokenService tokenService;
@Autowired public SMSService(ApiSettingService apiSettingService, TokenService tokenService, QyWeChatURLService qyWeChatURLService) {
private QyWeChatURLService qyWeChatURLService; this.apiSettingService = apiSettingService;
this.tokenService = tokenService;
this.qyWeChatURLService = qyWeChatURLService;
}
public ServerResponseEntity getSMSInfo(String accessToken, SMSInfo smsInfo){ public ServerResponseEntity getSMSInfo(String accessToken, SMSInfo smsInfo){
String correctAccessToken = tokenService.getApiAccessToken(); String correctAccessToken = tokenService.getApiAccessToken();