|
...
|
...
|
@@ -339,11 +339,18 @@ class CustomModuleContentLogic extends BaseLogic |
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
foreach ($this->param['id'] as $id) {
|
|
|
|
$info = $this->model->read(['id' => $id], ['id']);
|
|
|
|
if($info !== false){
|
|
|
|
if($info['status'] != 2){
|
|
|
|
$this->model->edit(['status' => 2],['id' => $id]);
|
|
|
|
}else{
|
|
|
|
//删除当前扩展字段
|
|
|
|
$this->delRoute($id);
|
|
|
|
$this->delContentExtend($id);
|
|
|
|
$this->model->del(['id' => $id]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DB::commit();
|
|
|
|
} catch (Exception $e) {
|
|
|
|
DB::rollBack();
|
...
|
...
|
|