mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
feature: 每个客户端独立处理后端发送的系统消息
This commit is contained in:
@@ -40,5 +40,5 @@ func (a *msgAppImpl) CreateAndSend(la *model.LoginAccount, wmsg *dto.SysMsg) {
|
||||
now := time.Now()
|
||||
msg := &entity.Msg{Type: 2, Msg: wmsg.Msg, RecipientId: int64(la.Id), CreateTime: &now, CreatorId: la.Id, Creator: la.Username}
|
||||
a.msgRepo.Insert(msg)
|
||||
ws.SendJsonMsg(la.Id, wmsg)
|
||||
ws.SendJsonMsg(la.ClientUuid, wmsg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user