wesmiler преди 2 месеца
родител
ревизия
efa1a059df
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Services/Common/ArticleService.php

+ 1 - 1
app/Services/Common/ArticleService.php

@@ -124,7 +124,7 @@ class ArticleService extends BaseService
 
         $content = isset($data['content']) ? $data['content'] : '';
         if ($content) {
-            $data['content'] = $data['content_type'] == 2? json_encode($data['content'], 256) : set_format_content($content);
+            $data['content'] = $data['content_type'] == 2? set_format_content(json_encode($data['content'], 256)) : set_format_content($content);
         } else {
             // 确保content字段存在(即使为空字符串)
             $data['content'] = '';