✨ (search): 搜索书目带上译者

This commit is contained in:
Garfield committed 2026-11-30 21:07:54 +08:00
1 parent fb35a0560d
commit 69a72f63c0
3 files changed
+17 -1

No files matched your search

@@ -355,6 +355,7 @@ end
---@field book_id string
---@field title string
---@field author string
---@field translator string 空串表示接口没给译者
---@field publisher string
--- 搜索 wire → 书目(只留带 bookId 的书,公众号等其它条目没有 bookInfo)。
@@ -369,6 +370,7 @@ function Mapper.searchBooks(data)
book_id = tostring(info.bookId),
title = info.title or "",
author = info.author or "",
translator = type(info.translator) == "string" and info.translator or "",
publisher = info.publisher or "",
}
end