public function run()
 {
     $dm = new PwTopicDm(true);
     $type = '';
     if ($this->locked == 2) {
         $dm->setClosed(1)->setLocked(0);
         $type = 'closed';
     } elseif ($this->locked == 1) {
         $dm->setClosed(0)->setLocked(1);
         $type = 'lock';
     } else {
         $dm->setClosed(0)->setLocked(0);
         $type = 'unlock';
     }
     Wekit::load('forum.PwThread')->batchUpdateThread($this->tids, $dm, PwThread::FETCH_MAIN);
     Wekit::load('log.srv.PwLogService')->addThreadManageLog($this->srv->user, $type, $this->srv->getData(), $this->_reason);
 }