mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Change] 对两个getRanking方法设置日志标志;
This commit is contained in:
parent
18d96c73d6
commit
ce55adfc40
@ -267,7 +267,7 @@ public class PixivDownload {
|
|||||||
int authorId = rankInfo.get("user_id").getAsInt();
|
int authorId = rankInfo.get("user_id").getAsInt();
|
||||||
String authorName = rankInfo.get("user_name").getAsString();
|
String authorName = rankInfo.get("user_name").getAsString();
|
||||||
String title = rankInfo.get("title").getAsString();
|
String title = rankInfo.get("title").getAsString();
|
||||||
log.info("当前到第 {}/{} 名(总共 {} 名), IllustID: {}, Author: ({}) {}, Title: {}", rank, rankStart + range - 1, range, illustId, authorId, authorName, title);
|
log.info("Array-当前到第 {}/{} 名(总共 {} 名), IllustID: {}, Author: ({}) {}, Title: {}", rank, rankStart + range - 1, range, illustId, authorId, authorName, title);
|
||||||
results.add(rankInfo);
|
results.add(rankInfo);
|
||||||
}
|
}
|
||||||
log.info("JsonArray读取完成.");
|
log.info("JsonArray读取完成.");
|
||||||
@ -326,7 +326,7 @@ public class PixivDownload {
|
|||||||
int authorId = rankInfo.get("user_id").getAsInt();
|
int authorId = rankInfo.get("user_id").getAsInt();
|
||||||
String authorName = rankInfo.get("user_name").getAsString();
|
String authorName = rankInfo.get("user_name").getAsString();
|
||||||
String title = rankInfo.get("title").getAsString();
|
String title = rankInfo.get("title").getAsString();
|
||||||
log.info("当前到第 {}/{} 名(总共 {} 名), IllustID: {}, Author: ({}) {}, Title: {}", rank, rankStart + range - 1, range, illustId, authorId, authorName, title);
|
log.info("Download-当前到第 {}/{} 名(总共 {} 名), IllustID: {}, Author: ({}) {}, Title: {}", rank, rankStart + range - 1, range, illustId, authorId, authorName, title);
|
||||||
results.add(rankInfo);
|
results.add(rankInfo);
|
||||||
}
|
}
|
||||||
firstRequest = false;
|
firstRequest = false;
|
||||||
@ -542,7 +542,7 @@ public class PixivDownload {
|
|||||||
* @throws IOException 当请求发生异常, 或接口返回错误信息时抛出.
|
* @throws IOException 当请求发生异常, 或接口返回错误信息时抛出.
|
||||||
*/
|
*/
|
||||||
public JsonObject getIllustInfoByIllustId(int illustId) throws IOException {
|
public JsonObject getIllustInfoByIllustId(int illustId) throws IOException {
|
||||||
HttpGet request = createHttpGetRequest(PixivURL.getPixivIllustInfoAPI(new int[] {illustId}));;
|
HttpGet request = createHttpGetRequest(PixivURL.getPixivIllustInfoAPI(new int[] {illustId}));
|
||||||
HttpResponse response = httpClient.execute(request);
|
HttpResponse response = httpClient.execute(request);
|
||||||
String responseStr = EntityUtils.toString(response.getEntity());
|
String responseStr = EntityUtils.toString(response.getEntity());
|
||||||
log.debug("Response Content: {}", responseStr);
|
log.debug("Response Content: {}", responseStr);
|
||||||
|
Loading…
Reference in New Issue
Block a user