Commit 7e5aef74 authored by hujiebin's avatar hujiebin

异步emas提醒

parent 0dd8eeac
......@@ -34,11 +34,14 @@ func SendLittleAssistantMsg(model *domain.Model, userId mysql.ID, t msg_e.MsgUse
return err
}
}
err = msg_m.SendEmasMsgAssistant(model, user.ExternalId, user.DeviceType)
if err != nil {
model.Log.Errorf("SendLittleAssistantMsg SendEmasMsgAssistant userId:%v, err:%v", userId, err)
return err
}
// 异步emas提醒
go func() {
defer utils.CheckGoPanic()
err = msg_m.SendEmasMsgAssistant(domain.CreateModelContext(model.MyContext), user.ExternalId, user.DeviceType)
if err != nil {
model.Log.Errorf("SendLittleAssistantMsg SendEmasMsgAssistant userId:%v, err:%v", userId, err)
}
}()
return nil
}
......
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