Browse Source

Merge branch 'phoenix'

master
Lemon 5 years ago
parent
commit
3c09fb289f
  1. 2
      app/Service/v3/Implementations/GoodsActivityService.php
  2. 2
      app/Service/v3/Implementations/GoodsService.php

2
app/Service/v3/Implementations/GoodsActivityService.php

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

2
app/Service/v3/Implementations/GoodsService.php

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

Loading…
Cancel
Save