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

+ 3 - 3
app/Http/Controllers/QuickApp/Book/ChapterController.php

@@ -488,9 +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('\\u3000', '', $chapter_content->content));
-        $chapter->content = trim(str_replace('\u3000', '', $chapter_content->content));
+        $chapter->content = trim(str_replace('  ', ' ', $chapter->content));
+        $chapter->content = trim(str_replace('\\u3000', '', $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 = 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);