This commit is contained in:
@@ -21,7 +21,7 @@ func (h Controller) AcceptTask(data *task.AcceptTaskInboundInfo, c *player.Playe
|
||||
}
|
||||
taskinfo := service.NewTaskService().IsAcceptable(data.TaskId)
|
||||
if taskinfo == nil {
|
||||
return nil, errorcode.ErrorCodes.ErrSystemError
|
||||
return nil, errorcode.ErrorCodes.ErrCannotAcceptDailyTasks
|
||||
}
|
||||
if taskinfo.ParentTaskId != 0 && c.Info.GetTask(int(taskinfo.ParentTaskId)) != model.Completed {
|
||||
return nil, errorcode.ErrorCodes.ErrInsufficientTasksForReward
|
||||
|
||||
Reference in New Issue
Block a user