|
|
@@ -336,6 +336,7 @@ public class OrderService {
|
|
|
if (usePoint > 0) {
|
|
|
// 扣除积分
|
|
|
userRepo.addVipPoint(userId, -usePoint);
|
|
|
+ cacheService.clearUserMy(userId);
|
|
|
}
|
|
|
rocketMQTemplate.syncSend(generalProperties.getUpdateStockTopic(), collectionId, 10000);
|
|
|
log.info("订单创建完成, id={}, {}ms", order.getId(), System.currentTimeMillis() - t);
|
|
|
@@ -345,6 +346,7 @@ public class OrderService {
|
|
|
if (usePoint > 0) {
|
|
|
// 扣除积分
|
|
|
userRepo.addVipPoint(userId, usePoint);
|
|
|
+ cacheService.clearUserMy(userId);
|
|
|
log.info("订单失败加积分用户ID:{}, 积分:{}", userId, usePoint);
|
|
|
}
|
|
|
if (vip) {
|