quanwei
7 days ago 30563323a53b0d0260c97d08a9e8bd4cc8227a95
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() ?: '更新失败');