mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2024-11-10 17:26:48 +08:00
remove customer check pppoe_username
This commit is contained in:
parent
271dd2934a
commit
a09bfc01bf
1 changed files with 8 additions and 0 deletions
|
@ -51,6 +51,8 @@ class MikrotikPppoe
|
|||
}
|
||||
if (!empty($customer['pppoe_ip'])) {
|
||||
$setRequest->setArgument('local-address', $customer['pppoe_ip']);
|
||||
}else{
|
||||
$setRequest->setArgument('local-address', null);
|
||||
}
|
||||
$setRequest->setArgument('profile', $plan['name_plan']);
|
||||
$setRequest->setArgument('comment', $customer['fullname'] . ' | ' . $customer['email'] . ' | ' . implode(', ', User::getBillNames($customer['id'])));
|
||||
|
@ -72,8 +74,14 @@ class MikrotikPppoe
|
|||
$this->add_customer($customer, $p);
|
||||
} else {
|
||||
$this->removePpoeUser($client, $customer['username']);
|
||||
if (!empty($customer['pppoe_username'])) {
|
||||
$this->removePpoeUser($client, $customer['pppoe_username']);
|
||||
}
|
||||
}
|
||||
$this->removePpoeActive($client, $customer['username']);
|
||||
if (!empty($customer['pppoe_username'])) {
|
||||
$this->removePpoeActive($client, $customer['pppoe_username']);
|
||||
}
|
||||
}
|
||||
|
||||
// customer change username
|
||||
|
|
Loading…
Reference in a new issue