|
|
@@ -818,7 +818,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
PtlAgreementAttribution attribution = ptlAgreementAttributionService.getById(agreementId);
|
|
|
PtlAgreementAttributionDto attributionDto = new PtlAgreementAttributionDto();
|
|
|
BeanUtils.copyProperties(attribution, attributionDto);
|
|
|
- String apiUrl = attribution.getFields().getJSONObject(0).getString("value");
|
|
|
+ String apiUrl = ptlCrawlerApiService.getByTemplateId(attribution.getTemplateId(), PtlCrawlerApiType.API_11);
|
|
|
TsCrawlerLoginRequest crawlerLoginRequest = new TsCrawlerLoginRequest(attributionDto);
|
|
|
TsCrawlerBaseResponse response = insCrawlerOrderComponents.request(apiUrl, attribution.getInsCompanyId(), "获取验证码",
|
|
|
crawlerLoginRequest, TsCrawlerBaseResponse.class);
|