正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -115,10 +115,12 @@ class ProductController extends BaseController | @@ -115,10 +115,12 @@ class ProductController extends BaseController | ||
| 115 | public function batchSetCategory(ProductLogic $logic){ | 115 | public function batchSetCategory(ProductLogic $logic){ |
| 116 | $this->request->validate([ | 116 | $this->request->validate([ |
| 117 | 'id'=>'required', | 117 | 'id'=>'required', |
| 118 | - 'category_id'=>'required' | 118 | + 'category_id'=>'required', |
| 119 | + 'status'=>'required' | ||
| 119 | ],[ | 120 | ],[ |
| 120 | 'id.required' => '产品ID不能为空', | 121 | 'id.required' => '产品ID不能为空', |
| 121 | - 'category_id' => '分类ID不能为空' | 122 | + 'category_id' => '分类ID不能为空', |
| 123 | + 'status'=>'状态不能为空' | ||
| 122 | ]); | 124 | ]); |
| 123 | $logic->batchSetCategory(); | 125 | $logic->batchSetCategory(); |
| 124 | $this->response('success'); | 126 | $this->response('success'); |
-
请 注册 或 登录 后发表评论