add remove Active user when extends

This commit is contained in:
Ibnu Maksum 2024-05-07 11:28:51 +07:00
parent a40b2cbea3
commit 651969924c
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -785,8 +785,12 @@ switch ($action) {
Radius::customerAddPlan($c, $p, $tur['expiration'] . ' ' . $tur['time']); Radius::customerAddPlan($c, $p, $tur['expiration'] . ' ' . $tur['time']);
} else { } else {
if ($tur['type'] == 'Hotspot') { if ($tur['type'] == 'Hotspot') {
Mikrotik::removeHotspotUser($client, $c['username']);
Mikrotik::removeHotspotActiveUser($client, $c['username']);
Mikrotik::addHotspotUser($client, $p, $c); Mikrotik::addHotspotUser($client, $p, $c);
} else if ($tur['type'] == 'PPPOE') { } else if ($tur['type'] == 'PPPOE') {
Mikrotik::removePpoeUser($client, $c['username']);
Mikrotik::removePpoeActive($client, $c['username']);
Mikrotik::addPpoeUser($client, $p, $c); Mikrotik::addPpoeUser($client, $p, $c);
} }
} }