This commit is contained in:
root 2019-11-04 22:17:32 +08:00
parent 6420d4ec65
commit 9f19951e55

View File

@ -27,9 +27,6 @@ class InviteController extends Controller
$codes = InviteCode::where('user_id', $request->session()->get('id')) $codes = InviteCode::where('user_id', $request->session()->get('id'))
->where('status', 0) ->where('status', 0)
->get(); ->get();
for ($i = 0; $i < count($codes); $i++) {
$codes[$i]['invite_url'] = config('v2board.app_url', env('APP_URL')) . '/#/register?code=' . $codes[$i]['code'];
}
$stat = [ $stat = [
//已注册用户数 //已注册用户数
(int)User::where('invite_user_id', $request->session()->get('id'))->count(), (int)User::where('invite_user_id', $request->session()->get('id'))->count(),