Show is Customer Online in the customer list

This commit is contained in:
Ibnu Maksum
2024-10-07 14:50:11 +07:00
parent 9016ecbb98
commit 4f3647beae
3 changed files with 52 additions and 10 deletions

View File

@ -109,9 +109,10 @@ class MikrotikHotspot
$client = $this->getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
$printRequest = new RouterOS\Request(
'/ip hotspot active print',
RouterOS\Query::where('name', $customer['username'])
RouterOS\Query::where('user', $customer['username'])
);
return $client->sendSync($printRequest)->getProperty('.id');
$id = $client->sendSync($printRequest)->getProperty('.id');
return $id;
}
function connect_customer($customer, $ip, $mac_address, $router_name)