From bc8ee2e5b114364807a1ff41aad0f5dfa3073a49 Mon Sep 17 00:00:00 2001 From: lensferno Date: Tue, 11 Jul 2023 17:02:15 +0800 Subject: [PATCH] lib --- external-library/mywust | 2 +- .../wusthelper/internal/library/api/http/SearchApi.java | 6 ++++-- .../internal/library/bean/MywustRequestAgentBeans.java | 2 +- .../internal/library/services/CurrentLoanService.java | 1 - 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/external-library/mywust b/external-library/mywust index c13aa2f..99e1ea7 160000 --- a/external-library/mywust +++ b/external-library/mywust @@ -1 +1 @@ -Subproject commit c13aa2f56f1ad3b1ab8475f1674f5851fa2f90da +Subproject commit 99e1ea7c8fe539c2c6d942b0b32a7d4445298f4f diff --git a/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/api/http/SearchApi.java b/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/api/http/SearchApi.java index c455d8e..58f77a1 100644 --- a/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/api/http/SearchApi.java +++ b/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/api/http/SearchApi.java @@ -23,9 +23,11 @@ public class SearchApi { @GET @Path("/") - public List get(@QueryParam("isbn") @NotNull String isbn) + public List get(@QueryParam("keyword") @NotNull String keyword, + @QueryParam("page") @NotNull int page, + @QueryParam("page_size") @NotNull int pageSize) throws RpcException { - return this.parse(this.agent(isbn)); + return this.parse(this.agent(keyword, page, pageSize)); } @GET diff --git a/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/bean/MywustRequestAgentBeans.java b/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/bean/MywustRequestAgentBeans.java index 331619a..07a8caa 100644 --- a/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/bean/MywustRequestAgentBeans.java +++ b/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/bean/MywustRequestAgentBeans.java @@ -16,7 +16,7 @@ public class MywustRequestAgentBeans { .port(8080) .build(); RequestClientOption option = new RequestClientOption(); -// option.setProxy(proxy); + option.setProxy(proxy); return option; } diff --git a/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/services/CurrentLoanService.java b/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/services/CurrentLoanService.java index ae44fd1..70fdec7 100644 --- a/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/services/CurrentLoanService.java +++ b/sub-services/library/src/main/java/cn/wustlinghang/wusthelper/internal/library/services/CurrentLoanService.java @@ -29,5 +29,4 @@ public class CurrentLoanService extends BaseService { ); } } - }