Compare commits
No commits in common. "5f8f281beceab259ee9a340e7f6763e1a88a718b" and "2bd7e2174181678fb14a5fe0eedda9f4d7b9fd09" have entirely different histories.
5f8f281bec
...
2bd7e21741
|
|
@ -14,14 +14,10 @@ import org.springframework.stereotype.Service;
|
|||
public class ApiSettingService {
|
||||
private final Logger logger = LoggerFactory.getLogger(ApiSettingService.class);
|
||||
private ApiSetting apiSetting;
|
||||
private final ApiSettingMapper apiSettingMapper;
|
||||
private final UserConfig userConfig;
|
||||
|
||||
public ApiSettingService(ApiSettingMapper apiSettingMapper, UserConfig userConfig) {
|
||||
this.apiSettingMapper = apiSettingMapper;
|
||||
this.userConfig = userConfig;
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private ApiSettingMapper apiSettingMapper;
|
||||
@Autowired
|
||||
private UserConfig userConfig;
|
||||
public ApiSetting getApiSetting() {
|
||||
if (apiSetting == null) {
|
||||
queryApiSetting();
|
||||
|
|
|
|||
|
|
@ -20,17 +20,12 @@ import java.io.IOException;
|
|||
@Service
|
||||
public class CallService {
|
||||
private final Logger logger = LoggerFactory.getLogger(CallService.class);
|
||||
private final QyWeChatURLService qyWeChatURLService;
|
||||
private final ApiSettingService apiSettingService;
|
||||
final
|
||||
@Autowired
|
||||
private QyWeChatURLService qyWeChatURLService;
|
||||
@Autowired
|
||||
private ApiSettingService apiSettingService;
|
||||
@Autowired
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue