This commit is contained in:
root 2019-12-15 22:24:49 +08:00
parent 9066119fb5
commit 1081bdbd8b

View File

@ -8,6 +8,7 @@ use App\Http\Controllers\Controller;
use App\Models\User; use App\Models\User;
use App\Models\Plan; use App\Models\Plan;
use App\Models\Server; use App\Models\Server;
use App\Models\Ticket;
use App\Utils\Helper; use App\Utils\Helper;
use App\Models\Order; use App\Models\Order;
@ -77,7 +78,9 @@ class UserController extends Controller
Order::where('status', 0) Order::where('status', 0)
->where('user_id', $request->session()->get('id')) ->where('user_id', $request->session()->get('id'))
->count(), ->count(),
0, Ticket::where('status', 0)
->where('user_id', $request->session()->get('id'))
->count(),
User::where('invite_user_id', $request->session()->get('id')) User::where('invite_user_id', $request->session()->get('id'))
->count() ->count()
]; ];