zz пре 6 година
родитељ
комит
dbd1aed94f
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/Http/Controllers/Wap/Book/ChapterController.php

+ 2 - 1
app/Http/Controllers/Wap/Book/ChapterController.php

@@ -766,7 +766,8 @@ class ChapterController extends BaseController
         $this->initChapterDefaultField();
         $this->initChapterDefaultField();
         //章节内容
         //章节内容
         $chapter_content = ChapterService::getChapter($this->book_info->bid, $this->cid);
         $chapter_content = ChapterService::getChapter($this->book_info->bid, $this->cid);
-        $this->chapter->content = str_replace($chapter_content->name, '', $chapter_content->content);
+        //$this->chapter->content = str_replace($chapter_content->name, '', $chapter_content->content);
+        $this->chapter->content = $chapter_content->content;
 
 
         //阅读记录
         //阅读记录
         ReadRecordService::addReadRecord(['uid' => $this->uid, 'bid' => $this->book_info->bid, 'book_name' => $this->book_info->book_name,
         ReadRecordService::addReadRecord(['uid' => $this->uid, 'bid' => $this->book_info->bid, 'book_name' => $this->book_info->book_name,