zhoulj 3 年之前
父节点
当前提交
7135a69488
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      app/Http/Controllers/QuickApp/Book/ChapterController.php

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

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