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'] = '';