正在显示
1 个修改的文件
包含
0 行增加
和
2 行删除
| @@ -837,10 +837,8 @@ class ProductController extends BaseController | @@ -837,10 +837,8 @@ class ProductController extends BaseController | ||
| 837 | public function delRelatedProductId(){ | 837 | public function delRelatedProductId(){ |
| 838 | $this->request->validate([ | 838 | $this->request->validate([ |
| 839 | 'id'=>'required', | 839 | 'id'=>'required', |
| 840 | - 'related_product_id'=>'required', | ||
| 841 | ],[ | 840 | ],[ |
| 842 | 'id.required' => '产品ID不能为空', | 841 | 'id.required' => '产品ID不能为空', |
| 843 | - 'related_product_id.required' => '关联产品不能为空', | ||
| 844 | ]); | 842 | ]); |
| 845 | $productModel = new Product(); | 843 | $productModel = new Product(); |
| 846 | $data = $productModel->edit(['related_product_id'=>null],['id'=>$this->param['id']]); | 844 | $data = $productModel->edit(['related_product_id'=>null],['id'=>$this->param['id']]); |
-
请 注册 或 登录 后发表评论