Пример #1
0
    def goAhead(self, who):
        '''前往
		'''
        if not holidayData.getCurrentHoliday():
            self.doScript(who, None, "TP2013")
            task.removeTask(who, self.id)
            return

        customTask.goAhead(self, who)
Пример #2
0
    def goAhead(self, who):
        '''前往
		'''
        wday = getDatePart()["wday"]
        if wday != 7:
            message.tips(who, "活动时间已过,自动删除任务")
            task.removeTask(who, self.id)
            return

        customTask.goAhead(self, who)
Пример #3
0
	def goAhead(self, who):#override
		'''前往
		'''
		firstExamObj = answer.getAnswerFirstExamObj()
		if not firstExamObj.isInAnswerTime():
			message.tips(who, firstExamObj.getText(2326))
			task.removeTask(who, self.id)
			return
		if who.inTeam():
			message.tips(who, firstExamObj.getText(2321, who.id))
			return
		customTask.goAhead(self, who)