正在显示
3 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -133,9 +133,9 @@ class BlogLogic extends BaseLogic | @@ -133,9 +133,9 @@ class BlogLogic extends BaseLogic | ||
| 133 | if($info['status'] != 2){ | 133 | if($info['status'] != 2){ |
| 134 | $this->model->edit(['status'=>2],['id'=>$id]); | 134 | $this->model->edit(['status'=>2],['id'=>$id]); |
| 135 | }else{ | 135 | }else{ |
| 136 | - $this->delRoute($id); | ||
| 137 | $this->model->del(['id' => $id]); | 136 | $this->model->del(['id' => $id]); |
| 138 | } | 137 | } |
| 138 | + $this->delRoute($id); | ||
| 139 | } | 139 | } |
| 140 | DB::commit(); | 140 | DB::commit(); |
| 141 | }catch (Exception $e){ | 141 | }catch (Exception $e){ |
| @@ -163,9 +163,9 @@ class NewsLogic extends BaseLogic | @@ -163,9 +163,9 @@ class NewsLogic extends BaseLogic | ||
| 163 | if($info['status'] != 2){ | 163 | if($info['status'] != 2){ |
| 164 | $this->model->edit(['status'=>2],['id'=>$id]); | 164 | $this->model->edit(['status'=>2],['id'=>$id]); |
| 165 | }else{ | 165 | }else{ |
| 166 | - $this->delRoute($id); | ||
| 167 | $this->model->del(['id' => $id]); | 166 | $this->model->del(['id' => $id]); |
| 168 | } | 167 | } |
| 168 | + $this->delRoute($id); | ||
| 169 | } | 169 | } |
| 170 | DB::commit(); | 170 | DB::commit(); |
| 171 | } catch (Exception $e) { | 171 | } catch (Exception $e) { |
| @@ -430,7 +430,6 @@ class ProductLogic extends BaseLogic | @@ -430,7 +430,6 @@ class ProductLogic extends BaseLogic | ||
| 430 | foreach ($this->param['ids'] as $id) { | 430 | foreach ($this->param['ids'] as $id) { |
| 431 | $info = $this->model->read(['id'=>$id],['id','status']); | 431 | $info = $this->model->read(['id'=>$id],['id','status']); |
| 432 | if($info['status'] == Product::STATUS_RECYCLE){ | 432 | if($info['status'] == Product::STATUS_RECYCLE){ |
| 433 | - $this->delRoute($id); | ||
| 434 | //删除当前产品模版 | 433 | //删除当前产品模版 |
| 435 | // $this->delProductModule($id); | 434 | // $this->delProductModule($id); |
| 436 | $this->model->del(['id'=>$id]); | 435 | $this->model->del(['id'=>$id]); |
| @@ -441,6 +440,7 @@ class ProductLogic extends BaseLogic | @@ -441,6 +440,7 @@ class ProductLogic extends BaseLogic | ||
| 441 | //回收站 | 440 | //回收站 |
| 442 | $this->model->edit(['status'=>Product::STATUS_RECYCLE],['id'=>$id]); | 441 | $this->model->edit(['status'=>Product::STATUS_RECYCLE],['id'=>$id]); |
| 443 | } | 442 | } |
| 443 | + $this->delRoute($id); | ||
| 444 | } | 444 | } |
| 445 | DB::connection('custom_mysql')->commit(); | 445 | DB::connection('custom_mysql')->commit(); |
| 446 | }catch (\Exception $e){ | 446 | }catch (\Exception $e){ |
-
请 注册 或 登录 后发表评论