|
|
@ -244,6 +244,13 @@ class CategoryController extends BaseController |
|
|
if(!empty($param['parent_map'])){ |
|
|
if(!empty($param['parent_map'])){ |
|
|
$param = $this->getMapCateData($param); |
|
|
$param = $this->getMapCateData($param); |
|
|
} |
|
|
} |
|
|
|
|
|
// 临时调整
|
|
|
|
|
|
$tempCate = $Category->getCategory(['id'=>$param['id'],'seller_id'=>$this->admin['seller_id']])['data']; |
|
|
|
|
|
if(empty($tempCate)){ |
|
|
|
|
|
return jsonReturn(-1, '栏目不存在'); |
|
|
|
|
|
} |
|
|
|
|
|
$param['website_id'] = $tempCate['website_id']; |
|
|
|
|
|
$param['module_id'] = $tempCate['module_id']; |
|
|
validate(CategoryValidate::class)->scene('update')->check($param); |
|
|
validate(CategoryValidate::class)->scene('update')->check($param); |
|
|
} catch (ValidateException $e) { |
|
|
} catch (ValidateException $e) { |
|
|
return jsonReturn(-1, $e->getError()); |
|
|
return jsonReturn(-1, $e->getError()); |
|
|
|