更新 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 {
private final Logger logger = LoggerFactory.getLogger(SMSService.class);
@Autowired
private ApiSettingService apiSettingService;
@Autowired
private TokenService tokenService;
@Autowired
private QyWeChatURLService qyWeChatURLService;
private final ApiSettingService apiSettingService;
private final TokenService tokenService;
private final QyWeChatURLService qyWeChatURLService;
public SMSService(ApiSettingService apiSettingService, TokenService tokenService, QyWeChatURLService qyWeChatURLService) {
this.apiSettingService = apiSettingService;
this.tokenService = tokenService;
this.qyWeChatURLService = qyWeChatURLService;
}
public ServerResponseEntity getSMSInfo(String accessToken, SMSInfo smsInfo){
String correctAccessToken = tokenService.getApiAccessToken();