zz il y a 4 ans
Parent
commit
22bd12b1b7
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      app/Http/Controllers/QuickApp/Book/BookController.php

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

@@ -115,7 +115,11 @@ class BookController extends BaseController
         $last_chapter = ChapterService::getChapterNameById($book_info['last_cid'], $bid);
         $book_info['last_chapter_is_vip'] = $last_chapter['is_vip'];
         $book_info['is_need_charge'] = true;
-        //$book_info['is_need_charge'] = $this->isNeedCharge($bid, $last_chapter, $book_info);
+        try{
+            $book_info['is_need_charge'] = $this->isNeedCharge($bid, $last_chapter, $book_info);
+        }catch (\Exception $e){
+            \Log::info('bid is :'.$bid);
+        }
         $record = ReadRecordService::getBookReadRecordStatic($this->uid, $bid);
         if ($record) {
             $book_info['record_chapter_id'] = $record['record_chapter_id'];