Commit 402284b9 authored by zhuwei's avatar zhuwei

1

parent 3bbacebc
......@@ -270,7 +270,7 @@ function curl_post($url, array $params = array(), $timeout)
* @param $data
* @return bool
*/
function checkDate($data){
function checkTimeData($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)))
return true;//合法
......
......@@ -57,7 +57,7 @@ class CostParameter extends Basic
return $this->response("101", $checkResult);
}
if(!checkDate($params['setting_date'])){
if(!checkTimeData($params['setting_date'])){
return $this->response("101", '非法时间');
}
......@@ -196,7 +196,7 @@ class CostParameter extends Basic
return $this->response("101", $checkResult);
}
if(!checkDate($params['setting_date'])){
if(!checkTimeData($params['setting_date'])){
return $this->response("101", '非法时间');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment