2019-11-30 17:53:54 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
use App\Models\ServerGroup;
|
|
|
|
use App\Models\Server;
|
|
|
|
use App\Models\Plan;
|
|
|
|
use App\Models\User;
|
2019-12-10 11:23:14 +08:00
|
|
|
use Illuminate\Support\Facades\Redis;
|
2019-11-30 17:53:54 +08:00
|
|
|
|
|
|
|
class StatController extends Controller
|
|
|
|
{
|
|
|
|
public function dashboard (Request $request) {
|
2019-12-10 11:23:14 +08:00
|
|
|
return response([
|
|
|
|
'data' => [
|
|
|
|
'month_income' => Redis::get('month_income'),
|
|
|
|
'month_register_total' => Redis::get('month_register_total')
|
|
|
|
]
|
|
|
|
]);
|
2019-11-30 17:53:54 +08:00
|
|
|
}
|
|
|
|
}
|