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
31291dbb
Commit
31291dbb
authored
Oct 16, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日期验证
parent
5c91ad7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
OperationData.php
application/index/controller/OperationData.php
+4
-4
No files found.
application/index/controller/OperationData.php
View file @
31291dbb
...
@@ -370,12 +370,12 @@ class OperationData extends Basic
...
@@ -370,12 +370,12 @@ class OperationData extends Basic
return
$this
->
response
(
"101"
,
$checkResult
);
return
$this
->
response
(
"101"
,
$checkResult
);
}
}
//验证时间是否合法
//验证时间是否合法
2018-09 补全为 2018-09-30 用于验证月份选择是否有误,无其他作用
if
(
!
checkTimeData
(
$params
[
'time_start'
])){
if
(
!
checkTimeData
(
$params
[
'time_start'
]
.
"-01"
)){
return
$this
->
response
(
"101"
,
'开始日期异常!'
);
return
$this
->
response
(
"101"
,
'开始日期异常!'
);
}
}
//验证时间是否合法
//验证时间是否合法
2018-09 补全为 2018-09-30 用于验证月份选择是否有误,无其他作用
if
(
!
checkTimeData
(
$params
[
'time_end'
])){
if
(
!
checkTimeData
(
$params
[
'time_end'
]
.
"-01"
)){
return
$this
->
response
(
"101"
,
'结束日期异常!'
);
return
$this
->
response
(
"101"
,
'结束日期异常!'
);
}
}
...
...
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