1
This commit is contained in:
@@ -39,7 +39,7 @@ public class PublicOrderController extends BaseController {
|
||||
* 提交订单
|
||||
*
|
||||
* 限流策略:
|
||||
* - 每个IP每分钟最多3次请求
|
||||
* - 每个IP半小时(30分钟)最多20次请求
|
||||
* - 防止恶意刷单和攻击
|
||||
*
|
||||
* @param body 请求体,包含command字段
|
||||
@@ -49,8 +49,8 @@ public class PublicOrderController extends BaseController {
|
||||
@PostMapping("/submit")
|
||||
@RateLimiter(
|
||||
key = CacheConstants.RATE_LIMIT_KEY,
|
||||
time = 60,
|
||||
count = 3,
|
||||
time = 1800,
|
||||
count = 20,
|
||||
limitType = LimitType.IP
|
||||
)
|
||||
public AjaxResult submit(@RequestBody Map<String, String> body, HttpServletRequest request) {
|
||||
|
||||
Reference in New Issue
Block a user