|
...
|
...
|
@@ -430,7 +430,6 @@ class ProductLogic extends BaseLogic |
|
|
|
foreach ($this->param['ids'] as $id) {
|
|
|
|
$info = $this->model->read(['id'=>$id],['id','status']);
|
|
|
|
if($info['status'] == Product::STATUS_RECYCLE){
|
|
|
|
$this->delRoute($id);
|
|
|
|
//删除当前产品模版
|
|
|
|
// $this->delProductModule($id);
|
|
|
|
$this->model->del(['id'=>$id]);
|
|
...
|
...
|
@@ -441,6 +440,7 @@ class ProductLogic extends BaseLogic |
|
|
|
//回收站
|
|
|
|
$this->model->edit(['status'=>Product::STATUS_RECYCLE],['id'=>$id]);
|
|
|
|
}
|
|
|
|
$this->delRoute($id);
|
|
|
|
}
|
|
|
|
DB::connection('custom_mysql')->commit();
|
|
|
|
}catch (\Exception $e){
|
...
|
...
|
|