mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
37e35056ff
commit
eeac29aceb
@ -17,10 +17,11 @@ class DeepbworkController extends Controller
|
|||||||
public function user (Request $request) {
|
public function user (Request $request) {
|
||||||
$nodeId = $request->input('node_id');
|
$nodeId = $request->input('node_id');
|
||||||
$server = Server::find($nodeId);
|
$server = Server::find($nodeId);
|
||||||
if ($server) {
|
if (!$server) {
|
||||||
|
abort(500, 'fail');
|
||||||
|
}
|
||||||
$server->last_check_at = time();
|
$server->last_check_at = time();
|
||||||
$server->save();
|
$server->save();
|
||||||
}
|
|
||||||
$users = User::whereIn('group_id', json_decode($server->group_id))
|
$users = User::whereIn('group_id', json_decode($server->group_id))
|
||||||
->select([
|
->select([
|
||||||
'id',
|
'id',
|
||||||
|
Loading…
Reference in New Issue
Block a user