|
@@ -487,6 +487,10 @@ class ChapterController extends BaseController
|
|
|
$chapter_content = ChapterService::getChapter($bid, $cid);
|
|
|
if (!$chapter_content) return false;
|
|
|
$chapter->content = trim(str_replace($chapter_content->name, '', $chapter_content->content));
|
|
|
+ // 格式特殊处理
|
|
|
+ $chapter->content = trim(str_replace(' ', ' ', $chapter_content->content));
|
|
|
+// $chapter->content = trim(str_replace('\n\n', '\n', $chapter_content->content));
|
|
|
+
|
|
|
//统计点击率
|
|
|
$key = 'book_click_num_bid_' . $bid;
|
|
|
$field = date('Y-m-d');
|