zhoulj il y a 3 ans
Parent
commit
8e9c63b978
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      app/Http/Controllers/QuickApp/Book/ChapterController.php

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

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