This commit is contained in:
Tokumeikoi 2020-03-15 20:30:00 +08:00
parent 00c2dee361
commit 5f4d02dde3

View File

@ -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;