Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
ruer_cms
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蔡闯
ruer_cms
Commits
aed9fa62
Commit
aed9fa62
authored
Feb 18, 2021
by
蔡闯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改创建房间
parent
b63dfe96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
app/shequ/controller/Vacancy.php
app/shequ/controller/Vacancy.php
+9
-7
No files found.
app/shequ/controller/Vacancy.php
View file @
aed9fa62
...
...
@@ -88,13 +88,15 @@ class Vacancy extends Base
return
$this
->
returnJson
([],
'手机号不合法!'
,
400
);
}
$data
[
'phone'
]
=
$add
[
'phone'
]
=
$phone
;
$data
[
'property_start_time'
]
=
date
(
'Y-m'
,
strtotime
(
Request
::
param
(
'property_start_time'
)));
$data
[
'property_end_time'
]
=
date
(
'Y-m'
,
strtotime
(
Request
::
param
(
'property_end_time'
)));
if
(
$data
[
'property_start_time'
]
&&
$data
[
'property_end_time'
])
{
//判断物业服务开始时间和结束时间是否合理
$res
=
$this
->
checkVacancyPropertyTime
(
$data
[
'property_start_time'
],
$data
[
'property_end_time'
]);
if
(
$res
[
'code'
]
!=
200
)
{
return
$this
->
returnJson
([],
$res
[
'msg'
],
400
);
if
(
Request
::
param
(
'property_start_time'
)
&&
Request
::
param
(
'property_end_time'
))
{
$data
[
'property_start_time'
]
=
date
(
'Y-m'
,
strtotime
(
Request
::
param
(
'property_start_time'
)));
$data
[
'property_end_time'
]
=
date
(
'Y-m'
,
strtotime
(
Request
::
param
(
'property_end_time'
)));
if
(
$data
[
'property_start_time'
]
&&
$data
[
'property_end_time'
])
{
//判断物业服务开始时间和结束时间是否合理
$res
=
$this
->
checkVacancyPropertyTime
(
$data
[
'property_start_time'
],
$data
[
'property_end_time'
]);
if
(
$res
[
'code'
]
!=
200
)
{
return
$this
->
returnJson
([],
$res
[
'msg'
],
400
);
}
}
}
$data
[
'village_name'
]
=
Db
::
name
(
'house_village'
)
->
where
([
'village_id'
=>
$data
[
'village_id'
]])
->
value
(
'village_name'
);
...
...
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