限制用户下单频率 日志

This commit is contained in:
GYJ 2025-03-04 15:28:34 +08:00
parent 0381fd4ab5
commit ec8a569e78
1 changed files with 1 additions and 0 deletions

View File

@ -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);