Compare commits

...

2 Commits

Author SHA1 Message Date
LotusLab
1ecc6eb7dc
Merge 769f3a8a4f into 07de70d8ab 2023-07-26 11:39:40 +08:00
lotusproxy
769f3a8a4f
Fix ServerRank 2023-06-16 00:54:47 +00:00

View File

@ -8,6 +8,7 @@ use App\Models\Order;
use App\Models\ServerShadowsocks; use App\Models\ServerShadowsocks;
use App\Models\ServerTrojan; use App\Models\ServerTrojan;
use App\Models\ServerVmess; use App\Models\ServerVmess;
use App\Models\ServerHysteria;
use App\Models\Stat; use App\Models\Stat;
use App\Models\StatServer; use App\Models\StatServer;
use App\Models\StatUser; use App\Models\StatUser;
@ -99,7 +100,8 @@ class StatController extends Controller
'shadowsocks' => ServerShadowsocks::where('parent_id', null)->get()->toArray(), 'shadowsocks' => ServerShadowsocks::where('parent_id', null)->get()->toArray(),
'v2ray' => ServerVmess::where('parent_id', null)->get()->toArray(), 'v2ray' => ServerVmess::where('parent_id', null)->get()->toArray(),
'trojan' => ServerTrojan::where('parent_id', null)->get()->toArray(), 'trojan' => ServerTrojan::where('parent_id', null)->get()->toArray(),
'vmess' => ServerVmess::where('parent_id', null)->get()->toArray() 'vmess' => ServerVmess::where('parent_id', null)->get()->toArray(),
'hysteria' => ServerHysteria::where('parent_id', null)->get()->toArray()
]; ];
$startAt = strtotime('-1 day', strtotime(date('Y-m-d'))); $startAt = strtotime('-1 day', strtotime(date('Y-m-d')));
$endAt = strtotime(date('Y-m-d')); $endAt = strtotime(date('Y-m-d'));