正在显示
1 个修改的文件
包含
15 行增加
和
0 行删除
| @@ -299,7 +299,9 @@ class CustomModuleContentLogic extends BaseLogic | @@ -299,7 +299,9 @@ class CustomModuleContentLogic extends BaseLogic | ||
| 299 | DB::beginTransaction(); | 299 | DB::beginTransaction(); |
| 300 | try { | 300 | try { |
| 301 | foreach ($this->param['id'] as $id) { | 301 | foreach ($this->param['id'] as $id) { |
| 302 | + //删除当前扩展字段 | ||
| 302 | $this->delRoute($id); | 303 | $this->delRoute($id); |
| 304 | + $this->delContentExtend($id); | ||
| 303 | $this->model->del(['id' => $id]); | 305 | $this->model->del(['id' => $id]); |
| 304 | } | 306 | } |
| 305 | DB::commit(); | 307 | DB::commit(); |
| @@ -337,4 +339,17 @@ class CustomModuleContentLogic extends BaseLogic | @@ -337,4 +339,17 @@ class CustomModuleContentLogic extends BaseLogic | ||
| 337 | $this->model->edit(['sort' => $this->param['sort']], ['id'=>$this->param['id']]); | 339 | $this->model->edit(['sort' => $this->param['sort']], ['id'=>$this->param['id']]); |
| 338 | return $this->success(); | 340 | return $this->success(); |
| 339 | } | 341 | } |
| 342 | + | ||
| 343 | + /** | ||
| 344 | + * @remark : | ||
| 345 | + * @name :delContentExtend | ||
| 346 | + * @author :lyh | ||
| 347 | + * @method :post | ||
| 348 | + * @time :2023/12/18 11:43 | ||
| 349 | + */ | ||
| 350 | + public function delContentExtend($id){ | ||
| 351 | + $contentExtendModel = new CustomModuleExtentContent(); | ||
| 352 | + $contentExtendModel->del(['content_id'=>$id]); | ||
| 353 | + return $this->success(); | ||
| 354 | + } | ||
| 340 | } | 355 | } |
-
请 注册 或 登录 后发表评论