|
@@ -281,7 +281,7 @@ class NewsController extends BaseController |
|
@@ -281,7 +281,7 @@ class NewsController extends BaseController |
|
281
|
|
281
|
|
|
282
|
|
282
|
|
|
283
|
/**
|
283
|
/**
|
|
284
|
- * @remark :批量设置产品分类及状态
|
284
|
+ * @remark :批量设置分类及状态
|
|
285
|
* @name :batchSetCategory
|
285
|
* @name :batchSetCategory
|
|
286
|
* @author :lyh
|
286
|
* @author :lyh
|
|
287
|
* @method :post
|
287
|
* @method :post
|
|
@@ -291,11 +291,9 @@ class NewsController extends BaseController |
|
@@ -291,11 +291,9 @@ class NewsController extends BaseController |
|
291
|
$this->request->validate([
|
291
|
$this->request->validate([
|
|
292
|
'id'=>'required',
|
292
|
'id'=>'required',
|
|
293
|
'category_id'=>'required',
|
293
|
'category_id'=>'required',
|
|
294
|
- 'status'=>'required'
|
|
|
|
295
|
],[
|
294
|
],[
|
|
296
|
'id.required' => '产品ID不能为空',
|
295
|
'id.required' => '产品ID不能为空',
|
|
297
|
'category_id.required' => '分类ID不能为空',
|
296
|
'category_id.required' => '分类ID不能为空',
|
|
298
|
- 'status.required'=>'状态不能为空'
|
|
|
|
299
|
]);
|
297
|
]);
|
|
300
|
$logic->batchSetCategory();
|
298
|
$logic->batchSetCategory();
|
|
301
|
$this->response('success');
|
299
|
$this->response('success');
|