fix(login): 将挖矿任务处理改为异步执行

This commit is contained in:
1
2025-10-23 05:55:05 +00:00
parent 66b2f4d748
commit 48f2e1457d

View File

@@ -76,7 +76,7 @@ func (h *Controller) Login(data *user.MAIN_LOGIN_IN, c gnet.Conn) (result *user.
t.Info.DailyResArr[i] = 0 //重置每日任务
}
t.Service.Talk(func(m map[uint32]uint32) bool { //挖矿
go t.Service.Talk(func(m map[uint32]uint32) bool { //挖矿
m = map[uint32]uint32{}
return true
})