diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 60d6f36b..b9029905 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -900,7 +900,7 @@ class ShopController extends BaseAuthedController break; case ShopController::TOTAL_BUY_LIMIT: { // error_log("total buy limit " . $address . " " . $id . " " . $row['limit_num']); - $buyRecord = getXVal($buyRecordHash, $id); + $buyRecord = getXVal($buyRecordHash, $goods_id); $boughtTimes = $buyRecord ? $buyRecord['total_buy_times'] + 1 : 1; if ($buyRecord && getXVal($buyRecord, 'total_buy_times', 0) >= $row['limit_num']) { $this->_rspErr(2, 'Purchase limit reached');