✨ (search): 书目搜索带上作者参数

/store/search 的 author 不再写死为空。不传时仍是空串。
This commit is contained in:
Garfield committed 2026-11-26 15:52:52 +08:00
1 parent f4f8386a61
commit a890c230ac
4 files changed
+16 -9

No files matched your search

+4
View File
@@ -214,7 +214,11 @@ do
req = call(client.searchAsync, client, "三体", function(d) wire = d end)
Assert.eq(req.path, "/store/search")
Assert.eq(req.query.keyword, "三体")
Assert.eq(req.query.author, "")
Assert.eq(req.query.v, 2)
req = call(client.searchAsync, client, "三体", function() end, "刘慈欣")
Assert.eq(req.query.keyword, "三体")
Assert.eq(req.query.author, "刘慈欣")
Assert.eq(req.query.type, 0)
Assert.eq(wire.books[1].bookInfo.bookId, "9")
end