diff --git a/Application/Admin/Controller/PartnerController.class.php b/Application/Admin/Controller/PartnerController.class.php index 3be4e66f1..2e45410a9 100644 --- a/Application/Admin/Controller/PartnerController.class.php +++ b/Application/Admin/Controller/PartnerController.class.php @@ -173,9 +173,13 @@ class PartnerController extends ThinkController //删除 public function del() { - $id = intval(I('get.id', 0)); - if ($id == 0) { - $this->error('参数异常'); + if ($_POST['ids']) { + $id = implode(',', $_POST['ids']); + } else { + $id = intval(I('get.id', 0)); + if ($id == 0) { + $this->error('参数异常'); + } } $res = M($this->modelName, 'tab_')->delete($id); diff --git a/Application/Admin/View/Partner/lists.html b/Application/Admin/View/Partner/lists.html index d83208d00..223a2403e 100644 --- a/Application/Admin/View/Partner/lists.html +++ b/Application/Admin/View/Partner/lists.html @@ -39,7 +39,7 @@
新增 - + 删除
@@ -68,9 +68,9 @@ - - - + + + 合作方 显示状态 添加人 @@ -86,7 +86,7 @@ - + {$data.partner} {$data.status} {$data.nickname}