admin/app/supplier/controller/product/Category.php
@@ -55,8 +55,10 @@ { // 模板详情 $model = CategoryModel::detail($category_id); $data = $this->request->post(); $data['shop_supplier_id'] = $this->getSupplierId(); // 更新记录 if ($model->edit($this->request->post())) { if ($model->edit($data)) { return $this->renderSuccess('更新成功'); } return $this->renderError($model->getError() ?: '更新失败');