zhoulj 3 年之前
父節點
當前提交
f7cbbf9012
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Http/Controllers/QuickApp/Book/ChapterController.php

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

@@ -488,7 +488,8 @@ class ChapterController extends BaseController
         if (!$chapter_content) return false;
         if (!$chapter_content) return false;
         $chapter->content = trim(str_replace($chapter_content->name, '', $chapter_content->content));
         $chapter->content = trim(str_replace($chapter_content->name, '', $chapter_content->content));
         // 格式特殊处理
         // 格式特殊处理
-        $chapter->content = str_replace(' ', '', $chapter->content);        
+        $chapter->content = str_replace(' ', '', $chapter->content);    
+        $chapter->content = preg_replace('# #', '', $chapter->content);
         
         
         \Log::info('getChapter_chapter:'.$bid.' cid:'.$cid);
         \Log::info('getChapter_chapter:'.$bid.' cid:'.$cid);
         \Log::info($chapter->content);
         \Log::info($chapter->content);