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
f0ed0ed0
Commit
f0ed0ed0
authored
Aug 10, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺规则验证
parent
365e5069
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
HouseValidate.php
application/index/validate/HouseValidate.php
+7
-7
No files found.
application/index/validate/HouseValidate.php
View file @
f0ed0ed0
...
@@ -16,8 +16,8 @@ class HouseValidate extends Validate
...
@@ -16,8 +16,8 @@ class HouseValidate extends Validate
protected
$rule
=
[
protected
$rule
=
[
'internal_title'
=>
'require|length:1,125'
,
'internal_title'
=>
'require|length:1,125'
,
'internal_address'
=>
'require|length:1,125'
,
'internal_address'
=>
'require|length:1,125'
,
//
'province' => 'require|length:1,60',
'province'
=>
'require|length:1,60'
,
//
'city' => 'require|length:1,60|in:上海市,杭州市',
'city'
=>
'require|length:1,60|in:上海市,杭州市'
,
'disc'
=>
'require|length:1,60'
,
'disc'
=>
'require|length:1,60'
,
'market_area'
=>
'require|between:0,9999999'
,
'market_area'
=>
'require|between:0,9999999'
,
'shop_area_start'
=>
'require|between:0,9999999'
,
'shop_area_start'
=>
'require|between:0,9999999'
,
...
@@ -41,11 +41,11 @@ class HouseValidate extends Validate
...
@@ -41,11 +41,11 @@ class HouseValidate extends Validate
'internal_title.length'
=>
'名称字数在1至125个字'
,
'internal_title.length'
=>
'名称字数在1至125个字'
,
'internal_address.require'
=>
'对内商铺地址为必填'
,
'internal_address.require'
=>
'对内商铺地址为必填'
,
'internal_address.length'
=>
'对内地址要在1至255个字'
,
'internal_address.length'
=>
'对内地址要在1至255个字'
,
//
'province.require' => '省份为必填',
'province.require'
=>
'省份为必填'
,
//
'province.length' => '省份要在1至60个字',
'province.length'
=>
'省份要在1至60个字'
,
//
'city.require' => '市为必填',
'city.require'
=>
'市为必填'
,
//
'city.length' => '对内地址要在1至60个字',
'city.length'
=>
'对内地址要在1至60个字'
,
//
'city.in' => '只能添加上海和杭州的商铺',
'city.in'
=>
'只能添加上海和杭州的商铺'
,
'disc.require'
=>
'区为必填'
,
'disc.require'
=>
'区为必填'
,
'disc.length'
=>
'对内地址要在1至60个字'
,
'disc.length'
=>
'对内地址要在1至60个字'
,
'market_area.require'
=>
'商场面积为必填'
,
'market_area.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