From 8db0c59e8242ddefb88fef29750153464b28ed00 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 10 Oct 2024 16:17:34 +0800 Subject: [PATCH] 1 --- webapp/services/HashRateShopService.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webapp/services/HashRateShopService.php b/webapp/services/HashRateShopService.php index beaf950a..d7aff194 100644 --- a/webapp/services/HashRateShopService.php +++ b/webapp/services/HashRateShopService.php @@ -2,18 +2,22 @@ namespace services; +require_once('models/HashRateShopBuyRecord.php'); + require_once('mt/HashRateShop.php'); require_once('mt/Item.php'); use mt; use phpcommon; +use models\HashRateShopBuyRecord; + class HashRateShopService { public static function getGoodsList() { $goodsMetaList = mt\HashRateShop::all(); - $buyRecordHash = ShopBuyRecord::allToHash(); + $buyRecordHash = HashRateShopBuyRecord::allToHash(); $goodsList = array(); foreach ($goodsMetaList as $goodsMeta) { @@ -65,7 +69,7 @@ class HashRateShopService { } $errCode = 0; $errMsg = ''; - $buyRecordHash = ShopBuyRecord::allToHash(); + $buyRecordHash = HashRateShopBuyRecord::allToHash(); $boughtTimes = 1; $goodsId = $goodsMeta['goods_id']; {