|
|
@ -59,7 +59,7 @@ class GoodsActivityService implements GoodsActivityServiceInterface |
|
|
if (!$redis->exists($inventoryKey)) { |
|
|
if (!$redis->exists($inventoryKey)) { |
|
|
$redis->set($inventoryKey, $num); |
|
|
$redis->set($inventoryKey, $num); |
|
|
} else { |
|
|
} else { |
|
|
$redis->incrBy($inventoryKey, $num); |
|
|
|
|
|
|
|
|
$redis->incrBy($inventoryKey, intval($num)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 是否超过限购数量
|
|
|
// 是否超过限购数量
|
|
|
|