比赛log保存数据库修改

This commit is contained in:
by 2024-05-14 11:44:31 +08:00
parent 06695defa6
commit 756ed06016
1 changed files with 3 additions and 3 deletions

View File

@ -1492,12 +1492,12 @@ func (this *Tournament) MakeMatchLog(platform string, tmId, sortId int32) *model
func (this *Tournament) saveMatchLog(matchLog *model.MatchLog) {
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
return err
}
return nil
}), task.CompleteNotifyWrapper(func(data interface{}, tt task.Task) {
})).StartByFixExecutor("saveMatchLogTask")
}