正在显示
1 个修改的文件
包含
1 行增加
和
4 行删除
| @@ -124,13 +124,10 @@ class ProductLogic extends BaseLogic | @@ -124,13 +124,10 @@ class ProductLogic extends BaseLogic | ||
| 124 | * @time :2023/8/21 17:11 | 124 | * @time :2023/8/21 17:11 |
| 125 | */ | 125 | */ |
| 126 | public function productDelete(){ | 126 | public function productDelete(){ |
| 127 | - $info = $this->model->read(['id'=>84]); | ||
| 128 | - var_dump($info); | ||
| 129 | - die(); | ||
| 130 | // DB::beginTransaction(); | 127 | // DB::beginTransaction(); |
| 131 | // try { | 128 | // try { |
| 132 | foreach ($this->param['ids'] as $k => $id) { | 129 | foreach ($this->param['ids'] as $k => $id) { |
| 133 | - $info = $this->model->read(['id'=>84]); | 130 | + $info = $this->model->read(['id'=>$id],['id']); |
| 134 | if($info['status'] == Product::STATUS_RECYCLE){ | 131 | if($info['status'] == Product::STATUS_RECYCLE){ |
| 135 | $this->delRoute($id); | 132 | $this->delRoute($id); |
| 136 | //删除当前产品模版 | 133 | //删除当前产品模版 |
-
请 注册 或 登录 后发表评论