REQ-3578: 处理重复请求
This commit is contained in:
parent
5f59c814b4
commit
1b4a80d18c
@ -31,7 +31,7 @@ public class RequestReplayService {
|
||||
if (!isWindowEnabled(requestInfo))
|
||||
return supplier.get();
|
||||
if (acquire(requestInfo) == RequestAcquireResult.DUPLICATE_REQUEST)
|
||||
throw new ServiceException("重复请求: " + requestInfo);
|
||||
throw new ServiceException(403, "重复请求: " + requestInfo);
|
||||
try {
|
||||
return supplier.get();
|
||||
} catch (Exception e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user