更新 CallService.java

pull/1/head
wangsiyuan 2023-12-16 14:33:19 +08:00
parent 48efd66cbf
commit 5f8f281bec
1 changed files with 10 additions and 5 deletions

View File

@ -20,12 +20,17 @@ import java.io.IOException;
@Service
public class CallService {
private final Logger logger = LoggerFactory.getLogger(CallService.class);
@Autowired
private QyWeChatURLService qyWeChatURLService;
@Autowired
private ApiSettingService apiSettingService;
@Autowired
private final QyWeChatURLService qyWeChatURLService;
private final ApiSettingService apiSettingService;
final
TokenService tokenService;
public CallService(QyWeChatURLService qyWeChatURLService, ApiSettingService apiSettingService, TokenService tokenService) {
this.qyWeChatURLService = qyWeChatURLService;
this.apiSettingService = apiSettingService;
this.tokenService = tokenService;
}
public ServerResponseEntity getPhoneNumber(String accessToken, CallInfo callInfo){
String correctAccessToken = tokenService.getApiAccessToken();
logger.info("accessToken: {} correctAccessToken: {}",accessToken,correctAccessToken);