lvhao пре 8 часа
родитељ
комит
622860bf46
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      core/CoreApp/controllers/Boss.php

+ 3 - 1
core/CoreApp/controllers/Boss.php

@@ -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;
 			}