|
...
|
...
|
@@ -281,7 +281,7 @@ class NewsController extends BaseController |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :批量设置产品分类及状态
|
|
|
|
* @remark :批量设置分类及状态
|
|
|
|
* @name :batchSetCategory
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
...
|
...
|
@@ -291,11 +291,9 @@ class NewsController extends BaseController |
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
'category_id'=>'required',
|
|
|
|
'status'=>'required'
|
|
|
|
],[
|
|
|
|
'id.required' => '产品ID不能为空',
|
|
|
|
'category_id.required' => '分类ID不能为空',
|
|
|
|
'status.required'=>'状态不能为空'
|
|
|
|
]);
|
|
|
|
$logic->batchSetCategory();
|
|
|
|
$this->response('success');
|
...
|
...
|
|