|
|
@@ -148,7 +148,9 @@ class Boss extends Start_Controller
|
|
|
$time = $this->input->post('time', true);
|
|
|
$time = strtotime($time);
|
|
|
$now_month_time = strtotime(date("Y-m",time()));
|
|
|
- if($time <= $now_month_time){
|
|
|
+ $time_str = date("Y-m",$time);
|
|
|
+ $now_month_time_str = date("Y-m",$now_month_time);
|
|
|
+ if($time_str != $now_month_time_str){
|
|
|
echo json_encode(array('msg' => '当月业务当月完成,不允许跨月份操作!', 'success' => false));
|
|
|
exit;
|
|
|
}
|