REQ-3578: 处理重复请求
This commit is contained in:
parent
3f481de419
commit
7d4e65f189
@ -1,5 +1,6 @@
|
||||
package cn.axzo.msg.center.message.service.card;
|
||||
|
||||
import cn.axzo.basics.common.exception.ServiceException;
|
||||
import cn.axzo.framework.jackson.utility.JSON;
|
||||
import cn.axzo.im.center.api.vo.PersonAccountAttribute;
|
||||
import cn.axzo.im.center.api.vo.req.SendTemplateMessageParam;
|
||||
@ -81,6 +82,7 @@ public class CardSupport {
|
||||
cardIdempotentDao.save(idempotent);
|
||||
} catch (DuplicateKeyException e) {
|
||||
log.warn("重复创建卡片, request={}", request);
|
||||
throw new ServiceException(String.format("重复创建卡片: %s", idempotent));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user