Exemple #1
0
 /**
  *
  * @param string $tuduId
  * @param string $uniqueId
  * @return boolean
  */
 public function acceptTudu($tuduId, $uniqueId, $percent = null)
 {
     $params = array('accepttime' => time(), 'tudustatus' => Dao_Td_Tudu_Tudu::STATUS_DOING);
     if (is_int($percent)) {
         $params['percent'] = $percent;
     }
     $ret = $this->_tuduDao->updateTuduUser($tuduId, $uniqueId, $params);
     if ($ret) {
         $this->updateLastAcceptTime($tuduId);
     }
     return $ret;
 }