zhoulj 3 years ago
parent
commit
4d74471e7d
1 changed files with 2 additions and 4 deletions
  1. 2 4
      app/Http/Controllers/QuickApp/Book/ChapterController.php

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

@@ -488,11 +488,9 @@ 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 = trim(str_replace('    ', '  ', $chapter_content->content));
-        $chapter->content = trim(str_replace('\r\n\u3000\u3000\r\n\u3000\u3000', '\r\n\u3000\u3000', $chapter_content->content));
-        $chapter->content = trim(str_replace('\\r\\n\\r\\n', '\\r\\n', $chapter_content->content));
-        $chapter->content = trim(str_replace('\\u3000\\u3000', '\\u3000', $chapter_content->content));
+        $chapter->content = trim(str_replace('  ', ' ', $chapter_content->content));
         $chapter->content = trim(str_replace('\\u3000\\u3000', '\\u3000', $chapter_content->content));
         $chapter->content = trim(str_replace('\\u3000\\u3000', '\\u3000', $chapter_content->content));
+        $chapter->content = trim(str_replace('\\r\\n\\r\\n', '\\r\\n', $chapter_content->content));
         
         
         \Log::info('getChapter_chapter:'.$bid.' cid:'.$cid);
         \Log::info('getChapter_chapter:'.$bid.' cid:'.$cid);
         \Log::info($chapter->content);
         \Log::info($chapter->content);