Browse Source

"publisher" = $book->channel->owner

visuddhinanda 1 năm trước cách đây
mục cha
commit
de2ad8b5d7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api-v8/app/Http/Controllers/BookController.php

+ 1 - 1
api-v8/app/Http/Controllers/BookController.php

@@ -87,7 +87,7 @@ class BookController extends Controller
             "id" => $book->uid,
             "title" => $title,
             "author" => $book->channel->name,
-            "publisher" => $book->channel->owner->nickname,
+            "publisher" => $book->channel->owner,
             "type" => __('label.' . $book->channel->type),
             "category_id" => 11,
             "cover" => "/assets/images/cover/1/214.jpg",