WIN-2308041133\Administrator 4 months ago
parent
commit
289e848174
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/admin/controller/article/Article.php

+ 2 - 0
app/admin/controller/article/Article.php

@@ -67,7 +67,9 @@ class Article extends AuthController
             $news = ArticleModel::where('n.id', $id)->alias('n')->field('n.*,c.content')->join('ArticleContent c', 'c.nid=n.id', 'left')->find();
             if (!$news) return $this->failed('数据不存在!');
             $news['cid'] = explode(',', $news['cid']);
+            @file_put_contents('quanju.txt', $news['content'] . "-一开始\r\n", 8);
             $news['content'] = htmlspecialchars_decode($news['content']);
+            @file_put_contents('quanju.txt', $news['content'] . "-转码后\r\n", 8);
         }
         if ($cid && in_array($cid, ArticleCategoryModel::getArticleCategoryInfo(0, 'id'))) {
             $all = ArticleCategoryModel::getArticleCategoryInfo($cid);