限制用户下单频率 日志
This commit is contained in:
@@ -262,6 +262,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersDao, Orders> implements
|
||||
log.info("生成商品订单信息接口入参为:{},{}", courseId, userId);
|
||||
|
||||
if (!redisService.getUserCanCreateOrder(userId)) {
|
||||
log.info("操作过于频繁,请稍后再试!userId:{}", userId);
|
||||
return Result.error("操作过于频繁,请稍后再试!");
|
||||
}
|
||||
redisService.setUserCanCreateOrder(userId);
|
||||
|
||||
Reference in New Issue
Block a user