瀏覽代碼

Merge remote-tracking branch 'origin/stabble' into stabble

tusx 6 年之前
父節點
當前提交
fae327a7a3
共有 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,