优化重算时间

master
chenzhi 3 years ago
parent 5315af1be9
commit 3459e20313

@ -289,7 +289,9 @@ class StatementWarningController extends AdminController
{ {
if(!isset($_REQUEST['time'])) $this->error("参数错误"); 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}"; $params = "php ".SUBSITE_INDEX." StatementWarningSet/setFreeMonth/count_date/{$time}";
$r = D("CmdTasks")->addTask("StatementWarningSet",$params); $r = D("CmdTasks")->addTask("StatementWarningSet",$params);
if($r){ if($r){

Loading…
Cancel
Save