From 73d9a21353905461aafa269d1e4dea6687ebb670 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Wed, 20 Sep 2023 20:01:36 +0800 Subject: [PATCH] [front/perf] the page is lie --- src/main/backend/handlers.clj | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/backend/handlers.clj b/src/main/backend/handlers.clj index feb64ed..d1dcd79 100644 --- a/src/main/backend/handlers.clj +++ b/src/main/backend/handlers.clj @@ -159,8 +159,7 @@ [question-id docs] (let [next-url (get docs "next")] {:paging (merge - {"page" (get docs "page") - "is_end" (get docs "is_end") + {"is_end" (get docs "is_end") "question_id" question-id} (build-paging-next next-url))})) @@ -168,12 +167,10 @@ [question-id docs] (let [answers (val (first (get docs "answers")))] (if (< (count (get answers "ids")) 5) - {:paging {"page" nil - "is_end" true}} + {:paging {"is_end" true}} (let [next_url (get answers "next")] {:paging (merge - {"page" nil - "is_end" false + {"is_end" false "question_id" question-id} (build-paging-next next_url))}))))