/** * * 设置热门话题 */ public function sethotAction() { $tagIds = $this->getInput('tag_id'); if (!$tagIds) { $this->showError('operate.select'); } $time = Pw::getTime(); foreach ($tagIds as $tagId) { $dm = new PwTagDm($tagId); $dm->setIfhot(1); $this->_getTagDs()->updateTag($dm); $this->_getTagDs()->addTagRecord($tagId, $time); } //删除update表 $this->_deleteHotTagCache(); $this->showMessage('ADMIN:success'); }