|
|
@@ -3007,6 +3007,7 @@ class ProductClass extends BaseClass
|
|
|
}
|
|
|
|
|
|
$productId = $product['productId'];
|
|
|
+ $productName = $product['name']??'';
|
|
|
$limitKey = self::LIMIT_BUY_KEY . $productId;
|
|
|
$has = Yii::$app->redis->executeCommand('HEXISTS', [$limitKey, $customId]);
|
|
|
if (!empty($has)) {
|
|
|
@@ -3020,7 +3021,7 @@ class ProductClass extends BaseClass
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- util::error(-1, '累计已超出限购数', ['productId' => $productId, 'limitBuy' => $limitBuy, 'exceed' => $lastNum - $limitBuy]);
|
|
|
+ util::error(-1, $productName.' 已超出限购数', ['productId' => $productId, 'limitBuy' => $limitBuy, 'exceed' => $lastNum - $limitBuy]);
|
|
|
}
|
|
|
Yii::$app->redis->executeCommand('HSET', [$limitKey, $customId, $lastNum]);
|
|
|
} else {
|