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