Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
e4851f9d
Commit
e4851f9d
authored
Nov 05, 2018
by
LiuJunYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
美行攻略修改出现BUG
parent
7788147e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
+1
-2
application/admin/controller/Guide.php
+0
-1
application/admin/validate/Post.php
+1
-1
No files found.
application/admin/controller/Guide.php
View file @
e4851f9d
...
...
@@ -117,7 +117,6 @@ class Guide extends AuthBase
if
(
!
$validate
->
scene
(
'update'
)
->
check
(
$data
))
{
$msg
=
$validate
->
getError
();
$this
->
assign
(
'msg'
,
$msg
);
// halt($msg);
return
view
();
}
$condition
=
[
...
...
application/admin/validate/Post.php
View file @
e4851f9d
...
...
@@ -15,7 +15,7 @@ class Post extends Validate
protected
$rule
=
[
[
'title'
,
'require'
,
'文章标题不能为空'
],
[
'sort'
,
'number'
,
'序号必须为数字'
],
[
'id'
,
'require
|number
'
,
'缺少必要参数ID'
],
[
'id'
,
'require'
,
'缺少必要参数ID'
],
[
'status'
,
'number|in:-1,0,1'
,
'状态必须是数字|状态范围不合法'
],
[
'content'
,
'require'
,
'文章内容不能为空'
],
[
'poster'
,
'require'
,
'文章封面必须上传'
]
...
...
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