zhoulj пре 3 година
родитељ
комит
4d828ab2b8
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      app/Http/Controllers/QuickApp/Book/ChapterController.php

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

@@ -489,8 +489,10 @@ class ChapterController extends BaseController
         $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('  ', ' ', $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));
+        $chapter->content = trim(str_replace('\\u3000', '', $chapter_content->content));
+        $chapter->content = trim(str_replace('\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);