diff --git a/beike/Admin/Http/Controllers/CurrencyController.php b/beike/Admin/Http/Controllers/CurrencyController.php index 85d25a1b..33f8c261 100644 --- a/beike/Admin/Http/Controllers/CurrencyController.php +++ b/beike/Admin/Http/Controllers/CurrencyController.php @@ -51,10 +51,10 @@ class CurrencyController extends Controller return redirect($this->getRedirect())->with('success', '货币创建成功!'); } - public function edit(Request $request, int $currency) + public function edit(Request $request, int $id) { $data = [ - 'currency' => $currency, + 'currency' => CurrencyRepo::find($id), '_redirect' => $this->getRedirect(), ];