比赛log保存数据库修改
This commit is contained in:
parent
d534e73613
commit
06695defa6
|
|
@ -1491,10 +1491,13 @@ 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
|
||||
}
|
||||
|
||||
})).StartByFixExecutor("saveMatchLogTask")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue