Exemplo n.º 1
0
        public void finishStep(int taskId, int stepId)
        {
            if (taskId != curTaskId)
            {
                throw new Exception("finishStep与当前进行任务不符的taskId:" + taskId + ",当前进行的任务为:" + curTaskId);
            }

            if (!_taskCacheData.finishStep(taskId, stepId))
            {
                throw new Exception("finishTask当前任务" + taskId + "还未开启,不能完成");
            }
            _stepController.finishStep();
            _conditionMeetHelper.finishStep(stepId);
            checkTaskUI();
            _stepController.checkFinishTask();
        }