mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-23 23:45:08 +08:00
mp:优化前端消息发送的缓存逻辑
This commit is contained in:
@ -31,6 +31,9 @@ import org.springframework.validation.annotation.Validated;
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.Validator;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static cn.iocoder.yudao.module.mp.enums.ErrorCodeConstants.MESSAGE_SEND_FAIL;
|
||||
|
||||
/**
|
||||
* 粉丝消息表 Service 实现类
|
||||
*
|
||||
@ -115,7 +118,7 @@ public class MpMessageServiceImpl implements MpMessageService {
|
||||
try {
|
||||
mpService.getKefuService().sendKefuMessageWithResponse(wxMessage);
|
||||
} catch (WxErrorException e) {
|
||||
throw new RuntimeException(e);
|
||||
throw exception(MESSAGE_SEND_FAIL, e.getError().getErrorMsg());
|
||||
}
|
||||
|
||||
// 记录消息
|
||||
|
Reference in New Issue
Block a user