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();