REQ-3578: 处理重复请求

This commit is contained in:
yanglin 2025-01-10 23:13:08 +08:00
parent 7d4e65f189
commit b245ea6e05

View File

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