|
|
@@ -346,7 +346,9 @@ public class CrawlerServiceImpl implements CrawlerService {
|
|
|
Connection.Response response;
|
|
|
JSONObject result = null;
|
|
|
// List<Temp4k> temp4kList = new ArrayList<>();
|
|
|
+ int k = 0;
|
|
|
for (String code : list) {
|
|
|
+ k++;
|
|
|
outer:
|
|
|
for (int i = 0; i < 3; i++) {
|
|
|
try {
|
|
|
@@ -370,18 +372,17 @@ public class CrawlerServiceImpl implements CrawlerService {
|
|
|
temp4k.setCost(jsonObject.getInteger("cost"));
|
|
|
// temp4kList.add(temp4k);
|
|
|
tempMapper.insertOrUpdate4k(temp4k);
|
|
|
- log.warn("jsoupIkoaMovie4VideoInfo,code={},4k", code);
|
|
|
+ log.warn("jsoupIkoaMovie4VideoInfo,k={},code={},4k", k, code);
|
|
|
break outer;
|
|
|
}
|
|
|
}
|
|
|
- log.warn("jsoupIkoaMovie4VideoInfo,code={},no4k", code);
|
|
|
+ log.warn("jsoupIkoaMovie4VideoInfo,k={},code={},no4k", k, code);
|
|
|
break;
|
|
|
} catch (HttpStatusException hse) {
|
|
|
generateIkoaToken(ikoaConstantMap, proxy);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("IKOA搜索异常,ikoaConstantMap={},result={}", ikoaConstantMap, result.toString(), e);
|
|
|
if (i == 2) {
|
|
|
- throw new Exception("IKOA搜索异常!");
|
|
|
+ log.error("IKOA搜索异常,ikoaConstantMap={},result={}", ikoaConstantMap, result.toString(), e);
|
|
|
}
|
|
|
}
|
|
|
}
|