/** * 还原回复 */ public function doRevertReplyAction() { $pids = $this->getInput('pids'); Wind::import('SRV:forum.srv.operation.PwRevertReply'); $srv = new PwRevertReply($pids, $this->loginUser); $srv->execute(); $this->showMessage('还原成功了'); }
public function doRevertReplyAction() { $pids = $this->getInput('pids'); if (!$pids) { $this->showError('operate.select'); } Wind::import('SRV:forum.srv.operation.PwRevertReply'); $srv = new PwRevertReply($pids, new PwUserBo($this->adminUser->getUid())); $srv->execute(); $this->showMessage('还原成功了'); }