|
@@ -47,7 +47,7 @@ class BookController extends BaseController
|
|
|
$book_info->is_on_shelf = 0;
|
|
|
}
|
|
|
|
|
|
- if (!in_array($book_info->is_on_shelf, [2])) {
|
|
|
+ if (!in_array($book_info->is_on_shelf, [1,2])) {
|
|
|
return response()->error('QAPP_OFF_SHELF');
|
|
|
}
|
|
|
$is_on_shelf = UserShelfBooksService::getUserShelfBooksListByUidAndBid($this->uid, $bid);
|