diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 7f21dbe2a..d8c6761e0 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1501,7 +1501,7 @@ function cash_pay_way() function getMonth() { $start = date("Y-m", strtotime("now")); //开始月份 - $range = []; + $range = [$start]; $i = 1; do { $month = date('Y-m', strtotime($start . ' - ' . $i . ' month')); diff --git a/Application/Admin/Controller/AdminController.class.php b/Application/Admin/Controller/AdminController.class.php index 5fe578def..1f2b088db 100644 --- a/Application/Admin/Controller/AdminController.class.php +++ b/Application/Admin/Controller/AdminController.class.php @@ -49,7 +49,7 @@ class AdminController extends Controller { if ( false === $access ) { $this->error('403:禁止访问'); }elseif(null === $access ){ - $access_controller = ['Ajax', 'Finance', 'FinancePromote', 'PayChannel','FinanceCompare',"AggregateFinanceStatement","SubUserStatement","GameMargin"]; + $access_controller = ['Ajax', 'Finance', 'FinancePromote', 'PayChannel','FinanceCompare',"AggregateFinanceStatement","SubUserStatement","GameMargin",'StatementWarning']; if(!in_array(CONTROLLER_NAME, $access_controller)){//ajax放行 //检测访问权限 $rule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME); diff --git a/Application/Admin/Controller/StatementWarningController.class.php b/Application/Admin/Controller/StatementWarningController.class.php index c42e024b0..25ff86431 100644 --- a/Application/Admin/Controller/StatementWarningController.class.php +++ b/Application/Admin/Controller/StatementWarningController.class.php @@ -273,6 +273,16 @@ class StatementWarningController extends AdminController $this->statementWarningModel->addAll($adddata); } } + public function del() + { + $parm = I('get.'); + $where = [ + 'count_year'=>$parm['count_year'], + 'name'=>trim($parm['name']), + ]; + $this->statementWarningModel->where($where)->delete(); + $this->success("删除成功!"); + } public function updateStatement() { diff --git a/Application/Admin/View/StatementWarning/lists.html b/Application/Admin/View/StatementWarning/lists.html index 64ba3080d..cc969dfde 100644 --- a/Application/Admin/View/StatementWarning/lists.html +++ b/Application/Admin/View/StatementWarning/lists.html @@ -52,7 +52,7 @@