From f1c02e622bdb143e1ac969c92f3016183f9af002 Mon Sep 17 00:00:00 2001 From: songliang Date: Sat, 15 Jul 2023 18:52:34 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');