/** * 批量删除或者调整顺序 * */ public function batchAction() { $ids = $this->getp('dels'); if (empty($ids)) { $this->error('id 不能为空!'); } // 实例化Model $site = new SiteModel(); $row = $site->delSites($ids); if ($row) { $this->error('恭喜,删除成功', 'Message'); } else { $this->error('删除失败'); } }