Commit 31291dbb authored by zhuwei's avatar zhuwei

日期验证

parent 5c91ad7b
......@@ -370,12 +370,12 @@ class OperationData extends Basic
return $this->response("101", $checkResult);
}
//验证时间是否合法
if(!checkTimeData($params['time_start'])){
//验证时间是否合法 2018-09 补全为 2018-09-30 用于验证月份选择是否有误,无其他作用
if(!checkTimeData($params['time_start']. "-01")){
return $this->response("101", '开始日期异常!');
}
//验证时间是否合法
if(!checkTimeData($params['time_end'])){
//验证时间是否合法 2018-09 补全为 2018-09-30 用于验证月份选择是否有误,无其他作用
if(!checkTimeData($params['time_end']. "-01")){
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