public function run() { if (1 == $this->ifShield) { $type = 'shield'; } else { $type = 'unshield'; } if ($this->pids) { Wind::import('SRV:forum.dm.PwReplyDm'); $topicDm = new PwReplyDm(true); $topicDm->setIfshield($this->ifShield); $this->_getThreadDs()->batchUpdatePost($this->pids, $topicDm); //回复的屏蔽处理:被站内置顶的回复也会在屏蔽范围内,排除 if (!$this->tids) { Wekit::load('log.srv.PwLogService')->addThreadManageLog($this->srv->user, $type, $this->threads['p'], $this->_reason, '', true); } } if ($this->tids) { Wind::import('SRV:forum.dm.PwTopicDm'); $topicDm = new PwTopicDm(true); $topicDm->setIfshield($this->ifShield); $this->_getThreadDs()->batchUpdateThread($this->tids, $topicDm, PwThread::FETCH_MAIN); //帖子的屏蔽处理 Wekit::load('log.srv.PwLogService')->addThreadManageLog($this->srv->user, $type, $this->threads['t'], $this->_reason); } }