|
@@ -71,6 +71,10 @@ public class ImSendGroupMessageServiceImpl extends BaseServiceImpl<Long, ImSendG
|
|
if(message.getSendFlag()){
|
|
if(message.getSendFlag()){
|
|
throw new BizException("消息已发送");
|
|
throw new BizException("消息已发送");
|
|
}
|
|
}
|
|
|
|
+ //如果是图片类型,图片地址不能为空
|
|
|
|
+ if((imSendGroupMessage.getMessageType() == ImSendTypeEnum.IMG || imSendGroupMessage.getMessageType() == ImSendTypeEnum.FILE) && StringUtils.isBlank(imSendGroupMessage.getFileUrl())){
|
|
|
|
+ throw new BizException("文件地址不能为空");
|
|
|
|
+ }
|
|
imSendGroupMessageDao.update(imSendGroupMessage);
|
|
imSendGroupMessageDao.update(imSendGroupMessage);
|
|
}
|
|
}
|
|
|
|
|