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,16 +35,6 @@ class MikrotikPppoe
$this->removePpoeActive($client, $customer['username']);
}
function change_customer($customer, $plan)
{
$mikrotik = $this->info($plan['routers']);
$client = $this->getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
$this->removePpoeUser($client, $customer['username']);
$this->removePpoeActive($client, $customer['username']);
$this->addPpoeUser($client, $plan, $customer);
}
function add_plan($plan)
{
$mikrotik = $this->info($plan['routers']);