This commit is contained in:
1
2025-11-16 20:30:17 +00:00
parent 2e3b52b3de
commit 5dbff2411c
70 changed files with 653 additions and 373 deletions

View File

@@ -22,7 +22,7 @@ func (h Controller) AcceptTask(data *task.AcceptTaskInboundInfo, c *player.Playe
if c.Info.TaskList[data.TaskId-1] == 0 {
c.Info.TaskList[data.TaskId-1] = 1
}
c.Service.Task(uint32(data.TaskId), func(t *model.TaskEX) bool {
c.Service.Task.Exec(uint32(data.TaskId), func(t *model.TaskEX) bool {
t.Data = []uint32{}
return true
@@ -42,7 +42,7 @@ func (h Controller) AddTaskBuf(data *task.AddTaskBufInboundInfo, c *player.Playe
// isdaliy = true
// }
c.Service.Task(data.TaskId, func(te *model.TaskEX) bool {
c.Service.Task.Exec(data.TaskId, func(te *model.TaskEX) bool {
te.Data = data.TaskList
return true
})
@@ -79,7 +79,7 @@ func (h Controller) Complete_Task(data *task.CompleteTaskInboundInfo, c *player.
r := c.GenPetInfo(int(tt.PetTypeId), 31, -1, 0, 0, 50)
result.CaptureTime = r.CatchTime
result.PetTypeId = r.ID
c.Service.PetAdd(*r)
c.Service.Pet.PetAdd(*r)
}
var ttt []model.SingleItemInfo
@@ -99,7 +99,7 @@ func (h Controller) Get_Task_Buf(data *task.GetTaskBufInboundInfo, c *player.Pla
result = &task.GetTaskBufOutboundInfo{
TaskId: data.TaskId,
}
c.Service.Task(data.TaskId, func(te *model.TaskEX) bool {
c.Service.Task.Exec(data.TaskId, func(te *model.TaskEX) bool {
result.TaskList = te.Data
return false