From 1bc8f8e2f01d0ebdf70ee4edd390658c359709ca Mon Sep 17 00:00:00 2001 From: hujiabin Date: Tue, 7 Mar 2023 13:35:35 +0800 Subject: [PATCH] 1 --- webapp/controller/ChipPageController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/controller/ChipPageController.class.php b/webapp/controller/ChipPageController.class.php index b482565e..f070b215 100644 --- a/webapp/controller/ChipPageController.class.php +++ b/webapp/controller/ChipPageController.class.php @@ -11,6 +11,9 @@ use phpcommon\SqlHelper; class ChipPageController extends BaseAuthedController { public function chipPageList(){ + $obj = new services\ChipPageService(); + $obj->initChipPage(); + $list =array(); ChipPage::getList(function ($row) use(&$list){ array_push($list, ChipPage::toDto($row)); @@ -21,9 +24,6 @@ class ChipPageController extends BaseAuthedController } public function showPageInfo(){ - $obj = new services\ChipPageService(); - $obj->initChipPage(); - $page = getReqVal('page',1); $chipPageDb = ChipPage::find($page); if (!$chipPageDb){