Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
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
bp
goods
Commits
34e6e701
Commit
34e6e701
authored
Aug 05, 2021
by
suntengda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 添加自提点去掉城市限制
parent
0f857375
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
TakePlaceValidate.php
application/library/Validate/TakePlaceValidate.php
+3
-3
No files found.
application/library/Validate/TakePlaceValidate.php
View file @
34e6e701
...
...
@@ -18,7 +18,7 @@ class TakePlaceValidate extends \Validate\BaseValidate
'longitude'
=>
'require'
,
'latitude'
=>
'require'
,
'province'
=>
'require'
,
//
'city' => 'require',
'city'
=>
'require'
,
'area'
=>
'require'
,
'offset'
=>
'egt:0'
,
'limit'
=>
'elt:100'
,
...
...
@@ -32,7 +32,7 @@ class TakePlaceValidate extends \Validate\BaseValidate
"longitude"
=>
"经度不能为空"
,
"latitude"
=>
"纬度不能为空"
,
"province"
=>
"省不能为空"
,
//
"city" => "市不能为空",
"city"
=>
"市不能为空"
,
"area"
=>
"区不能为空"
,
"offset"
=>
"偏移量不能小于0"
,
"limit"
=>
"单次不能大于100条"
,
...
...
@@ -46,7 +46,7 @@ class TakePlaceValidate extends \Validate\BaseValidate
public
function
sceneAdd
()
{
return
$this
->
only
([
'name'
,
'address'
,
'longitude'
,
'latitude'
,
'province'
,
'
city'
,
'
area'
]);
return
$this
->
only
([
'name'
,
'address'
,
'longitude'
,
'latitude'
,
'province'
,
'area'
]);
}
public
function
sceneDelete
()
{
...
...
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