正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
@@ -111,7 +111,13 @@ class AdminEquipmentController extends AdminBaseController{ | @@ -111,7 +111,13 @@ class AdminEquipmentController extends AdminBaseController{ | ||
111 | 111 | ||
112 | //删除 | 112 | //删除 |
113 | public function delete(){ | 113 | public function delete(){ |
114 | - | 114 | + $id=$this->request->param('id'); |
115 | + try{ | ||
116 | + Db::name('equipment')->where('id',$id)->update(['is_delete'=>1]); | ||
117 | + }catch (\Exception $exception){ | ||
118 | + $this->error('删除失败'); | ||
119 | + } | ||
120 | + $this->success('删除成功'); | ||
115 | } | 121 | } |
116 | 122 | ||
117 | 123 |
-
请 注册 或 登录 后发表评论