|
...
|
...
|
@@ -837,10 +837,8 @@ class ProductController extends BaseController |
|
|
|
public function delRelatedProductId(){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
'related_product_id'=>'required',
|
|
|
|
],[
|
|
|
|
'id.required' => '产品ID不能为空',
|
|
|
|
'related_product_id.required' => '关联产品不能为空',
|
|
|
|
]);
|
|
|
|
$productModel = new Product();
|
|
|
|
$data = $productModel->edit(['related_product_id'=>null],['id'=>$this->param['id']]);
|
...
|
...
|
|