diff --git a/Application/Admin/Controller/StatementWarningController.class.php b/Application/Admin/Controller/StatementWarningController.class.php index dd607556b..f73eb0c15 100644 --- a/Application/Admin/Controller/StatementWarningController.class.php +++ b/Application/Admin/Controller/StatementWarningController.class.php @@ -289,7 +289,9 @@ class StatementWarningController extends AdminController { if(!isset($_REQUEST['time'])) $this->error("参数错误"); - $time = $_REQUEST['time']; + $time =strtotime($_REQUEST['time']."-1"); + $time = date('Y-m',strtotime('+32 day',$time)); + $params = "php ".SUBSITE_INDEX." StatementWarningSet/setFreeMonth/count_date/{$time}"; $r = D("CmdTasks")->addTask("StatementWarningSet",$params); if($r){