mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
make sync button not remove active hotspot user
make sync button not remove active hotspot user
This commit is contained in:
parent
d4c34afb8d
commit
a4e8ae8c5c
1 changed files with 3 additions and 0 deletions
|
@ -33,8 +33,11 @@ class MikrotikHotspot
|
|||
{
|
||||
$mikrotik = $this->info($plan['routers']);
|
||||
$client = $this->getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
|
||||
$isExp = ORM::for_table('tbl_plans')->select("id")->where('plan_expired', $plan['id'])->find_one();
|
||||
$this->removeHotspotUser($client, $customer['username']);
|
||||
if ($isExp){
|
||||
$this->removeHotspotActiveUser($client, $customer['username']);
|
||||
}
|
||||
$this->addHotspotUser($client, $plan, $customer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue