fix: 避免阻塞主流程
This commit is contained in:
parent
99ab104312
commit
6dd174d9f1
@ -7,12 +7,14 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
action.ActionManager.SendMsg(model.Reply{
|
||||
ReplyMsg: "初始化完成",
|
||||
FromMsg: model.Message{
|
||||
GroupInfo: model.GroupInfo{
|
||||
GroupId: config.ConfigManager.GetConfig().Management.ReportGroup,
|
||||
go func() {
|
||||
action.ActionManager.SendMsg(model.Reply{
|
||||
ReplyMsg: "初始化完成",
|
||||
FromMsg: model.Message{
|
||||
GroupInfo: model.GroupInfo{
|
||||
GroupId: config.ConfigManager.GetConfig().Management.ReportGroup,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
}()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user