diff --git a/app/controller/Djqt.php b/app/controller/Djqt.php index bfd11bd..bcac58f 100755 --- a/app/controller/Djqt.php +++ b/app/controller/Djqt.php @@ -58,6 +58,10 @@ class Djqt extends Base return $this->error('无此文章'); } + if (!empty($article['link'])) { + return $this->redirect($article['link']); + } + $category = Category::where('id', $article['category_id'])->find(); $parentCategory = Category::where('id', $category['parent_id'])->find(); diff --git a/app/controller/Info.php b/app/controller/Info.php index 6461470..fc94e7c 100755 --- a/app/controller/Info.php +++ b/app/controller/Info.php @@ -154,6 +154,10 @@ class Info extends Base return $this->error('无此文章'); } + if (!empty($article['link'])) { + return $this->redirect($article['link']); + } + $category = Category::where('id', $article['category_id'])->find(); $parentCategory = Category::where('id', $category['parent_id'])->find(); diff --git a/app/controller/Ljct.php b/app/controller/Ljct.php index 521c8de..f050c39 100755 --- a/app/controller/Ljct.php +++ b/app/controller/Ljct.php @@ -58,6 +58,10 @@ class Ljct extends Base return $this->error('无此文章'); } + if (!empty($article['link'])) { + return $this->redirect($article['link']); + } + $category = Category::where('id', $article['category_id'])->find(); $parentCategory = Category::where('id', $category['parent_id'])->find(); diff --git a/app/controller/News.php b/app/controller/News.php index 4020261..c171141 100755 --- a/app/controller/News.php +++ b/app/controller/News.php @@ -66,6 +66,10 @@ class News extends Base return $this->error('无此文章'); } + if (!empty($article['link'])) { + return $this->redirect($article['link']); + } + $category = Category::where('id', $article['category_id'])->find(); $parentCategory = Category::where('id', $category['parent_id'])->find(); diff --git a/view/manager/article/add.html b/view/manager/article/add.html index bae8c11..4b5072b 100755 --- a/view/manager/article/add.html +++ b/view/manager/article/add.html @@ -117,15 +117,15 @@ {/if} - - - - - - - - - +
+
+ +
+ +
注:设置了链接则优先跳转到链接页面。非站内链接请以http://或者https://开头
+
+
+
{if !empty($attributeList)} {/if} - - - - - - - - - +
+
+ +
+ +
注:设置了链接则优先跳转到链接页面。非站内链接请以http://或者https://开头
+
+
+
{if !empty($attributeList)}