From 4e3b199c2d149b163c94bba4faecfdd14316f8b1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 26 Jan 2022 13:42:43 +0800 Subject: [PATCH] 1 --- webapp/controller/MarketController.class.php | 8 ++++++++ webapp/controller/NewMarketController.class.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 173668e6..ba33520c 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -81,6 +81,14 @@ class MarketController extends BaseController { } } + if ($this->isTestMode()) { + foreach(array_keys($presaleInfo) as $key) { + if (!is_null(getReqVal($key, null))) { + $presaleInfo[$key] = getReqVal($key, $presaleInfo[$key]); + } + } + } + $pageInfo['count'] = count($rows); $pageInfo['total_pages'] = ceil($pageInfo['total'] / $pageInfo['per_page']); myself()->_rspData(array( diff --git a/webapp/controller/NewMarketController.class.php b/webapp/controller/NewMarketController.class.php index f40e8227..b2004759 100644 --- a/webapp/controller/NewMarketController.class.php +++ b/webapp/controller/NewMarketController.class.php @@ -81,6 +81,14 @@ class NewMarketController extends BaseController { } } + if ($this->isTestMode()) { + foreach(array_keys($presaleInfo) as $key) { + if (!is_null(getReqVal($key, null))) { + $presaleInfo[$key] = getReqVal($key, $presaleInfo[$key]); + } + } + } + $pageInfo['count'] = count($rows); $pageInfo['total_pages'] = ceil($pageInfo['total'] / $pageInfo['per_page']); myself()->_rspData(array(