wesmiler 2 miesięcy temu
rodzic
commit
efa1a059df
1 zmienionych plików z 1 dodań i 1 usunięć
  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'] = '';