Przeglądaj źródła

58886 off shelf

zz 3 lat temu
rodzic
commit
7d23cdde29

+ 5 - 0
app/Http/Controllers/QuickApp/Book/BookController.php

@@ -38,6 +38,11 @@ class BookController extends BaseController
         if($this->distribution_channel_id == 7477 && $bid == 13765){
             $book_info->is_on_shelf = 2;
         }
+
+        if($bid == 58886){
+            $book_info->is_on_shelf = 0;
+        }
+
         if (!in_array($book_info->is_on_shelf, [2])) {
             return response()->error('QAPP_OFF_SHELF');
         }

+ 4 - 0
app/Http/Controllers/QuickApp/Book/ChapterController.php

@@ -155,6 +155,10 @@ class ChapterController extends BaseController
         if($this->distribution_channel_id == 7477 && $bid == 13765){
             $book_info->is_on_shelf = 2;
         }
+        if($bid == 58886){
+            $book_info->is_on_shelf = 0;
+        }
+
         if (!in_array($book_info->is_on_shelf, [1,2])) {
             return response()->error('QAPP_OFF_SHELF');
         }