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