Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
5e278877
Commit
5e278877
authored
Sep 06, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证器-搬迁
parent
8e946569
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
.DS_Store
application/index/validate/.DS_Store
+0
-0
ImageDepot.php
application/index/validate/ImageDepot.php
+32
-0
No files found.
application/index/validate/.DS_Store
0 → 100644
View file @
5e278877
File added
application/index/validate/ImageDepot.php
0 → 100755
View file @
5e278877
<?php
namespace
app\index\validate
;
use
think\Validate
;
class
ImageDepot
extends
Validate
{
protected
$rule
=
[
'img_type'
=>
'require'
,
'img_name'
=>
'require'
,
'id'
=>
'require|number|gt:0'
];
protected
$message
=
[
'img_type.require'
=>
'图片类型不能为空'
,
'img_name.require'
=>
'图片名不能为空'
,
'id.require'
=>
'id为必填字段'
,
'id.number'
=>
'id只能为数字'
,
'id.gt'
=>
'id必须大于0'
,
];
protected
$scene
=
[
'addImageDepot'
=>
[
'img_type'
,
'img_name'
],
'getImageDepotById'
=>
[
'id'
],
];
}
\ No newline at end of file
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