From 5f4d02dde3aa8e410a8a57f1a271787954ab225f Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Sun, 15 Mar 2020 20:30:00 +0800 Subject: [PATCH] fix --- app/Http/Controllers/User/InviteController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/User/InviteController.php b/app/Http/Controllers/User/InviteController.php index f26133db..54bf0098 100644 --- a/app/Http/Controllers/User/InviteController.php +++ b/app/Http/Controllers/User/InviteController.php @@ -45,7 +45,7 @@ class InviteController extends Controller $codes = InviteCode::where('user_id', $request->session()->get('id')) ->where('status', 0) ->get(); - $commission_rate = config('v2board.invite_commission'); + $commission_rate = config('v2board.invite_commission', 10); $user = User::find($request->session()->get('id')); if ($user->commission_rate) { $commission_rate = $user->commission_rate;