diff --git a/Application/Admin/Controller/AggregateFinanceSetController.class.php b/Application/Admin/Controller/AggregateFinanceSetController.class.php index 6f3b4f3ab..31af55f9a 100644 --- a/Application/Admin/Controller/AggregateFinanceSetController.class.php +++ b/Application/Admin/Controller/AggregateFinanceSetController.class.php @@ -46,6 +46,9 @@ class AggregateFinanceSetController extends Controller { } public function setDailyCount($stime="now") { + if(!IS_CLI){ + die("只支持脚本访问"); + } if($stime=="now"){ $stime=time(); }else{ @@ -70,13 +73,13 @@ class AggregateFinanceSetController extends Controller { echo $nowdate."非周一和月初,无需任何处理".PHP_EOL; } } - public function setWeekCount($stime)//进行周结 + protected function setWeekCount($stime)//进行周结 { $begintime = mktime(0,0,0,date('m',$stime),date('d',$stime)-7,date('Y',$stime)); $endtime = mktime(0,0,0,date('m',$stime),date('d',$stime),date('Y',$stime))-1; $this->getAndSaveData(0,$begintime,$endtime); } - public function setMonthCount($stime)//进行周结 + protected function setMonthCount($stime)//进行周结 { $thismonth = date('m',$stime); $thisyear = date('Y',$stime); diff --git a/Application/Admin/View/AggregateFinanceStatement/lists.html b/Application/Admin/View/AggregateFinanceStatement/lists.html index ad186aa04..9cc579dcc 100644 --- a/Application/Admin/View/AggregateFinanceStatement/lists.html +++ b/Application/Admin/View/AggregateFinanceStatement/lists.html @@ -521,7 +521,7 @@ layer.open({ type: 2, title: "申请开票", - shadeClose: true, + shadeClose: false, shade: 0.8, area: ['70%', '80%'], content:'/admin.php?s=/AggregateFinanceStatement/createStatement/id/'+id @@ -533,7 +533,7 @@ layer.open({ type: 2, title: "开票编辑", - shadeClose: true, + shadeClose: false, shade: 0.8, area: ['70%', '80%'], content:'/admin.php?s=/AggregateFinanceStatement/editStatement/id/'+id