From 5a9fc763741db370162c0ed6a215714f531aee6d Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 28 Apr 2020 11:23:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E7=BC=96=E8=BE=91=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=81=AE=E7=BD=A9=E4=B8=8D=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/AggregateFinanceSetController.class.php | 7 +++++-- .../Admin/View/AggregateFinanceStatement/lists.html | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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