WIN-2308041133\Administrator 4 months ago
parent
commit
e4634a18de

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

@@ -62,14 +62,13 @@ class Article extends AuthController
         $news['synopsis'] = '';
         $news['url'] = '';
         $news['cid'] = [];
+        $news['video_link'] = '';
         $select = 0;
         if ($id) {
             $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);

+ 0 - 3
app/admin/view/article/article/create.php

@@ -391,8 +391,6 @@
         list.is_banner = $("input[name='is_banner']:checked").val();
         list.video_link = $('#video_link').val(); // 新增视频链接字段
 
-        console.log(list); // 添加这行代码以打印 list 对象
-
         var Expression = /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/;
         var objExp = new RegExp(Expression);
 
@@ -444,7 +442,6 @@
         });
     });
 
-
     // 初始化选择器
     $(document).ready(function () {
         var config = {