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']; {