|
...
|
...
|
@@ -299,7 +299,9 @@ class CustomModuleContentLogic extends BaseLogic |
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
foreach ($this->param['id'] as $id) {
|
|
|
|
//删除当前扩展字段
|
|
|
|
$this->delRoute($id);
|
|
|
|
$this->delContentExtend($id);
|
|
|
|
$this->model->del(['id' => $id]);
|
|
|
|
}
|
|
|
|
DB::commit();
|
|
...
|
...
|
@@ -337,4 +339,17 @@ class CustomModuleContentLogic extends BaseLogic |
|
|
|
$this->model->edit(['sort' => $this->param['sort']], ['id'=>$this->param['id']]);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :
|
|
|
|
* @name :delContentExtend
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/12/18 11:43
|
|
|
|
*/
|
|
|
|
public function delContentExtend($id){
|
|
|
|
$contentExtendModel = new CustomModuleExtentContent();
|
|
|
|
$contentExtendModel->del(['content_id'=>$id]);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|