|
|
@@ -36,6 +36,7 @@ public class MintActivityService {
|
|
|
log.info("创建redis铸造活动库存:{}", success);
|
|
|
}
|
|
|
Long stock = ops.increment(number);
|
|
|
+ this.syncStock(id);
|
|
|
return stock;
|
|
|
}
|
|
|
|
|
|
@@ -55,7 +56,7 @@ public class MintActivityService {
|
|
|
}
|
|
|
|
|
|
public synchronized Long decreaseSale(Long id, int number) {
|
|
|
- return increaseStock(id, -number);
|
|
|
+ return increaseSale(id, -number);
|
|
|
}
|
|
|
|
|
|
@Debounce(key = "#id", delay = 500)
|