This commit is contained in:
root 2019-11-25 00:20:26 +08:00
parent 774ca33261
commit 37e35056ff

View File

@ -17,8 +17,10 @@ class DeepbworkController extends Controller
public function user (Request $request) {
$nodeId = $request->input('node_id');
$server = Server::find($nodeId);
$server->last_check_at = time();
$server->save();
if ($server) {
$server->last_check_at = time();
$server->save();
}
$users = User::whereIn('group_id', json_decode($server->group_id))
->select([
'id',