|
@@ -62,14 +62,13 @@ class Article extends AuthController
|
|
|
$news['synopsis'] = '';
|
|
$news['synopsis'] = '';
|
|
|
$news['url'] = '';
|
|
$news['url'] = '';
|
|
|
$news['cid'] = [];
|
|
$news['cid'] = [];
|
|
|
|
|
+ $news['video_link'] = '';
|
|
|
$select = 0;
|
|
$select = 0;
|
|
|
if ($id) {
|
|
if ($id) {
|
|
|
$news = ArticleModel::where('n.id', $id)->alias('n')->field('n.*,c.content')->join('ArticleContent c', 'c.nid=n.id', 'left')->find();
|
|
$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('数据不存在!');
|
|
if (!$news) return $this->failed('数据不存在!');
|
|
|
$news['cid'] = explode(',', $news['cid']);
|
|
$news['cid'] = explode(',', $news['cid']);
|
|
|
- @file_put_contents('quanju.txt', $news['content'] . "-一开始\r\n", 8);
|
|
|
|
|
$news['content'] = htmlspecialchars_decode($news['content']);
|
|
$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'))) {
|
|
if ($cid && in_array($cid, ArticleCategoryModel::getArticleCategoryInfo(0, 'id'))) {
|
|
|
$all = ArticleCategoryModel::getArticleCategoryInfo($cid);
|
|
$all = ArticleCategoryModel::getArticleCategoryInfo($cid);
|