diff --git a/txop/msg/msg.go b/txop/msg/msg.go index dcfe4e5275b1d1342ea7efed2c307c00b264be1e..a3801c0391a83f97737dafb24572ed38a141600e 100644 --- a/txop/msg/msg.go +++ b/txop/msg/msg.go @@ -6,11 +6,13 @@ import ( "git.hilo.cn/hilo-common/internal/model/msg_m" "git.hilo.cn/hilo-common/internal/model/user_m" "git.hilo.cn/hilo-common/resource/mysql" + "git.hilo.cn/hilo-common/utils" ) // 发送小助手消息 func SendLittleAssistantMsg(model *domain.Model, userId mysql.ID, t msg_e.MsgUserRecordType, diamondIncome mysql.Str, dayNum mysql.Str, propertyUrl mysql.Str, beanNum mysql.Str, groupCode mysql.Str, users ...*user_m.User) (err error) { + defer utils.CheckGoPanic() var user *user_m.User if len(users) > 0 { user = users[0]