Fix edit customer plan

This commit is contained in:
Ibnu Maksum
2024-06-20 14:02:36 +07:00
parent b9ff4399a4
commit 29ad9dec73
8 changed files with 77 additions and 67 deletions

View File

@ -35,15 +35,6 @@ class MikrotikHotspot
$this->removeHotspotActiveUser($client, $customer['username']);
}
function change_customer($customer, $plan)
{
$mikrotik = $this->info($plan['routers']);
$client = $this->getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
$this->removeHotspotUser($client, $customer['username']);
$this->removeHotspotActiveUser($client, $customer['username']);
$this->addHotspotUser($client, $plan, $customer);
}
function add_plan($plan)
{
$mikrotik = $this->info($plan['routers']);