Exemplo n.º 1
0
 public function addPost($pid, $tid)
 {
     if ($aids = $this->action->getAids()) {
         $dm = new PwThreadAttachDm();
         $dm->setFid($this->fid);
         $dm->setPid($pid);
         $dm->setTid($tid);
         $this->_getService()->batchUpdateAttach($aids, $dm);
         $this->post->getUserDm()->addTodayupload(count($aids));
         $this->_operateCredit('upload_att');
     }
 }