Commit 05c5008a authored by jiaorz's avatar jiaorz

后台添加IM接口

parent ed208ddd
...@@ -350,7 +350,10 @@ public class MsgBiz { ...@@ -350,7 +350,10 @@ public class MsgBiz {
log.info("后台添加消息: param = {}", param); log.info("后台添加消息: param = {}", param);
Msg entity = Msg.build(param.getUserId(), param.getNickname(), param); Msg entity = Msg.build(param.getUserId(), param.getNickname(), param);
// 保存商务圈消息 // 保存商务圈消息
mongoTemplate.save(entity); Msg msg = mongoTemplate.save(entity);
if(msg == null) {
return null;
}
// 如果musicId不为空维护音乐使用次数 // 如果musicId不为空维护音乐使用次数
if(!StringUtils.isEmpty(param.getMusicId())){ if(!StringUtils.isEmpty(param.getMusicId())){
updateUseCount(new ObjectId(param.getMusicId())); updateUseCount(new ObjectId(param.getMusicId()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment