REQ-3578: 处理重复请求

This commit is contained in:
yanglin 2025-01-10 23:18:50 +08:00
parent 5f59c814b4
commit 1b4a80d18c

View File

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