SethShi
0.01D
V2EX  ›  V2EX API

https://www.v2ex.com/api/v2/topics/1/replies?p=2 接口分页参数无效

  •  
  •   SethShi ·
    seth-shi · Jun 2, 2025 · 2126 views
    This topic created in 526 days ago, the information mentioned may be changed or developed.

    现在是请求接口返回空代表没有下一页, 如果只有一页参数, 那么重复请求一直无法结束

    那么这个没有下一页的逻辑我是否应该换成 items.len < 20

    6 replies  •  2025-06-12 10:03:28 +08:00
    SethShi
    SethShi
    OP
    Jun 2, 2025
    1
    Livid
    Livid
    MOD
    PRO
    Jun 3, 2025
    2
    @seth19960929 谢谢。

    这个接口现在会包括一组新的信息:



    total: 这个主题的回复数量
    pages: 页数
    per_page: 每页的回复数量
    SethShi
    SethShi
    OP
    Jun 3, 2025
    3
    @Livid 是否可以在 /api/v2/nodes/:name/topics 返回发布人信息, 现在就是很奇怪, 返回了最后回复人的信息, 确没有发布人信息
    Livid
    Livid
    MOD
    PRO
    Jun 3, 2025
    4
    @seth19960929 收到,我看一下。
    SethShi
    SethShi
    OP
    Jun 3, 2025
    5
    cool, 分页安排上
    SethShi
    SethShi
    OP
    Jun 12, 2025
    6

    @Livid 接口缓存貌似不生效?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3408 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 104ms · UTC 05:35 · PVG 13:35 · LAX 21:35 · JFK 00:35
    ♥ Do have faith in what you're doing.