From 6971d9ba42e5a267abe2459001665fd43bc671eb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 10 Oct 2024 15:04:58 +0800 Subject: [PATCH] 1 --- webapp/mt/HashRateShop.php | 5 +++++ webapp/services/HashRateShopService.php | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/webapp/mt/HashRateShop.php b/webapp/mt/HashRateShop.php index 6542405c..f3e65405 100644 --- a/webapp/mt/HashRateShop.php +++ b/webapp/mt/HashRateShop.php @@ -18,6 +18,11 @@ class HashRateShop { return self::$metaList; } + public static function all() + { + return self::$metaList; + } + protected static $metaList; } diff --git a/webapp/services/HashRateShopService.php b/webapp/services/HashRateShopService.php index 4ed45796..31fa7344 100644 --- a/webapp/services/HashRateShopService.php +++ b/webapp/services/HashRateShopService.php @@ -12,8 +12,7 @@ class HashRateShopService { public static function getGoodsList() { - - $goodsMetaList = $goodsMetaList ? $goodsMetaList : array(); + $goodsMetaList = mt\HashRateShop::all(); $buyRecordHash = ShopBuyRecord::allToHash(); $goodsList = array();