REQ-3578: 处理重复请求
This commit is contained in:
parent
7d4e65f189
commit
b245ea6e05
@ -82,7 +82,7 @@ public class CardSupport {
|
||||
cardIdempotentDao.save(idempotent);
|
||||
} catch (DuplicateKeyException e) {
|
||||
log.warn("重复创建卡片, request={}", request);
|
||||
throw new ServiceException(String.format("重复创建卡片: %s", idempotent));
|
||||
throw new ServiceException(403, String.format("重复创建卡片: %s", idempotent));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user