Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop

This commit is contained in:
sk 2024-05-14 11:40:01 +08:00
commit e2f1e997a0
1 changed files with 9 additions and 6 deletions

View File

@ -1491,10 +1491,13 @@ func (this *Tournament) MakeMatchLog(platform string, tmId, sortId int32) *model
}
func (this *Tournament) saveMatchLog(matchLog *model.MatchLog) {
err := model.InsertMatchLogs(matchLog)
if err != nil {
logger.Logger.Error("saveMatchLog error %v", err)
return
}
task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} {
return nil
}), task.CompleteNotifyWrapper(func(data interface{}, tt task.Task) {
err := model.InsertMatchLogs(matchLog)
if err != nil {
logger.Logger.Error("saveMatchLog error %v", err)
return
}
})).StartByFixExecutor("saveMatchLogTask")
}