diff --git a/webapp/services/HashRateShopService.php b/webapp/services/HashRateShopService.php index 27aa5238..db394b67 100644 --- a/webapp/services/HashRateShopService.php +++ b/webapp/services/HashRateShopService.php @@ -24,6 +24,9 @@ class HashRateShopService { if ($goodsMeta['is_close']) { continue; } + if ($goodsMeta['first_time'] <= myself()->_getNowTime()) { + continue; + } $goodsDto = array( 'goods_id' => $goodsMeta['id'], 'price' => $goodsMeta['pile_price'], @@ -70,6 +73,11 @@ class HashRateShopService { $errMsg = 'cant buy'; return; } + if ($goodsMeta['first_time'] <= myself()->_getNowTime()) { + $errCode = 1; + $errMsg = 'cant buy'; + return; + } $errCode = 0; $errMsg = ''; $buyRecordHash = HashRateShopBuyRecord::allToHash();