This commit is contained in:
@@ -28,7 +28,7 @@ func (h Controller) AcceptTask(data *task.AcceptTaskInboundInfo, c *player.Playe
|
||||
}
|
||||
|
||||
c.Info.SetTask(int(data.TaskId), model.Accepted)
|
||||
c.Service.Task.Exec(uint32(data.TaskId), func(t *model.TaskEX) bool {
|
||||
c.Service.Task.Exec(uint32(data.TaskId), func(t *model.Task) bool {
|
||||
t.Data = []uint32{}
|
||||
|
||||
return true
|
||||
@@ -48,7 +48,7 @@ func (h Controller) AddTaskBuf(data *task.AddTaskBufInboundInfo, c *player.Playe
|
||||
if c.Info.GetTask(int(data.TaskId)) != model.Accepted {
|
||||
return result, errorcode.ErrorCodes.ErrAwardAlreadyClaimed
|
||||
}
|
||||
c.Service.Task.Exec(data.TaskId, func(taskEx *model.TaskEX) bool {
|
||||
c.Service.Task.Exec(data.TaskId, func(taskEx *model.Task) bool {
|
||||
taskEx.Data = data.TaskList
|
||||
return true
|
||||
})
|
||||
@@ -105,7 +105,7 @@ func (h Controller) GetTaskBuf(data *task.GetTaskBufInboundInfo, c *player.Playe
|
||||
result = &task.GetTaskBufOutboundInfo{
|
||||
TaskId: data.TaskId,
|
||||
}
|
||||
c.Service.Task.Exec(data.TaskId, func(te *model.TaskEX) bool {
|
||||
c.Service.Task.Exec(data.TaskId, func(te *model.Task) bool {
|
||||
|
||||
result.TaskList = te.Data
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user