From f07e51125694440ec0f6ca5ded98766c25ce4ee0 Mon Sep 17 00:00:00 2001 From: pushuo Date: Fri, 30 Dec 2022 16:17:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E5=95=86?= =?UTF-8?q?=E5=93=81=20update=20=E6=96=B9=E6=B3=95=E6=8A=9B=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=EF=BC=8C=E8=BF=94=E5=9B=9E=20route=20=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Admin/Http/Controllers/ProductController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beike/Admin/Http/Controllers/ProductController.php b/beike/Admin/Http/Controllers/ProductController.php index 6292e88f..2f8a34b4 100644 --- a/beike/Admin/Http/Controllers/ProductController.php +++ b/beike/Admin/Http/Controllers/ProductController.php @@ -84,7 +84,7 @@ class ProductController extends Controller (new ProductService)->update($product, $request->all()); return redirect()->to($this->getRedirect())->with('success', trans('common.updated_success')); } catch (\Exception $e) { - return redirect(admin_route('product.edit', $product))->withErrors(['error' => $e->getMessage()]); + return redirect(admin_route('products.edit', $product))->withErrors(['error' => $e->getMessage()]); } }