From 1ac14f5f989f158ea6af17f10e64d6579525c1b3 Mon Sep 17 00:00:00 2001 From: Vision Date: Fri, 2 Aug 2024 12:07:25 +0800 Subject: [PATCH] Update PurseTypeController.php fix command bug --- src/Http/Controllers/PurseTypeController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Http/Controllers/PurseTypeController.php b/src/Http/Controllers/PurseTypeController.php index 3d3fec2..d58931a 100644 --- a/src/Http/Controllers/PurseTypeController.php +++ b/src/Http/Controllers/PurseTypeController.php @@ -6,6 +6,7 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Artisan; +use yybawang\ebank\Illuminate\FundService; use yybawang\ebank\Models\FundPurseType; class PurseTypeController extends BaseController @@ -38,7 +39,8 @@ public function store(Request $request){ ]); $param['alias'] = strtolower($param['alias']); $Purse = FundPurseType::withoutGlobalScope('active')->updateOrCreate(['id' => $param['id']], $param); - Artisan::call('ebank:purse-init'); + $FundService = new FundService(); + $FundService->initPurse(); return $this->success($Purse); }