Skip to content

Commit

Permalink
Update PurseTypeController.php
Browse files Browse the repository at this point in the history
fix command bug
  • Loading branch information
yybawang authored Aug 2, 2024
1 parent ca3d4db commit 1ac14f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Controllers/PurseTypeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 1ac14f5

Please sign in to comment.