fly hace 4 años
padre
commit
6f1481a509
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      app/Http/Controllers/QuickApp/Book/BookController.php

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

@@ -111,6 +111,10 @@ class BookController extends BaseController
      */
     private function isNeedCharge(int $bid, $last_chapter, $book_info)
     {
+        $is_free = BookConfigService::judgeBookIsFree($bid);
+        if ($is_free) {
+            return $is_free;
+        }
         switch ($book_info->charge_type) {
             case 'BOOK':
                 $price = $this->getPrice($book_info);