diff --git a/logic/controller/task.go b/logic/controller/task.go index ae63bd7b..3b3e3152 100644 --- a/logic/controller/task.go +++ b/logic/controller/task.go @@ -67,7 +67,7 @@ func (h Controller) Complete_Task(data *task.CompleteTaskInboundInfo, c *player. switch data.TaskId { // 新手任务1 case 85: - + // out_id=1(默认分支)的奖励物品 result.ItemList = append(result.ItemList, task.ItemInfo{ItemId: 100027, ItemCount: 1}, // 新手帽(默认数量1) @@ -573,11 +573,9 @@ func (h Controller) Get_Task_Buf(data *task.GetTaskBufInboundInfo, c *player.Pla */ func (h Controller) Delete_Task(data *task.DeleteTaskInboundInfo, c *player.Player) (result *task.DeleteTaskOutboundInfo, err errorcode.ErrorCode) { - // if data.Head.CMD == 2205 { //判断不是每日任务 + if c.Info.TaskList[data.TaskId-1] == 1 { + c.Info.TaskList[data.TaskId-1] = 0 + } - // } else { - - // } - - return &task.DeleteTaskOutboundInfo{}, 0 + return &task.DeleteTaskOutboundInfo{TaskId: data.TaskId}, 0 }