mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
update
This commit is contained in:
parent
99117cca58
commit
ba1c4ffa00
@ -86,8 +86,8 @@ class DeepbworkController extends Controller
|
||||
$serverService->log(
|
||||
$item['user_id'],
|
||||
$request->input('node_id'),
|
||||
$u,
|
||||
$d,
|
||||
$item['u'],
|
||||
$item['d'],
|
||||
$server->rate
|
||||
);
|
||||
}
|
||||
|
@ -60,17 +60,12 @@ class ServerController extends Controller
|
||||
case 2:
|
||||
$serverLogModel->where('created_at', '>=', strtotime(date('Y-m-1')));
|
||||
}
|
||||
$sum = [
|
||||
'u' => $serverLogModel->sum('u'),
|
||||
'd' => $serverLogModel->sum('d')
|
||||
];
|
||||
$total = $serverLogModel->count();
|
||||
$res = $serverLogModel->forPage($current, $pageSize)
|
||||
->get();
|
||||
return response([
|
||||
'data' => $res,
|
||||
'total' => $total,
|
||||
'sum' => $sum
|
||||
'total' => $total
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user