|
@@ -360,7 +360,7 @@ class ProductLogic extends BaseLogic |
|
@@ -360,7 +360,7 @@ class ProductLogic extends BaseLogic |
|
360
|
if($info['status'] == Product::STATUS_RECYCLE){
|
360
|
if($info['status'] == Product::STATUS_RECYCLE){
|
|
361
|
$this->delRoute($id);
|
361
|
$this->delRoute($id);
|
|
362
|
//删除当前产品模版
|
362
|
//删除当前产品模版
|
|
363
|
- $this->delProductModule($id);
|
363
|
+// $this->delProductModule($id);
|
|
364
|
$this->model->del(['id'=>$id]);
|
364
|
$this->model->del(['id'=>$id]);
|
|
365
|
//删除关联表
|
365
|
//删除关联表
|
|
366
|
$cateRelate->del(['product_id'=>$id]);
|
366
|
$cateRelate->del(['product_id'=>$id]);
|
|
@@ -598,7 +598,8 @@ class ProductLogic extends BaseLogic |
|
@@ -598,7 +598,8 @@ class ProductLogic extends BaseLogic |
|
598
|
'source' => BTemplate::SOURCE_PRODUCT,
|
598
|
'source' => BTemplate::SOURCE_PRODUCT,
|
|
599
|
'source_id' => $id,
|
599
|
'source_id' => $id,
|
|
600
|
'project_id'=>$this->user['project_id'],
|
600
|
'project_id'=>$this->user['project_id'],
|
|
601
|
- 'is_list'=>0
|
601
|
+ 'is_list'=>0,
|
|
|
|
602
|
+ 'is_custom'=>0
|
|
602
|
];
|
603
|
];
|
|
603
|
$bTemplateModel = new BTemplate();
|
604
|
$bTemplateModel = new BTemplate();
|
|
604
|
$rs = $bTemplateModel->del($param);
|
605
|
$rs = $bTemplateModel->del($param);
|