正在显示
1 个修改的文件
包含
9 行增加
和
0 行删除
| @@ -112,5 +112,14 @@ class Building extends DoubleBase | @@ -112,5 +112,14 @@ class Building extends DoubleBase | ||
| 112 | return $this->view->fetch(); | 112 | return $this->view->fetch(); |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | + public function del($ids = null) | ||
| 116 | + { | ||
| 117 | + $result = $this->model->where(['id' => $ids])->delete(); | ||
| 118 | + if(!$result) { | ||
| 119 | + $this->error(__('删除失败')); | ||
| 120 | + } | ||
| 121 | + $this->success(); | ||
| 122 | + } | ||
| 123 | + | ||
| 115 | 124 | ||
| 116 | } | 125 | } |
-
请 注册 或 登录 后发表评论