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
402284b9
Commit
402284b9
authored
Jul 24, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3bbacebc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common.php
application/common.php
+1
-1
CostParameter.php
application/index/controller/CostParameter.php
+2
-2
No files found.
application/common.php
View file @
402284b9
...
@@ -270,7 +270,7 @@ function curl_post($url, array $params = array(), $timeout)
...
@@ -270,7 +270,7 @@ function curl_post($url, array $params = array(), $timeout)
* @param $data
* @param $data
* @return bool
* @return bool
*/
*/
function
check
Date
(
$data
){
function
check
TimeData
(
$data
){
$date
=
strtotime
(
$data
);
$date
=
strtotime
(
$data
);
if
(
$data
==
(
date
(
"Y-m-d"
,
$date
))
||
$data
==
(
date
(
"Y-m-j"
,
$date
))
||
$data
==
(
date
(
"Y-n-d"
,
$date
))
||
$data
==
(
date
(
"Y-n-j"
,
$date
)))
if
(
$data
==
(
date
(
"Y-m-d"
,
$date
))
||
$data
==
(
date
(
"Y-m-j"
,
$date
))
||
$data
==
(
date
(
"Y-n-d"
,
$date
))
||
$data
==
(
date
(
"Y-n-j"
,
$date
)))
return
true
;
//合法
return
true
;
//合法
...
...
application/index/controller/CostParameter.php
View file @
402284b9
...
@@ -57,7 +57,7 @@ class CostParameter extends Basic
...
@@ -57,7 +57,7 @@ class CostParameter extends Basic
return
$this
->
response
(
"101"
,
$checkResult
);
return
$this
->
response
(
"101"
,
$checkResult
);
}
}
if
(
!
check
Date
(
$params
[
'setting_date'
])){
if
(
!
check
TimeData
(
$params
[
'setting_date'
])){
return
$this
->
response
(
"101"
,
'非法时间'
);
return
$this
->
response
(
"101"
,
'非法时间'
);
}
}
...
@@ -196,7 +196,7 @@ class CostParameter extends Basic
...
@@ -196,7 +196,7 @@ class CostParameter extends Basic
return
$this
->
response
(
"101"
,
$checkResult
);
return
$this
->
response
(
"101"
,
$checkResult
);
}
}
if
(
!
check
Date
(
$params
[
'setting_date'
])){
if
(
!
check
TimeData
(
$params
[
'setting_date'
])){
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