From 1081bdbd8b318751f7a3c257b7941b802318e10a Mon Sep 17 00:00:00 2001 From: root Date: Sun, 15 Dec 2019 22:24:49 +0800 Subject: [PATCH] update --- app/Http/Controllers/UserController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 2948f918..08ad59a5 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -8,6 +8,7 @@ use App\Http\Controllers\Controller; use App\Models\User; use App\Models\Plan; use App\Models\Server; +use App\Models\Ticket; use App\Utils\Helper; use App\Models\Order; @@ -77,7 +78,9 @@ class UserController extends Controller Order::where('status', 0) ->where('user_id', $request->session()->get('id')) ->count(), - 0, + Ticket::where('status', 0) + ->where('user_id', $request->session()->get('id')) + ->count(), User::where('invite_user_id', $request->session()->get('id')) ->count() ];