Commit 9ab5c3b3 authored by wolfcode's avatar wolfcode

update

parent 35e8d79e
<h1 align="center"> <h1 align="center">
<a href=""> <a href="https://www.wolfcode.net/info/239/" target="_blank">
<code>wolfcode-blog</code> 基于 <code>webman</code> 开源博客程序 <code>wolfcode-blog</code> 基于 <code>webman</code> 开源博客程序
</a> </a>
</h1> </h1>
......
...@@ -4,7 +4,6 @@ namespace app\controller; ...@@ -4,7 +4,6 @@ namespace app\controller;
use app\common\controller\BlogBase; use app\common\controller\BlogBase;
use app\model\Article; use app\model\Article;
use app\model\Banner;
use JasonGrimes\Paginator; use JasonGrimes\Paginator;
use support\Request; use support\Request;
use support\Response; use support\Response;
...@@ -14,7 +13,6 @@ class Category extends BlogBase ...@@ -14,7 +13,6 @@ class Category extends BlogBase
public function index(Request $request, $id = 0, $page = 1): Response public function index(Request $request, $id = 0, $page = 1): Response
{ {
if (empty($id)) return $this->jump404(); if (empty($id)) return $this->jump404();
if ($id == 3) return redirect('https://www.wolfcode.net');
$map[] = ['status', '=', 1]; $map[] = ['status', '=', 1];
$map[] = ['id', '=', $id]; $map[] = ['id', '=', $id];
$categoryInfo = \app\model\Category::getOne($map); $categoryInfo = \app\model\Category::getOne($map);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment