Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webman-blog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏洲
webman-blog
Commits
9ab5c3b3
Commit
9ab5c3b3
authored
May 15, 2022
by
wolfcode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
35e8d79e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
README.md
README.md
+1
-1
Category.php
app/controller/Category.php
+0
-2
No files found.
README.md
View file @
9ab5c3b3
<h1
align=
"center"
>
<a
href=
""
>
<a
href=
"
https://www.wolfcode.net/info/239/"
target=
"_blank
"
>
<code>
wolfcode-blog
</code>
基于
<code>
webman
</code>
开源博客程序
</a>
</h1>
...
...
app/controller/Category.php
View file @
9ab5c3b3
...
...
@@ -4,7 +4,6 @@ namespace app\controller;
use
app\common\controller\BlogBase
;
use
app\model\Article
;
use
app\model\Banner
;
use
JasonGrimes\Paginator
;
use
support\Request
;
use
support\Response
;
...
...
@@ -14,7 +13,6 @@ class Category extends BlogBase
public
function
index
(
Request
$request
,
$id
=
0
,
$page
=
1
)
:
Response
{
if
(
empty
(
$id
))
return
$this
->
jump404
();
if
(
$id
==
3
)
return
redirect
(
'https://www.wolfcode.net'
);
$map
[]
=
[
'status'
,
'='
,
1
];
$map
[]
=
[
'id'
,
'='
,
$id
];
$categoryInfo
=
\app\model\Category
::
getOne
(
$map
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment