zhoulj 3 lat temu
rodzic
commit
f7cbbf9012

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

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