wesmiler 2 месяцев назад
Родитель
Сommit
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'] = '';