|
@@ -24,6 +24,7 @@ class BookTransformer
|
|
'book_summary' => $item->book ? $item->book->intro : '',
|
|
'book_summary' => $item->book ? $item->book->intro : '',
|
|
'book_author' => $item->book ? $item->book->author : '',
|
|
'book_author' => $item->book ? $item->book->author : '',
|
|
'cover_url' => $item->book ? $item->book->cover : '',
|
|
'cover_url' => $item->book ? $item->book->cover : '',
|
|
|
|
+ 'keyword' => $item->book ? $item->book->keyword : '',
|
|
'book_word_count' => $item->book ? $item->book->size : 0,
|
|
'book_word_count' => $item->book ? $item->book->size : 0,
|
|
'book_chapter_total' => $item->book ? $item->book->chapter_count : 0,
|
|
'book_chapter_total' => $item->book ? $item->book->chapter_count : 0,
|
|
'book_category_id' => $item->book ? $item->book->category_id : 0,
|
|
'book_category_id' => $item->book ? $item->book->category_id : 0,
|
|
@@ -42,7 +43,6 @@ class BookTransformer
|
|
'product_id' => $item->product_id,
|
|
'product_id' => $item->product_id,
|
|
'is_on_shelf' => $item->is_on_shelf,
|
|
'is_on_shelf' => $item->is_on_shelf,
|
|
'book_price' => (float) $item->price,
|
|
'book_price' => (float) $item->price,
|
|
- 'keyword' => $item->keyword,
|
|
|
|
'roles' => (string)$item->roles,
|
|
'roles' => (string)$item->roles,
|
|
'recommend_index' => $item->recommend_index,
|
|
'recommend_index' => $item->recommend_index,
|
|
'is_show_index_content' => $item->is_show_index_content,
|
|
'is_show_index_content' => $item->is_show_index_content,
|