🐛 (notes): 想法按私密阅读设置发表并回读
新想法跟这本书的私密阅读走,修改已有想法沿用原来的可见范围。 回读对不上就当这轮失败,不把 HTTP 成功当成已经私密。
This commit is contained in:
1 parent
69a72f63c0
commit
352ee1bd99
11 files changed
+359
-57
No files matched your search
@@ -76,6 +76,9 @@ stub("book.books_db", function()
|
||||
local m = remembered_stats_books.marked_deleted
|
||||
return m and not remembered_stats_books.removed and { m } or {}
|
||||
end,
|
||||
hasUnsynced = function()
|
||||
return remembered_stats_books.marked_deleted ~= nil and not remembered_stats_books.removed
|
||||
end,
|
||||
markSynced = function() return true end,
|
||||
setRead = function(source_id, stable_id, is_read)
|
||||
remembered_stats_books.set_read = {
|
||||
@@ -95,6 +98,7 @@ stub("book.progress_db", function()
|
||||
get = function() return existing_progress end,
|
||||
upsertRemote = function() return true end,
|
||||
unsynced = function() return {} end,
|
||||
hasUnsynced = function() return false end,
|
||||
}
|
||||
end)
|
||||
stub("book.chapters_db", function()
|
||||
@@ -1076,6 +1080,14 @@ do
|
||||
cb({ succ = 1 })
|
||||
return { cancel = function() end }
|
||||
end
|
||||
fake_client.bookInfoAsync = function(_, _, cb)
|
||||
cb({ book = { bookId = "bpush", version = 7 } })
|
||||
return { cancel = function() end }
|
||||
end
|
||||
fake_client.reviewSingleAsync = function(_, _, _, _, cb)
|
||||
cb({ review = { isPrivate = 0 } })
|
||||
return { cancel = function() end }
|
||||
end
|
||||
fake_client.deleteReviewAsync = function(_, review_id, cb)
|
||||
calls[#calls + 1] = { api = "deleteReview", review_id = review_id }
|
||||
cb({ succ = 1 })
|
||||
|
||||
Reference in new issue
Block a user