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) {
|
||||||
$server->last_check_at = time();
|
abort(500, 'fail');
|
||||||
$server->save();
|
|
||||||
}
|
}
|
||||||
|
$server->last_check_at = time();
|
||||||
|
$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