限时折扣相关

This commit is contained in:
2025-12-22 17:13:05 +08:00
parent 1f407b777e
commit fcf37717e8

View File

@@ -242,7 +242,7 @@ class Events
$gate_way = GateWay::class; $gate_way = GateWay::class;
$number = $message['number']; $number = $message['number'];
try { try {
Redis::select(3); // Redis::select(3);
$red_number = Redis::get('shop:' . $message['shop_id'] . ':product-stock:' . $message['product_id']); $red_number = Redis::get('shop:' . $message['shop_id'] . ':product-stock:' . $message['product_id']);
}catch (\Exception $e) { }catch (\Exception $e) {
// print_r( "Redis 错误: " . $e->getMessage() . "\r\n"); // print_r( "Redis 错误: " . $e->getMessage() . "\r\n");