fix issue 534

fix #534
This commit is contained in:
zhaogaolong
2023-04-14 10:43:55 +08:00
committed by GitHub
parent a9e6826ff9
commit bc4cfdbbe6

View File

@@ -214,6 +214,7 @@ func (m *BookResult) ToBookResult(book Book) *BookResult {
m.IsDownload = book.IsDownload == 0 m.IsDownload = book.IsDownload == 0
m.AutoSave = book.AutoSave == 1 m.AutoSave = book.AutoSave == 1
m.ItemId = book.ItemId m.ItemId = book.ItemId
m.RoleId = conf.BookRoleNoSpecific
if book.Theme == "" { if book.Theme == "" {
m.Theme = "default" m.Theme = "default"
@@ -249,8 +250,9 @@ func (m *BookResult) ToBookResult(book Book) *BookResult {
} else if m.CommentStatus == "group_only" { } else if m.CommentStatus == "group_only" {
// todo // todo
} else { } else {
m.IsDisplayComment = false; m.IsDisplayComment = false
} }
return m return m
} }